General Terminal

GtPasteClipboard

Queue clipboard text as keyboard input

Syntax

Signature
xBool GtPasteClipboard( void );

Arguments

No arguments.

Return value

T if the driver reports success, otherwise F.

Description

Adds clipboard text to the terminal input buffer, after the text of an earlier paste that is still waiting. Consume the queued characters with Inkey().

Example

gtpasteclipboard.c
#include "xdev-wtui.h"

#include <stdio.h>

int main( void )
{
   if( GtPasteClipboard() )
   {
      int key = Inkey( NIL, NIL );

      if( key )
         puts( GtKeyChar( key ) );
   }

   return 0;
}

See also