OSDev.org

The Place to Start for Operating System Developers
It is currently Sun Jan 21, 2018 10:48 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Switch from graphics mode into text mode and vice versa wit→
PostPosted: Sat Jun 03, 2017 12:28 am 
Offline
User avatar

Joined: Sat May 06, 2017 11:35 am
Posts: 10
→hout BIOS interrupts ?

_________________
Restart any PC in the easy way around:

mov eax,cr0
xor al,1
mov cr0,eax
lidt [illegal_idtr]
jmp 0:$

; done:)


Top
 Profile  
 
 Post subject: Re: Switch from graphics mode into text mode and vice versa
PostPosted: Sat Jun 03, 2017 1:22 am 
Offline
Member
Member
User avatar

Joined: Sat Jan 15, 2005 12:00 am
Posts: 8201
Location: At his keyboard!
Hi,

EladAshkcenazi335 wrote:
→hout BIOS interrupts ?


Don't.

It's relatively easy to emulate text mode while still using graphics mode, simply by drawing characters yourself. This avoids the need to switch modes (which may be impossible in some cases - e.g. UEFI), and avoids the overhead and "ugliness" (visible black flicker) caused by video mode switching.

It also allows you (initially, or in future improvements done as the OS grows) to:
  • Use a modern cursor (e.g. a modern "vertical bar" instead of an "antiquated block" cursor)
  • Support a much larger range of colours
  • Support different font sizes
  • Support different styles (bold, italic, underline, super-script, etc)
  • Support Unicode/internationalisation
  • Support emoji
  • Support anti-aliasing (to fix "jagged diagonal edges")
  • Use much more detailed (and much easier to read) characters (e.g. maybe a 16*24 font rather than an 8*16 font)
  • Support smooth scrolling properly
  • Add a vertical scroll bar the user can use (with mouse) to see all the stuff that scrolled off the top of the screen
  • Add a background image
  • Do anything else I forgot to mention
  • Recycle most of the existing code when you implement a GUI
  • Avoid giving end users the impression that you aren't good at writing software ;)


Cheers,

Brendan

_________________
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.


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 4 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