From 2371836ce2573421c05cc2f1f16e6584045f274d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Wed, 14 Jul 2021 20:25:23 +0200 Subject: Add INTRO, use PAGER='pr -pl25' --- INTRO | 18 ++++++++++++++++++ rtty.c | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 INTRO 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); -- cgit v1.2.3