mirror of
https://github.com/tio/tio.git
synced 2026-05-01 23:07:58 +02:00
Add support for remapping prefix key
Make it possible to remap the prefix key (default: ctrl-t) by setting the prefix-ctrl-key variable in the configuration file. Allowed values are in the range a..z. Example, to set the prefix key to ctrl-a simply do: prefix-ctrl-key = a
This commit is contained in:
parent
1c53af0681
commit
02729c10b1
9 changed files with 36 additions and 34 deletions
|
|
@ -67,6 +67,8 @@ struct option_t option =
|
|||
.map = "",
|
||||
.color = 15,
|
||||
.hex_mode = false,
|
||||
.prefix_code = 20, // ctrl-t
|
||||
.prefix_key = 't',
|
||||
};
|
||||
|
||||
void print_help(char *argv[])
|
||||
|
|
@ -101,8 +103,6 @@ void print_help(char *argv[])
|
|||
printf("\n");
|
||||
printf("Options and sub-configurations may be set via configuration file.\n");
|
||||
printf("\n");
|
||||
printf("In session, press ctrl-t q to quit.\n");
|
||||
printf("\n");
|
||||
printf("See the man page for more details.\n");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue