From: Chuck <GBSCDcM8oX5F7qrd@spambox.us>
To: Peter Stephenson <pws@csr.com>
Cc: zsh-workers@sunsite.dk
Subject: Re: zsh in screen - bad erase key ^@ instead of ^H or ^?
Date: Tue, 18 Dec 2007 10:16:55 -0800 [thread overview]
Message-ID: <47680E97.6050505@spambox.us> (raw)
In-Reply-To: <20071218102924.0a5bcd0a@news01>
Peter Stephenson wrote:
> On Mon, 17 Dec 2007 23:09:55 -0800
> Chuck <GBSCDcM8oX5F7qrd@spambox.us> wrote:
>
>> How do I tell zsh in screen that my backspace key is ^H or ^? instead of
>> ^@ as it currently thinks? stty erase '^@' fails as does using tset.
>>
>
> It may be you're doing the opposite of what you need...
>
>
>> ^v(bs key) tells me bs is currently ^@.
>>
>
> ...this indicates the backspace key currently *is* sending ^@, because
> the ^V stops zsh interpreting the character.
>
> So instead, try making it so that it sends ^H or ^?: "stty erase '^?'".
> (This is likely to be some artefact of screen since zsh doesn't
> change special characters of that sort.)
>
Unfortunately, bs really is sending ^@ in screen and I cannot change it.
stty erase '^H' or '^?' doesn't change bs at all. It's as if the key
mapping at a lower level is screwed up.
> If for some reason you're stuck with the backspace key sending ^@, you
> can use "bindkey" to tell zsh to use it for functions usually bound with ^?
> and ^h, but you shouldn't need to do that.
>
I added a bindkey "^@" "backward-delete-char" in my zshrc when TERM =
screen and I can hit bs and it works in zsh proper. If I run vim though,
my editor of choice, the bs key just throws me out of edit mode instead
of deleting the previous char.
next prev parent reply other threads:[~2007-12-18 18:17 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-18 7:09 Chuck
2007-12-18 10:29 ` Peter Stephenson
2007-12-18 18:16 ` Chuck [this message]
2007-12-18 18:27 ` Peter Stephenson
2007-12-18 19:51 ` Chuck (vid,smtp3)
2007-12-18 20:26 ` Chuck
2007-12-19 0:44 ` Vincent Lefevre
2007-12-19 8:14 ` Chuck
2007-12-18 15:01 ` Wayne Davison
2007-12-18 18:19 ` Chuck (vid,smtp3)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=47680E97.6050505@spambox.us \
--to=gbscdcm8ox5f7qrd@spambox.us \
--cc=pws@csr.com \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).