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

Not handling control characters as expected in prompt/question mode #39

Open
dansimau opened this issue Sep 2, 2024 · 0 comments
Open

Comments

@dansimau
Copy link

dansimau commented Sep 2, 2024

First thing I did after typing "Is this thing on?" was to send the ANSII escape sequence to clear the line, but it didn't clear.

butterfish.bugs.mp4
Key Expected result Actual result
CTRL-U Clear the current line Nothing happened
CTRL-A Move cursor to beginning of the line
CTRL-E Move cursor to the end of the line
CTRL-→ Move cursor forward one word Moves cursor forward two positions
CTRL-← Move cursor back one word Moves cursor forward two positions
CTRL-↑ Nothing Prints line one line above (corrupts display)

This are the common ones I use daily but there are many that people might be using, e.g.:
https://gist.github.com/fnky/458719343aabd01cfb17a3a4f7296797

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

1 participant