diff options
Diffstat (limited to 'src/cli')
| -rw-r--r-- | src/cli/mod.rs | 5 |
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 |
