aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-07-14 23:00:54 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-07-14 23:04:36 +0200
commit1a6a926084eec9e2eb6bc1bfbb96866afbfd0c61 (patch)
treef89f4cf85853c18d319b61a72b1a065896384969
parent2371836ce2573421c05cc2f1f16e6584045f274d (diff)
downloadrtty-1a6a926084eec9e2eb6bc1bfbb96866afbfd0c61.tar.gz
Move initial command to INIT constant
-rw-r--r--rtty.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/rtty.c b/rtty.c
index 6abe512..6f820c6 100644
--- a/rtty.c
+++ b/rtty.c
@@ -7,6 +7,7 @@
#include <sys/stat.h>
#include <unistd.h>
+#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);