ascii colors

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
assembler01
Member
Member
Posts: 25
Joined: Mon Feb 27, 2012 9:46 am

ascii colors

Post by assembler01 »

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
User avatar
brain
Member
Member
Posts: 234
Joined: Thu Nov 05, 2009 5:04 pm
Location: UK
Contact:

Re: ascii colors

Post by brain »

You probably mean ansi escapes and colour codes, which can be found on Google: http://www.lmgtfy.com/?q=ANSI+colour+codes
assembler01
Member
Member
Posts: 25
Joined: Mon Feb 27, 2012 9:46 am

Re: ascii colors

Post by assembler01 »

ANSI??? :shock: Isn't ASCII the character set to be used here.
Talk is cheap, show me the code. - Linus Torvalds
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: ascii colors

Post by Combuster »

ascii colors
Does Comic Sans imply a geocities page with purple text on a yellow background? :wink:


My crystal ball says you're probably after the default palette in text mode.
"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 ]
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Re: ascii colors

Post by JamesM »

assembler01 wrote:ANSI??? :shock: Isn't ASCII the character set to be used here.
"character set" is the operative phrase - colours have nothing to do with characters.
egos
Member
Member
Posts: 612
Joined: Fri Nov 16, 2007 1:59 pm

Re: ascii colors

Post by egos »

Combuster wrote:My crystal ball says you're probably after the default palette in text mode.
Yes, you're probably right. I use following color codes for default palette (for 18-bit VGA DAC):

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.
User avatar
KernelDeveloper
Posts: 15
Joined: Tue Mar 13, 2012 11:25 am
Location: Earth
Contact:

ASCII does not have color

Post by KernelDeveloper »

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
No one is perfect in the world!!! :)

Make sure you visit this:
http://tinyurl.com/kerneldeveloper
User avatar
KernelDeveloper
Posts: 15
Joined: Tue Mar 13, 2012 11:25 am
Location: Earth
Contact:

Re: ascii colors

Post by KernelDeveloper »

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.
No one is perfect in the world!!! :)

Make sure you visit this:
http://tinyurl.com/kerneldeveloper
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: ascii colors

Post by Combuster »

KernelDeveloper wrote:because i had problems
PEBKAC on that? :roll:

Also, What you tried to say already got posted earlier
"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 ]
User avatar
KernelDeveloper
Posts: 15
Joined: Tue Mar 13, 2012 11:25 am
Location: Earth
Contact:

Re: ascii colors

Post by KernelDeveloper »

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' :)
No one is perfect in the world!!! :)

Make sure you visit this:
http://tinyurl.com/kerneldeveloper
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re: ascii colors

Post by Solar »

KernelDeveloper wrote:That's why I posted my solution on different topic because every beginner would see the heading and not ask about it.
Reference material belongs on the Wiki. Which, incidentially, already has the information: Text UI.

Forum threads are a very poor repository for persistent information.
Every good solution is obvious once you've found it.
Post Reply