Aaron McSorley
2004-Apr-05 16:28 UTC
[syslinux] Comboot menu crashes when it goes off screen
It works! Now, is there a way to use this handler multiple times so different submenus can have different position values. -Aaron On Fri, 2 Apr 2004, ganapathy murali krishnan wrote:> You write your own menupos_handler (like in complex.c) and register the > handler. > > So all you need to do is to copy the code for the menupos_handler from > complex.c and modify it to suit yourself.. > and add the line > > "reg_handler(NULL,&menupos_handler);" before you start creating the menu > entries. > > - Murali > > Aaron McSorley wrote: > > >Ok, but can you give an example of how to do this in simple.c > > > > > >On Fri, 2 Apr 2004, ganapathy murali krishnan wrote: > > > > > > > >>Let me know if it works... Then I can submit this patch to SYSLINUX. > >> > >>- Murali > >> > >> > >> > > > > > > > > > > > > >
ganapathy murali krishnan
2004-Apr-05 17:19 UTC
[syslinux] Comboot menu crashes when it goes off screen
It is possible to do that easily (almost trivial change). But the question is whether it should be done. In your menupos_handler, you get the menulevel as a parameter. So in your case (4 menu's arch -> mboard -> vendor -> revision) each of the menu's will come with a different value of menulevel (0=arch, 1=mboard, 2=vendor, 3=revision). So you should be able to decide the position based on that. Actually I did think about it for some time, whether I should give the exact menu also as a parameter. I decided that the general look and feel of the system should only depend on the parent menu's position, the selected item and level of submenu. In particular it should not depend on the actual submenu chosen. But I am open for arguments as to why I should let it depend on the actual menu in question. - Murali Aaron McSorley wrote:>It works! > >Now, is there a way to use this handler multiple times so different >submenus can have different position values. > >-Aaron > > >On Fri, 2 Apr 2004, ganapathy murali krishnan wrote: > > > >>You write your own menupos_handler (like in complex.c) and register the >>handler. >> >>So all you need to do is to copy the code for the menupos_handler from >>complex.c and modify it to suit yourself.. >>and add the line >> >>"reg_handler(NULL,&menupos_handler);" before you start creating the menu >>entries. >> >>- Murali >> >>Aaron McSorley wrote: >> >> >> >>>Ok, but can you give an example of how to do this in simple.c >>> >>> >>>On Fri, 2 Apr 2004, ganapathy murali krishnan wrote: >>> >>> >>> >>> >>> >>>>Let me know if it works... Then I can submit this patch to SYSLINUX. >>>> >>>>- Murali >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>> >> >> >> > > >_______________________________________________ >SYSLINUX mailing list >Submissions to SYSLINUX at zytor.com >Unsubscribe or set options at: >http://www.zytor.com/mailman/listinfo/syslinux >Please do not send private replies to mailing list traffic. > > > >