Text in graphic mode

Programming, for all ages and all languages.
Post Reply
lolkusus
Posts: 15
Joined: Thu May 03, 2012 2:10 am

Text in graphic mode

Post by lolkusus »

I have a problem with writing in graphic 12h mode. There isn't cursor, but I set it.
Help.
Attachments
kernel.asm
(1.18 KiB) Downloaded 62 times
I'm polish
User avatar
bubach
Member
Member
Posts: 1223
Joined: Sat Oct 23, 2004 11:00 pm
Location: Sweden
Contact:

Re: Text in graphic mode

Post by bubach »

The hardware cursor isn't visible in graphics mode. A font and cursor could have any size you want - you make the rules. You will have to draw it yourself, make it blink and also update the position by re-drawing it yourself.
I suggest you forget about the cursor and focus on drawing some pixel based font for now - using X, Y position for the raw pixels. Once you have some functions done so you can print text, you could add cursor emulation to get the same experience as if it where normal text mode.
"Simplicity is the ultimate sophistication."
http://bos.asmhackers.net/ - GitHub
ACcurrent
Member
Member
Posts: 125
Joined: Thu Aug 11, 2011 12:04 am
Location: Watching You

Re: Text in graphic mode

Post by ACcurrent »

The wiki has some material (in c) on drawing in protected mode and how to draw fonts. In 16Bit mode you could probably adapt the bitmap fonts a bit.
Get back to work!
Github
LindusSystem
Member
Member
Posts: 63
Joined: Sat Apr 28, 2012 9:41 am
Location: Earth -> Asia

Re: Text in graphic mode

Post by LindusSystem »

All these Cursor,0xB8000(Or where you write text to)etc,etc are available in Text Mode but are not available in Graphics Mode.
If you need to print text, you need to develop your own font structure and plot each pixel yourself.

It is somewhat like you need to program a VGA Driver or so.
Anyone has a idea of making a ntfs bootsector?if yes PM me , plz.
Post Reply