aboutsummaryrefslogtreecommitdiff
path: root/src/cli/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/cli/mod.rs')
-rw-r--r--src/cli/mod.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cli/mod.rs b/src/cli/mod.rs
index e96070f..eda274f 100644
--- a/src/cli/mod.rs
+++ b/src/cli/mod.rs
@@ -41,6 +41,11 @@ impl CLI {
}
}
+ /// Checks if the CLI is currently active. This means input to other things should be ignored.
+ pub fn active(&self) -> bool {
+ self.active
+ }
+
/// Handle input for the command line and perform any commands the user may want to run.
pub fn update(&mut self, rl: &mut RaylibHandle, editor: &mut Editor) {
/* Check if the CLI is currently active. If not and it should not be activated according to