Setting up color xterm (HOWTO)

New to SGIs? Need help getting things going? This is the forum for you!
Forum rules
Any posts concerning pirated software or offering to buy/sell/trade commercial software are subject to removal.
User avatar
nekonoko
Site Admin
Site Admin
Posts: 8145
Joined: Thu Jan 23, 2003 1:31 am
Location: Pleasanton, California
Contact:

Setting up color xterm (HOWTO)

Unread postby nekonoko » Mon Mar 03, 2003 12:57 pm

This came about from an IRC discussion with vegac; we were looking for a way to use color under vim and came up with the following solution:

Grab the color_xterm termcap file from a Linux box. You can download the one we used here.

As root:

Code: Select all

mkdir /usr/share/lib/terminfo/c
cp color_xterm /usr/share/lib/terminfo/c/
cp /usr/freeware/share/vim/vim60/vimrc_example.vim ~/.vimrc


Finally set your TERM environment variable to "color_xterm", and all should be well.

This was tried under aterm; other terminals should also work.
Last edited by nekonoko on Tue Dec 07, 2004 10:07 am, edited 1 time in total.
Twitter: @neko_no_ko
IRIX Release 4.0.5 IP12 Version 06151813 System V
Copyright 1987-1992 Silicon Graphics, Inc.
All Rights Reserved.

User avatar
semi-fly
Posts: 786
Joined: Fri Feb 21, 2003 5:29 am
Location: Ypsitucky, MI
Contact:

Unread postby semi-fly » Tue Mar 04, 2003 7:45 am

Can the termcap file be used for other applications, like 'ls' color syntax highlighting? I'm stuck at work, otherwise I would start palying with the file. :(

User avatar
nekonoko
Site Admin
Site Admin
Posts: 8145
Joined: Thu Jan 23, 2003 1:31 am
Location: Pleasanton, California
Contact:

Unread postby nekonoko » Tue Mar 04, 2003 7:49 am

Sure ... though that's possible even with standard 'xterm'. Just add an alias in your shell startup file like this one (color ls is located in fileutils-4.1 GNU file utilities SGI Freeware package):

alias ls '/usr/freeware/bin/ls -C -F --color=auto'
Last edited by nekonoko on Wed Mar 05, 2003 12:52 am, edited 1 time in total.
Twitter: @neko_no_ko
IRIX Release 4.0.5 IP12 Version 06151813 System V
Copyright 1987-1992 Silicon Graphics, Inc.
All Rights Reserved.

vegac
Posts: 745
Joined: Thu Jan 23, 2003 11:34 am
Contact:

Unread postby vegac » Tue Mar 04, 2003 10:23 am

or for people using bash, like myself
alias ls="/usr/freeware/bin/ls -C -F --color"

also, you MAY have to add
eval `dircolors`
to your shell startup to get the colors set (not sure about that, I just did it by default because I always have)


Return to “Getting Started, Documentation, Tips & Tricks”

Who is online

Users browsing this forum: No registered users and 2 guests