help / color / mirror / Atom feed
From: Roman Perepelitsa <roman.perepelitsa@gmail.com>
To: TJ Luoma <luomat@gmail.com>
Cc: Zsh MailingList <zsh-users@zsh.org>
Subject: Re: up-arrow for history 'broken' after ssh
Date: Tue, 28 Jul 2020 19:42:00 +0200
Message-ID: <CAN=4vMqkgmwqgH5+4rArHdUfnqvsaKYG+cOHEptexF_WcoXg0w@mail.gmail.com> (raw)
In-Reply-To: <CADjGqHucU=rxFupWKgUThSRHYQu-kTDGY6ANcWZe0fePCaCh4g@mail.gmail.com>

On Tue, Jul 28, 2020 at 2:39 PM TJ Luoma <luomat@gmail.com> wrote:
> However, when I ssh from my Mac to a Linux machine [...]
> and then exit ssh, my 'up arrow' goes back one at a time

You almost certainly have different zle widgets bound to different key
sequences that correspond to up-arrow-key in raw and application

There are several ways to fix this.

1. Use `bind -s` to translate application mode key sequences to raw
and then bind only raw sequences to widgets (or the other way around).
This is my favorite.
2. Bind all widgets twice if you want to bind them to arrow keys or home/end.
3. Hook zle-line-init and change terminal mode to application/raw.
This is the most error prone method of the three. It breaks whenever
terminal mode is changed by a widget (as opposed to by a command) and
when you use some zsh plugins.


  parent reply	other threads:[~2020-07-28 17:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-28 12:37 TJ Luoma
2020-07-28 17:16 ` Lewis Butler
2020-07-28 17:42 ` Roman Perepelitsa [this message]
2020-07-29  0:48   ` Bart Schaefer

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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAN=4vMqkgmwqgH5+4rArHdUfnqvsaKYG+cOHEptexF_WcoXg0w@mail.gmail.com' \
    --to=roman.perepelitsa@gmail.com \
    --cc=luomat@gmail.com \
    --cc=zsh-users@zsh.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link


This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.vuxu.org/zsh-users

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 zsh-users zsh-users/ http://inbox.vuxu.org/zsh-users \
	public-inbox-index zsh-users

Example config snippet for mirrors.
Newsgroup available over NNTP:

code repositories for the project(s) associated with this inbox:


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git