-
Notifications
You must be signed in to change notification settings - Fork 336
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
BlockCursor is broken on macOS #197
Comments
I think that the solution to the problem may be to set the course for the last character of the default value. I would say that this is the most natural behavior for an input field across other UIs. |
I ran into similar issue cursor blocking default value and found #146 set AllowEdit: true will move cursor to the end of default value |
The problem is that the escape code for ESC must be \x1b and not as is done today in cursor.go. A fixed blockCursor is:
|
Tested with both iTerm2 3.4.12 and Terminal 2.10 on macOS 10.15.7 with promptui 0.9.0 and Go 1.17.5
using:
Generates the following prompt:
DefaultCursor
is very painful when there is a default value since it obscures the first character, so right now that only leavesPipeCursor
which is very hard to see and seems very non-standard.The text was updated successfully, but these errors were encountered: