English Amiga Board

English Amiga Board (http://eab.abime.net/index.php)
-   support.Apps (http://eab.abime.net/forumdisplay.php?f=8)
-   -   Clear background color for Shell window- Shell-StartUp (http://eab.abime.net/showthread.php?t=49798)

fc.studio 27 December 2009 16:33

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?

Retro1234 27 December 2009 18:26

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?

cosmicfrog 27 December 2009 22:20

yes its possible to change the size of the con: windows hehehehhehe

fc.studio 27 December 2009 22:53

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: ....

prowler 27 December 2009 22:59

Quote:

Originally Posted by fc.studio (Post 628563)
The tooltype is the WINDOW=CON: ....

...or WINDOW=NEWCON: ....

prowler 27 December 2009 23:43

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.

Retro1234 27 December 2009 23:50

Thanks guys ill check it out:) - I hate the way it fill the hole length of the screen

squidbass 28 December 2009 08:31

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

prowler 28 December 2009 22:20

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?

hit 28 December 2009 22:53

Quote:

Originally Posted by squidbass (Post 628620)
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

squidbass 29 December 2009 09:21

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

fc.studio 29 December 2009 10:10

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.

hit 29 December 2009 14:21

Quote:

Originally Posted by squidbass (Post 628861)
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


All times are GMT +2. The time now is 06:00.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.

Page generated in 0.05033 seconds with 11 queries