@oxecli/oxe 1.0.101 → 1.0.102
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/ui.js +7 -4
- package/package.json +1 -1
package/dist/ui.js
CHANGED
|
@@ -770,10 +770,13 @@ export function dockRenderPrompt(buffer, pasteSpans, prefix, label, hints) {
|
|
|
770
770
|
const { frame, cursorRow, cursorCol, totalRows } = renderBufferWithCursor(buffer, pasteSpans, prefix, label, buffer.length, hints);
|
|
771
771
|
dockEraseBox();
|
|
772
772
|
if (wasTransient) {
|
|
773
|
-
//
|
|
774
|
-
//
|
|
775
|
-
//
|
|
776
|
-
|
|
773
|
+
// dockEraseBox has left the transient row and gap still present above the
|
|
774
|
+
// box-top row (cleared but physically occupying rows R-2 and R-1). Write
|
|
775
|
+
// the frame at R and park the cursor back on the transient row (R-2) so the
|
|
776
|
+
// running spinner keeps drawing THERE instead of on/inside the box. Do NOT
|
|
777
|
+
// write any leading newlines: they would push the box down and add a blank
|
|
778
|
+
// row on every keystroke.
|
|
779
|
+
process.stdout.write(frame);
|
|
777
780
|
process.stdout.write(`\x1b[${totalRows - 1 + wasRel}A\r`);
|
|
778
781
|
dockSetFrame(frame, totalRows);
|
|
779
782
|
docked = true;
|