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

Key not found: Escape #372

Closed
matteoeghirotta opened this issue Apr 2, 2019 · 6 comments
Closed

Key not found: Escape #372

matteoeghirotta opened this issue Apr 2, 2019 · 6 comments

Comments

@matteoeghirotta
Copy link

Hi, just tried lem with the ncurses frontend on a debian linux box, using both urxvt, st and gnome-terminal terminals.
Not sure about this issue, since nobody seems to notice the following problem:

every time I insert a key sequence containing escape, or just typing the escape character results in a message:
Key not found: Escape

Also Ctrl- and others, which should be translated as (common lisp characters): #\Esc #[ #\1 #; #\5 #\D fails, printing just #[ #\1 #; #\5 #\D (escape char seem to be ignored)
Am I the only one experimenting this issue?

@snmsts
Copy link
Member

snmsts commented Apr 2, 2019

It comes from timeout after escape is so severe (100ms) if you type x just after escape you can see it taken as M-x unless it taken as single escape key and there's no binding for the key.

@matteoeghirotta
Copy link
Author

So no hope to have ctrl-right working? I see this binding defined in your source code. Is it possible to overcome this timeout issue, as done in e.g emacs?

@snmsts
Copy link
Member

snmsts commented Apr 9, 2019

ok ctrl-right would work.

@matteoeghirotta
Copy link
Author

Many thanks for taking time to face this issue. Unfortunately even after updating lem (ros update lem)
typing C-Right (or other arrow keys) still just prints out some terminal code (C-right prints ";5C"), after I bound it in ~/.lem/init.lisp, as below
(define-key global-keymap "C-Right" 'window-move-right)

This seem to be a common issue in the terminal, since I also found problems using linedit, where typing C- would freeze the repl. I managed to send the developers a pull request fixing the issue, sharplispers/linedit#4

@snmsts
Copy link
Member

snmsts commented Apr 9, 2019

7abe368 fixed?

@matteoeghirotta
Copy link
Author

Perfect thank you so much

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

No branches or pull requests

2 participants