aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul LeoNerd Evans <leonerd@leonerd.org.uk>2008-11-28 19:58:16 +0000
committerPaul LeoNerd Evans <leonerd@leonerd.org.uk>2008-11-28 19:58:16 +0000
commit39b810f0b8889e3207dab335180132126c04e00d (patch)
tree4544d6a376efcdf6db354f70a0baa79b0d3034d7
parentd245285df2bbe20ff2e78020acc3667eac1e7868 (diff)
downloadtermo-39b810f0b8889e3207dab335180132126c04e00d.tar.gz
termo-39b810f0b8889e3207dab335180132126c04e00d.tar.xz
termo-39b810f0b8889e3207dab335180132126c04e00d.zip
Use shell natively to embed demo .c files in manpages rather than invoking sed, because OpenBSD's sed doesn't seem to like this
-rw-r--r--termkey_getkey.3.sh2
-rw-r--r--termkey_waitkey.3.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/termkey_getkey.3.sh b/termkey_getkey.3.sh
index ae96530..6f0ee63 100644
--- a/termkey_getkey.3.sh
+++ b/termkey_getkey.3.sh
@@ -71,7 +71,7 @@ No key event is ready yet, but a partial one has been found. This is only return
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
-`sed i.br demo-async.c`
+`while read LINE; do echo ".br"; echo "$LINE"; done <demo-async.c`
.in
.nf
.fi
diff --git a/termkey_waitkey.3.sh b/termkey_waitkey.3.sh
index 5d66f94..1cdd871 100644
--- a/termkey_waitkey.3.sh
+++ b/termkey_waitkey.3.sh
@@ -29,7 +29,7 @@ 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
-`sed i.br demo.c`
+`while read LINE; do echo ".br"; echo "$LINE"; done <demo.c`
.in
.nf
.fi