Function Terminal.underline

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

Note

the Windows console does not support underlining