@@ -113,14 +113,18 @@ end
113113
114114Print `xs` in a color specified as a symbol or integer, optionally in bold.
115115
116- `color` may take any of the values $(Base. available_text_colors_docstring)
116+ Keyword `color` may take any of the values $(Base. available_text_colors_docstring)
117117or an integer between 0 and 255 inclusive. Note that not all terminals support 256 colors.
118- If the keyword `bold` is given as `true`, the result will be printed in bold.
119- If the keyword `underline` is given as `true`, the result will be printed underlined.
120- If the keyword `blink` is given as `true`, the result will blink.
121- If the keyword `reverse` is given as `true`, the result will have foreground and background colors inversed.
122- If the keyword `hidden` is given as `true`, the result will be hidden.
123- Keywords can be given in any combination.
118+
119+ Keywords `bold=true`, `underline=true`, `blink=true` are self-explanatory.
120+ Keyword `reverse=true` prints with foreground and background colors exchanged,
121+ and `hidden=true` should be invisibe in the terminal but can still be copied.
122+ These properties can be used in any combination.
123+
124+ See also [`print`](@ref), [`println`](@ref), [`show`](@ref).
125+
126+ !!! compat "Julia 1.7"
127+ Keywords except `color` and `bold` were added in Julia 1.7.
124128"""
125129printstyled (io:: IO , msg... ; bold:: Bool = false , underline:: Bool = false , blink:: Bool = false , reverse:: Bool = false , hidden:: Bool = false , color:: Union{Int,Symbol} = :normal ) =
126130 with_output_color (print, color, io, msg... ; bold= bold, underline= underline, blink= blink, reverse= reverse, hidden= hidden)
0 commit comments