From owner-freebsd-questions@FreeBSD.ORG Thu Oct 19 17:59:28 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B45BE16A403 for ; Thu, 19 Oct 2006 17:59:28 +0000 (UTC) (envelope-from xfb52@dial.pipex.com) Received: from smtp-out5.blueyonder.co.uk (smtp-out5.blueyonder.co.uk [195.188.213.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4701B43DB1 for ; Thu, 19 Oct 2006 17:57:54 +0000 (GMT) (envelope-from xfb52@dial.pipex.com) Received: from [172.23.170.143] (helo=anti-virus02-10) by smtp-out5.blueyonder.co.uk with smtp (Exim 4.52) id 1Gac9R-0004A9-3e; Thu, 19 Oct 2006 18:57:53 +0100 Received: from [82.41.32.39] (helo=[192.168.0.2]) by asmtp-out3.blueyonder.co.uk with esmtp (Exim 4.52) id 1Gac9P-0002Z8-Gr; Thu, 19 Oct 2006 18:57:51 +0100 Message-ID: <4537BC9F.8030806@dial.pipex.com> Date: Thu, 19 Oct 2006 18:57:51 +0100 From: Alex Zbyslaw User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-GB; rv:1.7.13) Gecko/20060515 X-Accept-Language: en MIME-Version: 1.0 To: Martin McCormick References: <200610191649.k9JGmxOl017063@dc.cis.okstate.edu> In-Reply-To: <200610191649.k9JGmxOl017063@dc.cis.okstate.edu> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Why csh on Root? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Oct 2006 17:59:28 -0000 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