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

Function outmore

sys/amiga/winstr.c:325–356  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

323}
324
325void
326outmore(struct amii_WinDesc *cw)
327{
328 struct Window *w = cw->win;
329
330 if ((cw->wflags & FLMAP_SKIP) == 0) {
331 if (scrollmsg) {
332 int bottom;
333
334 bottom = amii_msgborder(w);
335
336 ScrollRaster(w->RPort, 0, w->RPort->TxHeight, w->BorderLeft,
337 w->BorderTop + 1, w->Width - w->BorderRight - 1,
338 w->Height - w->BorderBottom - 1);
339 amii_curs(WIN_MESSAGE, 1, bottom); /* -1 for inner border */
340 Text(w->RPort, "--more--", 8);
341 } else
342 Text(w->RPort, " --more--", 9);
343
344 /* Make sure there are no events in the queue */
345 flushIDCMP(HackPort);
346
347 /* Allow mouse clicks to clear --more-- */
348 WindowGetchar();
349 if (lastevent.type == WEKEY && lastevent.un.key == '\33')
350 cw->wflags |= FLMAP_SKIP;
351 }
352 if (!scrollmsg) {
353 amii_curs(WIN_MESSAGE, 1, 0);
354 amii_cl_end(cw, cw->curx);
355 }
356}
357
358void
359outsubstr(struct amii_WinDesc *cw, char *str, int len, int fudge)

Callers 4

amii_display_nhwindowFunction · 0.85
amii_putstrFunction · 0.85
amii_scrollmsgFunction · 0.85
outsubstrFunction · 0.85

Calls 5

amii_msgborderFunction · 0.85
amii_cursFunction · 0.85
flushIDCMPFunction · 0.85
WindowGetcharFunction · 0.85
amii_cl_endFunction · 0.85

Tested by

no test coverage detected