General Terminal

GtSetClipboard

Write text to the clipboard

Syntax

Signature
void GtSetClipboard( const char *text );

Arguments

text is the UTF-8 text to copy. Use NULL for an empty string.

Return value

No return value.

Description

Replaces the current clipboard text on drivers that support clipboard access. Use GtGetClipboard() to read back the text.

Example

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

#include <stdio.h>

int main( void )
{
   GtSetClipboard( "Sample text" );
   puts( GtGetClipboard() );

   return 0;
}

See also