Page 1 of 1

[SOLVED] [Maya] - How to make Terminal to display 256 colors

Posted: Sat Oct 27, 2012 4:39 am
by jmiranda
Hello everyone

I need your help, please. After running this command

Code: Select all

infocmp $TERM
I've noticed this entry

Code: Select all

colors#8, cols#80, it#8, lines#24, pairs#64,
and I think that's the reason why tput colors returns 8

I would like to know if there is a proper way to change the colors entry to 256, if it is safe to do so or what problems would it cause?

Thanks in advanced!

Re: [Maya 64bits] - How to make Terminal to display 256 colo

Posted: Sat Oct 27, 2012 5:52 am
by xenopeek
Open your system's text editor (e.g., Gedit, Pluma, or Kate) and in a new file put the following line:

Code: Select all

export TERM="xterm-256color"
Save the file as .bashrc (note the dot at the beginning) in your user's home folder. In your file manager you'll have to press Ctrl+H at a later stage to show hidden files, to see file again.

tput colors will now return 8.

Edit: tput colors will of course now return 256, or what was the point of doing this :)

Re: [SOLVED] [Maya] - How to make Terminal to display 256 co

Posted: Sat Oct 27, 2012 7:15 am
by jmiranda
Vincent, thanks for your help. Now tput returns 256 :)

Edit:
tput colors will of course now return 256, or what was the point of doing this :)
I was trying to install CSApprox plugin for spf13-vim when I got this message "CSApprox skipped; terminal only has 8 colors, not 88/256", then I narrowed the problem down to this option, that's how I got here, thanks por your help :D