Clear background color for Shell window- Shell-StartUp
Is it possible to modify the Shell-StartUp in order to get, probably on using special echo *e[ characters, a clear Shell window in a specific color like black or else?
|
Hi
I got this from orgin on one of the other Amiga boards -Add this to your Shell-Startup Black Window -White Text like DOS more Clear Prompt "*e[>1m*e[32;41m%N.%S> " Does anyone know if its possible to change the Size and Shape of the Window? |
yes its possible to change the size of the con: windows hehehehhehe
|
Thanks, it works!
About the size and position of the Shell windows you have to change the values for the specific tooltype of the Shell icon (WB/Icons/Info option for the Shell icon). The tooltype is the WINDOW=CON: .... |
Quote:
|
Edit your startup file for the SHELL or CLI. For the SHELL that file is s:Shell-Startup, and for the CLI it is s:CLI-Startup.
You have seen how the PROMPT command works. Now you need to edit the WINDOW command. A full window specification must be used, for example: WINDOW=CON:0/10/640/100/NEWCLI WINDOW=NEWCON:0/1/640/100/AmigaShell The format for a window specification is "Handler:x/y/w/h/name, where: Handler = CON: or NEWCON: x = <No of pixels from left edge of screen to left edge of window>/ y = <No of pixels from top of screen to top of window>/ w = <width of window, in pixels>/ h = <height of window, in pixels> name = <title for window> CON: is the CLI's standard Amiga handler, while the SHELL's NEWCON: handler allows command line editing and has a history buffer. |
Thanks guys ill check it out:) - I hate the way it fill the hole length of the screen
|
Hi ..
Is it possible to get ansi colours in the CLI or shell? I've always wanted to get syntax highlighting working in vi which requires a compatible TERM ... squidbass |
That PROMPT command suggested by Boo Boo certainly looks a bit like ANSI notation, so perhaps it is possible...
Do you have any more information on that PROMPT command syntax, Boo Boo? Or a link to that Amiga forum thread, maybe? |
Quote:
http://mysite.verizon.net/astronaut/vim/ http://mysite.verizon.net/astronaut/...x/amiga.vim.gz |
Interesting page and the amiga.vim syntax file is for Amiga Script....my question is how to get color syntax working in the AmigaShell or CLI...for all of vim's supported languages (i.e. C/C++,Perl, Python etc)...the PROMPT variable of the AmigaShell is essentially some escape sequences to set FG, BG etc, at least that's what it looks like to me...I'll try and experiment and see what I can come up with....
squidbass |
About ANSI notation I found this Wikipedia link for codes:
http://en.wikipedia.org/wiki/ANSI_escape_code#Codes Yet I don't know if they work on Amiga script 'cause I've to test, but it seems higly possible. I would like to add to the screen suggested by Boo Boo (Thanks) a red cursor (but writing white). I'll try later if I can get it, but any suggestion will be much appreciated. |
Quote:
http://www.faqs.org/docs/Linux-HOWTO...#manual_method http://vimdoc.sourceforge.net/htmldoc/syntax.html maybe let snoopdos run while playing with vim, just in case it cant find a specific file. note also, there is a bin and rt archive for vim. last one has resource files, first binaries only. http://www.vim.org/download.php#amiga |
1 Attachment(s)
Following Shell-Startup script prepares Black Backgrounded Shell window.
S:Shell-Startup Code:
alias CLS "echo *"*E[0;0H*E[J*"" PROMPT "*E[41m*E[33m%S*E[30m>*E[41m*E[30m " for text color : (gray in my example) : PROMPT "*E[41m*E[33m%S*E[30m>*E[41m*E[30m " 0 Gray / 1 Black / 2 White / 3 Blue (It continues to 7)(You can use 8 colors in Shell Console) (Change RED colored numbers) |
All times are GMT +2. The time now is 14:12. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.