VKontakte.DJ
forum traveling
 

Celestial Software

...better by design

Home Support SSH Client Forums
Welcome, Guest
Please Login or Register.    Lost Password?
Ansi Color (1 viewing) (1) Guest
Go to bottom Favoured: 0
TOPIC: Ansi Color
#1520
Ansi Color 18 Years, 6 Months ago  
Is there any way to modified ANSI color. Here's my problem.

I use Absolute Telnet to connect to my Linux box then vi to modify scripts. My foreground colour is R192 G192 B192 (gray) and background colour R0 G0 B0 (black). When I modify a script the colour of comments/debug command is a blue that is just about impossible to see.

Can I just turn-off ANSI Colors? Please.

[ September 22, 2005, 02:51 PM: Message edited by: Brian T. Pence ]
CanMike (User)
Fresh Boarder
Posts: 13
graphgraph
User Offline Click here to see the profile of this user
Logged Logged  
 
35
 
The administrator has disabled public write access.  
#1521
Re: Ansi Color 18 Years, 6 Months ago  
Do you want to turn it off or do you want to make it work?

I assume you're not using the standard 'vi' package, as stock 'vi' does not usually support colors and syntax highlighting. If you're using 'vim', the really cool 'vi' replacement, then the fix is easy... Once in vi, enter the following command:

:set background=dark

This will optimize the color settings for a dark background.

Conversely, if you have a light or white background, you would use this command...

:set background=light

If you're using another vi package, let me know and I'll do some more research.

Brian
bpence (Admin)
Admin
Posts: 1404
graph
User Offline Click here to see the profile of this user
Logged Logged  
 
Brian Pence
Celestial Software
SSH , SFTP, and Telnet in a tabbed interface for Windows XP, Vista, Mobile, and others
 
The administrator has disabled public write access.  
#1522
Re: Ansi Color 18 Years, 6 Months ago  
Amazing! Yup, VIM is the standard 'vi' packaged with Red Hat Enterprise Linux 4.

I followed your suggestion and now I can modify my scripts without colour problems.

Now all I have to figure out is how to include the command in my vim config file.

Regards and Thanks for the prompt reply
Mike Parish, Toronto, Canada
CanMike (User)
Fresh Boarder
Posts: 13
graphgraph
User Offline Click here to see the profile of this user
Logged Logged  
 
35
 
The administrator has disabled public write access.  
#1523
Re: Ansi Color 18 Years, 6 Months ago  
just add the command just like I showed you to your .vimrc file. Here's mine:

Code:

[btpence@gateway btpence]$ cat .vimrc
 :syntax enable
 :set  background=dark
 [btpence@gateway btpence]$ 
   

Brian
bpence (Admin)
Admin
Posts: 1404
graph
User Offline Click here to see the profile of this user
Logged Logged  
 
Brian Pence
Celestial Software
SSH , SFTP, and Telnet in a tabbed interface for Windows XP, Vista, Mobile, and others
 
The administrator has disabled public write access.  
#1524
Re: Ansi Color 18 Years, 6 Months ago  
Thanks again.

I had to create the .vimrc file, but once done I added the arguments and life is beautiful.

Why can't the entire world be Korn shell and vi?
CanMike (User)
Fresh Boarder
Posts: 13
graphgraph
User Offline Click here to see the profile of this user
Logged Logged  
 
35
 
The administrator has disabled public write access.  
#1525
Re: Ansi Color 18 Years, 6 Months ago  
vi scares normal people.

emacs scares vi people.

Brian
bpence (Admin)
Admin
Posts: 1404
graph
User Offline Click here to see the profile of this user
Logged Logged  
 
Brian Pence
Celestial Software
SSH , SFTP, and Telnet in a tabbed interface for Windows XP, Vista, Mobile, and others
 
The administrator has disabled public write access.  
#1526
Re: Ansi Color 18 Years, 6 Months ago  
I will not discuss my age nor normality.

Let just say I work with:

a: tape drives
b: main frames
c: hierarchical databases (yep, top-down, tree architecture
d: COBOL
c: window versions 1 & 2

'nuff said
CanMike (User)
Fresh Boarder
Posts: 13
graphgraph
User Offline Click here to see the profile of this user
Logged Logged  
 
35
 
The administrator has disabled public write access.  
Go to top