English Amiga Board


Go Back   English Amiga Board > Support > support.Apps

 
 
Thread Tools
Old 27 December 2009, 16:33   #1
fc.studio
Cat lover
 
fc.studio's Avatar
 
Join Date: May 2004
Location: Italy
Age: 54
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?
fc.studio is offline  
Old 27 December 2009, 18:26   #2
Retro1234
Phone Homer
 
Retro1234's Avatar
 
Join Date: Jun 2006
Location: 5150
Posts: 5,773
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?
Retro1234 is offline  
Old 27 December 2009, 22:20   #3
cosmicfrog
The 1 who ribbits
 
cosmicfrog's Avatar
 
Join Date: Apr 2006
Location: leek, Staffs, UK
Age: 56
Posts: 3,557
Send a message via MSN to cosmicfrog
yes its possible to change the size of the con: windows hehehehhehe
cosmicfrog is offline  
Old 27 December 2009, 22:53   #4
fc.studio
Cat lover
 
fc.studio's Avatar
 
Join Date: May 2004
Location: Italy
Age: 54
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: ....
fc.studio is offline  
Old 27 December 2009, 22:59   #5
prowler
Global Moderator
 
prowler's Avatar
 
Join Date: Aug 2008
Location: Sidcup, England
Posts: 10,300
Quote:
Originally Posted by fc.studio View Post
The tooltype is the WINDOW=CON: ....
...or WINDOW=NEWCON: ....
prowler is offline  
Old 27 December 2009, 23:43   #6
prowler
Global Moderator
 
prowler's Avatar
 
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.
prowler is offline  
Old 27 December 2009, 23:50   #7
Retro1234
Phone Homer
 
Retro1234's Avatar
 
Join Date: Jun 2006
Location: 5150
Posts: 5,773
Thanks guys ill check it out - I hate the way it fill the hole length of the screen
Retro1234 is offline  
Old 28 December 2009, 08:31   #8
squidbass
Registered User
 
squidbass's Avatar
 
Join Date: Sep 2007
Location: Southport The Last Resort
Posts: 202
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
squidbass is offline  
Old 28 December 2009, 22:20   #9
prowler
Global Moderator
 
prowler's Avatar
 
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?
prowler is offline  
Old 28 December 2009, 22:53   #10
hit
Registered User
 
Join Date: Jun 2008
Location: planet earth
Posts: 1,115
Quote:
Originally Posted by squidbass View Post
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
did you found this one already:
http://mysite.verizon.net/astronaut/vim/
http://mysite.verizon.net/astronaut/...x/amiga.vim.gz
hit is offline  
Old 29 December 2009, 09:21   #11
squidbass
Registered User
 
squidbass's Avatar
 
Join Date: Sep 2007
Location: Southport The Last Resort
Posts: 202
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
squidbass is offline  
Old 29 December 2009, 10:10   #12
fc.studio
Cat lover
 
fc.studio's Avatar
 
Join Date: May 2004
Location: Italy
Age: 54
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.
fc.studio is offline  
Old 29 December 2009, 14:21   #13
hit
Registered User
 
Join Date: Jun 2008
Location: planet earth
Posts: 1,115
Quote:
Originally Posted by squidbass View Post
Interesting page and the amiga.vim syntax file is for Amiga Script...
ah, ic. i've no amiga/emulator around. so cant test. there are many docs for vim, explaining highlighting feature - for linux, etc...
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
hit is offline  
Old 25 March 2022, 18:52   #14
superkahraman
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
for prompt color (blue in my example) :
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)
Attached Thumbnails
Click image for larger version

Name:	BlackShell.png
Views:	140
Size:	13.8 KB
ID:	75140  
superkahraman is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 19:59.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.08638 seconds with 14 queries