summaryrefslogtreecommitdiff
path: root/gramscii.h
diff options
context:
space:
mode:
authorKatolaZ <katolaz@freaknet.org>2019-08-08 08:39:04 +0100
committerKatolaZ <katolaz@freaknet.org>2019-08-08 08:39:04 +0100
commitc16e74036e791b2c1f9c19841fc75a60067aefec (patch)
tree50357c892796256d0acdc233641576d07afcf085 /gramscii.h
parent9127db5e322c1b0cd57adf90e8cfefad66020fe2 (diff)
fix bug with global movements in arrow mode
Diffstat (limited to 'gramscii.h')
-rw-r--r--gramscii.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/gramscii.h b/gramscii.h
index 83d2719..2c09484 100644
--- a/gramscii.h
+++ b/gramscii.h
@@ -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();