Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 08 Nov 2004 09:18:31 -0600
From:      Martin McCormick <martin@dc.cis.okstate.edu>
To:        freebsd-questions@freebsd.org
Subject:   How to Send a Bell Character as Part of the Prompt in CSH
Message-ID:  <200411081518.iA8FIVkI026630@dc.cis.okstate.edu>

next in thread | raw e-mail | index | archive | help
	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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200411081518.iA8FIVkI026630>