hyper icon indicating copy to clipboard operation
hyper copied to clipboard

Sometimes pressing ESC key takes a while to get response

Open LexSong opened this issue 8 years ago • 12 comments

  • [x] I am on the latest Hyper.app version
  • [x] I have searched the issues of this repo and believe that this is not a duplicate
  • OS version and name: Windows 10
  • Hyper.app version: 2.0.0(Stable)
  • The issue is reproducible in vanilla Hyper.app: Is Vanilla

Issue

Sometimes pressing Esc key will take a long time to get response.

The reliable way to reproduce it is:

  1. Run windows version vim with vim
  2. Press i into insert mode
  3. Type test
  4. Press <Esc> key to leave insert mode. It will take roughly a second.
  5. type :q! to leave vim
  6. Even after leaving vim, <Esc> key still take a while to register. Random typing anything and <Esc> key will take a while to clean the cmd command line.

Reload won't fix it, only full reload with Ctrl-Shift-F5 can reset this behavior.

LexSong avatar Apr 24 '18 05:04 LexSong

I can reproduce this issue in the demo app of xterm.js.

Looks like an upstream issue

LexSong avatar Apr 27 '18 19:04 LexSong

Am also getting this issue

ecielam avatar Jul 04 '18 00:07 ecielam

Testing the terminal timeout tweak in this post seems to fix this. I am only getting this issue when ssh'd to outside servers. This only popped up recently, it's been working fine for a while.

https://stackoverflow.com/questions/12312178/tmux-and-vim-escape-key-being-seen-as-and-having-long-delay

ecielam avatar Jul 10 '18 19:07 ecielam

I get this too - but not when I first open a terminal and SSH out. It happens over time.

I'm using WSL as my base shell

jamessewell avatar Aug 22 '18 01:08 jamessewell

This also happens to me over time.

srchulo avatar Nov 21 '18 00:11 srchulo

I love Hyper - it's the best terminal experience I've found for Windows. This is pretty much a deal breaker for me though.

I end up eventually finding myself pounding ESC over and over again in VIM trying to get out of insert mode :(

On Wed, Nov 21, 2018 at 11:29 AM Adam Hopkins [email protected] wrote:

This also happens to me over time.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/zeit/hyper/issues/2922#issuecomment-440480358, or mute the thread https://github.com/notifications/unsubscribe-auth/ABKRoxNbeZ3aHDDP9_Vs4y3E-ephPw6Bks5uxJ5pgaJpZM4ThBkq .

jamessewell avatar Nov 21 '18 00:11 jamessewell

I have the same issue.

uadev avatar Aug 14 '19 11:08 uadev

I have never used hyper, but just for information I can share that I'm having similar problem with ESC taking about 1 second to register.

My setup is: WSL (Windows Subsystem for Linux) with Ubuntu -> ssh -> tmux -> nvim

kaddkaka avatar Apr 23 '20 13:04 kaddkaka

I have never used hyper, but just for information I can share that I'm having similar problem with ESC taking about 1 second to register.

My setup is: WSL (Windows Subsystem for Linux) with Ubuntu -> ssh -> tmux -> nvim

Not clear if this is on hyper or ubuntu.exe?

LabhanshAgrawal avatar Apr 23 '20 17:04 LabhanshAgrawal

@LexSong @ecielam @jamessewell @uadev Is it still happening? Can you try out the ci build once also (lots of improvements since last release)

LabhanshAgrawal avatar Apr 23 '20 17:04 LabhanshAgrawal

I had this issue and narrowed it down to a tmux config problem:

Fix it by adding set -sg escape-time 0 to ~/.tmux.conf

You can apply it without restarting tmux by:

<C-b>:source-file ~/.tmux.conf (or substituing <C-b> for your tmux control key)

agscala avatar Jun 28 '20 16:06 agscala

@LexSong @ecielam @jamessewell @uadev Is it still happening? Can you try out the ci build once also (lots of improvements since last release)

Hi, sorry for the late reply

I can confirm that this issue no longer exists. I'll close this issue.

LexSong avatar Jul 01 '20 02:07 LexSong