diff --git a/src/io.jl b/src/io.jl index 4e3a3bc..c2421d2 100644 --- a/src/io.jl +++ b/src/io.jl @@ -183,7 +183,8 @@ function termstyle(io::IO, face::Face, lastface::Face=getface()) # Kitty fancy underlines, see # Supported in Kitty, VTE, iTerm2, Alacritty, and Wezterm. face.underline == lastface.underline || - if haskey(Base.current_terminfo, :set_underline_style) + if haskey(Base.current_terminfo, :set_underline_style) || + get(Base.current_terminfo, :can_style_underline, false) if face.underline isa Tuple # Color and style color, style = face.underline print(io, "\e[4:",