We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c59d09 commit eba39e8Copy full SHA for eba39e8
packages/compas/src/main/development/tui.js
@@ -25,7 +25,9 @@ export function tuiInit(state) {
25
process.stdout.on("resize", () => state.resizeScreen());
26
27
// Input setup + listener
28
- process.stdin.setRawMode(true);
+ if (process.stdin.setRawMode) {
29
+ process.stdin.setRawMode(true);
30
+ }
31
emitKeypressEvents(process.stdin);
32
33
process.stdin.on("keypress", (char, raw) => {
@@ -52,7 +54,10 @@ export function tuiExit(state) {
52
54
53
55
state.cursor.reset();
56
state.cursor.flush();
- process.stdin.setRawMode(false);
57
+
58
59
+ process.stdin.setRawMode(false);
60
61
}
62
63
/**
0 commit comments