]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-4694 --resolve
authorJeff Lenk <jeff@jefflenk.com>
Wed, 17 Oct 2012 14:17:16 +0000 (09:17 -0500)
committerJeff Lenk <jeff@jefflenk.com>
Wed, 17 Oct 2012 14:17:16 +0000 (09:17 -0500)
libs/esl/fs_cli.c
src/switch_console.c

index d85f176d6f2b26f174987c791a1b3a9383fb398f..9986c7c61307230edaee661d7c3fcfc336298ff7 100644 (file)
@@ -1520,6 +1520,9 @@ int main(int argc, char *argv[])
        el_set(el, EL_ADDFN, "ed-complete", "Complete argument", complete);
        el_set(el, EL_BIND, "^I", "ed-complete", NULL);
 
+       /* "Delete" key. */
+       el_set(el, EL_BIND, "\033[3~", "ed-delete-next-char", NULL);
+
        if (!(myhistory = history_init())) {
                esl_log(ESL_LOG_ERROR, "history could not be initialized\n");
                goto done;
index 3958cf98fc7ec175fd67877529badf5011f62a7a..993f6687159c543c29af2a30e3adaf5a610ed4a8 100644 (file)
@@ -1119,6 +1119,9 @@ SWITCH_DECLARE(void) switch_console_loop(void)
        el_set(el, EL_ADDFN, "ed-complete", "Complete argument", complete);
        el_set(el, EL_BIND, "^I", "ed-complete", NULL);
 
+       /* "Delete" key. */
+       el_set(el, EL_BIND, "\033[3~", "ed-delete-next-char", NULL);
+
        myhistory = history_init();
        if (myhistory == 0) {
                fprintf(stderr, "history could not be initialized\n");