Repository navigation
feat(core): ED3 清回滚与 RIS 复位 (#29) - #236
Merged
Merged
Conversation
JavaZeroo
force-pushed
the
feat/ed3-ris
branch
from
October 30, 2026 05:14
f30ab09 to
2391126
Compare
Screen gains reset/erase_scrollback/scrollback_lines and the parser handles ESC c; the new ED3/RIS assertions still crash on the RIS case.
Screen gains reset, erase_scrollback and a scrollback accessor; RIS runs on both parser paths and the edit_csi_test main now reports failures instead of aborting.
JavaZeroo
force-pushed
the
feat/ed3-ris
branch
from
October 30, 2026 05:25
2391126 to
a363a4c
Compare
5 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
内容
实现 #29 计划中的两项终端复位能力:
CSI 3 J(ED3)ESC c(RIS)实现要点:
Screen新增reset()/erase_scrollback()/scrollback_lines();Parser内复位(模式位属于 Parser 而非 Screen);测试
edit_csi_test新增:a/b/c产生回滚后CSI 3J→ 回滚清空、可见行仍为b/c;?25l+?1h后ESC c→ 光标归位、模式回默认、屏幕清空、之后写入的字符属性为默认。顺带修了该测试的一个真实缺陷:原
main没有 try/catch,断言失败会变成进程崩溃(0xC0000409),现在会打印失败原因并返回 1;正是它掩盖了「RIS 未在 recovery 路径生效」这个真问题。本地:
edit csi contracts passed;experiments.core.test_recovery35 tests OK(CSI 3J不再计入ignored_sequences,对应期望已更新为 2)。边界
Refs #29