Sample Header Ad - 728x90

Check if terminal supports 24-bit / true color

27 votes
3 answers
28266 views
In a shell script, how can I test programmatically whether or not the terminal supports 24-bit or true color? ---- Related: [This question](https://unix.stackexchange.com/questions/404414/print-truecolor-24-bit-test-pattern) is about printing a 24-bit / truecolor test pattern for eyeball verification
Asked by Tom Hale (32892 rep)
Jun 18, 2018, 02:02 AM
Last activity: Jul 22, 2025, 01:31 AM