aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-07-14 20:25:23 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-07-14 20:25:23 +0200
commit2371836ce2573421c05cc2f1f16e6584045f274d (patch)
tree01f25c683a047b89d5bd540d3b7d35917ec5897f
parentdb0717d85b5164f43d5134ef8eae5e7afc27bccf (diff)
downloadrtty-2371836ce2573421c05cc2f1f16e6584045f274d.tar.gz
Add INTRO, use PAGER='pr -pl25'
-rw-r--r--INTRO18
-rw-r--r--rtty.c2
2 files changed, 19 insertions, 1 deletions
diff --git a/INTRO b/INTRO
new file mode 100644
index 0000000..3dec1e9
--- /dev/null
+++ b/INTRO
@@ -0,0 +1,18 @@
+ Using rtty
+
+Rtty is a line-based remote shell interface (see rtty(1) for general
+information). This file gives a short introduction to using rtty.
+
+Because rtty is line-based, it is not feasible to use interactive
+programs such as vi(1) on the remote server. For this reason, rtty
+sets TERM to tty43 by default. Neither is it generally feasible to
+take advantage of interactive features of the remote shell, such
+as interactive command history.
+
+Instead, one has to make due with the old line-based tools, which
+are fortunately still included with modern UNIX systems. Here is
+a brief overview:
+
+ Editor: ed(1)
+ Pager: cat(1), pr(1)
+ History: fc (see sh(1))
diff --git a/rtty.c b/rtty.c
index 7852c82..6abe512 100644
--- a/rtty.c
+++ b/rtty.c
@@ -52,7 +52,7 @@ main(int argc, char *argv[])
if(!(fdout = open(out, O_RDONLY)))
err(1, "open");
- dprintf(fdin, "export TERM=tty43 PAGER=cat EDITOR=ed\n");
+ dprintf(fdin, "export TERM=tty43 PAGER='pr -pl25' EDITOR=ed\n");
FD_ZERO(&rfds0);
FD_ZERO(&rfds1);