Skip to content

Commit c47a67f

Browse files
committed
✨ Added a little bit of color
1 parent 7513fc4 commit c47a67f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "console-utils"
3-
version = "1.0.1"
3+
version = "1.0.2"
44
edition = "2021"
55
authors = ["Nils Wrenger <[email protected]>"]
66
description = "Cli input utilities."

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! A simple library for console-based user input and option selection.
22
3-
use console::{Key, Term};
3+
use console::{style, Key, Term};
44
use std::io::{self, Write};
55

66
/// Reads user input from the console.
@@ -136,7 +136,7 @@ pub fn select(
136136
matrix[i] = false;
137137
} else {
138138
stdout
139-
.write_line(&("[*] ".to_owned() + &options[i]))
139+
.write_line(&(format!("[{}] ", style("*").cyan()) + &options[i]))
140140
.unwrap();
141141
matrix[i] = true;
142142
}

0 commit comments

Comments
 (0)