Function Terminal.underline

Sets or resets the terminal's text rendering options.

void underline(
  bool set,
  ForceOption force = ForceOption.automatic
);

Note

the Windows console does not support these and many Unix terminals don't either. Many will treat italic as blink and bold as brighter color. There is no way to know what will happen. So I don't recommend you use these in general. They don't even work with -version=TerminalDirectToEmulator.

History

underline was added in March 2020. italic and bold were added November 1, 2022

since they are unreliable, i didnt want to add these but did for some special requests.