Possibility for keyboard functions in "ipxe's menu system"? - Printable Version +- iPXE discussion forum (https://forum.ipxe.org) +-- Forum: iPXE user forums (/forumdisplay.php?fid=1) +--- Forum: General (/forumdisplay.php?fid=2) +--- Thread: Possibility for keyboard functions in "ipxe's menu system"? (/showthread.php?tid=6788) |
Possibility for keyboard functions in "ipxe's menu system"? - Torgeir - 2013-01-04 09:00 Hi! Was wondering if it could be possible to have/add keyboard functions in ipxe's build in menu system. Like, "backspace" to go back, instead of having an menu entry "back/prev", with "goto prev_stage". Makes any sense? Torgeir RE: Possibility for keyboard functions in "ipxe's menu system"? - mcb30 - 2013-01-04 09:23 (2013-01-04 09:00)Torgeir Wrote: Was wondering if it could be possible to have/add keyboard functions in ipxe's build in menu system. There's no concept of "back/prev" built in to the menu system; it doesn't retain state between menus. The best way to achieve what you want is probably to include a "back/prev" entry in each of your menus, with the shortcut key set to backspace. Michael RE: Possibility for keyboard functions in "ipxe's menu system"? - Torgeir - 2013-01-04 09:54 The concept of shortcut keys is working perfectly But I cannot get the code for backspace to work. Using the key "b" for testing, works as intended. For backspace I've tried (both entries): #define BACKSPACE CTRL_H #define KEY_BACKSPACE BACKSPACE Backspace in lowercase. All examples. Code: item --key BACKSPACE prev_stage * Prev Am I missing something? Torgeir Nevermind. Found it: Quote:# grep -R "BACKSPACE" * Torgeir RE: Possibility for keyboard functions in "ipxe's menu system"? - mcb30 - 2013-01-04 10:28 (2013-01-04 09:54)Torgeir Wrote: The concept of shortcut keys is working perfectly As I think you already figured out, you need to use the literal value for backspace (0x08): Code: item --key 0x08 prev_stage * Prev Michael RE: Possibility for keyboard functions in "ipxe's menu system"? - Torgeir - 2013-01-04 14:49 Yeah. But thanks anyway Torgeir |