Skip to content

feat(0.0.29): ANSI 终端模拟器(本地 xterm.js) - #37

Merged
badhope merged 2 commits into
mainfrom
feat/0.0.29-ansi-terminal
Nov 24, 2026
Merged

badhope merged 2 commits into
mainfrom
feat/0.0.29-ansi-terminal

Conversation

@badhope

@badhope badhope commented Nov 24, 2026

Copy link
Copy Markdown
Owner

0.0.29 · ANSI 终端模拟器

  • PTY 原始字节交给 APK 内置 xterm.js 5.5.0,解释 ANSI 颜色、光标定位、备用屏与全屏重绘;vim/top/less 可正常显示。
  • xterm FitAddon → PtyBridge.resize → TIOCSWINSZ,窗口尺寸联动。
  • 移动端补充键:Esc / Tab / Ctrl-C / Ctrl-D / 方向键 / 清屏。
  • 亮暗双主题;WebView 强制离线、拦截外跳。
  • 移除 Kotlin 行式 PTY 解码/剥离转义,改 MutableSharedFlow(replay 64)。
  • 版本 0.0.29 / versionCode 29;文档、站点同步。

验证:130 JVM tests;lint 38(36 Warning + 2 Information,0 Error);xterm 页面 Chromium 冒烟(ANSI/主题/真实 vim PTY 输出);Android 模拟器 TCG 仍挂起,未计通过。

@badhope
badhope force-pushed the feat/0.0.29-ansi-terminal branch from 909d842 to ebd6b41 Compare November 24, 2026 11:03
@badhope
badhope merged commit 1aad73c into main Nov 24, 2026
3 checks passed
@badhope
badhope deleted the feat/0.0.29-ansi-terminal branch November 24, 2026 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant