reverse-video prompts in xterm on SunOS
Posted on 1997-06-13
How does one get a reverse-video prompt in [t]csh on an xterm on a SunOS 4.1.4 system? The code I have that works on most other system fails here. Instead of getting reverse video, I get the ^[[7m style interpretation, which isn't pretty. Something on the Sun is intercepting the ESC characters and replacing them with ^[ so the xterm doesn't see the escape sequence.
Does someone have a .cshrc code fragment that successfully produces a reverse-video prompt on a SunOS xterm?
Here are the definitions that work elsewhere but not here:
# setprompt 'set prompt="^[[7m$USER@$HOSTNAME":"$wd3":"^[[m "'
# setprompt 'set prompt="`tput smso`$USER@$HOSTNAME":"$wd3":"`tput rmso` "'
You should replace the ^[ pairs with an ESC char, of course.