diff options
author | John Ankarström <john@ankarstrom.se> | 2021-07-14 20:25:23 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-07-14 20:25:23 +0200 |
commit | 2371836ce2573421c05cc2f1f16e6584045f274d (patch) | |
tree | 01f25c683a047b89d5bd540d3b7d35917ec5897f | |
parent | db0717d85b5164f43d5134ef8eae5e7afc27bccf (diff) | |
download | rtty-2371836ce2573421c05cc2f1f16e6584045f274d.tar.gz |
Add INTRO, use PAGER='pr -pl25'
-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); |