Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

libtmux_mcp.prompts.recipes.interrupt_gracefully

Python
  • Python
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript Unavailable
  • Rust Unavailable
  • Go Unavailable
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

API reference · Markdown

libtmux_mcp.prompts.recipes.interrupt_gracefully ( pane_id : str ) → str
function [source]
function [source]
libtmux_mcp.prompts.recipes.interrupt_gracefully

Interrupt a running command and verify the prompt returned.

Sends C-c through send_keys(literal=True), then waits on shell-prompt patterns via wait_for_text. Fails loudly if the process ignores SIGINT — the right escalation point is the caller, not an automatic C-\ follow-up (SIGQUIT can core-dump).

Parameters
  • pane_id ( str ) – Target pane.

Esc

Type to search.