diff options
Diffstat (limited to 'rtty.c')
-rw-r--r-- | rtty.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -11,8 +11,8 @@ #include <termios.h> #include <unistd.h> -#define INIT "export EDITOR=ed PAGER=ul\n" -#define HINIT "export TERM=tty43 EDITOR=ed PAGER=cat\n" +#define INIT "export TERM=tty43 EDITOR=ed PAGER=cat\n" +#define IINIT "export EDITOR=ed PAGER=ul\n" #define MAXBUF 2048 #define MAXEARG 32 @@ -29,8 +29,8 @@ main(int argc, char *argv[]) *eargv[MAXEARG], in[30], **nargv, out[30], *p, pw[255], *q, wd[MAXWD]; fd_set rfds0, rfds1; - int child, dumb, escape, fdin, fdout, hardcopy, i, n, offset, s, - sshpass; + int child, dumb, escape, fdin, fdout, i, interactive, n, offset, + s, sshpass; struct timeval tv; signal(SIGINT, noop); @@ -45,10 +45,10 @@ main(int argc, char *argv[]) err(1, "mkfifo"); /* Process rtty-specific flags. */ - escape = dumb = hardcopy = sshpass = 0; + escape = dumb = interactive = sshpass = 0; for(;argv[1][0] == '+';){ if(strchr(argv[1], 'd')) dumb = 1; - if(strchr(argv[1], 'h')) hardcopy = 1; + if(strchr(argv[1], 'i')) interactive = 1; if(strchr(argv[1], 'x')) escape = 1; if(strchr(argv[1], 'p')) sshpass = 1; @@ -115,8 +115,8 @@ main(int argc, char *argv[]) err(1, "open"); /* Print initialization command. */ - if(hardcopy) - dprintf(fdin, HINIT); + if(interactive) + dprintf(fdin, IINIT); else dprintf(fdin, INIT); |