Skip to content

Commit

Permalink
fix(compat): reset setRawMode on process exit (#2994)
Browse files Browse the repository at this point in the history
  • Loading branch information
brc-dd authored Sep 20, 2023
1 parent c2c040d commit 70fe47c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/node/shortcuts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ export function bindShortcuts(

server.httpServer.on('close', () => {
process.stdin.off('data', onInput).pause()
process.stdin.setRawMode(false)
})
}

Expand Down

0 comments on commit 70fe47c

Please sign in to comment.