Fix Ctrl-t J raw-mode action is not reflected to device immediately

This commit is contained in:
yabu76 2026-02-11 18:28:37 +09:00
parent 2496676199
commit d28b5f4452

View file

@ -1293,6 +1293,10 @@ void handle_command_sequence(char input_char, char *output_char, bool *forward)
tio_printf("Turn off raw mode for non-interactive use");
break;
}
if (state != STATE_INTERACTIVE)
{
tty_tcsetattr(device_fd);
}
break;
case KEY_SHIFT_J:
@ -1311,6 +1315,10 @@ void handle_command_sequence(char input_char, char *output_char, bool *forward)
tio_printf("Turn off raw mode for interactive use");
break;
}
if (state == STATE_INTERACTIVE)
{
tty_tcsetattr(device_fd);
}
break;
case KEY_K: