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:
parent
d245285df2
commit
39b810f0b8
@ -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 <demo-async.c`
|
||||
.in
|
||||
.nf
|
||||
.fi
|
||||
|
@ -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".
|
||||
.PP
|
||||
.in +4n
|
||||
`sed i.br demo.c`
|
||||
`while read LINE; do echo ".br"; echo "$LINE"; done <demo.c`
|
||||
.in
|
||||
.nf
|
||||
.fi
|
||||
|
Loading…
Reference in New Issue
Block a user