I'd like to check if the current terminal is able to display italics correctly.Checking that manually is easy:echo -e \e[3mfoo\e[23mIf the output is foo, the terminal (-emulator) supports italics.However, I'd like to test in my .zshrc if italics are supported programmatically.What is the best practice to do that?If (at all) possible, I'd like my standard Linux console to be able to use italics as well. Problem is, the manual test fails, any ideas how to make italics possible in there?(this is not part of the original question. It's too vague and meaningless to ask as a stand-along question, though.)
How to programmatically check if the terminal supports italics?
terminal;console;terminal emulator