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
This commit is contained in:
parent
696c145599
commit
9f1e7b34eb
|
@ -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.
|
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
|
.PP
|
||||||
.in +4n
|
.in +4n
|
||||||
`while read LINE; do echo ".br"; echo "$LINE"; done <demo-async.c`
|
EOF
|
||||||
|
sed i.br demo-async.c
|
||||||
|
cat <<EOF
|
||||||
.in
|
.in
|
||||||
.nf
|
.nf
|
||||||
.fi
|
.fi
|
||||||
|
|
|
@ -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".
|
The following example program prints details of every keypress until the user presses "Ctrl-C".
|
||||||
.PP
|
.PP
|
||||||
.in +4n
|
.in +4n
|
||||||
`while read LINE; do echo ".br"; echo "$LINE"; done <demo.c`
|
EOF
|
||||||
|
sed i.br demo.c
|
||||||
|
cat <<EOF
|
||||||
.in
|
.in
|
||||||
.nf
|
.nf
|
||||||
.fi
|
.fi
|
||||||
|
|
Loading…
Reference in New Issue