querysub 0.239.0 → 0.240.0
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/package.json
CHANGED
|
@@ -95,9 +95,11 @@ export async function streamScreenOutput(config: {
|
|
|
95
95
|
const captureCommand = `${prefix}tmux capture-pane -p -S -2000 -t ${screenName}`;
|
|
96
96
|
// Initial data
|
|
97
97
|
const initialContent = await runPromise(captureCommand, { quiet: true });
|
|
98
|
+
console.log(green(`Callback to onDataWrapped ${screenName} ${initialContent.length}`));
|
|
98
99
|
if (initialContent) {
|
|
99
100
|
await onDataWrapped(initialContent);
|
|
100
101
|
}
|
|
102
|
+
console.log(green(`After callback to onDataWrapped ${screenName} ${initialContent.length}`));
|
|
101
103
|
|
|
102
104
|
childProcess = spawn(`${prefix}tmux pipe-pane -t ${screenName}`, {
|
|
103
105
|
shell: true,
|
|
@@ -106,7 +108,7 @@ export async function streamScreenOutput(config: {
|
|
|
106
108
|
|
|
107
109
|
let started = new PromiseObj<void>();
|
|
108
110
|
|
|
109
|
-
console.log(`Has stdout: ${!!childProcess.stdout}`);
|
|
111
|
+
console.log(green(`Has stdout: ${!!childProcess.stdout}`));
|
|
110
112
|
|
|
111
113
|
childProcess.stdout?.on("data", (data) => {
|
|
112
114
|
if (stopped) return;
|