diff options
author | Matt Fleming <matt.fleming@intel.com> | 2011-11-25 16:22:44 +0000 |
---|---|---|
committer | Matt Fleming <matt.fleming@intel.com> | 2011-12-02 12:13:31 +0000 |
commit | 1e4789d4bd9db075929b03015826e4996cb0a37a (patch) | |
tree | a283a88884af791d8e294b4d658b503d4732ec07 /com32/libutil/include | |
parent | 086d698c642f0b8901757a40cef56b04d05bf19c (diff) | |
download | syslinux-1e4789d4bd9db075929b03015826e4996cb0a37a.tar.gz syslinux-1e4789d4bd9db075929b03015826e4996cb0a37a.tar.xz syslinux-1e4789d4bd9db075929b03015826e4996cb0a37a.zip |
ldlinux: Accept commands from the serial console
To mimic the old (pre-elflink) command-line interface behaviour let's
use getchar() instead of reading from stdin. This way, if the user
types a command on the serial console it will actually be executed.
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Diffstat (limited to 'com32/libutil/include')
-rw-r--r-- | com32/libutil/include/getkey.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/com32/libutil/include/getkey.h b/com32/libutil/include/getkey.h index a46de812..0733723b 100644 --- a/com32/libutil/include/getkey.h +++ b/com32/libutil/include/getkey.h @@ -77,8 +77,11 @@ #define KEY_MAX 0x012a +#define KEY_MAXLEN 8 + int get_key(FILE *, clock_t); int key_name_to_code(const char *); const char *key_code_to_name(int); +int get_key_decode(char *, int, int *); #endif /* LIBUTIL_GETKEY_H */ |