diff options
author | KatolaZ <katolaz@freaknet.org> | 2019-08-08 08:39:04 +0100 |
---|---|---|
committer | KatolaZ <katolaz@freaknet.org> | 2019-08-08 08:39:04 +0100 |
commit | c16e74036e791b2c1f9c19841fc75a60067aefec (patch) | |
tree | 50357c892796256d0acdc233641576d07afcf085 /gramscii.h | |
parent | 9127db5e322c1b0cd57adf90e8cfefad66020fe2 (diff) |
fix bug with global movements in arrow mode
Diffstat (limited to 'gramscii.h')
-rw-r--r-- | gramscii.h | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -82,9 +82,7 @@ typedef struct{ #define progr_x(d) ((d) == DIR_L ? -1 : (d) == DIR_R ? 1 : 0) #define progr_y(d) ((d) == DIR_U ? -1 : (d) == DIR_D ? 1 : 0) -/* - * #define DEBUG 1 - */ +#define DEBUG 1 /** global variables **/ @@ -140,7 +138,7 @@ struct termios t1, t2, t3; /** screen-related functions **/ void reset_styles(); void redraw(); -int move_around(char c, FILE *fc); +int move_around(char c, FILE *fc, char global); void check_bound(int *x, int *y); void status_bar(); void show_cursor(); |