mirror of https://github.com/xvxx/phetch
mode gets its own little file
parent
ab364c5b8a
commit
c951731e58
@ -0,0 +1,15 @@
|
||||
/// The mode our text UI is in. Run mode is the default while
|
||||
/// printing doesn't show the cursor, among other things.
|
||||
#[derive(Debug, PartialEq, Copy, Clone)]
|
||||
pub enum Mode {
|
||||
Run,
|
||||
Print,
|
||||
NoTTY,
|
||||
Raw,
|
||||
}
|
||||
|
||||
impl Default for Mode {
|
||||
fn default() -> Self {
|
||||
Mode::Run
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue