Skip site navigation (1)Skip section navigation (2)
Date:      25 Oct 2002 09:48:46 -0700
From:      Michael Morris <memorris@christsgarden.org>
To:        Giorgos Keramidas <keramida@ceid.upatras.gr>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: backspace and del keys
Message-ID:  <1035564527.685.22.camel@dilbert.christsgarden.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>

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




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