MCPcopy Create free account
hub / github.com/NetHack/NetHack / outsubstr

Function outsubstr

sys/amiga/winstr.c:358–378  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

356}
357
358void
359outsubstr(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

Callers 1

amii_putstrFunction · 0.85

Calls 1

outmoreFunction · 0.85

Tested by

no test coverage detected