Skip to content

Commit ceae6c7

Browse files
committed
Fix short banner colors
1 parent a60c530 commit ceae6c7

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

pysrc/juliacall/banner.jl

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,18 @@ function __PythonCall_banner(io::IO = stdout)
2020
c = Base.text_colors
2121
tx = c[:normal] # text
2222
jl = c[:normal] # julia
23-
jc = c[:blue] # juliacall
23+
jc = c[:blue] # juliacall text
24+
jb = c[:bold] * jc # bold blue dot
2425
d1 = c[:bold] * c[:blue] # first dot
2526
d2 = c[:bold] * c[:red] # second dot
2627
d3 = c[:bold] * c[:green] # third dot
2728
d4 = c[:bold] * c[:magenta] # fourth dot
29+
d5 = c[:bold] * c[:yellow] # bold yellow dot
2830

2931
if short
3032
print(io,"""
31-
$(d3)o$(tx) | Julia $(VERSION)
32-
$(d2)o$(tx) $(d4)o$(tx) $(c[:bold] * jc)o$(tx) | PythonCall $(PythonCall.VERSION)
33+
$(jb)o$(tx) | Julia $(VERSION)
34+
$(jb)o$(tx) $(d5)o$(tx) | PythonCall $(PythonCall.VERSION)
3335
""")
3436
else
3537
print(io,""" $(d3)_$(tx)
@@ -46,8 +48,8 @@ function __PythonCall_banner(io::IO = stdout)
4648
else
4749
if short
4850
print(io,"""
49-
o | Julia $(VERSION)
50-
o o o | PythonCall $(PythonCall.VERSION)
51+
o | Julia $(VERSION)
52+
o o | PythonCall $(PythonCall.VERSION)
5153
""")
5254
else
5355
print(io,"""

0 commit comments

Comments
 (0)