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

Function topl_getlin

outdated/sys/mac/mgetline.c:32–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32static void
33topl_getlin(const char *query, char *bufp, Boolean ext)
34{
35 if (get_line_from_key_queue(bufp))
36 return;
37
38 enter_topl_mode((char *) query);
39 while (topl_key(nhgetch(), ext))
40 ;
41 leave_topl_mode(bufp);
42}
43
44/*
45 * Read a line closed with '\n' into the array char bufp[BUFSZ].

Callers 2

mac_getlinFunction · 0.85
mac_get_ext_cmdFunction · 0.85

Calls 4

get_line_from_key_queueFunction · 0.85
enter_topl_modeFunction · 0.85
topl_keyFunction · 0.85
leave_topl_modeFunction · 0.85

Tested by

no test coverage detected