MCPcopy
hub / github.com/prompt-toolkit/ptpython / _handle_keyboard_interrupt

Method _handle_keyboard_interrupt

src/ptpython/repl.py:401–405  ·  view source on GitHub ↗
(self, e: KeyboardInterrupt)

Source from the content-addressed store, hash-verified

399 )
400
401 def _handle_keyboard_interrupt(self, e: KeyboardInterrupt) -> None:
402 output = self.app.output
403
404 output.write("\rKeyboardInterrupt\n\n")
405 output.flush()
406
407 def _add_to_namespace(self) -> None:
408 """

Callers 3

run_asyncMethod · 0.95

Calls 2

flushMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected