Order of the Butterfly
Posts: 315 from 2004/2/14
From: Naples - Italy
Put in your shell-startup a command like this:
Echo "*E[0;0;0;0V *E[1;220;220;220V *E[2;180;180;0V *E[3;80;208;248V *E[4;238;68;68V *E[5;85;220;85V *E[6;0;68;221V *E[7;238;153;0V *Ec" NoLine
(This should be a single line of text: I've inserted spaces between the quotes for readability, but they are not needed.)
This will set the background to black, the text to white, highlighted text to yellow, and so on. Then you can write text in these colours with ANSI commands like these:
Echo "*E[31m This is white text"
Echo "*E[32m This is yellow text"
Echo "*E[33m This is light blue text"
Echo "*E[34m This is red text"
Echo "*E[35m This is light green text"
Echo "*E[36m This is blue text"
Echo "*E[37m This is orange text"
Echo "*E[43m This activates light blue background"
Echo "*E[34;46m This activates red text on blue background"
The simplest colour setting command for the MorphOS shell has the following format:
Echo "*E[n;x;y;zV"
where n is the number of the colour you want to set, and x, y, z are the decimal RGB values that define that colour.
You will find the full set of ANSI escape codes for classic Amiga in the file dev/misc/AmigaANSI.txt on Aminet.
Powered by PegasosII-G4, MacMini, PowerMac MDD.