Skip to content

fix: make terminal raw in ssh command on windows #12990

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

Merged
merged 2 commits into from
Apr 17, 2024

Conversation

deansheather
Copy link
Member

@deansheather deansheather commented Apr 17, 2024

We were making it raw, but not raw enough. It needs a few extra modes enabled to function with arrows etc.

Code taken from Coder v1 where we had the same problem.

Tested manually on both Linux and Windows to ensure that left and right arrows work when editing the prompt, htop works (arrow keys, mouse clicks, escape key), resizing works.

We were making it raw, but not raw enough. It needs a few extra modes
enabled to function with arrows etc.
Copy link
Member

@mafredri mafredri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't test this but code looks otherwise alright 👍🏻.

@deansheather deansheather requested a review from mafredri April 17, 2024 17:51
@deansheather
Copy link
Member Author

deansheather commented Apr 17, 2024

Moved the files to pty package and changed it so there's only one set public function for all platforms.

Re-tested

Copy link
Member

@mafredri mafredri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@deansheather deansheather enabled auto-merge (squash) April 17, 2024 17:56
@MrPeacockNLB
Copy link
Contributor

Wow sounds nice! Can not await to test

@deansheather deansheather merged commit d426569 into main Apr 17, 2024
25 checks passed
@deansheather deansheather deleted the dean/ssh-windows-raw branch April 17, 2024 18:01
@github-actions github-actions bot locked and limited conversation to collaborators Apr 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants