Cursor position
Posted: Sat Sep 27, 2003 12:47 pm
Hi!
How do I get & set the position of the cursor (textcursor)?
How do I get & set the position of the cursor (textcursor)?
The Place to Start for Operating System Developers
https://forum.osdev.org/
Code: Select all
void kconsoleGoto(char _X, char _Y) {
asm("mov $0, %bh \n\t
mov %0, %dl \n\t
mov %1, %dh \n\t" : : "0" (_X), "1" (_Y));
asm("int 0x10");
}
Code: Select all
asm("mov %0,%%edx; " OTHER_OPERATIONS:"g"(x));
Code: Select all
asm(OTHER_OPERATIONS:"d"(x));
Code: Select all
void kconsoleGoto(char _X, char _Y) {
asm("mov $0, %%bh \n\t
mov %0, %%dl \n\t
mov %1, %%dh \n\t int 0x10\n\t" : : "g" (_X), "g" (_Y));
}