aboutsummaryrefslogtreecommitdiff
path: root/render.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-07-24 16:15:24 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-07-24 16:15:24 +0000
commit10a7b948046bd09aaabe10e3dcf267394df3e471 (patch)
tree6620d1b1d742677c1316c356898f8aae6b47b7c1 /render.h
parentconf: allow the user to configure a fixed cursor color (diff)
render: bug: previous cursor wasn't always redrawn correctly
The main problem is knowing: * The correct *cell* (to be able to render the *content* when erasing the old cursor) * Whether the cursor has moved (to determine whether to stop the rendering loop or not) * Where on the *screen* the cursor is/was (since the terminal may be partly scrolled back) This patch stores three static variables: * last_cursor is used to compare against current cursor to see if the cursor has moved or not * last_cursor_on_screen is the actual screen coordinates the cursor was rendered at (typically the same as last_cursor, but may be offset by the view) * last_cursor_cell is a pointer to the cell to render
Diffstat (limited to 'render.h')
0 files changed, 0 insertions, 0 deletions