diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-06-23 16:02:49 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-06-23 16:02:49 +0000 |
| commit | b0a2c54fe841545d21e79b5bb559cc2dc9d3353f (patch) | |
| tree | 0db0c296bb59660d9872fed0f41aef9bf4767b15 /terminal.h | |
| parent | csi/vt: fix logging of intermediate characters (diff) | |
vt: wip: implement scrolling region
This is largely untested, but existing scrolling code has been
converted to using a terminal-global scrolling region that is defined
as start-end of the scrollable region.
This is compared to the old code where the scrolling region where
defined in terms of marginals, counted in lines from top and from
bottom.
Diffstat (limited to 'terminal.h')
| -rw-r--r-- | terminal.h | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -40,8 +40,6 @@ struct damage { /* DAMAGE_SCROLL, DAMAGE_SCROLL_REVERSE */ struct { - int top_margin; - int bottom_margin; int lines; } scroll; }; @@ -53,6 +51,13 @@ struct grid { int cell_width; int cell_height; + /* Scrolling region - counted as lines excluded from scrolling, + * from top and from bottom */ + struct { + int start; + int end; + } scrolling_region; + int linear_cursor; struct { int row; |
