groundcrew-cli 0.15.5 → 0.15.7
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/index.js +5 -6
- package/package.json +1 -1
- package/src/index.ts +8 -12
package/dist/index.js
CHANGED
|
@@ -456,14 +456,13 @@ function setupInlineSuggestions(rl) {
|
|
|
456
456
|
}
|
|
457
457
|
dropdownLines = count;
|
|
458
458
|
buf.push(`\x1B[${count}A`);
|
|
459
|
-
|
|
459
|
+
const prompt = rl._prompt || "";
|
|
460
|
+
const inputLine = rl.line || "";
|
|
461
|
+
buf.push(`\r${prompt}${inputLine}`);
|
|
460
462
|
}
|
|
461
463
|
process.stdout.write(buf.join(""));
|
|
462
|
-
if (dropdownLines > 0) {
|
|
463
|
-
|
|
464
|
-
if (remainder) {
|
|
465
|
-
process.stdout.write(`\x1B[K\x1B[2m${remainder}\x1B[0m\x1B[${remainder.length}D`);
|
|
466
|
-
}
|
|
464
|
+
if (dropdownLines > 0 && remainder) {
|
|
465
|
+
process.stdout.write(`\x1B[K\x1B[2m${remainder}\x1B[0m\x1B[${remainder.length}D`);
|
|
467
466
|
}
|
|
468
467
|
};
|
|
469
468
|
process.stdin.on("keypress", (_ch, key) => {
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -604,22 +604,18 @@ function setupInlineSuggestions(rl: readline.Interface): void {
|
|
|
604
604
|
}
|
|
605
605
|
dropdownLines = count;
|
|
606
606
|
|
|
607
|
-
//
|
|
608
|
-
// Move up to prompt line
|
|
607
|
+
// Move back up to prompt line
|
|
609
608
|
buf.push(`\x1b[${count}A`);
|
|
610
|
-
//
|
|
611
|
-
|
|
612
|
-
|
|
609
|
+
// Redraw prompt line manually (NOT _refreshLine — it clears screen below)
|
|
610
|
+
const prompt = (rl as any)._prompt || "";
|
|
611
|
+
const inputLine = (rl as any).line || "";
|
|
612
|
+
buf.push(`\r${prompt}${inputLine}`);
|
|
613
613
|
}
|
|
614
614
|
|
|
615
615
|
process.stdout.write(buf.join(""));
|
|
616
|
-
//
|
|
617
|
-
if (dropdownLines > 0) {
|
|
618
|
-
(
|
|
619
|
-
// Re-draw inline ghost since _refreshLine cleared it
|
|
620
|
-
if (remainder) {
|
|
621
|
-
process.stdout.write(`\x1b[K\x1b[2m${remainder}\x1b[0m\x1b[${remainder.length}D`);
|
|
622
|
-
}
|
|
616
|
+
// Re-draw inline ghost after prompt redraw (for dropdown case)
|
|
617
|
+
if (dropdownLines > 0 && remainder) {
|
|
618
|
+
process.stdout.write(`\x1b[K\x1b[2m${remainder}\x1b[0m\x1b[${remainder.length}D`);
|
|
623
619
|
}
|
|
624
620
|
};
|
|
625
621
|
|