diff options
author | John Ankarström <john@ankarstrom.se> | 2021-07-14 23:00:54 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-07-14 23:04:36 +0200 |
commit | 1a6a926084eec9e2eb6bc1bfbb96866afbfd0c61 (patch) | |
tree | f89f4cf85853c18d319b61a72b1a065896384969 | |
parent | 2371836ce2573421c05cc2f1f16e6584045f274d (diff) | |
download | rtty-1a6a926084eec9e2eb6bc1bfbb96866afbfd0c61.tar.gz |
Move initial command to INIT constant
-rw-r--r-- | rtty.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |