I want to use 8-Bit and 24-Bit colours in terminal, and have seen some different versions.
Code:
code="\e[38;5;${if}m"
code="\e[38;5;${ir};${ig};${ib}m"
I am unsure about the second number 5, sometimes it is 2. Have read that it is also related to Font Effects.
Have also noticed that the Font Effect only affects the foreground and can be included separately (e.g.
\e[5m). Is this correct ?
Code:
code="\e[5m\e[38;5;${ir};${ig};${ib}m"