Skip to content

Commit b7325aa

Browse files
committed
Use horizontal separators instead of box borders for terminal compatibility
Block characters render double-width in many terminal fonts (Ghostty, kitty, etc), breaking right-side box alignment. Replace closed box with top/bottom horizontal separators that render cleanly everywhere. Also simplify plain text fallback to match.
1 parent e492c31 commit b7325aa

1 file changed

Lines changed: 32 additions & 33 deletions

File tree

bin/kodra

Lines changed: 32 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -57,24 +57,22 @@ show_help() {
5757
echo ""
5858

5959
if [ "$use_color" = true ]; then
60-
# ── Boxed header card ──
61-
echo -e " ${DIMMER}╭──────────────────────────────────────────────────╮${NC}"
62-
echo -e " ${DIMMER}${NC} ${DIMMER}${NC}"
63-
echo -e " ${DIMMER}${NC} ${C1}██╗ ██╗${C2} ██████╗ ${C3}██████╗ ${C4}██████╗ ${C5} █████╗${NC} ${DIMMER}${NC}"
64-
echo -e " ${DIMMER}${NC} ${C1}██║ ██╔╝${C2}██╔═══██╗${C3}██╔══██╗${C4}██╔══██╗${C5}██╔══██╗${NC} ${DIMMER}${NC}"
65-
echo -e " ${DIMMER}${NC} ${C1}█████╔╝ ${C2}██║ ██║${C3}██║ ██║${C4}██████╔╝${C5}███████║${NC} ${DIMMER}${NC}"
66-
echo -e " ${DIMMER}${NC} ${C1}██╔═██╗ ${C2}██║ ██║${C3}██║ ██║${C4}██╔══██╗${C5}██╔══██║${NC} ${DIMMER}${NC}"
67-
echo -e " ${DIMMER}${NC} ${C1}██║ ██╗${C2}╚██████╔╝${C3}██████╔╝${C4}██║ ██║${C5}██║ ██║${NC} ${DIMMER}${NC}"
68-
echo -e " ${DIMMER}${NC} ${C1}╚═╝ ╚═╝${C2} ╚═════╝ ${C3}╚═════╝ ${C4}╚═╝ ╚═╝${C5}╚═╝ ╚═╝${NC} ${DIMMER}${NC}"
69-
echo -e " ${DIMMER}${NC} ${DIMMER}${NC}"
70-
echo -e " ${DIMMER}${NC} ${WHITE}v${VERSION}${NC} ${DIMMER}·${NC} ${DIM}A Code To Cloud Project${NC} ${DIMMER}${NC}"
71-
echo -e " ${DIMMER}${NC} ${DIM}kodra.codetocloud.io${NC} ${DIMMER}${NC}"
72-
echo -e " ${DIMMER}${NC} ${DIMMER}${NC}"
73-
local theme_text=" Theme: ${current_theme}"
74-
local theme_pad=$((50 - ${#theme_text}))
75-
[ $theme_pad -lt 1 ] && theme_pad=1
76-
printf " ${DIMMER}${NC} ${DIM}Theme:${NC} ${GREEN}${current_theme}${NC}%*s${DIMMER}${NC}\n" "$theme_pad" ""
77-
echo -e " ${DIMMER}╰──────────────────────────────────────────────────╯${NC}"
60+
# ── Header card (open-right to avoid alignment issues with block chars) ──
61+
echo -e " ${DIMMER}━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━${NC}"
62+
echo ""
63+
echo -e " ${C1}██╗ ██╗${C2} ██████╗ ${C3}██████╗ ${C4}██████╗ ${C5} █████╗${NC}"
64+
echo -e " ${C1}██║ ██╔╝${C2}██╔═══██╗${C3}██╔══██╗${C4}██╔══██╗${C5}██╔══██╗${NC}"
65+
echo -e " ${C1}█████╔╝ ${C2}██║ ██║${C3}██║ ██║${C4}██████╔╝${C5}███████║${NC}"
66+
echo -e " ${C1}██╔═██╗ ${C2}██║ ██║${C3}██║ ██║${C4}██╔══██╗${C5}██╔══██║${NC}"
67+
echo -e " ${C1}██║ ██╗${C2}╚██████╔╝${C3}██████╔╝${C4}██║ ██║${C5}██║ ██║${NC}"
68+
echo -e " ${C1}╚═╝ ╚═╝${C2} ╚═════╝ ${C3}╚═════╝ ${C4}╚═╝ ╚═╝${C5}╚═╝ ╚═╝${NC}"
69+
echo ""
70+
echo -e " ${WHITE}v${VERSION}${NC} ${DIMMER}·${NC} ${DIM}A Code To Cloud Project${NC}"
71+
echo -e " ${DIM}kodra.codetocloud.io${NC}"
72+
echo ""
73+
echo -e " ${DIM}Theme:${NC} ${GREEN}${current_theme}${NC}"
74+
echo ""
75+
echo -e " ${DIMMER}━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━${NC}"
7876
echo ""
7977

8078
# ── Commands ──
@@ -128,25 +126,26 @@ show_help() {
128126
echo -e " ${WHITE}restart${NC} Restart the system"
129127
echo -e " ${WHITE}shutdown${NC} Shutdown the system"
130128
echo ""
131-
echo -e " ${DIMMER}────────────────────────────────────────────────────────────${NC}"
129+
echo -e " ${DIMMER}──────────────────────────────────────────────────────${NC}"
132130
echo -e " ${DIM}→ Run ${WHITE}kodra menu${DIM} for guided, interactive usage${NC}"
133131
echo -e " ${DIM}→ Run ${WHITE}kodra doctor${DIM} if something feels off${NC}"
134132
else
135133
# ── Plain text fallback ──
136-
echo " +--------------------------------------------------+"
137-
echo " | |"
138-
echo " | ██╗ ██╗ ██████╗ ██████╗ ██████╗ █████╗ |"
139-
echo " | ██║ ██╔╝██╔═══██╗██╔══██╗██╔══██╗██╔══██╗ |"
140-
echo " | █████╔╝ ██║ ██║██║ ██║██████╔╝███████║ |"
141-
echo " | ██╔═██╗ ██║ ██║██║ ██║██╔══██╗██╔══██║ |"
142-
echo " | ██║ ██╗╚██████╔╝██████╔╝██║ ██║██║ ██║ |"
143-
echo " | ╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ |"
144-
echo " | |"
145-
echo " | v${VERSION} · A Code To Cloud Project |"
146-
echo " | kodra.codetocloud.io |"
147-
echo " | |"
148-
echo " | Theme: ${current_theme} |"
149-
echo " +--------------------------------------------------+"
134+
echo " ========================================================"
135+
echo ""
136+
echo " ██╗ ██╗ ██████╗ ██████╗ ██████╗ █████╗"
137+
echo " ██║ ██╔╝██╔═══██╗██╔══██╗██╔══██╗██╔══██╗"
138+
echo " █████╔╝ ██║ ██║██║ ██║██████╔╝███████║"
139+
echo " ██╔═██╗ ██║ ██║██║ ██║██╔══██╗██╔══██║"
140+
echo " ██║ ██╗╚██████╔╝██████╔╝██║ ██║██║ ██║"
141+
echo " ╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝"
142+
echo ""
143+
echo " v${VERSION} · A Code To Cloud Project"
144+
echo " kodra.codetocloud.io"
145+
echo ""
146+
echo " Theme: ${current_theme}"
147+
echo ""
148+
echo " ========================================================"
150149
echo ""
151150
echo " Usage: kodra <command> [options]"
152151
echo ""

0 commit comments

Comments
 (0)