[syslinux] submenus and menu title

Gene Cumm gene.cumm at gmail.com
Sat Sep 15 11:07:04 PDT 2012


To start over:

1) Attached image is of the top menu from the attached config file.
2) Use of "LABEL", "MENU LABEL" or "LABEL"; "MENU LABEL" to pre-label
a submenu generates visual errors.  Results from these 12 attempts
should be ignored but are included in the end config/image for
completeness.
3) Further statements of this email (not necessarily thread) shall
only discuss the remaining valid cases (4).

Observed behavior is that the tagname is never used for the title of
the submenu, the "MENU TITLE" of the submenu overrides the tagname for
display in the parent menu and the submenu does not have a title
unless explicitly set.

The inheritance clause in the docs would lead one to expect the title
of a submenu to be inherited from the parent unless overriden however
no title is observed (conflict).  I feel it would be better to have
this behavior documented and a new directive "MENU TITLEAPPEND" (or
the like) added.  Having a submenu inherit the title as-is could lead
to confusion in the context of what menu a user is actually observing.
 The effect of using "MENU GOTO" must also be considered to prevent
overly long titles/

When a submenu has a "MENU TITLE" directive, the tagname is solely
used for jumping via "MENU GOTO".  It does, in this context, make
sense that the submenu item string comes from the submenu's "MENU
TITLE".  It may be beneficial to have a new directive to override this
to the effect of "MENU PARENTLABEL Label In Parent Menu".

Ady, would you concur with these observations?

How do you feel about my assessments and opinions?

-- 
-Gene
-------------- next part --------------
# test config for menu.c32

UI vesamenu.c32

MENU TITLE Title-Global
#MENU VSHIFT -1
	# can't shift up
MENU ROWS 24
MENU TABMSGROW 30
MENU CMDLINEROW 30
MENU HELPMSGROW 31
MENU HELPMSGENDROW 32
MENU HIDDENROW 0

MENU RESOLUTION 800 600
menu color screen	37;40      #00ffffff #ff000000 std
menu color border	30;44      #00000000 #ff000000 none
menu color title	1;36;44    #c00090f0 #ff000000 std
menu color unsel	37;44      #90ffffff #ff000000 std
menu color hotkey	1;37;44    #ffffffff #ff000000 std
menu color sel		7;37;40    #e0000000 #ffff8000 all
menu color hotsel	1;7;37;40  #e0400000 #ffff8000 all
menu color tabmsg	31;40      #90ffff00 #ff000000 std

# 	1label/2menulabel/3l+ml menutitle tagname

MENU BEGIN
  LABEL 000
	LINUX l
MENU END

MENU BEGIN tag-001
  LABEL 001
	LINUX l
MENU END

MENU BEGIN
  MENU TITLE title-010
  LABEL 010
	LINUX l
MENU END

MENU BEGIN tag-011
  MENU TITLE title-011
  LABEL 011
	LINUX l
MENU END

## ALL rows after this are technically errors

LABEL l100
MENU BEGIN
  LABEL 100
	LINUX l
MENU END

LABEL l101
MENU BEGIN tag-101
  LABEL 101
	LINUX l
MENU END

LABEL l110
MENU BEGIN
  MENU TITLE title-110
  LABEL 110
	LINUX l
MENU END

LABEL l111
MENU BEGIN tag-111
  MENU TITLE title-111
  LABEL 111
	LINUX l
MENU END

MENU LABEL ml-200
MENU BEGIN
  LABEL 200
	LINUX l
MENU END

MENU LABEL ml-201
MENU BEGIN tag-201
  LABEL 201
	LINUX l
MENU END

MENU LABEL ml-210
MENU BEGIN
  MENU TITLE title-210
  LABEL 210
	LINUX l
MENU END

MENU LABEL ml-211
MENU BEGIN tag-211
  MENU TITLE title-211
  LABEL 211
	LINUX l
MENU END

LABEL l300
MENU LABEL ml-300
MENU BEGIN
  LABEL 300
	LINUX l
MENU END

LABEL l301
MENU LABEL ml-301
MENU BEGIN tag-301
  LABEL 301
	LINUX l
MENU END

LABEL l310
MENU LABEL ml-310
MENU BEGIN
  MENU TITLE title-310
  LABEL 310
	LINUX l
MENU END

LABEL l311
MENU LABEL ml-311
MENU BEGIN tag-311
  MENU TITLE title-311
  LABEL 311
	LINUX l
MENU END
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 120915-1332b.png
Type: image/png
Size: 8308 bytes
Desc: not available
URL: <http://www.zytor.com/pipermail/syslinux/attachments/20120915/e44549d5/attachment.png>


More information about the Syslinux mailing list