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

Function tty_getlin

win/tty/getline.c:35–40  ·  view source on GitHub ↗

* Read a line closed with '\n' into the array char bufp[BUFSZ]. * (The '\n' is not stored. The string is closed with a '\0'.) * Reading can be interrupted by an escape ('\033'). If there is already * some text, it is removed and prompting continues as if from the start. * However, if there is no text yet (or anymore) then "\033" is returned. */

Source from the content-addressed store, hash-verified

33 * However, if there is no text yet (or anymore) then "\033" is returned.
34 */
35void
36tty_getlin(const char *query, char *bufp)
37{
38 suppress_history = FALSE;
39 hooked_tty_getlin(query, bufp, (getlin_hook_proc) 0);
40}
41
42static void
43hooked_tty_getlin(

Callers 1

process_menu_windowFunction · 0.85

Calls 1

hooked_tty_getlinFunction · 0.85

Tested by

no test coverage detected