What text mode does GRUB 0.97 use?

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
jasonc122
Member
Member
Posts: 27
Joined: Fri Jan 01, 2010 7:51 am

What text mode does GRUB 0.97 use?

Post by jasonc122 »

Hi,

What text mode does GRUB 0.97 use once it has loaded an OS image?

Thanks.
H Technology Solutions - Business Operating System Specialists
User avatar
Creature
Member
Member
Posts: 548
Joined: Sat Dec 27, 2008 2:34 pm
Location: Belgium

Re: What text mode does GRUB 0.97 use?

Post by Creature »

If you mean what "resolution" then I guess it would be whatever is default? AFAIK GRUB doesn't explicitely set a mode. 80x25 is what I always assume.
When the chance of succeeding is 99%, there is still a 50% chance of that success happening.
User avatar
gravaera
Member
Member
Posts: 737
Joined: Tue Jun 02, 2009 4:35 pm
Location: Supporting the cause: Use \tabs to indent code. NOT \x20 spaces.

Re: What text mode does GRUB 0.97 use?

Post by gravaera »

Hello,

Actually, it should be fully possible to write a VGA text mode driver that is independent of the current resolution (cols x rows).

You may read the number of rows x cols for the current text mode from the BIOS Data Area, and store them into a variable in your console class. In vga_text_init() or construction, or however you do it, you read the values.

http://pagesperso-orange.fr/pierrelib/h ... _Area.html

--Good luck
gravaera
17:56 < sortie> Paging is called paging because you need to draw it on pages in your notebook to succeed at it.
jasonc122
Member
Member
Posts: 27
Joined: Fri Jan 01, 2010 7:51 am

Re: What text mode does GRUB 0.97 use?

Post by jasonc122 »

Thanks for your replies.

Yes Creature your suspicion is correct; GRUB 0.97 hands over control to a kernel image with an 80x25 text mode set.
H Technology Solutions - Business Operating System Specialists
Post Reply