libtmux Reference MCP Search
On this page

tmux.DisplayPopupRequest

View as Markdown

Module
tmux
Package
github.com/libtmux/libtmux-go/tmux
Source
tmux/pane_popup.go
struct tmux.DisplayPopupRequest
struct [source]
struct [source]
struct tmux.DisplayPopupRequest

DisplayPopupRequest configures a popup overlay. Pointer and map values are copied before I/O and must not be mutated concurrently. Pointer fields distinguish omission from an explicit empty value, with the Command and StartDirectory behavior documented on those fields.

CloseOnExit and CloseOnSuccess are mutually exclusive. CloseExisting asks tmux only to close the existing overlay, so the remaining fields do not create a replacement. NoBorder makes BorderLines ineffective. When modifying an existing popup, NoKeys clears its configured automatic-close flags before tmux applies CloseOnExit, CloseOnSuccess, and CloseOnAnyKey from this request. NoKeys does not disable keyboard input.

18 declared, 0 inherited

Members

  • BorderLines attribute BorderLines selects tmux's border-line style. NoBorder makes it ineffective.
  • BorderStyle attribute BorderStyle selects the tmux style for the popup border.
  • CloseExisting attribute CloseExisting closes the selected client's existing overlay and prevents this request from creating a replacement.
  • CloseOnAnyKey attribute CloseOnAnyKey lets a nonmouse, nonpaste key dismiss the popup after its command has exited. It does not dismiss the popup while the job is active; tmux continues to send keys to that job.
  • CloseOnExit attribute CloseOnExit closes the overlay whenever Command exits.
  • CloseOnSuccess attribute CloseOnSuccess closes the overlay only when Command exits successfully.
  • Command attribute Command is interpreted by tmux as a shell command. Nil lets tmux use default-command and then its default shell; nonnil empty is passed explicitly and tmux resolves it directly to the default shell.
  • Environment attribute Environment adds validated popup environment entries. Nil and an empty map add none; entries are sent in lexical key order.
  • Height attribute Height is an explicit cell count or percentage and may contain tmux format expressions. Nil lets tmux choose the default height.
  • NoBorder attribute NoBorder removes the popup border and makes BorderLines ineffective.
  • NoKeys attribute NoKeys clears automatic-close flags previously configured on an existing popup. Same-request close flags are then applied, and key input remains enabled.
  • StartDirectory attribute StartDirectory selects the popup working directory. Nil omits the option; nonnil empty is normalized to ".". The library expands a leading local ~ before tmux expands formats in the resulting value.
  • Style attribute Style selects the tmux style for the popup interior.
  • TargetClient attribute TargetClient selects the client that receives the overlay; zero lets tmux choose.
  • Title attribute Title is the popup title format. Nil leaves the tmux default.
  • Width attribute Width is an explicit cell count or percentage and may contain tmux format expressions. Nil lets tmux choose the default width.
  • X attribute X is a tmux popup position expression and may contain tmux formats. Nil lets tmux choose the horizontal position.
  • Y attribute Y is a tmux popup position expression and may contain tmux formats. Nil lets tmux choose the vertical position.
Esc

Type to search.