pritamzope / OS

Writing & Making Operating System and Kernel parts so simple like Hello World Programs, Starting from writing Bootloaders, Hello World Kernel, GDT, IDT, Terminal, Keyboard/Mouse, Memory Manager, HDD ATA R/W, VGA/VESA Graphics
http://createyourownos.blogspot.com
663 stars 103 forks source link

How to set cursor location? #4

Closed ghost closed 4 years ago

ghost commented 5 years ago

Title says it all. @pritamzope

ghost commented 5 years ago

@pritamzope come on

pritamzope commented 5 years ago

https://github.com/pritamzope/OS/tree/master/Bootloader/Sample

ghost commented 5 years ago

https://github.com/pritamzope/OS/tree/master/Bootloader/Sample

Is it possible to do it in c?

AtieP commented 4 years ago

@Hampusm To get cursor position, use ah = 03 | int 10h. This returns:

Hope this helps.

AtieP commented 4 years ago

Ah sorry, I readed "how to GET cursor position" 😅 Use ah = 02 | int 10h to set cursor position. You need to include these parameters:

ghost commented 4 years ago

@AtieP Oh my god thank you! Finally! Took you 1 year but still. Thank you.

AtieP commented 4 years ago

No problem @Hampusm :smiley: