MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / is_shell_mode

Method is_shell_mode

crates/opencode-tui/src/components/prompt.rs:561–563  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

559 }
560
561 pub fn is_shell_mode(&self) -> bool {
562 matches!(self.mode, PromptMode::Shell)
563 }
564
565 pub fn exit_shell_mode(&mut self) {
566 self.mode = PromptMode::Normal;

Callers 2

handle_eventMethod · 0.80
submit_promptMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected