Implementing ANSI Symbols

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
bowenl2
Posts: 2
Joined: Fri May 01, 2009 12:36 am

Implementing ANSI Symbols

Post by bowenl2 »

Hello everyone
Currently my OS is limited to the standard 80x25 textmode. I understand some of the details of implementing a higher resolution CGA/VGA display. However, is it possible to implement ANSI characters using textmode? I looked at the upper 128 characters of ASCII (like at asciitable.com) but I seem to remember from many years ago that MS-DOS 'edit' had many different characters (playing cards, etc.) that would help with user interface.

This is the first part of my kernel where I don't even know where to start (do I need to write my own bitmaps or are these hidden on the VGA controller?). I searched the forum and wiki but could find nothing. Any help would be appreciated. Thanks!
ruisleipa
Member
Member
Posts: 46
Joined: Wed Sep 10, 2008 8:39 am
Location: Finland

Re: Implementing ANSI Symbols

Post by ruisleipa »

There are some symbols in the range 0-31. You have to write directly to video memory to be able to use them as normal printing functions interpret them as newlines, tabulators etc.

EDIT: http://en.wikipedia.org/wiki/Code_page_437
http://code.google.com/p/rmmtos/ - Real Mode MultiTasking Operating System
skyking
Member
Member
Posts: 174
Joined: Sun Jan 06, 2008 8:41 am

Re: Implementing ANSI Symbols

Post by skyking »

Have you tried to just use the text fonts that is loaded by the BIOS? I'd expect most BIOSes to load an original IBM codepage. BTW I don't think that these are any ANSI standard.

The VGA controller allows you to redefine the font in text mode, search for information on how to program the VGA controller (I think there is some information/references on the wiki).
egos
Member
Member
Posts: 612
Joined: Fri Nov 16, 2007 1:59 pm

Re: Implementing ANSI Symbols

Post by egos »

Look there.
If you have seen bad English in my words, tell me what's wrong, please.
Post Reply