I program with Emacs on Ubuntu (Hardy Heron at the moment), and I like the default text coloration in the Emacs GUI. However, the default text coloration when Emacs is run i
I was able to get pretty close with emacs 26.
I followed the Emacs FAQ to get 24-bit colors working: https://www.gnu.org/software/emacs/manual/html_mono/efaq.html#Colors-on-a-TTY
And then I changed the xterm-standard-colors variable:
(set 'xterm-standard-colors
'(("black" 0 ( 0 0 0))
("red" 1 (255 0 0))
("green" 2 ( 0 255 0))
("yellow" 3 (255 255 0))
("blue" 4 ( 0 0 255))
("magenta" 5 (255 0 255))
("cyan" 6 ( 0 255 255))
("white" 7 (255 255 255))
("brightblack" 8 (127 127 127))
("brightred" 9 (255 0 0))
("brightgreen" 10 ( 0 255 0))
("brightyellow" 11 (255 255 0))
("brightblue" 12 (92 92 255))
("brightmagenta" 13 (255 0 255))
("brightcyan" 14 ( 0 255 255))
("brightwhite" 15 (255 255 255)))
)
(I did not change the "bright*" colors because I don't use them, and they don't seem to be available in list-colors-display in X11 emacs, anyway)
With those two changes, colors look pretty much identical between X11 and terminal for me.