fix: 改进终端兼容性 - FFM原生终端支持、dumb终端提示、双重Goodbye修复

- 添加jline-terminal-ffm依赖(JDK22+ FFM API原生终端)
- JVM参数增加--enable-native-access=ALL-UNNAMED
- dumb终端模式下显示黄色警告和建议
- 终端尺寸为0时不显示尺寸信息
- ExitCommand不再输出Goodbye(避免与ReplSession重复)
- TerminalBuilder增加streams(System.in, System.out)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
liuzh
2026-04-01 20:25:51 +08:00
co-authored by Copilot
parent b29d61581a
commit 9048cc8b74
3 changed files with 32 additions and 5 deletions
@@ -30,6 +30,6 @@ public class ExitCommand implements SlashCommand {
if (context.exitCallback() != null) {
context.exitCallback().run();
}
return "Goodbye!";
return "";
}
}