Repository navigation
feat(core): 滚动区域 DECSTBM (#29) - #235
Merged
Merged
Conversation
The parser accepts CSI r, line feeds scroll inside the margins without touching history, and IL/DL stop at the region bottom.
4 tasks
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.
stacked on #234(IL/DL),合并 #234 后我会把 base 改回 main。
内容
实现 DECSTBM 滚动区域:
CSI Pt ; Pb r设置滚动区域(1 基,默认全屏),最小两行;行为说明(需确认)
DECSTBM 会把光标归位到区域左上角(xterm 约定)。原版 WindTerm 的归位行为尚未观察,属于待确认项;如果你希望先按别的方式处理请告知。
测试
edit_csi_test新增:4 行屏幕设为区域 2..3,写入a/b/c/d后连续两次换行 →a,c,"",d,区域外第 1、4 行不变,光标停在区域底边。本地
edit csi contracts passed。Refs #29