aboutsummaryrefslogtreecommitdiff
path: root/termkey_getkey.3.sh
diff options
context:
space:
mode:
authorPaul LeoNerd Evans <leonerd@leonerd.org.uk>2008-12-10 01:03:43 +0000
committerPaul LeoNerd Evans <leonerd@leonerd.org.uk>2008-12-10 01:03:43 +0000
commit9f1e7b34ebfffadf295e3d0adaa19ebd13e01bdd (patch)
treeb661d34be50efddfd3554749308751a776fbaee1 /termkey_getkey.3.sh
parent696c1455998a8282b23155449eda880aab157858 (diff)
downloadtermo-9f1e7b34ebfffadf295e3d0adaa19ebd13e01bdd.tar.gz
termo-9f1e7b34ebfffadf295e3d0adaa19ebd13e01bdd.tar.xz
termo-9f1e7b34ebfffadf295e3d0adaa19ebd13e01bdd.zip
Resort back to using GNU sed in .sh built manpages, as we only need them at 'make dist' time now; doesn't matter that BSD can't run them
Diffstat (limited to 'termkey_getkey.3.sh')
-rw-r--r--termkey_getkey.3.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/termkey_getkey.3.sh b/termkey_getkey.3.sh
index 8a6a372..33e7f23 100644
--- a/termkey_getkey.3.sh
+++ b/termkey_getkey.3.sh
@@ -72,7 +72,9 @@ To convert the \fIsym\fP to a symbolic name, see \fBtermkey_get_keyname\fP(3) fu
The following example program prints details of every keypress until the user presses "Ctrl-C". It demonstrates how to use the termkey instance in a typical \fBpoll\fP()-driven asynchronous program, which may include mixed IO with other file handles.
.PP
.in +4n
-`while read LINE; do echo ".br"; echo "$LINE"; done <demo-async.c`
+EOF
+sed i.br demo-async.c
+cat <<EOF
.in
.nf
.fi