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
A very strange bug. After upgrade to v0.2.6, seems using go-prompt in code will change some status of my shell (I'm using zsh on MacOSX) and breaking the function of fmt.Scanln() after that. The symptom is "Return" key will be recognized as "^M" so it will block on the input.
Bug reports
A very strange bug. After upgrade to v0.2.6, seems using go-prompt in code will change some status of my shell (I'm using zsh on MacOSX) and breaking the function of
fmt.Scanln()
after that. The symptom is "Return" key will be recognized as "^M" so it will block on the input.The code to repro:
And in the shell, 1st time it works as expected:
But run it again, the input following
user:
will be broken:go version go1.16.2 darwin/amd64
Downgrade to v0.2.5 and it works as expected
Expected Behavior
Should always run as the 1st time
Current Behavior and Steps to Reproduce
What is the current behavior? Please provide detailed steps for reproducing the issue.
A picture or gif animation tells a thousand words
Context
Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.
The text was updated successfully, but these errors were encountered: