Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 Mar 2002 22:33:27 -0500
From:      "Jonathan Arnold" <jdarnold@buddydog.org>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Re: mail [sending itself mail, backspacing?]
Message-ID:  <200203312233270974.1BD2EE9B@mail.attbi.com>
In-Reply-To: <20020331221322.F63569-100000@earl-grey.cloud9.net>
References:  <20020331221322.F63569-100000@earl-grey.cloud9.net>

next in thread | previous in thread | raw e-mail | index | archive | help
>> and when I use a terminal I can't backspace, is their any  way to fix
>that??>>..................
>There is definitely a way to fix backspace issues.  In the syscons=
 (console
>mode, non X-Windowed), when I hit either the Backspace or Delete key, the
>character to the left is destroyed/removed.  However, in emacs (editor),
>backspace for some reason sends C-h (ctrl-h) to emacs.  What shell do you
>use?

If you use the stty command, you'll see where it maps ctrl-h to be erase.=
 That
is, in fact, what code the backspace key sends. If your shell isn't doing
this, then you can issue the command:

stty erase ^h

where the ^h is really those characters - shift-6 followed by the h. This=
 will
tell the shell that ctrl-h (or the backspace key) is to delete the previous
character.

Of course, it is a problem in emacs, where ctrl-h invokes the help system.
Keymapping in X fixes this problem, so that the backspace key doesn't send
ctrl-h, but rather sends the DEL key. I'm not sure how to do that in the
console.

-- 
Jonathan Arnold     (mailto:jdarnold@buddydog.org)
Daemon Dancing in the Dark, a FreeBSD weblog:
     http://jdarnold.tzo.com/FreeBSD



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?200203312233270974.1BD2EE9B>