[syslinux] Menu system bug - MENU DEFAULT not working

Matt Fleming matt at console-pimps.org
Mon Oct 15 02:16:16 PDT 2012


On Fri, 2012-10-12 at 15:28 +0200, Ady wrote:
> Subject:        	Re: [syslinux] Menu system bug - MENU DEFAULT not 
> working
> Date sent:      	Fri, 12 Oct 2012 13:18:53 +0100
> 
> > 
> > Can you please send me the config file that reproduces this bug?
> > 
> > -- 
> > Matt Fleming, Intel Open Source Technology Center
> > 
> 
> I think I have a pattern. With the following cfg file (mainly 
> extracted from Slax 7 testing, Tomas' work), the pattern I see is:
> 
> 1_ Boot ldlinux.sys + menu.c32 v.4.06pre13.
> 2_ Twice [ENTER].
> 3_ One time the "UP" arrow key.
> 4_ Twice [ENTER].
> 5_ One time the "DOWN" arrow key.
> 6_ Twice [ENTER].
> 
> When I press the last [ENTER] (the second of step #6 above) I see a 
> "jump".

Thanks Ady, I can reproduce your issue from this config. The reason that
you're seeing the "jump" is because of the "stickiness" of the last
selected entry that we discussed before. I traced through the state
changes in the config file and this is what I found (let's say menu
entries start at 0),

Start:
1.	MENU 1101 - Entry 1 selected

			[Press Enter]

2.	MENU 1001 - Entry 1 selected

			[Press Enter]

3.	MENU 1101 - Entry 1 selected

			[Press up arrow]

4.	MENU 1101 - Entry 0 selected

			[Press Enter]

5.	MENU 0100 - Entry 0 selected

			[Press Enter]

6.	MENU 1100 - Entry 0 selected

			[Down arrow key]

7.	MENU 1100 - Entry 1 selected

			[Press Enter]

8.	MENU 1001 - Entry 1 selected

			[Press Enter]

9.	MENU 1101 - Entry 0 selected


Now if you look at transition 3-4 you can see that we selected entry 0
of menu 1101 and then in step 5 we move away from menu 1101 to menu
0100. Now, if we ever go back to menu 1101 we will select the last
selected entry, namely entry 0. Sure enough, we return to menu 1101 in
transition 8-9 and so we select entry 0.

-- 
Matt Fleming, Intel Open Source Technology Center




More information about the Syslinux mailing list