Welcome, Guest. Please login or register.

Author Topic: KCON: newshell - possible to change cli background color?  (Read 5699 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Merc

  • Sr. Member
  • ****
  • Join Date: Apr 2002
  • Posts: 312
    • Show all replies
    • http://chebucto.ns.ca/~ah210/Profile.html
Re: KCON: newshell - possible to change cli background color?
« on: January 17, 2004, 09:02:05 PM »
There are 2 ways I know of.  One is through escape sequences.  My memory might be a bit foggy, but I think you have to send:

[4xm

where x is the colour number to use.  I think you can only use up to 7 though.  You can set the foreground colour by changing the 4 above to a 3.  

The other way is with a program called shellcolor which works a bit better than this.  I think it's on Aminet.
 

Offline Merc

  • Sr. Member
  • ****
  • Join Date: Apr 2002
  • Posts: 312
    • Show all replies
    • http://chebucto.ns.ca/~ah210/Profile.html
Re: KCON: newshell - possible to change cli background color?
« Reply #1 on: January 17, 2004, 09:15:37 PM »
Really?!  Sheesh now I'm going to have to pop into UAE and try it, hang on...

Ok, it worked!  Just open a shell window and press
ESC, then [42m and press enter.  It'll say unknown command, but it does change the colour, sort of..  but it only changes the background of the text, not the whole window.

I think I have shellcolor on a CD here somewhere, I'll see if I can find it.
 

Offline Merc

  • Sr. Member
  • ****
  • Join Date: Apr 2002
  • Posts: 312
    • Show all replies
    • http://chebucto.ns.ca/~ah210/Profile.html
Re: KCON: newshell - possible to change cli background color?
« Reply #2 on: January 17, 2004, 09:20:21 PM »
@Karlos:

Wow, nicely done!  :-D