Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Commit

Permalink
Add underline method to styles
Browse files Browse the repository at this point in the history
  • Loading branch information
jb3 committed May 28, 2021
1 parent a9143a1 commit a475228
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/terminal/styles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,7 @@ pub fn cyan<D>(msg: D) -> StyledObject<D> {
pub fn bold<D>(msg: D) -> StyledObject<D> {
style(msg).bold()
}

pub fn underline<D>(msg: D) -> StyledObject<D> {
style(msg).underlined()
}

0 comments on commit a475228

Please sign in to comment.