mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Fix Ctrl-t J raw-mode action is not reflected to device immediately
This commit is contained in:
parent
2496676199
commit
d28b5f4452
1 changed files with 8 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue