fix(tui): preserve cursor position on Windows exit

This commit is contained in:
Kail Tian authored and chengyongru committed 2026-08-30 12:17:40 +08:00
1 parent 2c87143f77
commit 1c1b13a3a9
3 files changed
+40 -2

No files matched your search

+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,