summaryrefslogtreecommitdiff
path: root/gramscii.h
diff options
context:
space:
mode:
authorKatolaZ <katolaz@freaknet.org>2019-08-09 07:08:35 +0100
committerKatolaZ <katolaz@freaknet.org>2019-08-09 07:08:35 +0100
commit62267b8424170f9b136892248a77dbed3fdcbbba (patch)
treedd741fdfa323382be5f6431ae6a63993aff6c13f /gramscii.h
parent3ba178677800de55393f8ec80752ffe72660931a (diff)
add read-at-point function
Diffstat (limited to 'gramscii.h')
-rw-r--r--gramscii.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/gramscii.h b/gramscii.h
index 2ec7088..6419961 100644
--- a/gramscii.h
+++ b/gramscii.h
@@ -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 **/