Skip to content

Commit

Permalink
use better looking flat and slanted separators in unicode mode
Browse files Browse the repository at this point in the history
  • Loading branch information
romkatv committed Mar 22, 2020
1 parent 5d0ae3a commit 6a0e752
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions internal/wizard.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ local -r down_triangle='\uE0BC'
local -r up_triangle='\uE0BA'
local -r fade_in='░▒▓'
local -r fade_out='▓▒░'
local -r vertical_bar='|'
local -r slanted_bar='\uE0BD'
local -r vertical_bar='\u2502'
local -r slanted_bar='\u2571'

local -r cursor='%1{\e[07m \e[27m%}'

Expand Down Expand Up @@ -739,7 +739,7 @@ function ask_charset() {
print -P ""
print -P "%B(2) ASCII.%b"
print -P ""
left_sep= right_sep= left_subsep=$vertical_bar right_subsep=$vertical_bar left_head= \
left_sep= right_sep= left_subsep='|' right_subsep='|' left_head= \
right_head= prompt_char='>' left_frame=0 right_frame=0 print_prompt
print -P ""
print -P "(r) Restart from the beginning."
Expand All @@ -755,8 +755,8 @@ function ask_charset() {
2)
left_sep=
right_sep=
left_subsep=$vertical_bar
right_subsep=$vertical_bar
left_subsep='|'
right_subsep='|'
left_head=
right_head=
prompt_char='>'
Expand Down Expand Up @@ -2147,14 +2147,17 @@ while true; do
else
left_sep=
right_sep=
left_subsep=$vertical_bar
right_subsep=$vertical_bar
left_head=
right_head=
if [[ $POWERLEVEL9K_MODE == ascii ]]; then
left_subsep='|'
right_subsep='|'
prompt_char='>'
left_frame=0
right_frame=0
else
left_subsep=$vertical_bar
right_subsep=$vertical_bar
fi
fi

Expand Down

0 comments on commit 6a0e752

Please sign in to comment.