Welcome, Guest. Please login or register.

Author Topic: Colours in Shell  (Read 1182 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline MrZammlerTopic starter

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 720
    • Show only replies by MrZammler
Colours in Shell
« 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.
Anyway is the only way
 

Online Thomas

Re: Colours in Shell
« Reply #1 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

Offline xeron

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 2533
    • Show only replies by xeron
    • http://www.petergordon.org.uk
Re: Colours in Shell
« Reply #2 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.
Playstation Network ID: xeron6
 

Offline MrZammlerTopic starter

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 720
    • Show only replies by MrZammler
Re: Colours in Shell
« Reply #3 on: July 25, 2003, 09:52:48 AM »
Ok, thanks guys ;-)
Anyway is the only way