Date: Thu, 19 Oct 2006 18:57:51 +0100 From: Alex Zbyslaw <xfb52@dial.pipex.com> To: Martin McCormick <martin@dc.cis.okstate.edu> Cc: freebsd-questions@freebsd.org Subject: Re: Why csh on Root? Message-ID: <4537BC9F.8030806@dial.pipex.com> In-Reply-To: <200610191649.k9JGmxOl017063@dc.cis.okstate.edu> References: <200610191649.k9JGmxOl017063@dc.cis.okstate.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
Martin McCormick wrote: > One thing I was trying to accomplish is to have a bell in >the root prompt. In the .cshrc file is a string > >set prompt="\007\!# " > > I have also tried replacing the \007 with the actual >Control-G and even a \a. All produce an attempt to render a bell >but what is sent to the remote terminal is ^G1# >as in the actual ASCII characters ^ and G. > >I am not sure what to do to correct this problem as I do not get >it in bash. A \a or \007 is sent literally. > > The env output for root on this system shows no environmental >variables that should inhibit the beep so I am kind of stumped. > > set prompt="hello%{^G%}there " where ^G is a single control char, not two chars. man tcsh, look for the section on shell variables and then scan down to prompt. --Alex
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4537BC9F.8030806>