aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);