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
Calling gather() at each character in search has the side-effect of stripping spaces while you're still writing them. The backspace handling is also broken, since it should be str[-1].strip().lower() to avoid a similar issue.
Looking at how textpad.gather() is implemented though, it just fetches the text in the current window's buffer so it has no way of knowing the difference. Frankly, curses.textpad is next to useless.... reminds me of the handling as done in bank's terminal forms from the 80'ties, where everything was fixed-size and god-forbid about moving the cursor!
The text was updated successfully, but these errors were encountered:
Yep, we're going to have to revert to getch to fix this and the Unicode
entry issue. I added a couple of links in the Unicode issue for other
projects' handling of text entry.
Note that you could "fix" the current code by calling getyx before gather() and setyx() just after to restore the cursor position. I tried it last day, but it feels like punching a dead horse.
Calling gather() at each character in search has the side-effect of stripping spaces while you're still writing them. The backspace handling is also broken, since it should be str[-1].strip().lower() to avoid a similar issue.
Looking at how textpad.gather() is implemented though, it just fetches the text in the current window's buffer so it has no way of knowing the difference. Frankly, curses.textpad is next to useless.... reminds me of the handling as done in bank's terminal forms from the 80'ties, where everything was fixed-size and god-forbid about moving the cursor!
The text was updated successfully, but these errors were encountered: