diff options
Diffstat (limited to 'gramscii.h')
-rw-r--r-- | gramscii.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -1,6 +1,8 @@ #ifndef __GRAMSCII_H__ #define __GRAMSCII_H__ +#define _POSIX_C_SOURCE 2 + #include <stdio.h> #include <termios.h> #include <unistd.h> @@ -58,6 +60,10 @@ #define NEW_STATE 0x02 /**/ +/* file types */ +#define FFILE 0x01 +#define FPIPE 0x02 + /** types **/ typedef struct{ @@ -157,6 +163,7 @@ void go_to(int where); void crop_to_nonblank(); void crop_to_rect(); void erase_blank_lines(int y1, int y2); +int _isblank(int c); /**/ /** drawing-related functions **/ @@ -176,6 +183,7 @@ void write_file(FILE *fc); void check_modified(FILE *fc); void load_file(FILE *fc); void new_file(FILE *fc); +void read_file_at(FILE *fc, int xl, int yl); /**/ /** line-related functions **/ |