From 2a012f86d852bfc622a1d06eff5fad7e43db9023 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Fri, 15 Jan 2021 18:02:17 +0100 Subject: term: keep cursor state in grid, for now, but document that it _could_ be moved --- terminal.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'terminal.h') diff --git a/terminal.h b/terminal.h index 5c3aacd7..04d2d5b7 100644 --- a/terminal.h +++ b/terminal.h @@ -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; -- cgit v1.3