Is there a reliable way to check how many colors my terminal emulator supports?
If echo $TERM prints xterm, does that unequivocally tell me how many colors my terminal emulator supports? How could I check this information reliably?
|
Is there a reliable way to check how many colors my terminal emulator supports? If |
|||||
|
|
The value of You can query the value of each color with the
I don't know of a more direct way. |
|||||||||||||||||
|
|
There is a perl script, 256colors2.pl, that will display all the colours on your terminal. |
||||
|
|