diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-01-15 17:02:17 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-01-15 17:02:17 +0000 |
| commit | 2a012f86d852bfc622a1d06eff5fad7e43db9023 (patch) | |
| tree | 17c4e9041b6d9cb93c40f8ddb5adb5864c0a3d26 /terminal.h | |
| parent | csi: add support for ?1047 and ?1048 (diff) | |
term: keep cursor state in grid, for now, but document that it _could_ be moved
Diffstat (limited to 'terminal.h')
| -rw-r--r-- | terminal.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -106,6 +106,14 @@ struct grid { int offset; int view; + /* + * Note: the cursor (not the *saved* cursor) could most likely be + * global state in the term struct. + * + * However, we have grid specific functions that does not have + * access to the owning term struct, but does need access to the + * cursor. + */ struct cursor cursor; struct cursor saved_cursor; |
