You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am pretty sure it should be possible to add a function readNextKey() so that it would return the "logical key" that the user pressed: k, S, 4, Enter, F5, Page-Up, Ctrl-C, Alt-D, Ctrl-Alt-L, etc. This would require decoding the escape sequences associated to keys such as Page-Up (which is something that is at least partially done today, right?), and might require adding defines / enums for the possible key values.
Do you think something like this could be useful?
The text was updated successfully, but these errors were encountered:
One thing you should be able to do currently is something like CTRL-Q <UP-ARROW> which will echo into your REPL some decoded C string literal content for the keyboard sequence e.g. \e[A. The quating feature could very easily be adapted to print the kinds of keyboard shortcuts you suggested.
This library, as all your work, looks awesome!
I am pretty sure it should be possible to add a function
readNextKey()
so that it would return the "logical key" that the user pressed:k
,S
,4
,Enter
,F5
,Page-Up
,Ctrl-C
,Alt-D
,Ctrl-Alt-L
, etc. This would require decoding the escape sequences associated to keys such asPage-Up
(which is something that is at least partially done today, right?), and might require adding defines / enums for the possible key values.Do you think something like this could be useful?
The text was updated successfully, but these errors were encountered: