Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .Jules/palette.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,7 @@
## 2026-07-28 - [Box Drawing for Modern Aesthetics]
**Learning:** Legacy CLI tools often use ASCII characters (like `*`) for separators, which can feel dated. Replacing them with Unicode box-drawing characters (like `─`) creates a cleaner, more continuous visual flow that matches modern design sensibilities without sacrificing terminal compatibility.
**Action:** Replace repeated ASCII separator characters with their Unicode box-drawing equivalents (`─`, `━`, `═`) in headers and banners to improve visual polish.

## 2024-05-25 - [Framed Banners for Context Switching]
**Learning:** Simple horizontal lines often get lost in verbose CLI output. Framing major context switches (like starting a playbook) with a full Unicode box (`β”Œ`, `β”‚`, `β””`) creates a strong visual anchor that helps users rapidly identify the beginning of a new execution phase.
**Action:** Use box-drawing characters to enclose high-level banners, ensuring proper padding calculation (`measure_text_width`) to handle Unicode titles correctly.
30 changes: 23 additions & 7 deletions src/cli/output.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,31 @@ impl OutputFormatter {
}

let width = measure_text_width(title);
let line = "─".repeat(width + 4);
let horizontal = "─".repeat(width + 2);

if self.use_color {
println!("\n{}", line.bright_blue());
println!("{}", format!(" {} ", title).bright_blue().bold());
println!("{}\n", line.bright_blue());
println!(
"\n{}{}{}",
"β”Œ".bright_blue(),
horizontal.bright_blue(),
"┐".bright_blue()
);
println!(
"{} {} {}",
"β”‚".bright_blue(),
title.bright_blue().bold(),
"β”‚".bright_blue()
);
println!(
"{}{}{}\n",
"β””".bright_blue(),
horizontal.bright_blue(),
"β”˜".bright_blue()
);
} else {
println!("\n{}", line);
println!(" {} ", title);
println!("{}\n", line);
println!("\nβ”Œ{}┐", horizontal);
println!("β”‚ {} β”‚", title);
println!("β””{}β”˜\n", horizontal);
}
}

Expand Down
Loading