[syslinux] Comboot Menu
H. Peter Anvin
hpa at zytor.com
Sun Feb 1 17:07:16 PST 2004
Murali Krishnan Ganapathy wrote:
>
> > You can download this from
> http://people.cs.uchicago.edu/~gmurali/gui/comboot/tui.tgz.
>
> > * For some reason I haven't figured out, the color palette of the
> syslinux display changes if I exit out of the menu. If somebody finds
> out why, I'd appreciate knowing it so I can fix it.
>
I think I've found your problem:
void asm_cursorshape(char start, char end);
#pragma aux asm_cursorshape = \
"mov ah, 10h " \
"int 10h" \
parm [ch] [cl] \
modify [ah];
void cursoroff() // Doesn't seem to work? (DOS box in windows)
{
asm_cursorshape(38,3); // Start and end scan lines, 32 = invisible
}
void cursoron() // Doesn't seem to work in a DOS box
{
asm_cursorshape(6,7);
}
It doesn't work because you're calling the wrong function -- function
AH=10h is the palette control; you want AH=01h.
-hpa
More information about the Syslinux
mailing list