Amiga.org
Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started by: TheBilgeRat on May 09, 2013, 09:32:08 PM
-
I was wondering, as ECS supports 16 colors and AGA supports 256 if there is an AmigaShell version out there that supports multiple colors (for files, and for vim, etc)? Also, is there a way to do CED colorthemes with more than 4 colors?
-
Think CSH allowed more colors. Been quite a few years since I used it though.
http://aminet.net/package/util/shell/csh550a
Check it out, it's a great shell!
-
The bog standard Shell from Commodore actually has support for colours, although what colour you get depends on your Workbench palette. You can use escape codes to set the foreground and background pens and a lot of other stuff, too (don't remember them now so don't ask me :). There are several commands supporting this, at least one port of "ls" does different colours for directories.
However, if you want to run stuff like vim with correct colouring, I guess you need something that can do proper terminal emulation. The only one I know of for Amiga is ViNCEd but there might be others.
-
So, I tried CSH and its a wonderful unixy shell.
I notice that it does use color, although I have no idea where it is defining this color.
Also, The workbench palette preferences widget for "Multicolor" has a whopping 8 colors that can be defined.
Is there support for more than 8 colors in an AmigaOS 3.1 window?
-
My 3000D is waiting a CPU, once I get it all going again (a few weeks or so) I will test out CSH and see what it can do.
It was my favorite shell back in the day. The shortcuts saved a ton of typing and the type complete was the best imho. Remember it by default used custom colors when you turned it on. Not sure how many pens you can set, it might be buried in the docs somewhere.
Good luck!
-
The Amiga CLI and Shell support the standard ANSI escape sequences for enabling color. They are limited to the available colors and those colors are taken from the palette as mentioned above.
You can set foreground colors with:
echo "*E[3Xm"
where X is a number from 0 to 7
and background colors with:
echo "*E[4Xm"
where X is a number from 0 to 7
You can also do both on the same line using something like
echo "*E[4X;3Xm"
If you need to reset the styles use
echo "*E[0m"
You can also do other things like bold "*E[1m" and I think the Amiga also supports underline and italics. Those are values in the 2-6 range but I can't remember which one is which.
If you are doing a lot of shell manipulation there are some cool values you can do with these escape sequences. *E[ is the same thing as CSi if you look up these ANSI escape sequences elsewhere.
-
Have you looked into ZShell (http://aminet.net/package/util/shell/ZShell)? It's a bit more Amiga-like than CSH.
-
The Amiga CLI and Shell support the standard ANSI escape sequences for enabling color. They are limited to the available colors and those colors are taken from the palette as mentioned above.
You can set foreground colors with:
echo "*E[3Xm"
where X is a number from 0 to 7
and background colors with:
echo "*E[4Xm"
where X is a number from 0 to 7
You can also do both on the same line using something like
echo "*E[4X;3Xm"
If you need to reset the styles use
echo "*E[0m"
You can also do other things like bold "*E[1m" and I think the Amiga also supports underline and italics. Those are values in the 2-6 range but I can't remember which one is which.
If you are doing a lot of shell manipulation there are some cool values you can do with these escape sequences. *E[ is the same thing as CSi if you look up these ANSI escape sequences elsewhere.
So...those numbers would correspond I assume to the default workbench pallete...which would be 8 custom colors. That would mean that my whole workbench colorscheme would change as well... I was hoping for some sort of .bashrc style file where I could assign colors to things and customize just the CLI window and its associated proggies.
Have you looked into ZShell (http://aminet.net/package/util/shell/ZShell)? It's a bit more Amiga-like than CSH.
I have that one installed as well! I know its sort of dirty to be CLI happy on an Amiga, but it sure makes things quick... its all that unix blood in me :P
-
Yeah, it would be great fun to figure out how to set a 16 color terminal.
-
Here is a screen shot showing 30-37 and 90-97. 90-97 are supposed to bright versions of 30-37. This is running in VINCEd.
(https://www.evernote.com/shard/s3/sh/f24c6bac-b244-4b09-bdf6-dd1c7c83f410/2593cac9fda0bc952349c83bc157188b/deep/0/Screen%20Shot%202013-05-10%20at%2010.56.46%20PM.png)
-
Here is a screen shot showing 30-37 and 90-97. 90-97 are supposed to bright versions of 30-37. This is running in VINCEd.
Also note that unless you use a tool to lock specific numbered pens in the Workbench palette, these are subject to change. When needed, Workbench will allocate "unused" colours for displaying images etc.