diff options
author | KatolaZ <katolaz@freaknet.org> | 2021-09-27 12:36:27 +0100 |
---|---|---|
committer | KatolaZ <katolaz@freaknet.org> | 2021-09-27 12:36:27 +0100 |
commit | 46f92bb4c29351797740e7fc0f3518a29950dc2d (patch) | |
tree | 6a2bc39ba257d61b6328aa46d989a53ec753a960 /screen.c | |
parent | 864ec4a6c5ef86273653af4eaab9315bd1b7bbca (diff) |
Diffstat (limited to 'screen.c')
-rw-r--r-- | screen.c | 49 |
1 files changed, 49 insertions, 0 deletions
@@ -10,6 +10,55 @@ #include "gramscii.h" #include "config.h" +/** extern declarations **/ + +extern lineset_t screen; /* what is visualised */ +extern lineset_t cutbuf; /* cut/paste buffer */ +extern lineset_t *undo; /* undo list */ + +extern pos_t marks[26]; /* position marks */ +extern char mark_map[26]; /* marks map */ + +extern int undo_sz;/* allocated size of undo list*/ +extern int undo_cur;/* undo position */ +extern int undo_lst;/* last valid undo position */ + +extern int WIDTH, HEIGHT; + +extern int mode;/* mode */ +extern int dir;/* line direction */ +extern int x; +extern int y; +extern int step;/* current step */ +extern int mult;/* current multiplier */ + +extern char corner; + +/* number of available markers for each type */ +extern int hlines_sz; +extern int vlines_sz; +extern int corners_sz; +extern int stmarks_sz; +extern int endmarks_sz; +/**/ + +/* line and arrow markers */ +extern int cur_hl, cur_vl, cur_corn, cur_start, cur_end; +extern char line_h; +extern char line_v; +extern char mark_st; +extern char mark_end; +/**/ + +extern char modified; /* set to 1 if screen modified since last save */ +extern char fname[256]; + + +extern char script; /* set to 1 in script-mode */ + +extern struct termios t2, t3; + + /*** screen management functions ***/ /*** _isblank ***/ |