Detect/Translate 16-color palette colors to true color for DOS colors.
When using a lot of default terminal apps for SSH/Telnet, the colors are usually using xterm 16-color defaults as opposed to DOS/ANSI 16-colors. It would be cool to translate those to 16-bit color sequences for actual DOS colors, possibly likewise for other terminal palettes?
The foreground escape sequence is \033[38;2;<r>;<g>;<b>m
The background escape sequence is \033[48;2;<r>;<g>;<b>m
Edited by Michael J. Ryan