diff options
author | John Ankarström <john@ankarstrom.se> | 2021-07-14 19:08:11 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-07-14 19:08:11 +0200 |
commit | a2558ca046ceb85bac62cee7d1d34ab660955dc0 (patch) | |
tree | 9b3a436c9046976bc704ecbd037ce1632e6f5632 | |
parent | fe9ba4f8f3c8b114aa32d81fefdc2cd1f4642600 (diff) | |
download | rtty-a2558ca046ceb85bac62cee7d1d34ab660955dc0.tar.gz |
rio.c: Automatically set TERM, PAGER and EDITOR
-rw-r--r-- | rio.c | 2 | ||||
-rwxr-xr-x | rtty | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -20,6 +20,8 @@ main() if(!(fdout = open("/var/tmp/r.out", O_RDONLY))) err(1, "open"); + dprintf(fdin, "export TERM=tty43 PAGER=cat EDITOR=ed\n"); + FD_ZERO(&rfds0); FD_ZERO(&rfds1); @@ -1,6 +1,6 @@ #!/bin/sh -# rtty -- limited, but more responsive remote shell +# rtty -- limited but responsive remote shell in=/var/tmp/r.in out=/var/tmp/r.out |