We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When piping stdin from another process on windows, readline fails to read the piped stdin.
Say my binary does this:
func main() { rl, err := NewEx(&Config{}) if err != nil { fmt.Println(err) return } line, err := rl.Readline() if err != nil { fmt.Println(err) return } fmt.Println(line) }
And then I use it as follows
echo "hello world" | MyBinary.exe
fails with EOF instead of printing hello world.
hello world
On linux this works as expected.
The issue appears to be in rawreader_windows.go where the call to ReadConsoleInputW returns "invalid function".
ReadConsoleInputW
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When piping stdin from another process on windows, readline fails to read the piped stdin.
Say my binary does this:
And then I use it as follows
fails with EOF instead of printing
hello world
.On linux this works as expected.
The issue appears to be in rawreader_windows.go where the call to
ReadConsoleInputW
returns "invalid function".The text was updated successfully, but these errors were encountered: