@effect/platform-node-shared 4.0.0-beta.77 → 4.0.0-beta.79
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/NodeClusterSocket.d.ts.map +1 -1
- package/dist/NodeClusterSocket.js +0 -24
- package/dist/NodeClusterSocket.js.map +1 -1
- package/dist/NodeCrypto.d.ts +5 -20
- package/dist/NodeCrypto.d.ts.map +1 -1
- package/dist/NodeCrypto.js +5 -20
- package/dist/NodeCrypto.js.map +1 -1
- package/dist/NodeFileSystem.d.ts.map +1 -1
- package/dist/NodeFileSystem.js +0 -23
- package/dist/NodeFileSystem.js.map +1 -1
- package/dist/NodePath.d.ts.map +1 -1
- package/dist/NodePath.js +4 -20
- package/dist/NodePath.js.map +1 -1
- package/dist/NodeRuntime.d.ts +3 -25
- package/dist/NodeRuntime.d.ts.map +1 -1
- package/dist/NodeRuntime.js.map +1 -1
- package/dist/NodeSink.d.ts +6 -30
- package/dist/NodeSink.d.ts.map +1 -1
- package/dist/NodeSink.js.map +1 -1
- package/dist/NodeSocket.d.ts +2 -19
- package/dist/NodeSocket.d.ts.map +1 -1
- package/dist/NodeSocket.js.map +1 -1
- package/dist/NodeSocketServer.d.ts.map +1 -1
- package/dist/NodeSocketServer.js.map +1 -1
- package/dist/NodeStdio.d.ts.map +1 -1
- package/dist/NodeStdio.js +2 -25
- package/dist/NodeStdio.js.map +1 -1
- package/dist/NodeStream.d.ts +5 -22
- package/dist/NodeStream.d.ts.map +1 -1
- package/dist/NodeStream.js +5 -22
- package/dist/NodeStream.js.map +1 -1
- package/dist/NodeTerminal.d.ts.map +1 -1
- package/dist/NodeTerminal.js.map +1 -1
- package/package.json +3 -3
- package/src/NodeClusterSocket.ts +0 -24
- package/src/NodeCrypto.ts +5 -20
- package/src/NodeFileSystem.ts +0 -23
- package/src/NodePath.ts +4 -20
- package/src/NodeRuntime.ts +3 -25
- package/src/NodeSink.ts +6 -30
- package/src/NodeSocket.ts +2 -19
- package/src/NodeSocketServer.ts +0 -26
- package/src/NodeStdio.ts +2 -25
- package/src/NodeStream.ts +5 -22
- package/src/NodeTerminal.ts +5 -27
package/src/NodeTerminal.ts
CHANGED
|
@@ -1,33 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Shared Node.js implementation of Effect's `Terminal` service.
|
|
3
3
|
*
|
|
4
|
-
* `NodeTerminal` adapts Node's `readline` APIs plus the current process
|
|
5
|
-
* `stdin` and `stdout` streams into {@link Terminal.Terminal}.
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* **Mental model**
|
|
11
|
-
*
|
|
12
|
-
* {@link make} creates a scoped terminal around the global process streams, and
|
|
13
|
-
* {@link layer} provides that terminal with the default quit behavior for key
|
|
14
|
-
* input. While the scope is active, the module owns the Node `readline`
|
|
15
|
-
* interface it created; it does not own the process streams themselves.
|
|
16
|
-
*
|
|
17
|
-
* **Common tasks**
|
|
18
|
-
*
|
|
19
|
-
* Use {@link make} when a custom `shouldQuit` predicate should decide when key
|
|
20
|
-
* input ends. Use {@link layer} when Ctrl+C and Ctrl+D should end the key-input
|
|
21
|
-
* stream. For plain byte-oriented stdin/stdout access, use the `Stdio` service
|
|
22
|
-
* instead.
|
|
23
|
-
*
|
|
24
|
-
* **Gotchas**
|
|
25
|
-
*
|
|
26
|
-
* When stdin is a TTY, raw mode is enabled while the scoped terminal is active
|
|
27
|
-
* and restored on release. Raw mode changes how keys are delivered and can
|
|
28
|
-
* affect other code reading stdin. In non-TTY environments such as pipes,
|
|
29
|
-
* redirected input, or CI, raw mode is unavailable, keypress behavior is
|
|
30
|
-
* limited, and stdout dimensions may be reported as zero.
|
|
4
|
+
* `NodeTerminal` adapts Node's `readline` APIs plus the current process
|
|
5
|
+
* `stdin` and `stdout` streams into {@link Terminal.Terminal}. The service can
|
|
6
|
+
* display output, read a line, stream key input, and read terminal dimensions.
|
|
7
|
+
* `make` manages readline and TTY raw mode in a scope, while `layer` provides
|
|
8
|
+
* the default service that ends key input on Ctrl+C or Ctrl+D.
|
|
31
9
|
*
|
|
32
10
|
* @since 4.0.0
|
|
33
11
|
*/
|