aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--termkey_getkey.3.sh4
-rw-r--r--termkey_waitkey.3.sh4
2 files changed, 4 insertions, 4 deletions
diff --git a/termkey_getkey.3.sh b/termkey_getkey.3.sh
index c4f08ee..a940906 100644
--- a/termkey_getkey.3.sh
+++ b/termkey_getkey.3.sh
@@ -76,11 +76,11 @@ 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
+.nf
EOF
-sed i.br demo-async.c
+sed "s/\\\\/\\\\\\\\/g" demo-async.c
cat <<EOF
.in
-.nf
.fi
.SH "SEE ALSO"
.BR termkey_new (3),
diff --git a/termkey_waitkey.3.sh b/termkey_waitkey.3.sh
index dbc035b..812bb1d 100644
--- a/termkey_waitkey.3.sh
+++ b/termkey_waitkey.3.sh
@@ -29,11 +29,11 @@ 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
+.nf
EOF
-sed i.br demo.c
+sed "s/\\\\/\\\\\\\\/g" demo.c
cat <<EOF
.in
-.nf
.fi
.SH "SEE ALSO"
.BR termkey_new (3),