Image

Imageillubrious wrote in Imagelinux

Xterm title bar discrimination

Recently I redid my .bashprofile and .bashrc, previously I was using the proml function for
xterm title discrimation as not to issue an incorrect PS1 when I was using a console. For whatever
reason it would my terminal would flicker constantly while this was in use (terminal being aterm). I
tried turning off transparency to no avial, gave up a while ago. Recently this has become increasingly more
annoying. Wondering what the majority of all of you use for xterm present working directory title bar exportation? Non flicker prefered =D


function proml
{
case $TERM in
xterm*)
local TITLEBAR='\[\033]0;\u@\h:\w\007\]'
;;
*)
local TITLEBAR=''
;;
esac

PS1="${TITLEBAR}\
[\$(date +%H%M)]\
[\u@\h:\w]\
\$ "
PS2='> '
PS4='+ '
}
</ljcut>