keeps windowprocs usage out of pline() */
| 62 | |
| 63 | /* keeps windowprocs usage out of pline() */ |
| 64 | staticfn void |
| 65 | putmesg(const char *line) |
| 66 | { |
| 67 | int attr = ATR_NONE; |
| 68 | |
| 69 | if (iflags.debug_prevent_pline) |
| 70 | return; |
| 71 | |
| 72 | if ((gp.pline_flags & URGENT_MESSAGE) != 0 |
| 73 | && (windowprocs.wincap2 & WC2_URGENT_MESG) != 0) |
| 74 | attr |= ATR_URGENT; |
| 75 | if ((gp.pline_flags & SUPPRESS_HISTORY) != 0 |
| 76 | && (windowprocs.wincap2 & WC2_SUPPRESS_HIST) != 0) |
| 77 | attr |= ATR_NOHISTORY; |
| 78 | putstr(WIN_MESSAGE, attr, line); |
| 79 | SoundSpeak(line); |
| 80 | } |
| 81 | |
| 82 | /* set the direction where next message happens */ |
| 83 | void |