OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 12:45 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Terminal address and dimensions
PostPosted: Thu Apr 26, 2018 11:41 pm 
Offline

Joined: Thu Apr 26, 2018 5:01 pm
Posts: 1
I followed the bare bones tutorial. I could not figure out how the terminal address dimensions were chosen. I tried changing the vga width and height and got unexpected results. How were these chosen and determined?


Top
 Profile  
 
 Post subject: Re: Terminal address and dimensions
PostPosted: Fri Apr 27, 2018 1:20 am 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 5099
Bare Bones assumes VGA-compatible text mode 03h, which is 80x25 characters. If you want a different video mode, you'll have to either specify it in your multiboot header (and read the boot information to ensure GRUB actually set the mode you want!) or directly manipulate the VGA registers.

On the other hand, if you want to keep using the 80x25 text mode but only display text on a smaller portion of the screen, you can modify terminal_putchar() to use different minimum and maximum row/column values.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 24 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group