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