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

Questions about other topics - please check if your question fits better in another category before posting here
Forum rules
Before you post please read how to get help

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

Postby jmiranda on Sat Oct 27, 2012 4:39 am

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!
Last edited by jmiranda on Sat Oct 27, 2012 7:09 am, edited 1 time in total.
jmiranda
Level 1
Level 1
 
Posts: 2
Joined: Sat Oct 27, 2012 3:15 am

Linux Mint is funded by ads and donations.
 

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

Postby xenopeek on Sat Oct 27, 2012 5:52 am

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 :)
User avatar
xenopeek
Level 21
Level 21
 
Posts: 15449
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

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

Postby jmiranda on Sat Oct 27, 2012 7:15 am

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
jmiranda
Level 1
Level 1
 
Posts: 2
Joined: Sat Oct 27, 2012 3:15 am


Return to Other topics

Who is online

Users browsing this forum: No registered users and 10 guests