diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-07-24 16:15:24 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-07-24 16:15:24 +0000 |
| commit | 10a7b948046bd09aaabe10e3dcf267394df3e471 (patch) | |
| tree | 6620d1b1d742677c1316c356898f8aae6b47b7c1 /input.c | |
| parent | conf: 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 'input.c')
0 files changed, 0 insertions, 0 deletions
