Page 1 of 1
This kind of GUI
Posted: Sat Sep 17, 2011 4:48 am
by mohdumar
just installing RedHat 9 from 2003. Wonder how do they get this kind of GUI at boot after loading kernel:
This can be also seen in XP installer, is there a way for it in a custom OS?
Re: This kind of GUI
Posted: Sat Sep 17, 2011 4:52 am
by Combuster
Just implement it yourself. It's too simple to waste time and find out whose code you can steal.
Re: This kind of GUI
Posted: Sat Sep 17, 2011 12:19 pm
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.
Re: This kind of GUI
Posted: Sun Sep 18, 2011 3:08 am
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