mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Add command to show version
The key sequence ctrl-t v will now show the version of tio.
This commit is contained in:
parent
42eb14dd77
commit
39a8f63640
3 changed files with 8 additions and 0 deletions
|
|
@ -33,6 +33,7 @@
|
|||
#define KEY_T 0x74
|
||||
#define KEY_SHIFT_T 0x54
|
||||
#define KEY_CTRL_T 0x14
|
||||
#define KEY_V 0x76
|
||||
|
||||
#define NORMAL 0
|
||||
#define HEX 1
|
||||
|
|
|
|||
|
|
@ -109,6 +109,7 @@ void handle_command_sequence(char input_char, char previous_char, char *output_c
|
|||
tio_printf(" ctrl-t s Show statistics");
|
||||
tio_printf(" ctrl-t t Send ctrl-t key code");
|
||||
tio_printf(" ctrl-t T Toggle timestamps");
|
||||
tio_printf(" ctrl-t v Show version");
|
||||
break;
|
||||
|
||||
case KEY_B:
|
||||
|
|
@ -178,6 +179,10 @@ void handle_command_sequence(char input_char, char previous_char, char *output_c
|
|||
option.timestamp = !option.timestamp;
|
||||
break;
|
||||
|
||||
case KEY_V:
|
||||
tio_printf("tio v%s", VERSION);
|
||||
break;
|
||||
|
||||
default:
|
||||
/* Ignore unknown ctrl-t escaped keys */
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue