diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2019-05-29 23:44:22 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2019-05-29 23:44:22 -0700 |
| commit | 2f34dad8e8e264382794aa8e983671bc3460a433 (patch) | |
| tree | 8bd54f8d92f15e868637e7ed1211f5ce6fa4ea91 | |
| parent | 050d4d70caa7312348f15f2c2f6e99cc60c9399c (diff) | |
Deleted CTRL_H functionality.
| -rw-r--r-- | bb.c | 30 | ||||
| -rw-r--r-- | config.def.h | 1 |
2 files changed, 0 insertions, 31 deletions
@@ -1234,36 +1234,6 @@ void bb_browse(bb_t *bb, const char *path) lazy = 0; goto redraw; - case KEY_CTRL_H: { - move_cursor(tty_out, 0,termheight-1); - fputs("\033[K\033[33;1mPress any key...\033[0m", tty_out); - while ((key = bgetkey(tty_in, &mouse_x, &mouse_y, 1000)) == -1) - ; - move_cursor(tty_out, 0,termheight-1); - fputs("\033[K\033[1m<\033[33m", tty_out); - const char *name = bkeyname(key); - if (name) fputs(name, tty_out); - else if (' ' <= key && key <= '~') - fputc((char)key, tty_out); - else - fprintf(tty_out, "\033[31m\\x%02X", key); - - fputs("\033[0;1m> is bound to: \033[34;1m", tty_out); - for (int i = 0; bindings[i].keys[0] > 0; i++) { - for (int j = 0; bindings[i].keys[j]; j++) { - if (key == bindings[i].keys[j]) { - fputs(bindings[i].description, tty_out); - fputs("\033[0m", tty_out); - fflush(tty_out); - goto next_input; - } - } - } - fputs("--- nothing ---\033[0m", tty_out); - fflush(tty_out); - goto next_input; - } - case -1: goto next_input; diff --git a/config.def.h b/config.def.h index 50f279e..698ddba 100644 --- a/config.def.h +++ b/config.def.h @@ -113,7 +113,6 @@ binding_t bindings[] = { // won't work unless you make your script use `bash -c "<your script>"` ////////////////////////////////////////////////////////////////////////// {{'?'}, "bb -b | $PAGER -r", "Show the help menu", NORMAL_TERM}, - {{KEY_CTRL_H}, "<placeholder>", "Figure out what key does"}, {{'q', 'Q'}, "+quit", "Quit"}, {{'k', KEY_ARROW_UP}, "+move:-1", "Move up"}, {{'j', KEY_ARROW_DOWN}, "+move:+1", "Move down"}, |
