On this page
libtmux.Pane.display_popup
- Module
- libtmux
- Declared in
- Pane
- Package
- libtmux
- Source
- src/libtmux/pane.py
-
Display a popup overlay via
$ tmux display-popup.Requires tmux 3.2+ and an attached client. Use
ControlModein tests to provide a client.Examples
Not directly testable — popup rendering requires a TTY-backed client. Control-mode provides an attached client for invocation but the popup itself is not visible or verifiable.
>>> with control_mode() as ctl: ... pane.display_popup(command='true', close_on_exit=True)- Parameters
-
-
close_on_exit ( bool | None ) – Close popup when command exits (
-Eflag). -
close_on_success ( bool | None ) – Close popup only on success exit code (
-EEflag, passing-Etwice). -
close_existing ( bool | None ) – Close any existing popup on the client (
-Cflag). -
target_client ( str | None ) – Display the popup on this specific client (
-cflag). When omitted, tmux selects the client attached to this pane's session. With multiple clients attached, pass *target_client* to direct the popup at one of them. -
start_directory ( StrPath | None ) – Working directory (
-dflag). -
title ( str | None ) – Popup title (
-Tflag). Requires tmux 3.3+. -
border_lines ( str | None ) – Border line style (
-bflag). Requires tmux 3.3+. -
style ( str | None ) – Popup style (
-sflag). Requires tmux 3.3+. -
border_style ( str | None ) – Border style (
-Sflag). Requires tmux 3.3+. -
environment ( dict[str, str] | None ) – Environment variables (
-eflag). Requires tmux 3.3+. -
no_border ( bool | None ) – Open the popup without a border (
-Bflag). If *border_lines* is also set, tmux ignores it. Requires tmux 3.3+. -
close_on_any_key ( bool | None ) – Dismiss the popup on any key press once the inner command has exited (
-kflag). Requires tmux 3.6+. -
no_keys ( bool | None ) – Do not auto-close the popup on any close-trigger keys (
-Nflag). Requires tmux 3.6+.
0 declared, 0 inherited