[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

all xterms



The original xterm(1x) is not good but it is default of many
programs and xwms. Forcing of use of any other xterm wont be
good also. I suggest making a file `/usr/X11R6/bin/sensible-xterm'
and using it by all xwms and other programs that have to use a xterm. 
The user's favourite program will be set in XTERM
variable and if this variable hasnt been found,
sensible-xterm will run `xterm'.

--- example /usr/X11R6/bin/sensible-xterm file ---
#!/bin/bash
shopt -s execfail
exec ${XTERM:-xterm} "$@"
exec xterm "$@"
echo "Couldn't find an xterm!" 1>&2
echo "Set the \$XTERM environment variable to your desired editor." 1>&2
exit 1
--- end ---


Reply to: