-
Notifications
You must be signed in to change notification settings - Fork 665
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
Prompt with escape sequences breaks backspace handling #168
Comments
egranata
added a commit
to egranata/puppy
that referenced
this issue
Nov 11, 2018
linenoise-mob (https://github.com/rain-1/linenoise-mob) is an actively maintained fork of linenoise. It fixes (among probably others) antirez/linenoise#168
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Imagine doing something like this
in order to (in this case) color the CWD yellow in a shell prompt.
If linenoise is fed this prompt text, it will do an incorrect calculation of how many characters to move the cursor by in a refreshSingleLine() call after, e.g., pressing BACKSPACE - assuming that it needs to backspace the non-printable escape sequence characters
The text was updated successfully, but these errors were encountered: