Colouring the output of println

In Base there is the function printstyled([io], xs...; bold::Bool=false, color::Union{Symbol,Int}=:normal), note that you will need to add “\n” to match println behaviour. E.g.

printstyled("Hello\n"; color = :blue)
9 Likes