Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why do we have max. 256 colors in terminal emulators? [closed]

I was just fiddling around with a 256 color VIM theme and noticed that 256 colors are just not enough sometimes. I would love a terminal that supports at least the HTML color range from #000000 to #FFFFFF (65536 colors).

So i asked myself...

  • Is there a good reason why there is no terminal emulator with more than 256 colors?

  • Or am i missing out on one and somebody already built one?

like image 719
Patrick Oscity Avatar asked May 23 '13 09:05

Patrick Oscity


1 Answers

It's because that's how many colors you could encode in a single byte. Not only that, actually most terminals only had 16 colors (using only 4 of the 8 bits) the other 4 bits were flags used to indicate some thing to do with a character. Most common flags were: highlight, underline, blinking and reverse; (or some other terminal capability)

like image 133
Ahmed Masud Avatar answered Nov 20 '22 00:11

Ahmed Masud