Skip to content
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

Prompt incorrectly read from PTY #24

Open
slowli opened this issue Nov 12, 2021 · 0 comments
Open

Prompt incorrectly read from PTY #24

slowli opened this issue Nov 12, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@slowli
Copy link
Owner

slowli commented Nov 12, 2021

For standard shells (e.g., sh), the shell prompt is sometimes read from PTY on a wrong line: not with the echoed input, but with the output. For example, in the slightly modified multiline test: "echo \\\n$HOME" input command sometimes leads to ["$HOME", "> /home/user"] being captured as the last 2 lines instead of expected ["> $HOME", "/home/user"].

@slowli slowli added the bug Something isn't working label Nov 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant