diff --git a/base/client.jl b/base/client.jl index 1183734c359349..cbfde9210eaa1a 100644 --- a/base/client.jl +++ b/base/client.jl @@ -438,16 +438,57 @@ function banner(io::IO = stdout) doclink = S"{bold:Documentation:} {(underline=grey),link={https://docs.julialang.org}:https://docs.julialang.org}" help = S"Type {region,julia_help_prompt:?} for help, {region,julia_pkg_prompt:]?} for {(underline=grey),link={https://pkgdocs.julialang.org/}:Pkg} help." - print(io, S""" - {bold,green:_} - {bold,blue:_} _ {bold:{red:_}{green:(_)}{magenta:_}} {shadow:│} $doclink - {bold,blue:(_)} | {bold:{red:(_)} {magenta:(_)}} {shadow:│} - _ _ _| |_ __ _ {shadow:│} $help - | | | | | | |/ _` | {shadow:│} - | | |_| | | | (_| | {shadow:│} Version {bold:$VERSION}$commit_date - _/ |\\__'_|_|_|\\__'_| {shadow:│} $commit_string - |__/ {shadow:│} - \n""") + if all(displaysize(io) .>= (20, 70)) # Full size + print(io, S""" + {bold,green:_} + {bold,blue:_} _ {bold:{red:_}{green:(_)}{magenta:_}} {shadow:│} $doclink + {bold,blue:(_)} | {bold:{red:(_)} {magenta:(_)}} {shadow:│} + _ _ _| |_ __ _ {shadow:│} $help + | | | | | | |/ _` | {shadow:│} + | | |_| | | | (_| | {shadow:│} Version {bold:$VERSION}$commit_date + _/ |\\__'_|_|_|\\__'_| {shadow:│} $commit_string + |__/ {shadow:│} + \n""") + elseif all(displaysize(io) .>= (15, 70)) # Shorter + print(io, S""" + {bold,green:_} + {bold,blue:_} _ {bold:{red:_}{green:(_)}{magenta:_}} {shadow:│} $doclink + {bold,blue:(_)} _ _ | |{bold:{red:(_)} {magenta:(_)}}_ {shadow:│} $help + | || || || || |/ _` | {shadow:│} + _/ | \\_._||_||_|\\__/_| {shadow:│} Version {bold:$VERSION}$commit_date + |__/ {shadow:│} $commit_string + \n""") + elseif all(displaysize(io) .>= (25, 45)) # Narrower + print(io, S""" + {bold,green:_} + {bold,blue:_} _ {bold:{red:_}{green:(_)}{magenta:_}} + {bold,blue:(_)} _ _ | |{bold:{red:(_)} {magenta:(_)}}_ + | || || || || |/ _` | + _/ | \\_._||_||_|\\__/_| + |__/ + + $doclink + $help + + Version {bold:$VERSION}$commit_date + $commit_string + \n""") + elseif all(displaysize(io) .>= (8, 55)) # Tiny + print(io, S""" + {bold,blue:o} ╷{green:∴} {shadow:│} $doclink + │╷ ╷││╭─┐ {shadow:│} Version {bold:$VERSION}$commit_date + │╰─┘╵╵╰─╰ {shadow:│} $commit_string + ╯ + """) + elseif all(displaysize(io) .>= (5, 25)) # Tinier + print(io, S""" + {bold,blue:o} |{green:∴} _ + ||_|||(_| + ╯{grey:{bold:$VERSION}$commit_date} + \n""") + else # Text only + print(io, S"""{bold:{blue:∴} {magenta:Julia} $VERSION}$commit_date\n""") + end end global active_repl