Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Home/End keys fail with error when reading terminal #579

Closed
kidosatori opened this issue Feb 2, 2018 · 3 comments
Closed

Home/End keys fail with error when reading terminal #579

kidosatori opened this issue Feb 2, 2018 · 3 comments
Labels

Comments

@kidosatori
Copy link

Problem

Elvish prints errors whenever the "Home" and "End" keys are pressed. The respective errors are:

error when reading terminal: bad CSI: "\x1b[7~"
error when reading terminal: bad CSI: "\x1b[8~"

Also, I'm not sure if this is related, but when pressing "Ctrl+LeftArrow" and "Ctrl+RightArrow" I'm getting these errors respectively:

error when reading terminal: bad G3: "\x1bOd"
error when reading terminal: bad G3: "\x1bOc"

Steps to reproduce

  1. Start elvish.
  2. Press any of the keys previously mentioned, e.g. "Home".

System information

  • OS: Artix Linux
  • Terminal: rxvt-unicode 9.22-5
~> cat ~/.elvish/rc.elv
use readline-binding
~> go version
go version go1.9.3 linux/amd64
@xiaq xiaq added the bug label Feb 2, 2018
@xiaq
Copy link
Member

xiaq commented Feb 2, 2018

I will study the escape sequences of urxvt once I can get hand on it.

@kidosatori
Copy link
Author

FTR, this issue prompted me to consider switching to a different terminal emulator. Now I'm using the minimalist st (it's not affected by this issue).

Just mentioning it in case you want to put this fix on hold until another rxvt-unicode user shows up, since apparently I was the first one here.

xiaq added a commit that referenced this issue Feb 3, 2018
@xiaq xiaq closed this as completed in 6c6d513 Feb 3, 2018
@xiaq
Copy link
Member

xiaq commented Feb 3, 2018

Most urxvt keys are now supported. \o/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants