aboutsummaryrefslogtreecommitdiff
path: root/termkey_getkey.3.sh
diff options
context:
space:
mode:
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