aboutsummaryrefslogtreecommitdiff
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
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
-rw-r--r--termkey_getkey.3.sh4
-rw-r--r--termkey_waitkey.3.sh4
2 files changed, 6 insertions, 2 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
diff --git a/termkey_waitkey.3.sh b/termkey_waitkey.3.sh
index 1cdd871..7dda316 100644
--- a/termkey_waitkey.3.sh
+++ b/termkey_waitkey.3.sh
@@ -29,7 +29,9 @@ No key events are ready and the terminal has been closed, so no more will arrive
The following example program prints details of every keypress until the user presses "Ctrl-C".
.PP
.in +4n
-`while read LINE; do echo ".br"; echo "$LINE"; done <demo.c`
+EOF
+sed i.br demo.c
+cat <<EOF
.in
.nf
.fi