From: Jeff Lenk Date: Wed, 17 Oct 2012 14:17:16 +0000 (-0500) Subject: FS-4694 --resolve X-Git-Tag: v1.3.0~42 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77eabbbdf75fb53f92d57fd6c60bd2084dd6d280;p=thirdparty%2Ffreeswitch.git FS-4694 --resolve --- diff --git a/libs/esl/fs_cli.c b/libs/esl/fs_cli.c index d85f176d6f..9986c7c613 100644 --- a/libs/esl/fs_cli.c +++ b/libs/esl/fs_cli.c @@ -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; diff --git a/src/switch_console.c b/src/switch_console.c index 3958cf98fc..993f668715 100644 --- a/src/switch_console.c +++ b/src/switch_console.c @@ -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");