herdr-remote 0.2.22 → 0.2.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tui/mouse/source.js +6 -1
- package/herdr-plugin.toml +1 -1
- package/package.json +1 -1
package/dist/tui/mouse/source.js
CHANGED
|
@@ -23,8 +23,13 @@ export function createMouseSource(input = process.stdin, output = process.stdout
|
|
|
23
23
|
if (passthrough.length > 0)
|
|
24
24
|
forwarded.write(passthrough);
|
|
25
25
|
};
|
|
26
|
-
if (supported)
|
|
26
|
+
if (supported) {
|
|
27
27
|
input.on('data', onData);
|
|
28
|
+
// A 'data' listener only starts a stream nobody paused. The Windows color
|
|
29
|
+
// probe reads stdin before the TUI and pauses it afterwards, and a paused
|
|
30
|
+
// stdin delivers no keys and keeps nothing alive: the TUI exited at once.
|
|
31
|
+
input.resume();
|
|
32
|
+
}
|
|
28
33
|
// Ink expects a TTY: it checks isTTY and drives raw mode itself. Delegate
|
|
29
34
|
// those to the real stdin while it reads from our filtered copy.
|
|
30
35
|
const stdin = forwarded;
|
package/herdr-plugin.toml
CHANGED