zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-users@sunsite.dk
Subject: Re: backspace => ^? in remote vi under screen, all shells zsh
Date: Sat, 11 Feb 2006 05:15:06 +0000	[thread overview]
Message-ID: <1060211051506.ZM5307@candle.brasslantern.com> (raw)
In-Reply-To: <7c737f300602101745u7b3f8329l6700ada175769353@mail.gmail.com>

On Feb 10,  5:45pm, Deliverable Mail wrote:
} 
} I have this annoying problem -- in my local zsh and screen everything is
} OK.  But when I log into certain Red Hat 7.2 boxen from a window in that
} screen, and start vi, backspace produces ^?.

The trouble here is that all applications on both ends of the remote shell
connection have to agree on (a) what key value produces the effect of
"erase the character left of the cursor" and (b) what key value is sent
by the backspace key.

At some point during the RH6.x series, the default for the backspace key
was switched (I don't recall in which direction ... I think from ^H to
^? but I may be wrong).  This is a low-level setting, in the console
driver if you're not using X11 or the X key bindings if you are, and is
not controllable by the shell's key binding mechanism.

} Note that *remote* shell is
} zsh and backspace in its command line works just fine.

That's because zsh treats ^? and ^H as interchangable unless you have
explicitly bindkey'd it otherwise.  "Real" vi also used to do so, but
vim (the open-source vi clone favored by RH) does not.

} I wonder whether this is a problem which can be fixed on zsh's own
} bindkey level?

You *might* be able to fix it by fooling around with "stty erase" on the
remote and/or local system, but exactly what you need to do depends on
which system is remote and which is local and might change for any given
pairing.


  reply	other threads:[~2006-02-11  5:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-11  1:45 Deliverable Mail
2006-02-11  5:15 ` Bart Schaefer [this message]
2006-02-11 16:31 ` Thor Andreassen

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=1060211051506.ZM5307@candle.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-users@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).