Use shell natively to embed demo .c files in manpages rather than invoking sed, because OpenBSD's sed doesn't seem to like this

This commit is contained in:
Paul LeoNerd Evans 2008-11-28 19:58:16 +00:00
parent d245285df2
commit 39b810f0b8
2 changed files with 2 additions and 2 deletions

View File

@ -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. 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
`sed i.br demo-async.c` `while read LINE; do echo ".br"; echo "$LINE"; done <demo-async.c`
.in .in
.nf .nf
.fi .fi

View File

@ -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". The following example program prints details of every keypress until the user presses "Ctrl-C".
.PP .PP
.in +4n .in +4n
`sed i.br demo.c` `while read LINE; do echo ".br"; echo "$LINE"; done <demo.c`
.in .in
.nf .nf
.fi .fi