I diminish
my minor modes into single Unicode characters to save space. However, this obviously breaks down in a Linux TTY for instance. How can I detect if the current display method supports Unicode (or better yet, can display a specific character)?
Note: Simply detecting a graphical frame is not enough, as many graphical terminal emulators support Unicode, but emacs does not run in a graphical frame.
display-graphic-p
always returnsnil
when Emacs is running in a terminal, whether it's “graphical” or not.display-graphic-p
beingnil
is not strong enough to guarantee a lack of Unicode.