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
+8 -1
View File
@@ -63,6 +63,13 @@
<version>${jline.version}</version>
</dependency>
<!-- JLine FFM 终端提供者(JDK 22+Windows/Linux/Mac 原生终端支持) -->
<dependency>
<groupId>org.jline</groupId>
<artifactId>jline-terminal-ffm</artifactId>
<version>${jline.version}</version>
</dependency>
<!-- Picocli: CLI 命令解析 -->
<dependency>
<groupId>info.picocli</groupId>
@@ -90,7 +97,7 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<jvmArguments>-Xmx512m -Xms256m</jvmArguments>
<jvmArguments>-Xmx512m -Xms256m --enable-native-access=ALL-UNNAMED</jvmArguments>
</configuration>
</plugin>
<plugin>