Ejemplo n.º 1
0
VOID
TextSetCursorPosition(
    IN ULONG X,
    IN ULONG Y
    )

/*++

Routine Description:

    Moves the location of the software cursor to the specified X,Y position
    on screen.

Arguments:

    X - Supplies the X-position of the cursor

    Y - Supplies the Y-position of the cursor

Return Value:

    None.

--*/

{
    TextColumn = (USHORT)X;
    TextRow = (USHORT)Y;

    if(DbcsLangId) {
        TextGrPositionCursor((USHORT)Y,(USHORT)X);
    } else {
        TextTmPositionCursor((USHORT)Y,(USHORT)X);
    }
}
Ejemplo n.º 2
0
//
// set cursor position
//
VOID TextSetCursorPosition(__in ULONG X,__in ULONG Y)
{
	TextColumn											= static_cast<USHORT>(X);
	TextRow												= static_cast<USHORT>(Y);

	if(DbcsLangId)
		TextGrPositionCursor(TextRow,TextColumn);
	else
		TextTmPositionCursor(TextRow,TextColumn);
}