Amiga.org

Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started by: MrZammler on July 25, 2003, 08:38:45 AM

Title: Colours in Shell
Post by: MrZammler on July 25, 2003, 08:38:45 AM
Could anyone out there tell me how I can change the colours on my Shell?

I'd like a black bg, and white for text. ;-)

I cant seem to find the way it was done (through some escape chars) anymore.

Thanks.
Title: Re: Colours in Shell
Post by: Thomas on July 25, 2003, 09:08:54 AM

Echo "*e[32;41;>1m"

3x is text colour
4x is background of text
>x is background of window
x is pen number from palette.

Bye,
Thomas
Title: Re: Colours in Shell
Post by: xeron on July 25, 2003, 09:42:18 AM
If you put those codes into your prompt string, it'll enforce them even if programs reset the colours with a "0m" command. Example:

prompt "*e[32;41;>1m<-- Your normal prompt here -->"

Obviously replace "<-- Your normal prompt here -->" with your preferred prompt format.
Title: Re: Colours in Shell
Post by: MrZammler on July 25, 2003, 09:52:48 AM
Ok, thanks guys ;-)