added -serial to none and fix tabs name

This commit is contained in:
2026-04-05 11:18:57 +08:00
parent 39f7d98755
commit 6651c16aaa
+3 -1
View File
@@ -252,6 +252,8 @@ class VMManager:
if cfg.extra_args:
cmd += shlex.split(cfg.extra_args)
cmd += ["-serial", "none"]
MONITOR_DIR.mkdir(parents=True, exist_ok=True)
sock = str(MONITOR_DIR / f"{cfg.name}.sock")
cmd += ["-monitor", f"unix:{sock},server,nowait"]
@@ -2296,7 +2298,7 @@ class TUI:
except curses.error:
pass
tabs = ["[I]nfo", "[C]ommand", "[L]og", "[D]isk", "[S]napshots", "[M]onitor"]
tabs = ["Info", "Command", "Log", "Disk", "Snapshots", "Monitor"]
tx = x0
for i, t in enumerate(tabs):
attr = (curses.color_pair(2) | curses.A_BOLD) if i == self.tab else curses.color_pair(6)