diff options
-rw-r--r-- | INTRO | 18 | ||||
-rw-r--r-- | rtty.c | 2 |
2 files changed, 19 insertions, 1 deletions
@@ -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)) @@ -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); |