3 # xterm_title - print the contents of the xterm title bar
5 # Derived from http://www.clark.net/pub/dickey/xterm/xterm.faq.html#how2_title
9 echo "${P}: not running X" >&2
13 if [ -z "$TERM" ] || [ "$TERM" != "xterm" ]; then
14 echo "${P}: not running in an xterm" >&2
20 stty raw -echo min 0 time ${1-10}
21 echo -e "\033[21t\c" > /dev/tty