f-ttynum () { # Print the tty number on the right edge of the screen. GNU screen doesn't need this with INX defaults if [ $TERM = linux ] ; then unbold let END=$COLUMNS-5 for space in $(seq 1 $END) ; do printf " " ; done ; tty | cut -d/ -f3 white ; bold fi }