Skip to content

Commit 72afe51

Browse files
use StyledStrings
1 parent fdcce47 commit 72afe51

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

stdlib/REPL/src/REPL.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1231,10 +1231,8 @@ function setup_interface(
12311231
global pkg_mode
12321232
if pkg_mode === nothing
12331233
LineEdit.clear_line(LineEdit.terminal(s))
1234-
Base.printstyled(LineEdit.terminal(s), "(", color = :blue)
12351234
# use 6 .'s here because its the same width as the most likely `@v1.xx` env name
1236-
Base.printstyled(LineEdit.terminal(s), "......", color = :light_black)
1237-
Base.printstyled(LineEdit.terminal(s), ") pkg> ", color = :blue)
1235+
print(LineEdit.terminal(s), styled"{blue:({gray:......}) pkg> }")
12381236
# spawn Pkg load to avoid blocking typing during loading. Typing will block if only 1 thread
12391237
t_replswitch = Threads.@spawn begin
12401238
pkgid = Base.PkgId(Base.UUID("44cfe95a-1eb2-52ea-b672-e2afdf69b78f"), "Pkg")

0 commit comments

Comments
 (0)