Skip to content

Commit

Permalink
fix: make cli use constantly defined escaped codes, no hard-code
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoverth committed May 3, 2024
1 parent d169ddf commit 6897450
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {

while cond {
// enter the cli, with a nice ">" prompt
print!("\x1b[1m> \x1b[0m");
print!("{BOLD}> {RESET}");
match io::stdout().flush() {
Ok(()) => {
// if writing stdout worked, get the next line of input
Expand Down

0 comments on commit 6897450

Please sign in to comment.