diff options
author | KatolaZ <katolaz@freaknet.org> | 2019-07-27 08:06:27 +0100 |
---|---|---|
committer | KatolaZ <katolaz@freaknet.org> | 2019-07-27 08:06:27 +0100 |
commit | b38ed132a7df231fc08ce384d8559e6648fdd0cc (patch) | |
tree | a71b99edbc5ce15acfc2abec5e7c5b60edded5cd /gramscii.h | |
parent | f678684b470f02d9fed4818eb92c2a925380c428 (diff) |
first step towards crop + some fixes to erase
Diffstat (limited to 'gramscii.h')
-rw-r--r-- | gramscii.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -59,7 +59,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 **/ @@ -116,9 +116,10 @@ void get_string(FILE *fc, char *msg, char *s, int sz); void erase_box(int x1, int y1, char c); int is_yes(char c); void init_screen(); -void erase_line(char *s); +void erase_line(int i); void erase_screen(); void go_to(int where); +void crop_to_nonblank(); /** drawing-related functions **/ int change_style(char c); |