This doesn't make much of a different IRL, but it feels more right that
an operation that happens in input is turned off via the input fd.
struct termios new_termios = old_termios;
termios_disable_echo(&new_termios);
- if (tcsetattr(STDOUT_FILENO, TCSADRAIN, &new_termios) < 0)
+ if (tcsetattr(STDIN_FILENO, TCSADRAIN, &new_termios) < 0)
return -errno;
r = loop_write(STDOUT_FILENO, "\x1B]11;?\x07", SIZE_MAX);
}
finish:
- (void) tcsetattr(STDOUT_FILENO, TCSADRAIN, &old_termios);
+ (void) tcsetattr(STDIN_FILENO, TCSADRAIN, &old_termios);
return r;
}