Core LibraryunreleasedAPI reference

Choose documentation 1

latest

Current version

latest
English

Unreleased libtmux-haskell has not been released. Its API may change during development. This site's structure and URLs may change too.

MoreLess about this notice

module libtmux-haskell

LibTmux.Creation

Checked creation options, explicit link context and historical identities.

Source and package
Qualified name
LibTmux.Creation
Package
libtmux-haskell
Source
src/LibTmux/Creation.hs

Description

LibTmux.Server executes creation in IO through an existing pinned handle. Start from defaultSessionOptions, defaultWindowOptions or defaultSplitOptions; option fields perform no IO.

A CreatedEntities contains the actual references printed by tmux before after-hooks. It remains usable after the Server closes, but proves neither current liveness nor successful process exec. Acquire a fresh snapshot and use LibTmux.Snapshot to observe those identities again.

Members19 members

Common operations12

  • WindowSlot data type An exact session/index position. The occupant can change after capture. Indices used by native commands must fit tmux's signed 32-bit domain.
  • CreatedEntities data type Historical identities printed during session, window or pane creation. A later hook may already have removed them. Resolve through a fresh captured snapshot; these references do not constitute hydrated observations or prove liveness. Read these fields with record dot; construction remains private.
  • CreatedPane typealias A CreatedEntities receipt from split-window: the pane is new; its session, physical window and link index record the exact execution context.
  • CreatedSession typealias A CreatedEntities receipt from new-session: all three entities are new.
  • CreatedWindow typealias A CreatedEntities receipt from new-window: the window and pane are new; the session and link index identify where tmux created them.
  • defaultSessionOptions function Detached creation with generated names, native geometry/environment and DefaultProcess. Creation captures the calling client's OS context in IO.
  • defaultSplitOptions function Split below the exact anchor without selection, full-window or zoom requests. Use tmux's size and launch defaults.
  • defaultWindowOptions function Generated name, native geometry*cwd*environment, no selection request, RefuseOccupied and DefaultProcess.
  • InitialProcess data type Initial pane process, retaining tmux's distinct execution modes. A native argv needs at least one argument after the executable because tmux treats a single entry as shell input. DirectCommand encodes that condition.
  • SplitOptions data type Split one exact pane through an explicit WindowSlot. The pane must occupy that slot's physical window when tmux executes the request. No active-pane lookup, reuse or replacement occurs. Launch fields follow WindowOptions.
  • WindowOptions data type Window creation through an explicit placement. Names and cwd stay literal; environment and process bytes keep tmux's native interpretation. Geometry comes from the target session. tmux may normalize or reject the name. Options carry no Show instance because launch data can contain credentials.
  • WindowPlacement data type A session's next free index, an exact slot, or insertion beside a slot. Relative insertion can shift existing indices before later creation fails; failure does not promise rollback. Grouped sessions can share these effects. If a relative slot is vacant, tmux creates at that index without insertion. After refuses index 2147483647 before dispatch: no larger index exists.

Other members7

  • defaultPaneMoveOptions function Place below the destination pane without requesting destination selection.
  • PaneMoveOptions data type Placement of a relocated pane relative to the exact destination pane.
  • PaneRelocationReceipt data type Historical evidence from the primary relocation command. Capture again to verify the requested slot and classify a break as window creation or transfer. A reported break link may be another link to the same window.
  • SessionOptions data type Checked when creation is requested. Nothing selects native defaults. Names and paths remain literal through tmux format parsing. Environment and shell/argv bytes retain their native interpretation. Options have no Show instance because command and environment data may contain credentials.
  • SplitDirection data type Orientation of the two resulting panes. before chooses the left or top side for the new pane; otherwise it appears right or below the anchor.
  • SplitSize data type Requested extent of the new pane along the split direction. Cells must fit 2147483647 and percentages must be between 1 and 100. tmux's border and layout constraints determine the actual size; a request can be clamped or refused.
  • WindowCollision data type Occupied-slot policy for creation. Replacement removes the old link; other links can keep its physical window alive. Later failure can follow removal. Replacing the selected link can select the new window despite -d.

Order: the accessors that walk the hierarchy, the operations the ports share, then the rest.

Referenced by

references 1

Declarations that take LibTmux.Creation as a pointer or callback: a reference, not a call.

Guides

task material

Pages that discuss LibTmux.Creation.

Esc
Search in

Type to search.

Reference previewOpen reference