| 436 | } |
| 437 | |
| 438 | staticfn void |
| 439 | deliver_by_window(const char *msg, int how) |
| 440 | { |
| 441 | char in_line[BUFSZ], out_line[BUFSZ]; |
| 442 | const char *msgp = msg, *msgend = eos((char *) msg); |
| 443 | winid datawin = create_nhwindow(how); |
| 444 | |
| 445 | while (msgp < msgend) { |
| 446 | /* copynchars() will stop at newline if it finds one */ |
| 447 | copynchars(in_line, msgp, (int) sizeof in_line - 1); |
| 448 | msgp += strlen(in_line) + 1; |
| 449 | |
| 450 | convert_line(in_line, out_line); |
| 451 | putstr(datawin, 0, out_line); |
| 452 | } |
| 453 | |
| 454 | display_nhwindow(datawin, TRUE); |
| 455 | destroy_nhwindow(datawin); |
| 456 | } |
| 457 | |
| 458 | staticfn boolean |
| 459 | skip_pager(boolean common UNUSED) |
no test coverage detected