mirror of
https://github.com/openai/codex.git
synced 2026-04-30 17:36:40 +00:00
add ability to disable input temporarily in the TUI. (#8876)
We will disable input while the elevated sandbox setup is running.
This commit is contained in:
@@ -264,6 +264,16 @@ impl BottomPane {
|
||||
self.request_redraw();
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub(crate) fn set_composer_input_enabled(
|
||||
&mut self,
|
||||
enabled: bool,
|
||||
placeholder: Option<String>,
|
||||
) {
|
||||
self.composer.set_input_enabled(enabled, placeholder);
|
||||
self.request_redraw();
|
||||
}
|
||||
|
||||
pub(crate) fn clear_composer_for_ctrl_c(&mut self) {
|
||||
self.composer.clear_for_ctrl_c();
|
||||
self.request_redraw();
|
||||
|
||||
Reference in New Issue
Block a user