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

Clear command doesn't work properly on Windows #45

Open
blink1073 opened this issue Nov 27, 2017 · 1 comment
Open

Clear command doesn't work properly on Windows #45

blink1073 opened this issue Nov 27, 2017 · 1 comment

Comments

@blink1073
Copy link
Contributor

It resets the cursor but doesn't clear the screen. I might need to look into how node-pty handles this.

@blink1073
Copy link
Contributor Author

blink1073 commented Nov 27, 2017

I looked into this. I couldn't spot any differences between how node-pty creates the terminal and how pywinpty does. I made sure they were passing the same configuration flags (locally). When I run a bash script with clear in it with node-pty, the output is as expected. When I run it using pywinpty.PTY, I get \x1b[0K\r\n (Erase from current position to end) for as many lines as are in the terminal, followed by an \x1b[#A (Cursor Up). I'll come back to this with fresh eyes at another point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant