VESA back to text mode

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
AndrewAPrice
Member
Member
Posts: 2309
Joined: Mon Jun 05, 2006 11:00 pm
Location: USA (and Australia)

VESA back to text mode

Post by AndrewAPrice »

I seem to be posting a lot of questions lately.

Say I'm in protected mode and I've got 800x600x24bpp VESA enabled, how would I return to text mood?

Everything is about switching from text -> VESA, but I want to know how to switch back for things like kernel panic messages.
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Post by Combuster »

The same way you got there. If you set the video mode from real mode (like GRUB) the easiest way is to leave protected mode and call int 0x10 once again. For panics and such you can freeze the computer after that.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
Post Reply