From 351c12fdaa566b10011c412f588bade0c582c889 Mon Sep 17 00:00:00 2001 From: shiyue Date: Wed, 18 Mar 2026 09:38:23 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=B7=BB=E5=8A=A0=20tmux=20=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E8=AF=B4=E6=98=8E=E5=88=B0=20help?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index d7cf939..0792bf9 100644 --- a/main.go +++ b/main.go @@ -116,7 +116,15 @@ func printHelp() { 示例: ainovel-cli "写一部科幻小说,主角是时间旅行者" NOVEL_NAME=时空之旅 ainovel-cli "写一部科幻小说" - ainovel-cli # 启动 TUI 交互模式`) + ainovel-cli # 启动 TUI 交互模式 + +tmux 使用(推荐后台运行): + tmux new -s novel # 新建名为 novel 的会话 + ainovel-cli "写一部科幻小说" # 在会话中运行,关闭终端不中断 + Ctrl+b d # 脱离会话(程序继续跑) + tmux attach -t novel # 随时回来查看进度 + tmux ls # 列出所有会话 + tmux kill-session -t novel # 结束会话`) } func loadReferences(style string) tools.References {