Displaying 10 results from an estimated 10 matches for "key_none".
Did you mean:
deny_none
2012 May 04
3
[GIT PULL] elflink fixes
...key = get_key(stdin, 0);
- t = 0 - t0;
+ /* kbdtimeout only applies to the first character */
+ if (*kbd_to)
+ *kbd_to = 0;
- if (totaltimeout <= t)
- longjmp(timeout_jump, 1);
+ t1 = times(NULL) - t0;
+ if (*tto) {
+ /* Timed out. */
+ if (*tto <= (long long)t1)
+ key = KEY_NONE;
+ else {
+ /* Did it wrap? */
+ if (*tto > totaltimeout)
+ key = KEY_NONE;
- totaltimeout -= t;
-
- if (key != KEY_NONE) {
- //dprintf("get key 0x%x", key);
- return key;
- }
-
- if (timeout) {
- if (timeout <= t) {
- //dprintf("timeout");
- return K...
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
2015 Mar 14
0
[PATCH 0/1] EFI access from Com32 modules
...hcp.h>
+#include <limits.h>
+
+#ifndef __FIRMWARE_BIOS__
+
+#include <syslinux/firmware.h>
+#include "../../efi/efi.h"
+
+#endif
+
+
+
+#ifdef __FIRMWARE_BIOS__
+
+int pressanykey(void) {
+ int inc;
+
+ printf("Press any key to continue. ");
+ inc = KEY_NONE;
+ while (inc == KEY_NONE)
+ inc = get_key(stdin, 6000);
+ puts("");
+ return inc;
+}
+
+int doTheJob(void)
+{
+
+ printf("This Com32 instance of elf_bios_efi.c32 is running on a BIOS environment\n");
+ pressanykey();
+
+ return 0;
+}
+
+#else
+
+char efi_getchar...
2010 May 30
1
[RFC PATCH] menu: support single key booting
...-854,7 +855,12 @@ static const char *run_menu(void)
}
this_timeout = min(min(key_timeout, timeout_left), (clock_t) CLK_TCK);
- key = mygetkey(this_timeout);
+
+ if (hotkey && me->commit)
+ key = KEY_ENTER;
+ else
+ key = mygetkey(this_timeout);
+ hotkey = 0;
if (key != KEY_NONE) {
timeout_left = key_timeout;
@@ -1071,7 +1077,7 @@ static const char *run_menu(void)
if (cm->menu_hotkeys[key]) {
key_timeout = 0;
entry = cm->menu_hotkeys[key]->entry;
- /* Should we commit at this point? */
+ hotkey = 1;
}
}
break;
diff -...
2009 Mar 05
0
[PATCH 5/5] COM32/rosh: Improvements
...cgetattr(0, &ntio);
-// rosh_print_tc(&ntio);
}
/*
@@ -233,9 +252,7 @@ void rosh_console_raw()
*/
void rosh_console_std()
{
-// struct termios itio, ntio;
console_ansi_std();
-// tcsetattr(0, TCSANOW, &itio);
}
/*
@@ -247,11 +264,8 @@ int rosh_getkey()
int inc;
inc = KEY_NONE;
-// rosh_console_raw();
- while (inc == KEY_NONE){
+ while (inc == KEY_NONE)
inc = get_key(stdin, 6000);
- }
-// rosh_console_std();
return inc;
} /* rosh_getkey */
@@ -297,6 +311,7 @@ void rosh_cat(const char *cmdstr, const char *pwdstr)
fclose(f);
} else {
rosh_error(errno, &...
2010 Jun 27
1
[PATCH] ROSH: Upgraded
...- */
-void rosh_console_std(void)
-{
-// struct termios itio, ntio;
- console_ansi_std();
-// tcsetattr(0, TCSANOW, &itio);
-}
-
-/*
* Attempts to get a single key from the console
* returns key pressed
*/
@@ -257,37 +250,45 @@ int rosh_getkey(void)
int inc;
inc = KEY_NONE;
-// rosh_console_raw();
- while (inc == KEY_NONE) {
+ while (inc == KEY_NONE)
inc = get_key(stdin, 6000);
- }
-// rosh_console_std();
return inc;
} /* rosh_getkey */
-/* Template for command functions
- * cmdstr command string to process
- * pwdstr Present Working Di...
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
2009 Feb 15
2
COM32 module: Read-Only shell
...* Switches back to standard getline mode.
+ */
+void rosh_console_std()
+{
+// struct termios itio, ntio;
+ console_ansi_std();
+// tcsetattr(0, TCSANOW, &itio);
+}
+
+/*
+ * Attempts to get a single key from the console
+ * returns key pressed
+ */
+int rosh_getkey()
+{
+ int inc;
+
+ inc = KEY_NONE;
+// rosh_console_raw();
+ while (inc == KEY_NONE){
+ inc = get_key(stdin, 6000);
+ }
+// rosh_console_std();
+ return inc;
+} /* rosh_getkey */
+
+/* Template for command functions
+ * cmdstr command string to process
+ * pwdstr Present Working Directory string
+ * ipwdstr Initial PWD
+ */
+voi...
2015 Feb 20
6
[PATCH 0/1] EFI image booting capabilities
This patch adds to the core EFI image booting capabilities.
It was tested on VMware EFI clients and HP Elitebook EFI notebooks,
only on PXE environments but it should work on non-PXE scenarios as well.
Feedback appreciated.
Best,
Patrick
Signed-off-by: Patrick Masotta <masottaus at yahoo.com>
---
diff -uprN a/com32/elflink/ldlinux/execute.c b/com32/elflink/ldlinux/execute.c
---
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