Daniel Eklöf
dd4647e9ff
term: simplify horizontal cursor movement
...
Since horizontal cursor movement is clamped to the current line, we
can calculate the new linear cursor without any expensive
multiplications and/or divisions.
2019-07-02 21:43:49 +02:00
Daniel Eklöf
e17d297dca
term: if the damage list gets too long, replace with a full redraw
2019-07-02 19:45:17 +02:00
Daniel Eklöf
4b824d824c
term: 'end' variable is only used in assert()
2019-07-01 21:14:31 +02:00
Daniel Eklöf
dfc9554e89
render: always render cursor
2019-07-01 21:13:24 +02:00
Daniel Eklöf
24395cf4cd
scrolling: implement partial scrolling
2019-07-01 19:20:21 +02:00
Daniel Eklöf
d70956da08
wip: use a sliding window instead of memmove() to scroll
...
Instead of memmoving a large amount of data on every scroll, use a
sliding window. That is, each time we scroll, we offset origin.
2019-07-01 12:23:38 +02:00
Daniel Eklöf
0f48b4f8f7
terminal: prepare for floating grids
2019-06-29 21:30:54 +02:00
Daniel Eklöf
8cff861f38
terminal: move print_needs_wrap from grid to terminal
2019-06-29 21:16:06 +02:00
Daniel Eklöf
a8f4cb55af
terminal: move cursor from grid to terminal
2019-06-29 21:15:32 +02:00
Daniel Eklöf
3d2ab03f62
terminal: move col/row count, cell width/height and scroll region to terminal
2019-06-29 21:08:08 +02:00
Daniel Eklöf
1ecd4a6ae1
Rename grid_* functions to term_*
2019-06-29 21:03:28 +02:00