summaryrefslogtreecommitdiff
path: root/gramscii.c
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.c
parent3ba178677800de55393f8ec80752ffe72660931a (diff)
add read-at-point function
Diffstat (limited to 'gramscii.c')
-rw-r--r--gramscii.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gramscii.c b/gramscii.c
index 6dee819..8b84ec3 100644
--- a/gramscii.c
+++ b/gramscii.c
@@ -20,6 +20,8 @@
*
*/
+#define _POSIX_C_SOURCE 2
+
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
@@ -124,6 +126,9 @@ void commands(FILE *fc){
case 'U':
redo_change();
break;
+ case 'r':
+ read_file_at(fc, x, y);
+ break;
case 'q':
check_modified(fc);/** FALLTHROUGH **/
case 'Q':