Commit e33fdba
committed
Move displaced line of top-anchored scroll region into scroll-back
Full-screen CLIs such as Codex in --no-alt-screen mode render through
DECSTBM scroll regions anchored at the top of the screen and scroll by
emitting newlines at the region bottom. VT100EmulatorBackend scrolled
such a region in place and discarded the displaced top line, so no
scroll-back history was created and the output could not be scrolled
backwards.
Like xterm and VTE, a newline at the bottom of a scroll region whose
top margin is the top of the screen now moves the displaced top line
into the scroll-back history, while the lines below the region keep
their position on the screen. Scroll regions with a top margin below
the top of the screen still scroll in place and discard the top line.
The characterization test documenting the old behavior is flipped to
assert that the history is created; the remaining scrolling guards are
unchanged.
#26801 parent c385363 commit e33fdba
2 files changed
Lines changed: 38 additions & 19 deletions
File tree
- terminal
- bundles/org.eclipse.terminal.control/src/org/eclipse/terminal/internal/emulator
- tests/org.eclipse.terminal.test/src/org/eclipse/terminal/internal/emulator
Lines changed: 25 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
354 | 354 | | |
355 | 355 | | |
356 | 356 | | |
357 | | - | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
358 | 362 | | |
359 | 363 | | |
360 | 364 | | |
| |||
366 | 370 | | |
367 | 371 | | |
368 | 372 | | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
369 | 393 | | |
370 | 394 | | |
371 | 395 | | |
| |||
Lines changed: 13 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
979 | 979 | | |
980 | 980 | | |
981 | 981 | | |
982 | | - | |
983 | | - | |
984 | | - | |
985 | | - | |
986 | | - | |
987 | | - | |
| 982 | + | |
988 | 983 | | |
989 | 984 | | |
990 | 985 | | |
| |||
1061 | 1056 | | |
1062 | 1057 | | |
1063 | 1058 | | |
1064 | | - | |
1065 | | - | |
1066 | | - | |
1067 | | - | |
1068 | | - | |
| 1059 | + | |
| 1060 | + | |
1069 | 1061 | | |
1070 | 1062 | | |
1071 | | - | |
| 1063 | + | |
1072 | 1064 | | |
1073 | 1065 | | |
1074 | 1066 | | |
| |||
1079 | 1071 | | |
1080 | 1072 | | |
1081 | 1073 | | |
1082 | | - | |
1083 | | - | |
1084 | | - | |
1085 | | - | |
1086 | | - | |
1087 | | - | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
1088 | 1083 | | |
1089 | 1084 | | |
0 commit comments