fix(tui): preserve cursor position on Windows exit

This commit is contained in:
Kail Tian
2026-08-30 12:17:40 +08:00
committed by chengyongru
parent 2c87143f77
commit 1c1b13a3a9
3 changed files with 40 additions and 2 deletions
+2 -1
View File
@@ -94,7 +94,7 @@ import {
type FooterMode,
type FooterHintTheme,
} from "./footer-hints"
import { createTuiHost, type TuiHost } from "./host"
import { configureOpenTuiEnvironment, createTuiHost, type TuiHost } from "./host"
interface AppOptions {
wsUrl?: string
@@ -820,6 +820,7 @@ export class NanobotTui {
}
static async create(options: AppOptions): Promise<NanobotTui> {
configureOpenTuiEnvironment()
const host = createTuiHost()
const renderer = await createCliRenderer({
targetFps: 30,