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

character shift if prompt string is empty ("") #191

Open
mcpcpc opened this issue Oct 14, 2020 · 1 comment
Open

character shift if prompt string is empty ("") #191

mcpcpc opened this issue Oct 14, 2020 · 1 comment

Comments

@mcpcpc
Copy link

mcpcpc commented Oct 14, 2020

Noticed a weird behavior if the prompt char array is empty (""), the input string shifts 1 char to the left after the initial backspace. Also, the cursor does not return to column position 0. The input buffer is still returned normally (i.e. all chars printed to current terminal before return match the returned string), but it does look weird (indicating that this might be an issue with the line refresh function(s). =P

@mcpcpc mcpcpc changed the title character shift if prompt is "" character shift if prompt string is empty ("") Oct 14, 2020
@coco33920
Copy link

I have the same behaviour when the prompt is color coded using standard ANSI rules (here with the OCaml bidings of Linenoise)
image

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