Beispiel #1
0
static void insert_into_string(TextStructure *cstext, char *s)
{
    int pos;
    
    pos = TextGetCursorPos(cstext);
    TextInsert(cstext, pos, s);
}
Beispiel #2
0
/*ARGSUSED*/
static void
InsertSelection(Widget w, XtPointer client_data, Atom *selection, Atom *type,
		XtPointer value, unsigned long *length, int *format)
{
    if (*type != XT_CONVERT_FAIL)
	TextInsert (text, (char *) value, *length);
    XtOwnSelection(top, mit_console, CurrentTime,
		   ConvertSelection, LoseSelection, NULL);
    OpenConsole ();
}