class_docstr: Toolbar for a system prompt.
  
  :param prompt: Prompt to be displayed to the user.
class_docstr_tok: ["Toolbar","for","a","system","prompt",".",":","param","prompt",":","Prompt","to","be","displayed","to","the","user","."]
code: def __init__(
      self,
      prompt: AnyFormattedText = "Shell command: ",
      enable_global_bindings: FilterOrBool = True,
  ) -> None:
      self.prompt = prompt
      self.enable_global_bindings = to_filter(enable_global_bindings)
  
      self.system_buffer = Buffer(name=SYSTEM_BUFFER)
  
      self._bindings = self._build_key_bindings()
  
      self.buffer_control = BufferControl(
          buffer=self.system_buffer,
          lexer=SimpleLexer(style="class:system-toolbar.text"),
          input_processors=[
              BeforeInput(
                  lambda: self.prompt, style="class:system-toolbar"
              )
          ],
          key_bindings=self._bindings,
      )
  
      self.window = Window(
          self.buffer_control, height=1, style="class:system-toolbar"
      )
  
      self.container = ConditionalContainer(
          content=self.window, filter=has_focus(self.system_buffer)
      )
  
imports: from __future__ import annotations
  from typing import Any
  from prompt_toolkit.application.current import get_app
  from prompt_toolkit.buffer import Buffer
  from prompt_toolkit.enums import SYSTEM_BUFFER
  from prompt_toolkit.filters import Condition, FilterOrBool, emacs_mode, has_arg, has_completions, has_focus, has_validation_error, to_filter, vi_mode, vi_navigation_mode
  from prompt_toolkit.formatted_text import AnyFormattedText, StyleAndTextTuples, fragment_list_len, to_formatted_text
  from prompt_toolkit.key_binding.key_bindings import ConditionalKeyBindings, KeyBindings, KeyBindingsBase, merge_key_bindings
  from prompt_toolkit.key_binding.key_processor import KeyPressEvent
  from prompt_toolkit.key_binding.vi_state import InputMode
  from prompt_toolkit.keys import Keys
  from prompt_toolkit.layout.containers import ConditionalContainer, Container, Window
  from prompt_toolkit.layout.controls import BufferControl, FormattedTextControl, SearchBufferControl, UIContent, UIControl
  from prompt_toolkit.layout.dimension import Dimension
  from prompt_toolkit.layout.processors import BeforeInput
  from prompt_toolkit.lexers import SimpleLexer
  from prompt_toolkit.search import SearchDirection
label_desc: Use image node_id 1 to create a new SystemToolbar object  with example: obj = SystemToolbar(prompt, enable_global_bindings)