MCPcopy
hub / github.com/mitmproxy/mitmproxy / sig_prompt_command

Method sig_prompt_command

mitmproxy/tools/console/statusbar.py:114–124  ·  view source on GitHub ↗
(self, partial: str = "", cursor: int | None = None)

Source from the content-addressed store, hash-verified

112 self.prompting = callback
113
114 def sig_prompt_command(self, partial: str = "", cursor: int | None = None) -> None:
115 self.ensure_bottom_bar_is_visible()
116 signals.focus.send(section="footer")
117 self.top._w = commander.CommandEdit(
118 self.master,
119 partial,
120 )
121 if cursor is not None:
122 self.top._w.cbuf.cursor = cursor
123 self.bottom._w = urwid.Text("")
124 self.prompting = self.execute_command
125
126 def execute_command(self, txt: str) -> None:
127 if txt.strip():

Callers

nothing calls this directly

Calls 2

sendMethod · 0.45

Tested by

no test coverage detected