From 39b810f0b8889e3207dab335180132126c04e00d Mon Sep 17 00:00:00 2001 From: Paul LeoNerd Evans Date: Fri, 28 Nov 2008 19:58:16 +0000 Subject: Use shell natively to embed demo .c files in manpages rather than invoking sed, because OpenBSD's sed doesn't seem to like this --- termkey_getkey.3.sh | 2 +- termkey_waitkey.3.sh | 2 +- 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