From owner-freebsd-questions Fri Oct 25 9:59:23 2002 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 23D9337B401 for ; Fri, 25 Oct 2002 09:59:22 -0700 (PDT) Received: from wally.christsgarden.org (memorris.redback.inficad.com [207.55.74.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7D3D943E9E for ; Fri, 25 Oct 2002 09:59:13 -0700 (PDT) (envelope-from memorris@christsgarden.org) Received: from dilbert.christsgarden.org (dilbert.morris.home [192.168.77.2]) by wally.christsgarden.org (8.11.6/8.11.6) with ESMTP id g9PH7LB15859; Fri, 25 Oct 2002 10:07:21 -0700 Subject: Re: backspace and del keys From: Michael Morris Reply-To: memorris@christsgarden.org To: Giorgos Keramidas Cc: freebsd-questions@FreeBSD.ORG In-Reply-To: <20021025163633.GD673@hades.hell.gr> References: <1035470680.2126.16.camel@dilbert.christsgarden.org> <002001c27b95$f7f705e0$f7808c96@LocalHost> <1035500526.273.33.camel@dilbert.christsgarden.org> <20021025020559.GA19906@hades.hell.gr> <1035558058.204.11.camel@dilbert.christsgarden.org> <20021025163633.GD673@hades.hell.gr> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.5 Date: 25 Oct 2002 09:48:46 -0700 Message-Id: <1035564527.685.22.camel@dilbert.christsgarden.org> Mime-Version: 1.0 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > > erase seems to be set to ^H. When you run cat(1) and press DEL what > does your terminal show? My cons25 terminal shows: > > keramida@hades[19:34]/home/keramida$ cat > ^? Mine shows ^[[3~ > > Are you resetting any of erase or erase2 in your shell startup files > with stty? There is a statement in the /etc/bashrc file: stty erase `tput kbs` It appears twice in the file: stty erase `tput kbs` When I run tput kbs, nothing is displayed. Below is a snippet from the bashrc file with the conditionals. # are we an interactive shell? if [ "$PS1" ]; then if [ -x /usr/bin/tput ]; then if [ "x`tput kbs`" != "x" ]; then # We can't do this with "dumb" terminal stty erase `tput kbs` elif [ -x /usr/bin/wc ]; then if [ "`tput kbs|wc -c `" -gt 0 ]; then # We can't do this with "dumb" terminal stty erase `tput kbs` fi fi fi Michael To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message