![]() |
![]() |
#1 |
Cat lover
Join Date: May 2004
Location: Italy
Age: 53
Posts: 804
|
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?
|
![]() |
![]() |
#2 |
Cuthbert The Movie
![]() Join Date: Jun 2006
Location: 5150
Posts: 5,446
|
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? |
![]() |
![]() |
#3 |
The 1 who ribbits
|
yes its possible to change the size of the con: windows hehehehhehe
|
![]() |
![]() |
#4 |
Cat lover
Join Date: May 2004
Location: Italy
Age: 53
Posts: 804
|
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: .... |
![]() |
![]() |
#5 |
Global Moderator
![]() Join Date: Aug 2008
Location: Sidcup, England
Posts: 10,300
|
|
![]() |
![]() |
#6 |
Global Moderator
![]() Join Date: Aug 2008
Location: Sidcup, England
Posts: 10,300
|
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. |
![]() |
![]() |
#7 |
Cuthbert The Movie
![]() Join Date: Jun 2006
Location: 5150
Posts: 5,446
|
Thanks guys ill check it out
![]() |
![]() |
![]() |
#8 |
Registered User
Join Date: Sep 2007
Location: Southport The Last Resort
Posts: 198
|
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 |
![]() |
![]() |
#9 |
Global Moderator
![]() Join Date: Aug 2008
Location: Sidcup, England
Posts: 10,300
|
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? |
![]() |
![]() |
#10 | |
Registered User
Join Date: Jun 2008
Location: planet earth
Posts: 1,115
|
Quote:
http://mysite.verizon.net/astronaut/vim/ http://mysite.verizon.net/astronaut/...x/amiga.vim.gz |
|
![]() |
![]() |
#11 |
Registered User
Join Date: Sep 2007
Location: Southport The Last Resort
Posts: 198
|
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 |
![]() |
![]() |
#12 |
Cat lover
Join Date: May 2004
Location: Italy
Age: 53
Posts: 804
|
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. |
![]() |
![]() |
#13 | |
Registered User
Join Date: Jun 2008
Location: planet earth
Posts: 1,115
|
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 |
|
![]() |
![]() |
#14 |
Registered User
![]() Join Date: Dec 2018
Location: Mugla
Posts: 6
|
Following Shell-Startup script prepares Black Backgrounded Shell window.
S:Shell-Startup Code:
alias CLS "echo *"*E[0;0H*E[J*"" echo "*e[1C*e[>1m*e[32;41m*e[0;0H*e[J" PROMPT "*E[41m*E[33m%S*E[30m>*E[41m*E[30m " echo "*E[12x" CLS 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) |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
a very small shell mod player | ancalimon | request.Apps | 0 | 21 November 2011 16:49 |
Shell help? | madman | support.Apps | 5 | 24 June 2011 22:32 |
AmigaDOS web shell | copse | Coders. General | 1 | 21 December 2009 02:04 |
Shell Replacement | amiga | request.UAE Wishlist | 6 | 22 January 2009 19:44 |
How to close the shell in Workbench 3.1 | rodi | support.Apps | 6 | 02 June 2008 22:05 |
|
|