We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 687bce2 commit a0b4c9dCopy full SHA for a0b4c9d
plugins/plugin-codeflare-dashboard/src/components/Top/index.tsx
@@ -105,12 +105,18 @@ class Top extends React.PureComponent<Props, State> {
105
}
106
107
private cleanupKeyboardEvents() {
108
- // TODO do we also need to exit raw mode on ctrl+c?
109
- process.stdin.setRawMode(false)
+ if (process.stdin.isTTY) {
+ // TODO do we also need to exit raw mode on ctrl+c?
110
+ process.stdin.setRawMode(false)
111
+ }
112
113
114
/** Handle keyboard events from the user */
115
private initKeyboardEvents() {
116
+ if (!process.stdin.isTTY) {
117
+ return
118
119
+
120
// these are necessary to get keypress events on process.stdin
121
emitKeypressEvents(process.stdin)
122
process.stdin.setRawMode(true)
0 commit comments