change: selects now use inputmanager

fix: bad exit logic
feat: field rename now supports renaming things with multiple widgets
This commit is contained in:
2025-05-27 12:44:45 -06:00
parent 7a394c642a
commit 0f9c377853
12 changed files with 543 additions and 161 deletions

View File

@@ -1,4 +1,5 @@
import { Cursor } from "./cursor.ts";
import { InputManager } from "./InputManager.ts";
export class TerminalLayout {
private static ALT_BUFFER_ENABLE = "\x1b[?1049h";
@@ -22,7 +23,7 @@ export class TerminalLayout {
Deno.addSignalListener("SIGINT", () => {
this.clearAll();
Deno.exit(0);
// Deno.exit(0);
});
}
@@ -121,7 +122,8 @@ export class TerminalBlock {
private preserveHistory = false;
constructor(private prepend: string = "") {}
constructor(private prepend: string = "") {
}
setPreserveHistory(preserveHistory: boolean) {
this.preserveHistory = preserveHistory;