Set uxterm as a default terminal. Extend help text to meet ALT Linux specific. --- ./src/keyplex.c +++ ./src/keyplex.c @@ -47,7 +47,7 @@ int numindex = 0; Window *windows; Window *pasteWindows; char *keyplexid; -char *termcmd = "gnome-terminal --disable-factory --class=%s"; +char *termcmd = "uxterm -xrm 'xterm*allowSendEvents: true' -class %s"; Bool querying = False; Bool sendingEvents = False; XErrorHandler oldHandler; @@ -276,12 +276,15 @@ static void usage() fprintf (stderr, "string used to find the terminals in X. The %%s should be used as an argument\n"); fprintf (stderr, "to set either the window class or name\n"); fprintf (stderr, "Examples:\n"); + fprintf (stderr, " %s --command \"xterm -xrm 'xterm*allowSendEvents: true' -class %%s\"\n", program); fprintf (stderr, " %s --command \"gnome-terminal --disable-factory --class=%%s\"\n", program); - fprintf (stderr, " %s --command \"xterm -class %%s\"\n", program); + fprintf (stderr, " %s --command \"uxterm -xrm 'xterm*allowSendEvents: true' \" \\\n", program); + fprintf (stderr, " \" -bg black -fg green -class %%s\"\n"); fprintf (stderr, " %s --command \"aterm -name %%s\"\n", program); fprintf (stderr, "\n"); fprintf (stderr, "Note: xterm (and uxterm) require the resource allowSendEvents to be True.\n"); - fprintf (stderr, " Add \"xterm*allowSendEvents: True\" to ~/.Xdefaults to set this.\n"); + fprintf (stderr, " Add key \"-xrm 'xterm*allowSendEvents: true'\" to the command line\n"); + fprintf (stderr, " or \"xterm*allowSendEvents: True\" to ~/.Xresources to set this permanently.\n"); fprintf (stderr, "\n"); exit(1); }