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

Function More_Handler

outdated/win/gem/wingem1.c:1366–1394  ·  view source on GitHub ↗
(xev)

Source from the content-addressed store, hash-verified

1364#define More_Init K_Init
1365
1366int
1367More_Handler(xev)
1368XEVENT *xev;
1369{
1370 int ev = xev->ev_mwich;
1371
1372 if (ev & MU_KEYBD) {
1373 char ch = (char) (xev->ev_mkreturn & 0x00FF);
1374 DIAINFO *dinf;
1375 WIN *w;
1376
1377 switch (ch) {
1378 case '\033': /* no more more more */
1379 case ' ':
1380 if ((w = get_top_window()) && (dinf = (DIAINFO *) w->dialog)
1381 && dinf->di_tree == zz_oblist[PAGER]) {
1382 if (ch == '\033')
1383 mar_esc_pressed = TRUE;
1384 send_return();
1385 break;
1386 }
1387 /* Fall thru */
1388 default:
1389 ev &= ~MU_KEYBD; /* unknown key */
1390 break;
1391 }
1392 }
1393 return (ev);
1394}
1395
1396void
1397mar_more()

Callers

nothing calls this directly

Calls 1

send_returnFunction · 0.85

Tested by

no test coverage detected