This kind of GUI

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
mohdumar
Posts: 7
Joined: Tue Aug 30, 2011 8:58 am

This kind of GUI

Post by mohdumar »

just installing RedHat 9 from 2003. Wonder how do they get this kind of GUI at boot after loading kernel:

Image

This can be also seen in XP installer, is there a way for it in a custom OS?
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: This kind of GUI

Post by Combuster »

Just implement it yourself. It's too simple to waste time and find out whose code you can steal.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
guyfawkes
Member
Member
Posts: 93
Joined: Mon Jul 18, 2011 9:47 am

Re: This kind of GUI

Post by guyfawkes »

You need a print function, that can also change foreground and background color.

Then you use extended ascii, for borders etc.
Simple example

Code: Select all

WinEdit:  db 'ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿',13,10
	     db '³ Cut     Ctrl+X ³',13,10
	     db '³ Copy    Ctrl+C ³',13,10
	     db '³ Paste   Ctrl+V ³',13,10
	     db '³ Clear   Del    ³',13,10
	     db 'ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ',13,10
You would then have functions to move and print the highlight bar etc.
You can add shadows by changing the back/fore ground colors, that the shadows would overlay.
User avatar
b.zaar
Member
Member
Posts: 294
Joined: Wed May 21, 2008 4:33 am
Location: Mars MTC +6:00
Contact:

Re: This kind of GUI

Post by b.zaar »

Use a bit of ANSI escape codes in your strings and print functions.

http://isthe.com/chongo/tech/comp/ansi_escapes.html

and then you can do cool things like this...

http://www.google.com.au/search?q=ansi+ ... 66&bih=667
"God! Not Unix" - Richard Stallman

Website: venom Dev
OS project: venom OS
Hexadecimal Editor: hexed
Post Reply