config-bash/libs/term.bash
Xavier Logerais (Numericable - Ingénierie Système) b62147b177 Modified function term_change_title
2013-12-05 13:41:08 +01:00

18 lines
272 B
Bash
Executable File

#!/bin/bash
function term_change_title
{
case $TERM in
# Change the window title of X terminals
xterm*|rxvt*|urxvt*|Eterm)
echo -ne "\033]0;${1}\007"
;;
# Change the window title of screen terminals
screen*)
echo -ne "\033k${1}\033\\"
;;
esac
}