How to Send a Bell Character as Part of the Prompt in CSH

Martin McCormick martin at dc.cis.okstate.edu
Mon Nov 8 07:18:32 PST 2004


	I set a prompt string in the root .cshrc file of a system and
wanted it to ring the terminal bell on each new shell prompt.
Instead, I get the representation of the \a expression as a control
character as in ^g appearing on the screen instead of the VT100
emulation receiving the ASCII 7 character to beep the terminal.  If I
type a Control-G, I do hear a bell, but if I include it in the prompt
string, it always gets translated in to ^g.  What do I need to look at
to change this behavior?

	The prompt string in question is:

set prompt="\a\!# "

I did try

set prompt="`echo `\!# "

with exactly the same results.

Martin McCormick WB5AGZ  Stillwater, OK 
OSU Information Technology Division Network Operations Group


More information about the freebsd-questions mailing list