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

fix: Strange 255 exit code on Windows #19

Merged
merged 3 commits into from
Oct 11, 2024
Merged

fix: Strange 255 exit code on Windows #19

merged 3 commits into from
Oct 11, 2024

Conversation

mikew
Copy link
Owner

@mikew mikew commented Oct 10, 2024

The video in #18 clearly shows nvrh working on Windows, but when I tried it on my fairly stock gaming PC, I was getting an error.

So I turned on stdio for the ssh process, saw nothing weird, and it worked.

Preview

Screen.Recording.2024-10-10.174550.mp4

Comment on lines +35 to 38
if runtime.GOOS == "windows" {
sshCommand.Stdout = os.Stdout
}
// sshCommand.Stderr = os.Stderr
Copy link
Owner Author

Choose a reason for hiding this comment

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

Setting either .Stdout or .Stderr worked, I'm going with stdout so no strange errors pop up and potentially worry users.

@mikew mikew merged commit 438df45 into main Oct 11, 2024
2 checks passed
@mikew mikew deleted the wtf-windows branch October 11, 2024 02:09
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

Successfully merging this pull request may close these issues.

1 participant