From ce2bfb4d3a49a27bde7c8bbc6c6b1ef6f80054aa Mon Sep 17 00:00:00 2001 From: KatolaZ Date: Fri, 16 Aug 2019 23:43:24 +0100 Subject: add position marks (Ma/g'a) --- gramscii.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'gramscii.h') diff --git a/gramscii.h b/gramscii.h index 8aec939..c2b9170 100644 --- a/gramscii.h +++ b/gramscii.h @@ -90,6 +90,11 @@ typedef struct{ line_t *l; } lineset_t; +typedef struct{ + int x; + int y; +} pos_t; + /** MACROS **/ @@ -105,6 +110,9 @@ lineset_t screen; /* what is visualised */ lineset_t cutbuf; /* cut/paste buffer */ lineset_t *undo; /* undo list */ +pos_t marks[26]; /* position marks */ +char mark_map[26]; /* marks map */ + int undo_sz;/* allocated size of undo list*/ int undo_cur;/* undo position */ int undo_lst;/* last valid undo position */ @@ -175,6 +183,7 @@ void crop_to_nonblank(); void crop_to_rect(); void erase_blank_lines(int y1, int y2); int _isblank(int c); +void mark_pos(FILE *fc); /**/ /** drawing-related functions **/ -- cgit v1.2.3