-
Notifications
You must be signed in to change notification settings - Fork 0
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
Can't clear text using Backspace when you take input in tui mode #3
Comments
BTW Thank you for this wonderful program. This is awesome <3<3<3 |
Bug: - When pressing 'backspace' in TUI while one of the InputModes Add, Remove or Search is active, a character is printed instead of deleting the last character.
Bug: - When pressing 'backspace' in TUI while one of the InputModes Add, Remove or Search is active, a character is printed instead of deleting the last character.
Always glad to hear that ;)
I just released a new version (Version 2.3.2) where I tried to solve the issue. Does it work there? |
I don't know if I am missing something. It still the same 😢 |
Ok, then I'm not sure if this issue is really caused by brain. I repeatedly checked the section where user input is handled, but there doesn't seem to be anything wrong with it, and I also find it very unlikely that the problem lies with the IO library.😅 You could perhaps check if you are using the latest version (2.3.2) of brain using Also, does backspace work in your shell and other terminal applications, or does it print |
I
Yeah, I looked into the source too and I'm not sure what is wrong(I just started learning rust after this project, not familiar how this library used, have some basic concepts and assumptions).
Yes, backspace works I don't have that kinda issues |
Thank you for pointing this out. I'm aware of this issue but didn't solve it until now because it's only a minor issue and also a bit difficult to implement without creating new problems (e.g. How can you make sure that the notes are in the same order as before you automatically refreshed the page?). But I'm always open for Pull-Requests. ;)
Could you give me the following information, so I could try to reproduce the issue:
I'm guessing that your terminal might send the character |
So you don't have that issue?
Backspace -
Interestingly enough, it clears the text
Oh yeah, now I see the problem. That's why it prints 'h'. |
Now I'm able to reproduce the problem. It seems to occur on certain terminals which print I'm now searching for a workaround for it. ;) |
Now, brn tui will recognize the control char `^H` in addition to `^?` as backspace.
The latest version of |
Can't backspace when you take input in tui mode
When you take input in tui mode, like take input for new note or search, you cannot backspace.
When you press backspace, it print character 'h'.
The text was updated successfully, but these errors were encountered: