From 1a6a926084eec9e2eb6bc1bfbb96866afbfd0c61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Wed, 14 Jul 2021 23:00:54 +0200 Subject: Move initial command to INIT constant --- rtty.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rtty.c b/rtty.c index 6abe512..6f820c6 100644 --- a/rtty.c +++ b/rtty.c @@ -7,6 +7,7 @@ #include #include +#define INIT "export TERM=tty43 EDITOR=ed PAGER='pr -pl25'\n" #define MAXBUF 2048 int @@ -52,7 +53,7 @@ main(int argc, char *argv[]) if(!(fdout = open(out, O_RDONLY))) err(1, "open"); - dprintf(fdin, "export TERM=tty43 PAGER='pr -pl25' EDITOR=ed\n"); + dprintf(fdin, INIT); FD_ZERO(&rfds0); FD_ZERO(&rfds1); -- cgit v1.2.3