ascii colors
-
- Member
- Posts: 25
- Joined: Mon Feb 27, 2012 9:46 am
ascii colors
I have checked all over the internet and could still not find a table of ascii colors, so do any of you have any table of ascii colors?
Talk is cheap, show me the code. - Linus Torvalds
Re: ascii colors
You probably mean ansi escapes and colour codes, which can be found on Google: http://www.lmgtfy.com/?q=ANSI+colour+codes
-
- Member
- Posts: 25
- Joined: Mon Feb 27, 2012 9:46 am
Re: ascii colors
ANSI??? Isn't ASCII the character set to be used here.
Talk is cheap, show me the code. - Linus Torvalds
- Combuster
- 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: ascii colors
Does Comic Sans imply a geocities page with purple text on a yellow background?ascii colors
My crystal ball says you're probably after the default palette in text mode.
Re: ascii colors
"character set" is the operative phrase - colours have nothing to do with characters.assembler01 wrote:ANSI??? Isn't ASCII the character set to be used here.
Re: ascii colors
Yes, you're probably right. I use following color codes for default palette (for 18-bit VGA DAC):Combuster wrote:My crystal ball says you're probably after the default palette in text mode.
00 00 00
00 00 2A
00 2A 00
00 2A 2A
2A 00 00
2A 00 2A
2A 15 00
2A 2A 2A
15 15 15
15 15 3F
15 3F 15
15 3F 3F
3F 15 15
3F 15 3F
3F 3F 15
3F 3F 3F
If you have seen bad English in my words, tell me what's wrong, please.
- KernelDeveloper
- Posts: 15
- Joined: Tue Mar 13, 2012 11:25 am
- Location: Earth
- Contact:
ASCII does not have color
ASCII is a set of characters, not colours.
Colours depends on the colour palette;
For example 16- colour palette have 16 colours,
16 colour palette:
0 BLACK
1 BLUE
2 GREEN
3 CYAN
4 RED
5 MAGENTA
6 BROWN
7 LIGHT GREY
8 DARK GREY
9 LIGHT BLUE
10 LIGHT GREEN
11 LIGHT CYAN
12 LIGHT RED
13 LIGHT MAGENTA
14 LIGHT BROWN
15 WHITE
Colours depends on the colour palette;
For example 16- colour palette have 16 colours,
16 colour palette:
0 BLACK
1 BLUE
2 GREEN
3 CYAN
4 RED
5 MAGENTA
6 BROWN
7 LIGHT GREY
8 DARK GREY
9 LIGHT BLUE
10 LIGHT GREEN
11 LIGHT CYAN
12 LIGHT RED
13 LIGHT MAGENTA
14 LIGHT BROWN
15 WHITE
- KernelDeveloper
- Posts: 15
- Joined: Tue Mar 13, 2012 11:25 am
- Location: Earth
- Contact:
Re: ascii colors
http://forum.osdev.org/viewtopic.php?f=1&t=24986
I posted this in a seprate topic because i had problems @ my forums deleting these.There were 4 topics at my forums on ASCII Colours and Character Set.
I posted this in a seprate topic because i had problems @ my forums deleting these.There were 4 topics at my forums on ASCII Colours and Character Set.
- Combuster
- 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: ascii colors
PEBKAC on that?KernelDeveloper wrote:because i had problems
Also, What you tried to say already got posted earlier
- KernelDeveloper
- Posts: 15
- Joined: Tue Mar 13, 2012 11:25 am
- Location: Earth
- Contact:
Re: ascii colors
I had opened a website for beginners and now there are some complicated tutorials. Total of 26 tutorials. Now I am running an neat setup so again removing and adding the tutorials.
The problem I faced was out of 100 aprox 70 would be dumb questions like this one.
Questions like "How to put black colour for ASCII Code??".But I have plucked out those from the forums.
That's why I posted my solution on different topic because every beginner would see the heading and not ask about it.
That's what i ment 'posts earlier'
The problem I faced was out of 100 aprox 70 would be dumb questions like this one.
Questions like "How to put black colour for ASCII Code??".But I have plucked out those from the forums.
That's why I posted my solution on different topic because every beginner would see the heading and not ask about it.
That's what i ment 'posts earlier'
Re: ascii colors
Reference material belongs on the Wiki. Which, incidentially, already has the information: Text UI.KernelDeveloper wrote:That's why I posted my solution on different topic because every beginner would see the heading and not ask about it.
Forum threads are a very poor repository for persistent information.
Every good solution is obvious once you've found it.