dsh-ssh-tui 0.5.9 → 0.5.10
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/README.en.md +1 -1
- package/README.md +5 -0
- package/lib/display-sock.js +41 -3
- package/lib/display-sock.js.map +1 -1
- package/lib/index.js +19 -7
- package/lib/index.js.map +1 -1
- package/lib/paint.js +19 -1
- package/lib/paint.js.map +1 -1
- package/lib/tui.js +5 -0
- package/lib/tui.js.map +1 -1
- package/lib/types/display-sock.d.ts +10 -0
- package/lib/types/paint.d.ts +2 -0
- package/package.json +1 -1
|
@@ -119,6 +119,16 @@ export interface SpawnedHost {
|
|
|
119
119
|
/** Exit watch so a Host that dies before listening is reported at once. */
|
|
120
120
|
exitWatch: HostExitWatch;
|
|
121
121
|
}
|
|
122
|
+
/**
|
|
123
|
+
* Keep the terminal quiet while the launcher retries or waits for a Host.
|
|
124
|
+
*
|
|
125
|
+
* Between attempts the TTY is back in cooked mode, so a DSR reply still in
|
|
126
|
+
* flight from the previous probe is echoed to the screen as `^[[17;1R`-style
|
|
127
|
+
* garbage. Raw mode plus a drain swallows those bytes instead: they are either
|
|
128
|
+
* stale replies or keys typed before any display existed, and neither should
|
|
129
|
+
* reach the shell.
|
|
130
|
+
*/
|
|
131
|
+
export declare function quietTerminalInput(stdin?: NodeJS.ReadStream): number;
|
|
122
132
|
/** Spawn a detached Host copy of this `dsh` invocation and return its sock path. */
|
|
123
133
|
export declare function spawnDetachedHost(sessionId: string): SpawnedHost;
|
|
124
134
|
export declare function probeDisplaySock(path: string, timeoutMs?: number): Promise<boolean>;
|
package/lib/types/paint.d.ts
CHANGED
|
@@ -86,6 +86,8 @@ export declare function findCursorPositionReply(text: string): {
|
|
|
86
86
|
* reply never arrives (dumb pipe, blocked DSR). Does not interpret the
|
|
87
87
|
* coordinates — only the elapsed milliseconds matter.
|
|
88
88
|
*/
|
|
89
|
+
/** Ask up to `attempts` times, pausing between misses. */
|
|
90
|
+
export declare function probeRttWithRetry(run: () => Promise<number | undefined>, attempts?: number, delayMs?: number): Promise<number | undefined>;
|
|
89
91
|
export declare function probeTerminalRttMs(stdin?: NodeJS.ReadStream, stdout?: NodeJS.WriteStream, timeoutMs?: number): Promise<number | undefined>;
|
|
90
92
|
/** Sliding window of `windowSize` items that keeps `cursor` visible. */
|
|
91
93
|
export declare function pickerWindowStart(cursor: number, total: number, windowSize?: number): number;
|