Displaying 16 results from an estimated 16 matches for "key_ctrl".
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
2011 Mar 16
0
[GIT PULL] elflink changes
...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);
+
+ if (key == KEY_CTRL('C')) {
+ return NULL;
+ } else if (key == KEY_CTRL('R')) {
+ if (i == 0)
+ continue; /* User typed nothing yet */
+ /* User typed 'CTRL-R' again, so try the next */
+ last_found = list_entry(last_found->list.next, typeof(*last_found), list);
+ } else if...
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
2014 Sep 06
2
keystrokes
...l-M _is_ Enter, in some sense.
> --
> Regards,
> Feri.
Please forgive my ignorance (I am not a developer). Where in the
Syslinux code we can find that [Ctrl-M] is "CR"?
For example, in "./com32/elflink/ldlinux/cli.c", line 219, we can
see:
case KEY_ENTER:
case KEY_CTRL('J'):
ret = cmdline;
done = true;
break;
So I can see that [Ctrl-J] has the same effect as [Enter] in the
Syslinux CLI.
But I can't find [Ctrl-M], or rather, I don't know how to find it.
As with other keystroke combinations that are not listed or
mentioned, I wou...
2014 Sep 06
0
keystrokes
...Where in the
> Syslinux code we can find that [Ctrl-M] is "CR"?
Read http://en.wikipedia.org/wiki/ASCII: the CR ASCII control character
is typed in as Ctrl-M.
> For example, in "./com32/elflink/ldlinux/cli.c", line 219, we can
> see:
> case KEY_ENTER:
> case KEY_CTRL('J'):
> ret = cmdline;
> done = true;
> break;
>
> So I can see that [Ctrl-J] has the same effect as [Enter] in the
> Syslinux CLI.
>
> But I can't find [Ctrl-M], or rather, I don't know how to find it.
>
> As with other keystroke combin...
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 +
2012 May 04
3
[GIT PULL] elflink fixes
...clock_t *tto)
{
int key;
int i = 0;
@@ -83,7 +72,7 @@ static const char * cmd_reverse_search(int *cursor)
eprintf("\033[1G\033[1;36m(reverse-i-search)`': \033[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)...
2014 Sep 06
0
keystrokes
Ady <ady-sf at hotmail.com> writes:
>> On Sat, Sep 6, 2014 at 8:18 AM, Ady <ady-sf at hotmail.com> wrote:
>>
>>> What actions are _supposed_ to be triggered by each of:
>>>
>>> [Ctrl-J]
>>> [Ctrl-M]
>>>
>>> in the Syslinux command line in version 6.03-pre20?
>>
>> They should do nothing special but
2012 Sep 05
4
Final line of menu selectable even if it is disabled
I have a menu conf as follows:
LABEL enabled, use as item
LABEL disabled, use as description
SEPARATOR
LABEL enabled, use as item
LABEL disabled, use as description
In this situation, I expect the cursors to be able to select from only the two enabled lines.
However, the final disabled line is also selectable.
Even if I put a final separator and/or disabled label the final line of the menu
2014 Sep 06
3
keystrokes
> On Sat, Sep 6, 2014 at 8:18 AM, Ady <ady-sf at hotmail.com> wrote:
> > Hello Syslinux Team,
> >
> > What actions are _supposed_ to be triggered by each of:
> >
> > [Ctrl-J]
> > [Ctrl-M]
> >
> > in the Syslinux command line in version 6.03-pre20?
>
> They should do nothing special but either might be interpreted like an
2011 Apr 16
20
[PATCH 00/20] Switch to ELF modules
From: Matt Fleming <matt.fleming at linux.intel.com>
This series fixes some bugs and switches the elflink branch to be
entirely ELF modules. It applies on top of,
http://syslinux.zytor.com/archives/2011-April/016369.html
The deletions in the diff stat below are mainly from deleting
com32/elflink/modules (finally!). Now there should be no duplicate
code because we don't need COM32 and
2012 Nov 02
10
[PATCH 0/9] elflink fixes
From: Matt Fleming <matt.fleming at intel.com>
Here are the patches that I've got queued up based on the very helpful
feedback I received from people testing Syslinux 5.00-pre9. Unless
anyone has any concerns these will make it into Syslinux 5.00-pre10.
Matt Fleming (9):
pxe: Don't call open_config() from the pxe core
ldlinux: Print a warning if no config file is found
2009 Mar 05
0
[PATCH 5/5] COM32/rosh: Improvements
...nt, buflen, bufpos);
memcpy(scrbuf, bufp, bufcnt);
scrbuf[bufcnt] = 0;
printf("%s", scrbuf);
bufp = bufeol;
bufpos += bufcnt;
- if (bufpos == buflen) break;
+ if (bufpos == buflen)
+ break;
inc = rosh_getkey();
numln = 1;
- switch (inc){
+ switch (inc) {
case KEY_CTRL('c'): case 'q': case 'Q':
bufpos = buflen; break;
case ' ':
numln = rows - 1;
-// default:
}
}
-/*tcgetattr(0, &tio);
-rosh_print_tc(&tio);
-printf("\n--END\n");*/
} /* rosh_more_buf */
/* Page through a single file using the op...
2009 Feb 15
2
COM32 module: Read-Only shell
...feol - bufp;
+printf("--(%d/%d @%d)\n", bufcnt, buflen, bufpos);
+ memcpy(scrbuf, bufp, bufcnt);
+ scrbuf[bufcnt] = 0;
+ printf("%s", scrbuf);
+ bufp = bufeol;
+ bufpos += bufcnt;
+ if (bufpos == buflen) break;
+ inc = rosh_getkey();
+ numln = 1;
+ switch (inc){
+ case KEY_CTRL('c'): case 'q': case 'Q':
+ bufpos = buflen; break;
+ case ' ':
+ numln = rows - 1;
+// default:
+ }
+ }
+/*tcgetattr(0, &tio);
+rosh_print_tc(&tio);
+printf("\n--END\n");*/
+} /* rosh_more_buf */
+
+/* Page through a single file using the o...
2013 Oct 15
23
[PATCH 00/21] Upgrade to Lua 5.2.2, add filesystem module and get_key binding
Hi,
This series targets automatic boot menu generation, but most of it
is the Lua upgrade, because I got tired reading deprecated API docs.
It's mostly a straightforward forward port of the earlier Syslinux
specific changes to Lua 5.1, except that:
* I chose the add a stub getenv() implementation to the COM32 API
instead of #ifdefing out all the references in Lua, and
* I kept oslib
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