[ipxe-devel] Entering String in menu-context possible?

Oliver Rath rath at mglug.de
Tue Apr 16 07:13:58 UTC 2013


Hi Michael!

Am 15.04.2013 15:28, schrieb Michael Brown:
> [..]
> That's almost exactly why I'm wary of adding this feature: people will
> expect that ability.

I understand your fearness. At next people would like to have
emacs-functionality, mouse actions (in new uefi-bioses i saw this!) and
videoplayers in ipxe ;-)

>
> Unfortunately, that wouldn't help in terms of byte count.  "config"
> and "login" already share the framework for edit boxes, which is
> abstracted out into editbox.c; there's no viable way I can see to
> share more code between these.
>
> I'm happy to add an "edit" command which will create a single
> horizontally-scrollable edit box, which can be exited only via Enter,
> Ctrl-C, or Escape.  If this isn't going to be sufficient, then I'd
> rather not add the feature at all, and leave "read" as the only way to
> prompt the user for input.

An edit-command is absolutely sufficient for me!

If someone want to have more, there could be a kind of chainloadable
overlay for implementing your own ideas senseful, but this is really
optional. I.e. the syslinux framework implements a compileable
menu-framework for complex menus as described here:

http://git.kernel.org/cgit/boot/syslinux/syslinux.git/tree/menu/README?id=ed67201fcc004ccb0eb20e5489d71ed69cfb7428

But in my case, "edit" satisfies all my needs.

Regards,
Oliver





More information about the ipxe-devel mailing list