opencode-miniterm 1.0.13 → 1.0.14

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.ts +5 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-miniterm",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "description": "A small front-end terminal UI for OpenCode",
5
5
  "main": "src/index.ts",
6
6
  "bin": {
package/src/index.ts CHANGED
@@ -216,11 +216,14 @@ function renderLine(): void {
216
216
  }
217
217
 
218
218
  // Clear the old, changed, input
219
- readline.moveCursor(process.stdout, currentCol, 0);
219
+ readline.cursorTo(process.stdout, currentCol);
220
220
  readline.clearScreenDown(process.stdout);
221
221
 
222
+ // Write the prompt if this is a fresh buffer
222
223
  if (start === 0) {
224
+ readline.cursorTo(process.stdout, 0);
223
225
  writePrompt();
226
+ readline.cursorTo(process.stdout, 2);
224
227
  }
225
228
 
226
229
  // Write the changes from the new input buffer
@@ -435,6 +438,7 @@ async function acceptInput(): Promise<void> {
435
438
 
436
439
  const input = inputBuffer.trim();
437
440
 
441
+ oldInputBuffer = "";
438
442
  inputBuffer = "";
439
443
  cursorPosition = 0;
440
444
  completionCycling = false;