Skip to content

Commit

Permalink
fix(term): add missing ENABLE_VIRTUAL_TERMINAL_INPUT flag on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed Nov 8, 2024
1 parent beac7c3 commit 66d4aed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions term/term_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ func makeRaw(fd uintptr) (*State, error) {
return nil, err
}
raw := st &^ (windows.ENABLE_ECHO_INPUT | windows.ENABLE_PROCESSED_INPUT | windows.ENABLE_LINE_INPUT | windows.ENABLE_PROCESSED_OUTPUT)
raw |= windows.ENABLE_VIRTUAL_TERMINAL_INPUT
if err := windows.SetConsoleMode(windows.Handle(fd), raw); err != nil {
return nil, err
}
Expand Down

0 comments on commit 66d4aed

Please sign in to comment.