Skip to content

Commit

Permalink
Merge pull request #246 from mgeisler/show-build-type
Browse files Browse the repository at this point in the history
Show build type (debug/release) in interactive demo
  • Loading branch information
mgeisler committed Dec 8, 2020
2 parents b144032 + 1f3f834 commit 47e7062
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions examples/interactive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,20 @@ mod unix_only {
)?;
right_row += 1;

write!(
stdout,
"{}- build: {}{}{}",
cursor::Goto(right_col, right_row),
style::Bold,
if cfg!(debug_assertions) {
"debug"
} else {
"release"
},
style::Reset,
)?;
right_row += 1;

write!(
stdout,
"{}- words: {}{}{}",
Expand Down

0 comments on commit 47e7062

Please sign in to comment.