search for: cli_command

Displaying 19 results from an estimated 19 matches for "cli_command".

2011 Mar 16
0
[GIT PULL] elflink changes
...efc6d0 100644 --- a/com32/elflink/ldlinux/cli.c +++ b/com32/elflink/ldlinux/cli.c @@ -68,6 +68,65 @@ int mygetkey(clock_t timeout) } } +static const char * cmd_reverse_search(int *cursor) +{ + int key; + int i = 0; + char buf[MAX_CMDLINE_LEN]; + const char *p = NULL; + struct cli_command *last_found; + struct cli_command *last_good = NULL; + + last_found = list_entry(cli_history_head.next, typeof(*last_found), list); + + memset(buf, 0, MAX_CMDLINE_LEN); + + printf("\033[1G\033[1;36m(reverse-i-search)`': \033[0m"); + while (1) { + key = mygetkey(0...
2013 Sep 16
1
[PATCH 2/2] com32: Fix a bug on history of commands.
.....d661119 100644 --- a/com32/elflink/ldlinux/cli.c +++ b/com32/elflink/ldlinux/cli.c @@ -461,11 +461,14 @@ const char *edit_cmdline(const char *input, int top /*, int width */ , printf("\033[?7h"); - /* Add the command to the history */ - comm_counter = malloc(sizeof(struct cli_command)); - comm_counter->command = malloc(sizeof(char) * (strlen(ret) + 1)); - strcpy(comm_counter->command, ret); - list_add(&(comm_counter->list), &cli_history_head); + /* Add the command to the history if its length is larger than 0 */ + len = strlen(ret); + if (len...
2010 Oct 02
4
[PATCH 0/4] some fixes on elflink branch
This is a small set of patches for elflink branch based on feng's elflink branch. hpa, It seems that I can't log on terminus by ssh at home. So I can't push these patches on my git tree. Liu Aleaxander (4): elflink: Cleanup some warnings elflink: Fix the wrong malloc size in enter_cmdline elflink: Do clear screen even if we have no pDraw_Menu method elflink: Add Ctrl-p +
2011 Apr 01
1
[GIT PULL] elflink ldlinux
The following changes since commit 8c576f1fe03e34879921311f46613a35c6530000: Merge remote-tracking branch 'mfleming/for-hpa/elflink/fix-compiler-warnings' into elflink (2011-03-16 12:53:58 -0700) are available in the git repository at: git://git.zytor.com/users/mfleming/syslinux.git for-hpa/elflink/ldlinux Matt Fleming (1): ldlinux: Perform auto-boot if NOESCAPE set in config
2011 Feb 17
5
[PATCH 0/4] Reduce core size
From: Matt Fleming <matt.fleming at linux.intel.com> These patches are based on the elflink branch. This set of patches is my attempt at moving the command-line interface functionality out of the core and into an ELF module to reduce the size of the core. The most interesting patch is [PATCH 4/4] which moves the cli code out of core/elflink and into com32/elflink/modules. [PATCH 4/4] is
2013 Sep 17
1
[PATCH 4/4 v2] com32: Fix a bug on history of commands.
...4c..6ff30c6 100644 --- a/com32/elflink/ldlinux/cli.c +++ b/com32/elflink/ldlinux/cli.c @@ -461,11 +461,14 @@ const char *edit_cmdline(const char *input, int top /*, int width */ , printf("\033[?7h"); - /* Add the command to the history */ - comm_counter = malloc(sizeof(struct cli_command)); - comm_counter->command = malloc(sizeof(char) * (strlen(ret) + 1)); - strcpy(comm_counter->command, ret); - list_add(&(comm_counter->list), &cli_history_head); + /* Add the command to the history if its length is larger than 0 */ + len = strlen(ret); + if (len...
2010 Oct 03
3
[PATCH 0/3] elflink: Another small fixes on CLI
Hi, This is a another small set of fixes about CLI on elflink branch. Liu Aleaxander (3): elflink: use 'input' as the prompt of the CLI elflink: Add ctrl-R key bind support elflink: handle the NULL return of edit_cmdline core/elflink/cli.c | 88 +++++++++++++++++++++++++++++++++++++++++--- core/elflink/load_env32.c | 4 ++- 2 files changed, 85 insertions(+), 7
2011 Mar 09
14
[PATCH 00/12] elflink shrinkage
From: Matt Fleming <matt.fleming at linux.intel.com> This is a series of patches that, * shrink the core by moving things into an ldlinux ELF module * begin wiring up some of the C versions of various functions The core now only contains essential code and loads the ldlinux module to do everything else, like providing a command line interface and loading kernels. The config file parsing
2017 Mar 23
0
Asterisk 13.15.0-rc1 Now Available
...misleading ERROR message (Reported by Smirnov Aleksey) * ASTERISK-26857 - chan_pjsip: Dialplan function race condition (Reported by Joshua Colp) * ASTERISK-26841 - chan_sip: Call not cancelled after receiving a 422 response (Reported by Jean Aunis - Prescom) * ASTERISK-26822 - pjsip/cli_commands: pjsip show channelstats shows wrong codec (Reported by Kevin Harwell) * ASTERISK-26685 - res_pjsip: Crash when using IPv6 and Transport ws,wss (Reported by Michael Balen) * ASTERISK-24562 - app_voicemail: Cannot set fromstring on a per-mailbox basis (Reported by Mark Scholten)...
2017 Mar 23
0
Asterisk 14.4.0-rc1 Now Available
...misleading ERROR message (Reported by Smirnov Aleksey) * ASTERISK-26857 - chan_pjsip: Dialplan function race condition (Reported by Joshua Colp) * ASTERISK-26841 - chan_sip: Call not cancelled after receiving a 422 response (Reported by Jean Aunis - Prescom) * ASTERISK-26822 - pjsip/cli_commands: pjsip show channelstats shows wrong codec (Reported by Kevin Harwell) * ASTERISK-26353 - res_musiconhold: musiconhold seems to think that the general section is a class and issues warning (Reported by Jonathan Harris) * ASTERISK-26685 - res_pjsip: Crash when using IPv6 and Tra...
2011 Mar 16
0
[GIT PULL] elflink compiler warning fixes
...linux/ldlinux.c @@ -1,6 +1,7 @@ #include <linux/list.h> #include <sys/times.h> #include <stdbool.h> +#include <core.h> #include <core-elf.h> #include "cli.h" #include "console.h" @@ -12,8 +13,7 @@ static void enter_cmdline(void) { - struct cli_command *aux; - char *cmdline; + const char *cmdline; /* Enter endless command line prompt, should support "exit" */ while (1) { diff --git a/com32/elflink/ldlinux/readconfig.c b/com32/elflink/ldlinux/readconfig.c index 898ee19..e13d6d4 100644 --- a/com32/elflink/ldlinux/readconfig.c +++ b...
2012 May 04
3
[GIT PULL] elflink fixes
...[0m"); while (1) { - key = mygetkey(0); + key = mygetkey_timeout(kbd_to, tto); if (key == KEY_CTRL('C')) { return NULL; @@ -140,6 +129,8 @@ const char *edit_cmdline(const char *input, int top /*, int width */ , const char *ret; int width = 0; struct cli_command *comm_counter = NULL; + clock_t kbd_to = kbdtimeout; + clock_t tto = totaltimeout; if (!width) { int height; @@ -205,9 +196,13 @@ const char *edit_cmdline(const char *input, int top /*, int width */ , redraw = 0; } - key = mygetkey(0); + key = mygetkey_timeout(&kbd_to,...
2017 Apr 07
0
Asterisk 13.15.0 Now Available
...tion (Reported by Joshua Colp) - [ASTERISK-26841 <https://issues.asterisk.org/jira/browse/ASTERISK-26841>] - chan_sip: Call not cancelled after receiving a 422 response (Reported by Jean Aunis - Prescom) - [ASTERISK-26822 <https://issues.asterisk.org/jira/browse/ASTERISK-26822>] - pjsip/cli_commands: pjsip show channelstats shows wrong codec (Reported by Kevin Harwell) - [ASTERISK-26685 <https://issues.asterisk.org/jira/browse/ASTERISK-26685>] - res_pjsip: Crash when using IPv6 and Transport ws,wss (Reported by Michael Balen) - [ASTERISK-24562 <https://issues.asterisk.org/jira/browse...
2017 Apr 07
0
Asterisk 14.4.0 Now Available
...tion (Reported by Joshua Colp) - [ASTERISK-26841 <https://issues.asterisk.org/jira/browse/ASTERISK-26841>] - chan_sip: Call not cancelled after receiving a 422 response (Reported by Jean Aunis - Prescom) - [ASTERISK-26822 <https://issues.asterisk.org/jira/browse/ASTERISK-26822>] - pjsip/cli_commands: pjsip show channelstats shows wrong codec (Reported by Kevin Harwell) - [ASTERISK-26353 <https://issues.asterisk.org/jira/browse/ASTERISK-26353>] - res_musiconhold: musiconhold seems to think that the general section is a class and issues warning (Reported by Jonathan Harris) - [ASTERISK-26...
2012 Apr 17
2
[GIT PULL] elflink warning fixes and auto extension support
...t(&last_found->list, &cli_history_head)) { p = strstr(last_found->command, buf); if (p) break; @@ -139,7 +139,7 @@ const char *edit_cmdline(const char *input, int top /*, int width */ , bool done = false; const char *ret; int width = 0; - struct cli_command *comm_counter; + struct cli_command *comm_counter = NULL; if (!width) { int height; diff --git a/com32/elflink/ldlinux/config.h b/com32/elflink/ldlinux/config.h index c34b2cc..cab4c70 100644 --- a/com32/elflink/ldlinux/config.h +++ b/com32/elflink/ldlinux/config.h @@ -37,7 +37,11 @@ ext...
2017 Dec 21
0
Certified Asterisk 13.18-cert1 Now Available
...message (Reported by Smirnov Aleksey) * ASTERISK-26857 - chan_pjsip: Dialplan function race condition (Reported by Joshua Colp) * ASTERISK-26841 - chan_sip: Call not cancelled after receiving a 422 response (Reported by Jean Aunis - Prescom) * ASTERISK-26822 - pjsip/cli_commands: pjsip show channelstats shows wrong codec (Reported by Kevin Harwell) * ASTERISK-26685 - res_pjsip: Crash when using IPv6 and Transport ws,wss (Reported by Michael Balen) * ASTERISK-24562 - app_voicemail: Cannot set fromstring on a per-mailbox basis (Reported...
2017 Oct 03
0
Asterisk 15.0.0 Now Available
...sk (Reported by Roman Bedros) * ASTERISK-25237 - stasis_cache.c:845 caching_topic_exec: - misleading ERROR message (Reported by Smirnov Aleksey) * ASTERISK-26857 - chan_pjsip: Dialplan function race condition (Reported by Joshua Colp) * ASTERISK-26822 - pjsip/cli_commands: pjsip show channelstats shows wrong codec (Reported by Kevin Harwell) * ASTERISK-26353 - res_musiconhold: musiconhold seems to think that the general section is a class and issues warning (Reported by Jonathan Harris) * ASTERISK-26685 - res_pjsip: Crash when using...
2017 Aug 02
2
Asterisk 15.0.0-beta1 Now Available
...sk (Reported by Roman Bedros) * ASTERISK-25237 - stasis_cache.c:845 caching_topic_exec: - misleading ERROR message (Reported by Smirnov Aleksey) * ASTERISK-26857 - chan_pjsip: Dialplan function race condition (Reported by Joshua Colp) * ASTERISK-26822 - pjsip/cli_commands: pjsip show channelstats shows wrong codec (Reported by Kevin Harwell) * ASTERISK-26353 - res_musiconhold: musiconhold seems to think that the general section is a class and issues warning (Reported by Jonathan Harris) * ASTERISK-26685 - res_pjsip: Crash when using...
2019 Dec 24
0
Certified Asterisk 16.3-cert1 Now Available
...ssage (Reported by Smirnov Aleksey) - [ASTERISK-26857 <https://issues.asterisk.org/jira/browse/ASTERISK-26857>] - chan_pjsip: Dialplan function race condition (Reported by Joshua C. Colp) - [ASTERISK-26822 <https://issues.asterisk.org/jira/browse/ASTERISK-26822>] - pjsip/cli_commands: pjsip show channelstats shows wrong codec (Reported by Kevin Harwell) - [ASTERISK-26353 <https://issues.asterisk.org/jira/browse/ASTERISK-26353>] - res_musiconhold: musiconhold seems to think that the general section is a class and issues warning (Reported by Jonathan Harris) -...