Skip to content

Commit

Permalink
refactor: more visibility marking
Browse files Browse the repository at this point in the history
  • Loading branch information
noaione committed Jan 5, 2024
1 parent 8f9769b commit 3869d3c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tosho/src/term.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,18 @@ impl std::fmt::Display for ConsoleChoice {

pub struct Terminal {
debug: u8,
#[cfg(windows)]
modern_win: bool,
}

impl Terminal {
fn new(debug: u8) -> Self {
let modern_win = check_windows_vt_support();
Self { debug, modern_win }
Self {
debug,
#[cfg(windows)]
modern_win,
}
}

/// Log info to terminal
Expand Down

0 comments on commit 3869d3c

Please sign in to comment.