MCPcopy Create free account
hub / github.com/ElementsProject/lightning / restore_echo

Function restore_echo

common/hsm_secret.c:401–404  ·  view source on GitHub ↗

Restore terminal echo if it was disabled */

Source from the content-addressed store, hash-verified

399
400/* Restore terminal echo if it was disabled */
401static void restore_echo(const struct termios *saved_term)
402{
403 tcsetattr(fileno(stdin), TCSANOW, saved_term);
404}
405
406/* Read line from stdin (uses tal allocation) */
407static const char *read_line(const tal_t *ctx)

Callers 1

read_stdin_passFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected