Jodok Ole Muellers
2009-Oct-22 08:34 UTC
[syslinux] menu.c32 selection bar visibility on serial console
Hello,
I am using a menu with the help of menu.c32 which
looks like this on a serial console (HP ILO Virtual Serial Port):
+----------------------------------------------------------+
| Main |
----------------------------------------------------------
| |
| Boot from Harddisk (C:) |
| WDS - Windows Deployment Services |
| Debian --> |
| Redhat --> |
| Ubuntu --> |
| Other --> |
| EXIT/Abort PXE |
| |
| |
| |
| |
+----------------------------------------------------------+
Unfortunately it's not possible to see what is selected
while navigating through this menu with the up/down keys.
This is the pxelinux.cfg/default:
DEFAULT menu.c32
PROMPT 0
TIMEOUT 600
MENU TITLE Main
MENU SEPARATOR
MENU NOTABMSG
MENU COLOR sel 1;7;37;40 #e0000000 #20ff8000 all
LABEL 0
MENU LABEL Boot from Harddisk
MENU default
LOCALBOOT 0
TYPE 0x80
LABEL 1
MENU LABEL WDS - Windows Deployment Services
KERNEL pxeboot.0
LABEL 2
MENU LABEL Debian -->
MENU INDENT 2
KERNEL menu.c32
HELP
APPEND pxelinux.cfg/debian.menu
LABEL 3
MENU LABEL Redhat -->
MENU INDENT 2
KERNEL menu.c32
APPEND pxelinux.cfg/redhat.menu
LABEL 4
MENU LABEL Ubuntu -->
MENU INDENT 2
KERNEL menu.c32
APPEND pxelinux.cfg/ubuntu.menu
LABEL 5
MENU LABEL Other -->
MENU INDENT 2
KERNEL menu.c32
APPEND pxelinux.cfg/other.menu
LABEL 99
MENU LABEL EXIT/Abort PXE
KERNEL abortpxe.0
My understanding of http://syslinux.zytor.com/wiki/index.php/Comboot/menu.c32
is that "MENU COLOR sel 1;7;37;40 #e0000000 #20ff8000 all" should
display
the selection bar with these (ANSI?) attributes:
sel Selection bar
1 set bold
7 set reverse video
37 set white foreground
40 set black background
I believe that these ANSI attributes are only available on a advanced terminal
(xterm,linux,vt220)
but not on a serial console.
Is there any way to make the selection bar visible on a serial console ?
E.g. by putting a "*" in front front of the selected item, or enclose
the > selected item with < less-than,greater-than ?
Regards
Jodok
Stillwell, Bryan
2009-Oct-22 18:27 UTC
[syslinux] menu.c32 selection bar visibility on serial console
On Thu, 2009-10-22 at 08:34 +0000, Jodok Ole Muellers wrote:> Is there any way to make the selection bar visible on a serial console ? > E.g. by putting a "*" in front front of the selected item, or enclose the > selected item with < less-than,greater-than ?I implemented a network install system for my group at HP with pxelinux and we would also like such a feature. Currently we can tell which item is selected by watching the cursor update the screen, but using a symbol to identify the current selection would be great! Thanks, Bryan
On most serial ports I've seen used, the indicator is just a _ somewhere on the line, haven't played with this over a serial port recently but that's usually how it works. - John "Warthog9" Hawley Jodok Ole Muellers wrote:> Hello, > > I am using a menu with the help of menu.c32 which > looks like this on a serial console (HP ILO Virtual Serial Port): > > > +----------------------------------------------------------+ > | Main | > ---------------------------------------------------------- > | | > | Boot from Harddisk (C:) | > | WDS - Windows Deployment Services | > | Debian --> | > | Redhat --> | > | Ubuntu --> | > | Other --> | > | EXIT/Abort PXE | > | | > | | > | | > | | > +----------------------------------------------------------+ > > > Unfortunately it's not possible to see what is selected > while navigating through this menu with the up/down keys. > > This is the pxelinux.cfg/default: > > > DEFAULT menu.c32 > PROMPT 0 > TIMEOUT 600 > > MENU TITLE Main > MENU SEPARATOR > MENU NOTABMSG > MENU COLOR sel 1;7;37;40 #e0000000 #20ff8000 all > > LABEL 0 > MENU LABEL Boot from Harddisk > MENU default > LOCALBOOT 0 > TYPE 0x80 > > LABEL 1 > MENU LABEL WDS - Windows Deployment Services > KERNEL pxeboot.0 > > LABEL 2 > MENU LABEL Debian --> > MENU INDENT 2 > KERNEL menu.c32 > HELP > APPEND pxelinux.cfg/debian.menu > > LABEL 3 > MENU LABEL Redhat --> > MENU INDENT 2 > KERNEL menu.c32 > APPEND pxelinux.cfg/redhat.menu > > LABEL 4 > MENU LABEL Ubuntu --> > MENU INDENT 2 > KERNEL menu.c32 > APPEND pxelinux.cfg/ubuntu.menu > > LABEL 5 > MENU LABEL Other --> > MENU INDENT 2 > KERNEL menu.c32 > APPEND pxelinux.cfg/other.menu > > LABEL 99 > MENU LABEL EXIT/Abort PXE > KERNEL abortpxe.0 > > > > My understanding of http://syslinux.zytor.com/wiki/index.php/Comboot/menu.c32 > is that "MENU COLOR sel 1;7;37;40 #e0000000 #20ff8000 all" should display > the selection bar with these (ANSI?) attributes: > > sel Selection bar > 1 set bold > 7 set reverse video > 37 set white foreground > 40 set black background > > I believe that these ANSI attributes are only available on a advanced terminal (xterm,linux,vt220) > but not on a serial console. > > > Is there any way to make the selection bar visible on a serial console ? > E.g. by putting a "*" in front front of the selected item, or enclose the > selected item with < less-than,greater-than ? > > > > Regards > Jodok > > > > > > > > _______________________________________________ > 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.