Amiga.org
Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started by: virgola on January 17, 2004, 08:47:31 PM
-
Personalizing my cli window...
Do you know if it's possible to configure the normal shell background (not just the text background) via shell-startup? (special characters and so...)
I've already personalized the font color and style but nothing to do with the background.
:-?
It is possible?
If not, which one it's the less dangerous hack to use?
Thanks!
-
Nope... I never found a way to do it with escape sequences or anything. As you mentioned, best I could do was change the TEXT background, which wasn't a huge help, as I wanted my background to be black, instead of grey, as my OS background color was.
I ended up using ViNCEd, which is available from aminet, or included in OS 3.9.
-
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.
-
Nice try Merc ;-), but nothing to do...
[4xm (tried in many different ways) doesn't work
and nothing on aminet that sounds like you said...
-
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.
-
Personalising normal shell or KingCON?
Like this, you mean?
(http://www.amiga.org/gallery/images/810/1_1448.gif)
Not difficult, as long as you know your escape sequences. I have the following in my s:shell-startup
echo "*e[>1m*e[32;41m*e[0;0H*e[J"
prompt "*n*e[>1m*e[33;41m*e[1m%N/%R.*e[30;41m%S>*e[0m*e[32;41m "
alias CLS "echo *"*E[0;0H*E[J*""
echo "AmigaOS $OS. Workbench (Disk) $Workbench, Kickstart (ROM) $Kickstart*n"
date
echo "*nMemory*n"
avail
-
@Karlos:
Wow, nicely done! :-D
-
-
Aminet 4in1...
4in1 is a little program for changing colors and style of characters
in a shell window; it also displays time and date.
Now you can forget boring escape sequences.
-
What I did was ditch KCON for ViNCed and turned on the "swap ansi colors" option to get a black background. After that I read the complete document to ViNCed and set it up to work identical to how KCON works. There are quiet a few extra features of ViNCed that really help getting around in shelldom. Also, since I do some telnet programming, I use ViNCed to display the standard ASNI color table. That's not something you can do with KCON without locking the palette down to some really funky settings.
:pint:
-
No doubt that vinced is the more functional console, but I've been using kingcon so long I forgot what the orginal shell was :-)
-
Forget about that 4in1... it suxx ;-)
-
Hi Karlos,
i've tryed your
echo "*e[>1m*e[32;41m*e[0;0H*e[J"
prompt "*n*e[>1m*e[33;41m*e[1m%N/%R.*e[30;41m%S>*e[0m*e[32;41m "
alias CLS "echo *"*E[0;0H*E[J*""
echo "AmigaOS $OS. Workbench (Disk) $Workbench, Kickstart (ROM) $Kickstart*n"
date
echo "*nMemory*n"
avail
but i have a very dark blue at Prompt "14/8".
How can i get a pure blue 0-0-255?
My WB is at 16bit P96.
Cheers
-
@Framiga
Some things you should realise about the normal shell and KingCon both
In the following escape sequences, X is a number from 0-7 that reflect the eight colours set in your palette prefs.
*e[>Xm - sets the console background colour to X
*e[3Xm - sets the text colour to X
*e[4Xm - sets the text background colour to X
You can chain these, which is how you get for example the "*e[32;41m", which sets the text/text background colours at the same time.
So numbers 0-3 in these for a standard WB palette are grey, black, white and light blue repsectively.
In the prompt string, I coloured the "shell number / returncode" part with colour number 3, which is a blue colour on my set up.
Yours is very dark blue presumably because you set colour 3 as dark blue in your palette preferences.
Try a different number for X in
prompt "*n*e[>1m*e[3X;41m*e[1m%N/%R.*e[30;41m%S>*e[0m*e[32;41m "
...or change your palette prefs to make colour 3 the shade of blue you want (or both - find a spare colour in your 8 basic workbench colours, change it to whatever you want, and use that number for X)..
Hope this helps.
-
Hi Karlos,
thank you very much, Karlos :-) i went go crazy . . . a very useful hints for me and, i think for all too :-)
Thanks again
Ciao
Interview to Bjorn Lynne (Bitplane n.3 april/may 2002) (http://www.bitplane.it/Index.php?newlang=en&mod=Articoli&x=17&y=8)