From 4153a4571a607e6ef5da48ff7a6ea277b9832239 Mon Sep 17 00:00:00 2001 From: yabu76 Date: Sun, 15 Feb 2026 17:20:24 +0900 Subject: [PATCH] Add guide message to ctrl-t R interactive shell command execution --- src/tty.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/tty.c b/src/tty.c index 3eee2b7..374a402 100644 --- a/src/tty.c +++ b/src/tty.c @@ -558,15 +558,17 @@ void *tty_stdin_input_thread(void *arg) tio_printf("Flushed data I/O buffers"); tcflush(device_fd, TCIOFLUSH); break; -#if defined(__linux__) case KEY_SHIFT_R: if (state == STATE_EXEC_SHELL_COMMAND) { +#if defined(__linux__) tio_printf("Terminated shell command"); terminate_shell_command(); +#else + tio_warning_printf("The previous command is still running"); +#endif } break; -#endif default: break; } @@ -1390,7 +1392,7 @@ void handle_command_sequence(char input_char, char *output_char, bool *forward) case KEY_SHIFT_R: /* Execute shell command */ tio_printf("Execute shell command with I/O redirected to device"); - if (tio_subcmd_readln("Enter command: ")) + if (tio_subcmd_readln("Enter command (\"?\" prefix prevents redirection of stderr): ")) { state_t state_orig = state; state = STATE_EXEC_SHELL_COMMAND;