Suppose, I have a system without X server. I can only log in from the console. It seems, by default linux console supports only 8 colors:
# tput colors
8
Is it possible to use 256 colors in the console, same as I would use in a terminal emulator (ie terminator) ?
While googling, Ihave found many similar questions (many of them over 10 years old), but none clear answer. Somebody suggests to use framebuffer, some other people suggest to append TERM argument to kernel boot options.
At the moment, I only pass one extra option as kernel boot parameter:
append="video=1280x720"
I believe passing the video resolution only works in modern kernels with kernel mode setting support, but I am not sure about that.
Is it possible to use 256 colors in modern linux console (tty)
How?
I am using Debian Wheezy with kernel 4.1
UPDATE:
based on suggestion from @muru, I have tried fbterm. While it works with 256 colors, it has very ugly/garbled fonts. Besides, there is a constantly blinking cursor in the lower-left corner, which I find distracting.
Can I use 256 colors in the console without fbterm/framebuffer ?
Where does the 8 color limit in the console come from ?
TERMtoxterm-256colorfor the Linux console, you'll simply open up another can of worms. This link gives a hint. – Thomas Dickey Jan 09 '16 at 13:06$TERM(has to befbtermbefore you startfbterm) or not 32bit video mode or both. Turn off the console cursor before startingfbterm, and turn it on once you are there, usingtput. https://unix.stackexchange.com/questions/220330/hide-and-unhide-cursor-with-tput – Paul Wratt Mar 28 '20 at 14:47fbtermsource, and it would be simple (but time consuming) to convert the escape code sequences to usexterm-256colorinstead (fbterm-xterm). The$TERMwould also need to be inlined withterminfoandtermcapnaming conventions (fbterm-xterm-256colororfbterm-256color) to "slot" into existing shell scripts. Note thatfbtermusesTERM=fbtermas a switch to turn on the 256 color option, otherwise its 16 colors (or maybe the same as the underlying). – Paul Wratt Mar 28 '20 at 15:11