General Terminal

GtSetSelectCopy

Control copying text selected with the mouse

Syntax

Signature
void GtSetSelectCopy( xBool on );

Arguments

on enables the setting with T or disables it with F.

Return value

No return value.

Description

Controls automatic copying of text selected with the mouse to the clipboard. Check the resulting state with GtIsSelectCopy().

Example

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

#include <stdio.h>

int main( void )
{
   xBool previous = GtIsSelectCopy();

   GtSetSelectCopy( T );
   printf( "Select Copy state: %s\n", GtIsSelectCopy() ? "on" : "off" );
   GtSetSelectCopy( previous );

   return 0;
}

See also