| 356 | } |
| 357 | |
| 358 | void |
| 359 | outsubstr(struct amii_WinDesc *cw, char *str, int len, int fudge) |
| 360 | { |
| 361 | struct Window *w = cw->win; |
| 362 | |
| 363 | if (cw->curx) { |
| 364 | /* Check if this string and --more-- fit, if not, |
| 365 | * then put out --more-- and wait for a key. |
| 366 | */ |
| 367 | if ((len + fudge) + cw->curx >= cw->cols) { |
| 368 | if (!scrollmsg) |
| 369 | outmore(cw); |
| 370 | } else { |
| 371 | /* Otherwise, move and put out a blank separator */ |
| 372 | Text(w->RPort, spaces, 1); |
| 373 | cw->curx += 1; |
| 374 | } |
| 375 | } |
| 376 | |
| 377 | Text(w->RPort, str, len); |
| 378 | } |
| 379 | |
| 380 | /* Put a graphics character onto the screen */ |
| 381 |
no test coverage detected