Output-like print

What you’re seeing is the difference between the two-argument show(io, x) (called by print) and the three-argument show(io, "text/plain", x) (called by display). See https://docs.julialang.org/en/stable/manual/types/#Custom-pretty-printing-1