From a74b46c7a4d1ccad6934aeb00915a2fd383f072c Mon Sep 17 00:00:00 2001 From: KatolaZ Date: Wed, 24 Jul 2019 17:00:05 +0100 Subject: first steps towards script-mode --- gramscii.c | 163 ++++++++++++++++++++++++++++++++++++++----------------------- 1 file changed, 101 insertions(+), 62 deletions(-) diff --git a/gramscii.c b/gramscii.c index 69f7b10..4152b96 100644 --- a/gramscii.c +++ b/gramscii.c @@ -30,6 +30,8 @@ #include "config.h" +#include "arg.h" + #define MOVE 0x00 #define BOX 0x01 #define ARROW 0x02 @@ -98,13 +100,26 @@ char modified; char fname[256]; char visual; +char silent; + +char *argv0; struct termios t1, t2, t3; -void cleanup(int s){ +void dump_lines(){ + int i; + for (i=0; i