Restore terminal echo if it was disabled */
| 399 | |
| 400 | /* Restore terminal echo if it was disabled */ |
| 401 | static 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) */ |
| 407 | static const char *read_line(const tal_t *ctx) |