diff options
author | ailin-nemui <ailin-nemui@users.noreply.github.com> | 2016-03-22 16:54:34 +0100 |
---|---|---|
committer | ailin-nemui <ailin-nemui@users.noreply.github.com> | 2016-03-22 23:58:34 +0100 |
commit | b9914abbf3a7fae6d15f26650a98d8e74aa1fa05 (patch) | |
tree | 9c2112d05cb2e56dde10e1fd00e134f79a09d31c /src/fe-text/gui-readline.c | |
parent | b1ffd5f6472584aa3966746da9728c5afefcc4ce (diff) | |
download | irssi-b9914abbf3a7fae6d15f26650a98d8e74aa1fa05.zip |
Make use of terminal application keys configurable
adds a new setting term_appkey_mode which can enable or disable the use
of keyboard transmit (application keys) mode. Fixes #430
Diffstat (limited to 'src/fe-text/gui-readline.c')
-rw-r--r-- | src/fe-text/gui-readline.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fe-text/gui-readline.c b/src/fe-text/gui-readline.c index ff91f9e3..b93e5f0f 100644 --- a/src/fe-text/gui-readline.c +++ b/src/fe-text/gui-readline.c @@ -1060,6 +1060,7 @@ static void setup_changed(void) paste_join_multiline = settings_get_bool("paste_join_multiline"); paste_use_bracketed_mode = settings_get_bool("paste_use_bracketed_mode"); + term_set_appkey_mode(settings_get_bool("term_appkey_mode")); /* Enable the bracketed paste mode on demand */ term_set_bracketed_paste_mode(paste_use_bracketed_mode); } @@ -1082,6 +1083,7 @@ void gui_readline_init(void) g_get_current_time(&last_keypress); input_listen_init(STDIN_FILENO); + settings_add_bool("lookandfeel", "term_appkey_mode", TRUE); settings_add_str("history", "scroll_page_count", "/2"); settings_add_time("misc", "paste_detect_time", "5msecs"); settings_add_bool("misc", "paste_use_bracketed_mode", FALSE); |