-
Notifications
You must be signed in to change notification settings - Fork 842
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
External process input errors when using cmd.exe
#923
Comments
It's readInputs function who steals the first char from the external process. |
Okay cool: so we have an PR open (#878) that overhauls input on Windows which will likely fix this. Would you mind checking on your end @grafviktor? |
Unfortunately, the patch makes things even worse - with every N process which I run from my example app, readInputs steals N+1 symbols. Also it forwards the ending Enter('\r') key which I send to the running process back to the model. I put a comment beneath Ayman's PR to keep him in the loop. |
Describe the bug
When use bubbletea app to run an external process on Windows OS, the process looses first character of the user input.
Setup
Please complete the following information along with version numbers, if applicable.
v0.24.2
andv0.25.0
To Reproduce
Steps to reproduce the behavior:
echo_input.cmd
in the project's folder.cmd.exe
, go to the project folder, and run the app:go run main.go
up
ordown
arrow keyse
to run external process (the process will launchecho_input.cmd
)1 2 3
sequence on your keyboard23
was printed on your screen. Pressenter
key.1
was intercepted by the model's update methodSource Code
Expected behavior
All user input should be redirected to external process
The text was updated successfully, but these errors were encountered: