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

Function enter_topl_mode

outdated/sys/mac/macwin.c:1000–1017  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

998}
999
1000void
1001enter_topl_mode(char *query)
1002{
1003 if (in_topl_mode())
1004 return;
1005
1006 putstr(WIN_MESSAGE, ATR_BOLD, query);
1007
1008 topl_query_len = strlen(query);
1009 (*top_line)->selStart = topl_query_len;
1010 (*top_line)->selEnd = topl_query_len;
1011 (*top_line)->viewRect.left = 0;
1012 PtrToXHand(query, (*top_line)->hText, topl_query_len);
1013 TECalText(top_line);
1014
1015 DimMenuBar();
1016 mac_display_nhwindow(WIN_MESSAGE, FALSE);
1017}
1018
1019void
1020leave_topl_mode(char *answer)

Callers 2

topl_getlinFunction · 0.85
topl_yn_functionFunction · 0.85

Calls 2

in_topl_modeFunction · 0.85
mac_display_nhwindowFunction · 0.85

Tested by

no test coverage detected