Skip to content

Commit

Permalink
use StyledStrings
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth committed Jun 1, 2024
1 parent fdcce47 commit 72afe51
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions stdlib/REPL/src/REPL.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1231,10 +1231,8 @@ function setup_interface(
global pkg_mode
if pkg_mode === nothing
LineEdit.clear_line(LineEdit.terminal(s))
Base.printstyled(LineEdit.terminal(s), "(", color = :blue)
# use 6 .'s here because its the same width as the most likely `@v1.xx` env name
Base.printstyled(LineEdit.terminal(s), "......", color = :light_black)
Base.printstyled(LineEdit.terminal(s), ") pkg> ", color = :blue)
print(LineEdit.terminal(s), styled"{blue:({gray:......}) pkg> }")
# spawn Pkg load to avoid blocking typing during loading. Typing will block if only 1 thread
t_replswitch = Threads.@spawn begin
pkgid = Base.PkgId(Base.UUID("44cfe95a-1eb2-52ea-b672-e2afdf69b78f"), "Pkg")
Expand Down

0 comments on commit 72afe51

Please sign in to comment.