diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 4bcbbab86..c17c1d498 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -159,13 +159,35 @@ grows with a name that wraps, so a related chip's mark is held flush with its corner and as tall as the first line. The gate measures the Related APIs chips on the Scala Server, Session, Window, Pane and Client pages at 1440 pixels, where a name wraps onto several lines, and requires each chip to hold its name -and clear the next. Each check ends with a negative control that breaks what it -holds and requires the gate to notice, by the problem it names: +and clear the next. It reads the chips of the usage table on the `list-panes` +manual page the same way, and requires a chip with a qualifier to keep the width +its name needs, with the qualifier beside it or under it. Each check ends with a +negative control that breaks what it holds and requires the gate to notice, by +the problem it names: ```console $ node site/scripts/check-dev.mjs --badge-centring ``` +A link the page marks for a preview card must have a card to show. The preview +check hovers the C function link of a method page, then asks for the payload of +every marked link on four pages. It asks only for destinations the dev build +serves: one version of each port's reference, as its build target says, so the +Python reference that the other ports link to at `stable` is not asked for. What +it leaves out is bounded: only reference trees whose publisher owns the version +tree (`publishesOwnTree`), at versions the dev build does not serve. A payload +missing on a port the build does serve is reported, and the check fails if it +would not report one. Both checks run in the publication audit through the full +`check-dev.mjs` matrix, on its own source mirror and not on the assembly. The +trees it leaves out are the shell's own in the assembly (each port's shell build +renders `//reference/`), and `reference-previews.test.ts` reads +every port and tmux tree there and requires a payload beside each page a link is +marked for: + +```console +$ node site/scripts/check-dev.mjs --reference-previews +``` + Keep the complete assembly, all output suites, link audits, source/model freshness, and full browser matrix in the publication audit: @@ -204,6 +226,18 @@ similar names alone do not establish one. An overloaded page can belong to several concepts. The page dropdown and "In other ports" use these mappings, and tests require every mapped target to resolve. +A tmux command page links the methods that send the command, and a method +page links the command and the C function behind its scope. Those links come +from each port's source at the revision its API model was extracted from, not +from concepts: a method that only reads a captured snapshot has no link, and a +plan or chain that only records a command is an exclusion with cited lines. After +a port's model changes revision, regenerate the usage data with the port +checkouts present: + +```console +$ node scripts/gen-tmux-usage.mjs +``` + "Discussed in" comes from API mentions in guides, including tables and sections headed with a port name. After editing those mentions, regenerate the index: diff --git a/justfile b/justfile new file mode 100644 index 000000000..89dc9061c --- /dev/null +++ b/justfile @@ -0,0 +1,38 @@ +# Remove ignored build output. .gitignore decides what that is. +# https://just.systems/ + +# List available commands +default: + @just --list + +# Remove ignored build output such as node_modules; .env, cache and lock stay. +[group: 'clean'] +clean: + #!/usr/bin/env bash + # Untracked files, .env and .env.* files, the .build-cache/ build cache and + # the .build.lock file stay. `pnpm run clean` remains the build-aware clean + # of generated site output, and takes the lock the same way: it refuses + # while an assembly holds it. git clean inherits the descriptor, so killing + # this script does not free the lock while files are still going. + set -euo pipefail + exec 9>>.build.lock + flock --nonblock 9 || { printf 'just clean: an assembly holds .build.lock; wait for it to finish.\n' >&2; exit 1; } + git clean -fdX -e '!.env' -e '!.env.*' -e '!.build-cache/' -e '!.build.lock' + +# Preview what clean will delete. It deletes nothing, so it ignores the lock. +[group: 'clean'] +clean-dry: + git clean -ndX -e '!.env' -e '!.env.*' -e '!.build-cache/' -e '!.build.lock' + +# Remove untracked and ignored files, even the cache and lock; .env files stay. +[group: 'clean'] +[confirm("Remove untracked and ignored files, including node_modules/, the .build-cache/ build cache and the .build.lock file. Files named .env and .env.* stay. Continue?")] +nuke: + #!/usr/bin/env bash + # Refuses while an assembly holds .build.lock, as clean does, once the + # prompt is answered. git clean -x ignores .gitignore and only preserves -e + # patterns, so .env is named here rather than negated. + set -euo pipefail + exec 9>>.build.lock + flock --nonblock 9 || { printf 'just nuke: an assembly holds .build.lock; wait for it to finish.\n' >&2; exit 1; } + git clean -fdx -e '.env' -e '.env.*' diff --git a/packages/api-model/src/languages/jvm-examples.ts b/packages/api-model/src/languages/jvm-examples.ts index eac0579f6..0030a846c 100644 --- a/packages/api-model/src/languages/jvm-examples.ts +++ b/packages/api-model/src/languages/jvm-examples.ts @@ -76,7 +76,7 @@ export function attachCompleteJvmExamples( } const blocks: NonNullable = [{ lang: 'console', - intro: `${program.description.replace(/\n/g, ' ')} Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:`, + intro: `${program.description.replace(/\n/g, ' ')} Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:`, code: `$ git clone https://github.com/${source.repo}.git libtmux-source && \\\n git -C libtmux-source checkout ${source.revision}\n`, }] for (const file of files) blocks.push({ diff --git a/packages/api-model/src/parser.ts b/packages/api-model/src/parser.ts index 9bb441248..2fec1d696 100644 --- a/packages/api-model/src/parser.ts +++ b/packages/api-model/src/parser.ts @@ -31,6 +31,8 @@ const GRAMMAR = { swift: 'swift', kotlin: 'kotlin', scala: 'scala', + ruby: 'ruby', + lua: 'lua', } as const export type GrammarName = keyof typeof GRAMMAR diff --git a/scripts/README.md b/scripts/README.md index afebf4608..41f725cad 100644 --- a/scripts/README.md +++ b/scripts/README.md @@ -165,6 +165,336 @@ $ node scripts/gen-tmux-catalog.mjs --check --source ~/study/c/tmux `gen-tmux-catalog.negative.mjs` proves the check fails on stale data. +### Which library methods send a tmux command + +`gen-tmux-usage.mjs` records, per port, the public symbols whose source sends +each tmux command and at which scope, in `site/src/data/tmux-usage/.json`. +It reads each port's source at the revision its API model was extracted from, +through the port checkouts named in `ports.ts` or +`LIBTMUX_DOCS_CHECKOUT_`. Tree-sitter reads the source of most ports; +Julia, F# and Elixir have no grammar here, and `lib/tmux-usage-lexical.mjs` reads +them by their text. `GRAMMARS` in `lib/tmux-usage-scan.mjs` names the reader of +every port that has an API model. The generator fails by name for a port the +table lacks, and for a grammar `scanSource` does not read, and a test dispatches +every grammar of the table, because a port with no reader would be generated as +sending nothing. + +A command is recorded for a symbol only where it is sent. A literal that names +a command is a send when it is an argument of a call that dispatches, in the +same statement (`self.cmd("list-panes", ...)`, `run(core, Command::new("..."))`), +or when it builds a command value, bound to a name or returned, that the same +function then passes to one. The entry cites the line of that dispatch call, not +the line that spells the command. The dispatching calls of each port are in +`tmux-usage/dispatchers.json`, each with the lines of the pinned source that +show it sends what it is given (`kind: "builder"` names the calls that only +make a command value: `Command::new`, `TmuxCommand(...)`). A dispatching call is +a name, and a scan reads every call of that name as a send, so each definition a +rule cites must reach a transport: the point where the library starts the tmux +process or writes the command to a control client (`TRANSPORT` in +`lib/tmux-usage-dispatch.mjs`). The rule cites the chain, one line per hop, and +every hop is read back against the pinned source. A hop calls the next function +(`calls`), and the call on its line is resolved as a derivation resolves a call: +by what it is made on, and among the overloads of one type by the arguments it +passes (their number, and for Swift their labels), so `cmd(argv)` is not +`cmd(snapshot, argv)` and `span.run(...)` is not the `run` that spawns. A call +made on a field that holds a handle the scan cannot type (`self.executor.execute`, +`_dispatcher.ExecuteAsync`) says what it holds in `on`, which must be the type of +the function the chain goes on in, and which the call's own receiver must not +contradict; a free function is named by its file and a Julia method by the type of +its first argument. A hop that is not a call the scan can resolve (a trait object, +a delegate, a command put on a queue that another thread writes from, a Ruby +method called by its bare name) is a `leads`, and says why in `why`. A function +that shares a name with a dispatcher and sends nothing (a serializer called +`list`, a log helper called `run`) is not one, and a rule that cites it fails for +citing no chain to a transport. + +A dispatching call may take an argument that only names the command for a +failure message (`listing::mutate(core, "find-window", command)`). A rule lists +those positions as `labels`, each with the parameter that takes it, and a +literal there is not a send, is ignored when the call is judged to name another +command, and is skipped by the nested-command rule below. A literal that +reaches no dispatching call sends nothing, and is not a site: + +- a command compared against or named by a `case`; +- a row or format selector (`get_output_format("list-sessions", ...)`); +- a label or the argument of a call that checks or fails (`validate...`, + `failed(...)`, `...Error`, a `throw`); +- a command chosen among others by a ternary, a `match` arm or a receiver's + class (`is_a?(Hooks) ? "set-hook" : "set-option"`), unless every alternative is + the same command (`detach-client` with and without `-E`); +- an argument of a helper that never dispatches it. + +A helper that builds a command and returns it sends nothing itself: its caller +sends it, and is credited with three lines, the dispatch call, the call of the +helper and the literal. A command that sits in the arguments of one that runs +commands (`if-shell`, `run-shell`, `set-hook`, `bind-key`, `command-prompt`, +`confirm-before` and the like) is not sent either: in +`["if-shell", "-F", cond, quoteCommand(["resize-pane", "-Z"])]` the library +sends `if-shell`, and tmux runs `resize-pane` when the condition holds. That is +the entry for a conditional the method exists to make, such as killing a pane +only if its window is not shared: the library sends `if-shell`, and the command +inside it is a conditional entry that says when. + +A function that builds the same `if-shell` to make tmux refuse a stale or +foreign target (`IncarnationFence.guarded`, `guardedAction` in Swift, `execute_link` in Ruby) is +a guard, and is transparent: the library means the command inside it, so the +entry is the inner command, cited through the guard's hop, and the `if-shell` is +not recorded. `tmux-usage/guards.json` declares the guard functions of each port +with the lines that show each builds the wrapper and where it sits; generation +fails when a function builds no `if-shell`, when the cited lines do not hold the +text, or when a guard that only applies on some paths (`conditional`) does not +say `when`. A wrapper that is not declared is not transparent, and the command +inside it is not recorded. + +What the scan follows is a literal into a dispatch call in one statement, into +a variable or collection that a later call in the function takes, and out of a +helper that returns it to the one call that dispatches it. A command that is +handed to a helper that dispatches it (`record(names, batch, options)`), that +passes through a second helper that only returns it, or that is started as a +process (`Process.spawn`, `posix_spawnp`, `exec.Command(...).Start()`) is a claim, +because no call named in `dispatchers.json` takes it. + +A symbol that calls a function that sends is credited with the command at one +more hop for each call. A hop is matched by the function the call resolves to, +not by its name: an unqualified call or one on `self` is the caller's own +type's, a call on a handle named for a type is that type's, and a call on +anything else is left unresolved, so `Pane.split` calling `options.into_command` +is not a call of `CaptureOptions::into_command`. + +Two limits bound what the scan finds, and each is a limit on recall: what it +leaves out is not recorded unless a claim records it. `MAX_HOPS` is 1: a send +that a symbol reaches through two helpers is not credited to it (Julia's +`set_option` reaches the `show-options` that checks the option exists through +`_configuration_option_rows` and `_configuration_rows`, so it is a claim). +`MAX_SHARED_BY` is 4: a helper that more than four public symbols reach is not +credited to any of them, because its callers cannot be told apart (Julia's +identity probe at `acquisition.jl:50`). `--report` lists what each limit left out +(`no public symbol reaches it`, `a helper shared by N public symbols`), and a +send that is what a method is for, or that it makes on every call, belongs in a +claim. + +Only public API is recorded: a symbol with an underscore name, a `private` +modifier or an internal scope is left out of the scan and refused in a document. +So is a member whose signature spells a narrower visibility (`protected`, +`internal`, `fileprivate`, `pub(crate)`), and in Java, which spells no visibility +for the default, a member declared without `public` (an interface member and an +enum constant are public without saying so). + +The files in `tmux-usage/` hold what a scan cannot decide, and each line of +them is verified against the pinned source, so generation fails when one no +longer holds. `--rules ` reads another copy of them, which is how the +negative script seeds a rule that is wrong: + +- `claims.json`: a send the scan cannot see (a command named by a template, a + scope carried by a typed argument, a call into a snapshot, a chain of more + than one helper). Each claim cites the lines that make it true. A claim that + names `via` stands on a core library's entry for the same command and scope. + A send that is an alternative of the method's own purpose and that only + some arguments reach (`selectWindow("next")` sending `next-window`, `new_session` + killing an existing session when `kill_session` is set) is a claim that says the + condition in `when`; `conditional: true` makes the claim fail without one. A send made on the way to + what the method is for, such as a read of the target before the keys go to it, is + `incidental`: it is on the method's page, and the command's pages do not list the + method for it. +- `forwarders.json`: the wrappers that stand on a core library, Kotlin and + Scala on Java, F# and the PowerShell cmdlets on C#. A wrapper that calls a + core method that sends is credited at the core's scope, with both hops as + evidence; a wrapper that only builds a request sends nothing and is named in + the page's "No method in" line. +- `exclusions.json`: the symbols whose scanned send is not what a default call + does: a probe that runs only when a flag or a tmux release asks for it + (`capture` asking `list-commands` whether a flag exists), + a branch that the caller's argument never takes (`exitCopyMode` reaching the + `copy-mode` branch of a helper that `enterCopyMode` shares), or a request + option that a wrapper never sets. Each cites the lines that show the guard, + an exclusion that removes nothing fails, and `commands` limits it to those + commands of the symbols it names. A send that a call makes whether or not the + caller asked for it is not an exclusion, even when the method only makes it to + prepare the call: it is `incidental`, as the command-alias inventory a guarded + Ruby call reads before it sends is (`show-options` and `list-commands`, on the + same nine symbols). `Session#kill` reads it only when it is given expected + windows or panes, since its default call takes `super`, so its two entries say + `when`. +- `dispatchers.json`: the calls that send what they are given, per port, and the + calls that only build a command value. Each cites the lines of the pinned + source that show it and, for a call that sends, the chain from there to a + transport; generation fails when one no longer holds. +- `guards.json`: the functions that wrap a command in `if-shell` to refuse a stale + or foreign target, which the scan sees through (above). +- `conditions.json`: the condition of a send that the scan finds. It qualifies an + entry that already exists (a scanned or reviewed one) with a `when` and the + lines that show the condition, such as `Pane.sendKeys` asking `list-panes` only + when the pane is synchronized. One that qualifies no entry has gone stale and + fails. Julia's generic functions take several receiver types, and a symbol is + credited with a send only for the methods that make it: the derivation records, + for each entry, which methods of the function send it, which only reach it + through more calls than a symbol is credited across (`deep`, and the entry + stands for them), and which reach it by no call at all (`lacks`). A send that + every method makes takes no qualifier. One that some methods demonstrably do not + make says `on a Server` or `on a ControlConnection` in a condition with a + `receiver`, which fails unless the methods that send it take that type, another + method is shown not to reach it, and the condition cites the body of one of each + (`through`: the line the method ends on), because a signature line names a type + and shows neither. A method that may reach it only through a call the scan does + not resolve leaves the question open, and fails until it is settled by a claim. +- `preflights.json`: a check a library makes before every command it sends, which + is the library's own and not a send of the method that triggers it. Go probes the + daemon with `run-shell -C` before each ordinary command, so crediting every + method would list each one that sends under `run-shell`, and crediting some + would tell a reader the others never probe. No method is credited for the check + itself, and one that probes as a step of its own (a lookup, a snapshot) has an + incidental claim that says when. The rule cites the lines from the call that + makes the check to the line that spells the command, read back against the + pinned source; a test pins which methods carry the claim. The usage table has + no place for a note about one language, so the rule is the record. +- `not-senders.json`: why a public method whose own name carries a command has + no entry for it, one of `builds` (it builds a command for a caller, or only + holds one), `other-command` (it sends a different command, or runs it only + inside the arguments of one that runs commands, or passes its name to choose + the format of the row it reads), + `values` (a field or a value holder), `no-send`, or `version-gated`. Each + cites the lines that show it, and a review that settles nothing is stale and + fails. + +A `when` is at most eight words on one line, because the usage table shows it +beside the method (a muted qualifier on the chip, and after the command link on +a method page); a longer reason belongs on a page. An entry that is conditional +cannot be rendered without it. Each scope of a send says its own condition: on a +method page the item for that scope ends with it in parentheses +(`list-panes -s, cmd_list_panes_session (the spec names a first window)`), in the +Markdown the scope is followed by its own parenthesis, and in the usage table it +sits beside the chip. A command sent at two scopes under two conditions says each +beside its own scope, and a condition that every scope shares is said again on each, +so that no item has to be read with another. Writing a `when` for a condition that +is always true of the method (`Hooks#unset` sending `set-hook` "on a Hooks") +qualifies nothing. + +The same rule applies to a tmux release. A send made on every supported release +but some says which in `when`. That includes a command that exists on a supported +release and that the library refuses to send there: + +- `Shell.capturing` refuses from tmux 3.3 until 3.5, a range (the guard is + `atLeast(3.3) && !atLeast(3.5)`, so 3.3, 3.3a and 3.4 all refuse): "except from + tmux 3.3 until 3.5". +- `Pane.paste` and `Buffers.delete` refuse before 3.4, where deleting a buffer by + name can remove another, so `load-buffer`, `paste-buffer` and `delete-buffer` + say "except before tmux 3.4" in Java, Kotlin and Scala, and so does Lua's + `Server:delete_buffer`. Go's `ConfirmBefore` and `CommandPrompt` always send + `-b`, which tmux has from 3.3, and refuse before it: "except before tmux 3.3". + +A command that does not exist before a release needs no `when`. tmux has no +`new-pane` before 3.7, so the `new-pane` entries of C# and Go (which refuse by +version before sending) and of Python (which sends it and lets tmux refuse) carry +none, and neither does a command the library finds missing in `list-commands` +(Java's `show-prompt-history`): the command's page is the manual of the releases +that have it, and a method does not send the command on a release that lacks it +in a way that differs from what it does on the others. A refusal that depends on +an argument (a layout preset, a client filter, a flag newer than the release) is +not what a default call does, and is neither a `when` nor an entry. A send made on +one release only, such as the rename that `breakOut` adds on tmux 3.7 to give the +window the name that release ignores, is an exclusion, because it is not what a +call does on the others. + +Go's wrappers that call a method of another type on a handle named for it +(`p.server.X()`) are credited with that method's entries, as a wrapper on a core +library is, when the call is made on every call of the method and not under a +branch, a loop or a deferred cleanup; the entry names the callee in `via` of the +same port. + +An entry records what the default call sends, on every tmux release the port +supports at its revision. What an argument changes (`new_session` killing an +existing session of the same name, `breakPane` sending `if-shell` when no +`named:` is given) belongs to a claim that says the condition in `when`, and so +does a read the method makes of the server for its own argument, marked +`incidental` (go's `NewSession` and `NewSessionConnection` listing sessions to +find the name they were given). An exclusion is for a probe that asks the +running tmux whether it knows a flag the caller set (`capture` asking +`list-commands`), and for a branch the caller's argument never takes. An +exclusion and a claim for the same symbol, command and scope contradict each +other: the exclusion removes the claim's entry, which is how a claim recorded +once and never shown was found. The scan +does not tell a send guarded by a parameter from an unguarded one, so these were +found by listing every entry whose cited lines sit under an `if`, a `case` or a +loop and reading each; a guard written as an early `return` or `next unless` +before the send is not found that way. Among several sends of one command in a +function, the entry cites the one reached by the fewest calls and then under the +fewest branches. A method that sends one command on some of +those releases and another on the rest +is `version-gated`, and is recorded as neither; its review cites the gate, both +branches and the line that sets the supported floor below the gate, so that the +range the gate splits is shown to be supported. When a later revision raises the +floor past the gate, the fallback is gone and the method is recorded as sending +the command that remains. A refusal below some release is not a gate of this kind, +because no other command takes its place: the entry says `when` if the command +exists on the releases it refuses, and says nothing if the command does not exist +there (above). + +A claim, an exclusion or a review without a `revision` is read against the +revision its port's model was extracted from. One with a `revision` is read +against that revision instead, which is how a wrapper that shares a repository +with its core library is given the core as it stood where the wrapper is +pinned: F# is pinned at an older revision than the C# model, so its entries stand +on the C# library read there, with the claims and exclusions that carry that +revision. A wrapper in another repository, such as the PowerShell cmdlets, +stands on the release it depends on. Every `via` names the revision of the core +lines it cites. + +A claim's evidence names the line that sends, `has` its text, and `span` the +following lines of the same statement that may hold the rest when a call spans +lines: the first text must be on the cited line itself. + +`--check --source` also reads back every line each entry cites, at the revision +it names, and refuses the entry when the line does not say what the entry +claims: a scanned entry's first line is a dispatch site of the scan of that file +(a call that sends the command, not a line that spells it), and each later line +is a call of the function around the one before it, resolved by receiver and not +by name; a reviewed entry's lines hold the text its claim names, a forwarded +entry's own line calls the core method and its `via` is read as an entry of the +core at the revision it names, and no entry's first line reports a failure +(`throw`, an error constructor, `failed(...)`) or, for a claim, binds the command +to a name in a function that goes on to send it. It reads the entries as +committed, so an error made in generation that regeneration reproduces is still +seen. `gen-tmux-usage.negative.mjs` replays an entry cited at each kind of line +that is not a send, against the sources, and expects the audit to refuse it. + +A method named for a command and recorded as sending nothing of it is how a +miss is found, and the check refuses it until a claim records the send or a +review says why there is none. Nothing is listed by its name: the name only finds +the candidate, and the lines decide. `--check` runs the sweep from the committed +data, `--check --source` also reads each review's lines, and a method named for +one command that the data records as sending the command it also names is not a +candidate for the other. + +The command pages list a method that sends directly, a reviewed claim, and a +method that sends through one helper when its own name carries the verb of the +command (`Pane.sendKeys` for `send-keys`, not a method that lists panes to +refresh itself). Every send through a helper is on the method's page. + +Every command of the pinned manuals is recorded (`COMMANDS` in the script is +`all`). `site/src/data/tmux-usage/scopes.json` gives the commands that tmux +dispatches by scope their scopes and C functions, checked against both pinned C +models; a command without scope helpers has one column. + +```console +$ node scripts/gen-tmux-usage.mjs +``` + +Verify the committed data. Without `--source` this checks shape and revisions; +with it, the script regenerates from the checkouts and fails when the data is +stale. `--report` lists the sends that no public symbol was credited with, and +`--commands a,b` (or `all`) records other commands, which is how a command is +added to the pages. + +```console +$ node scripts/gen-tmux-usage.mjs --check --source +``` + +`gen-tmux-usage.negative.mjs` proves the check fails on each kind of stale +data, and on each kind of wrong rule: a dispatcher that reaches no transport, a +hop that does not hold its text, a label that names no parameter, a conditional +that does not say when, a condition that qualifies nothing, and a guard that is +not one or has been dropped. + ### Site checks Four scripts assert things the build itself cannot notice. None of them needs diff --git a/scripts/gen-tmux-usage.mjs b/scripts/gen-tmux-usage.mjs new file mode 100644 index 000000000..c48e680a1 --- /dev/null +++ b/scripts/gen-tmux-usage.mjs @@ -0,0 +1,544 @@ +#!/usr/bin/env node +/** + * Record which public symbols of each library send each tmux command. + * + * Every port's source is read at the revision its API model was extracted + * from. A send site is a command-name literal in code, with the flags written + * beside it; the scope those flags select decides which of the command's C + * functions the symbol answers. Sends a scan cannot see (a command named by a + * template, a scope passed as a typed argument) are reviewed claims in + * `scripts/tmux-usage/claims.json`; each one must still be true of the pinned + * source or generation fails. Symbols that carry a command's name and only + * build or record it (a plan, a chain, a request) are `exclusions.json`, held + * to the same standard. A method whose own name says it sends a command, with + * no entry for it, is a candidate that a claim or a review in + * `not-senders.json` must settle, so a miss cannot pass unseen. + * + * The result is `site/src/data/tmux-usage/.json`, keyed by public symbol. + * + * gen-tmux-usage.mjs regenerate from the port checkouts + * gen-tmux-usage.mjs --check verify shape and revision binding, no checkout + * gen-tmux-usage.mjs --check --source also regenerate and compare + * gen-tmux-usage.mjs --report list the sends no public symbol was credited with + * gen-tmux-usage.mjs --data read and write another copy of the data directory + * gen-tmux-usage.mjs --rules read another copy of scripts/tmux-usage, the reviewed rules + * gen-tmux-usage.mjs --commands a,b record these commands (or `all`) instead of COMMANDS + * gen-tmux-usage.mjs --ports a,b only these ports, and the core libraries their wrappers stand on + */ +import { spawnSync } from 'node:child_process' +import { existsSync, mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs' +import { homedir, tmpdir } from 'node:os' +import { dirname, join, resolve } from 'node:path' +import { fileURLToPath } from 'node:url' +import { extractProject } from '../packages/api-model/src/project.ts' +import { GRAMMARS, isLibrarySource, scanSource } from './lib/tmux-usage-scan.mjs' +import { applyConditions, applyExclusions, conditionProblem, deriveUsage, partialProblems, ruleHolds, verifyClaims } from './lib/tmux-usage-derive.mjs' +import { auditEvidence } from './lib/tmux-usage-audit.mjs' +import { dispatcherProblems, guardProblems, preflightProblems } from './lib/tmux-usage-dispatch.mjs' +import { forwardUsage } from './lib/tmux-usage-forward.mjs' +import { settleCandidates, sweepCandidates } from './lib/tmux-usage-sweep.mjs' +import { libraryScopes, scopeProblems } from './lib/tmux-usage-scopes.mjs' + +const root = resolve(dirname(fileURLToPath(import.meta.url)), '..') +const dataDir = join(root, 'site/src/data') +const defaultUsageDir = join(dataDir, 'tmux-usage') +export const SCHEMA_VERSION = 1 +/** The commands whose usage is recorded: every command of the pinned manuals, unless `--commands` names some. */ +export const COMMANDS = 'all' + +const args = process.argv.slice(2) +const option = (name) => args[args.indexOf(name) + 1] +/** The reviewed rules live beside the generator, unless `--rules` reads another copy of them. */ +const rulesDir = args.includes('--rules') ? resolve(option('--rules')) : join(root, 'scripts/tmux-usage') +const claimsPath = join(rulesDir, 'claims.json') +const forwardersPath = join(rulesDir, 'forwarders.json') +const exclusionsPath = join(rulesDir, 'exclusions.json') +const reviewsPath = join(rulesDir, 'not-senders.json') +const dispatchersPath = join(rulesDir, 'dispatchers.json') +const guardsPath = join(rulesDir, 'guards.json') +const conditionsPath = join(rulesDir, 'conditions.json') +const preflightsPath = join(rulesDir, 'preflights.json') +const check = args.includes('--check') +const regenerate = !check || args.includes('--source') +const usageDir = args.includes('--data') ? resolve(option('--data')) : defaultUsageDir + +// The Swift grammar is a very large WASM module; V8's optimizing tier runs out of memory compiling it. +if (regenerate && !process.execArgv.includes('--liftoff-only') && import.meta.url === `file://${process.argv[1]}`) { + const child = spawnSync(process.execPath, ['--liftoff-only', ...process.argv.slice(1)], { stdio: 'inherit' }) + process.exit(child.status ?? 1) +} + +const readJson = (path) => JSON.parse(readFileSync(path, 'utf8')) +const expand = (path) => (path.startsWith('~/') ? join(homedir(), path.slice(2)) : path) +const manualCommands = () => [...new Set(readJson(join(dataDir, 'tmux/versions.json')).versions.flatMap(({ version }) => + readJson(join(dataDir, `tmux/${version}.json`)).commands.map((command) => command.name)))].sort() +const commandsFrom = (value) => (value === 'all' ? manualCommands() : value.split(',')) +const commandsToRecord = commandsFrom(args.includes('--commands') ? option('--commands') : COMMANDS) + +function git(checkout, ...gitArgs) { + const result = spawnSync('git', ['-C', checkout, ...gitArgs], { maxBuffer: 1 << 30 }) + if (result.status !== 0) throw new Error(`git ${gitArgs.join(' ')} in ${checkout}: ${result.stderr}`) + return result.stdout +} + +/** Every file of the revision that is library source, keyed by path. */ +function librarySources(checkout, revision, grammar) { + const listing = git(checkout, 'ls-tree', '-r', revision).toString('utf8').split('\n').filter(Boolean) + .map((line) => { const [meta, path] = line.split('\t'); return { sha: meta.split(' ')[2], path } }) + .filter((entry) => isLibrarySource(entry.path, grammar)) + const blobs = spawnSync('git', ['-C', checkout, 'cat-file', '--batch'], { input: `${listing.map((entry) => entry.sha).join('\n')}\n`, maxBuffer: 1 << 30 }).stdout + const files = new Map() + let position = 0 + for (const entry of listing) { + const newline = blobs.indexOf(10, position) + const size = Number(blobs.subarray(position, newline).toString().split(' ')[2]) + files.set(entry.path, blobs.subarray(newline + 1, newline + 1 + size).toString('utf8')) + position = newline + 1 + size + 1 + } + return files +} + +/** The tmux commands and aliases a literal may spell, from every pinned manual. */ +function knownCommands() { + const names = new Set() + for (const version of readJson(join(dataDir, 'tmux/versions.json')).versions) { + for (const command of readJson(join(dataDir, `tmux/${version.version}.json`)).commands) { + names.add(command.name) + if (command.alias) names.add(command.alias) + } + } + return names +} + +/** Every spelling of each command a literal may use, name first: `new-window` is also `neww`. */ +function commandSpellings() { + const spellings = new Map() + for (const version of readJson(join(dataDir, 'tmux/versions.json')).versions) { + for (const command of readJson(join(dataDir, `tmux/${version.version}.json`)).commands) { + spellings.set(command.name, [...new Set([...(spellings.get(command.name) ?? [command.name]), ...(command.alias ? [command.alias] : [])])]) + } + } + return spellings +} + +const sortKeys = (value) => Array.isArray(value) ? value.map(sortKeys) + : value && typeof value === 'object' ? Object.fromEntries(Object.entries(value).sort(([a], [b]) => a.localeCompare(b)).map(([key, item]) => [key, sortKeys(item)])) : value + +/** The ports whose handles delegate to another type's public methods through a field, and are credited with what those send. */ +const DELEGATING = new Set(['go']) + +/** How a port's symbols find their definitions: Lua's handles share one implementation, Julia's methods share files. */ +export const DEFINITION_OPTIONS = { lua: { sharedOwner: true }, julia: { freeFunctions: true } } + +/** A consumer example declares symbols of its own that the library does not. */ +const EXAMPLES = /(?:^|\/)(?:examples?|tests?|benchmarks?|docs?)\// + +/** + * Whether a model symbol is private by its own marks: an underscore name, an underscore module or type around it + * (`libtmux._internal.control_mode`), a `private` modifier, an internal scope. Dunder names are the language's + * protocol and stay. The reference orders the same members last, as its private tier. + */ +const UNDERSCORE = /^_(?!_)/ +export const isPrivateSymbol = (symbol) => (symbol.name.startsWith('_') && !/^__\w+__$/.test(symbol.name)) + || (symbol.publicId ?? symbol.id).replace(/\(.*$/s, '').split(/[.:#\\/]+/).slice(0, -1).some((segment) => UNDERSCORE.test(segment)) + || Boolean(symbol.modifiers?.includes('private')) || symbol.apiScope === 'internal' + +/** + * The declaration of a signature up to its parameters, without the annotations and attributes in front of it. + * `pub(crate)` is a visibility, not a call, so it is named before the parameters are cut off. + */ +const declarationOf = (raw) => raw + .replace(/#!?\[[^\]]*\]\s*/g, '') + .replace(/@\w+(?:\([^)]*\))?\s*/g, '') + .replace(/\bpub\((?:crate|super|self|in\s[^)]*)\)/g, 'pub_restricted') + .split('(')[0] + +/** + * Whether a member is not callable by a library's user, by the visibility its own signature spells: `private`, `protected`, + * `internal`, `fileprivate` or a restricted `pub`. Java alone leaves the visibility off for the default, so a member of a class + * declared without `public` is package-private there; a member of an interface is public without saying so, and so is an enum + * constant. A port whose model carries no signature text keeps the filter of its own extractor. + */ +const NON_PUBLIC = /\b(?:private|protected|internal|fileprivate|pub_restricted)\b/ +export const notPublic = (symbol, byId, port) => { + const raw = symbol.signatures?.[0]?.raw + if (!raw) return false + const declaration = declarationOf(raw) + if (NON_PUBLIC.test(declaration)) return true + if (port !== 'java' || ['interface', 'enum'].includes(byId.get(symbol.parent)?.kind)) return false + return !/\bpublic\b/.test(declaration) +} + +/** Callable public symbols, in the shape the derivation reads: a library's private helpers are not API to use. */ +export function publicSymbols(model) { + const byId = new Map(model.symbols.map((symbol) => [symbol.id, symbol])) + return model.symbols + .filter((symbol) => !isPrivateSymbol(symbol) && !notPublic(symbol, byId, model.port) && symbol.source?.file && !EXAMPLES.test(symbol.source.file) + && ['function', 'method', 'property', 'attribute'].includes(symbol.kind)) + .map((symbol) => ({ + id: symbol.publicId ?? symbol.id, + name: symbol.name, + qualified: symbol.qualifiedName, + parentName: symbol.parent ? byId.get(symbol.parent)?.name : undefined, + file: symbol.source.file, + line: symbol.source.line ?? 0, + kind: symbol.kind, + overloaded: symbol.modifiers?.includes('overload'), + })) +} + +export function portDocument(port, model, found, commands) { + const symbols = {} + for (const entry of found) { + ;(symbols[entry.symbol] ??= []).push({ + command: entry.command, scope: entry.scope, evidence: entry.evidence, + ...(entry.reviewed ? { reviewed: true } : {}), ...(entry.forwardable ? { forwardable: true } : {}), ...(entry.incidental ? { incidental: true } : {}), ...(entry.when ? { when: entry.when } : {}), ...(entry.via ? { via: entry.via } : {}), + }) + } + for (const list of Object.values(symbols)) list.sort((a, b) => a.command.localeCompare(b.command) || String(a.scope).localeCompare(String(b.scope))) + return sortKeys({ schemaVersion: SCHEMA_VERSION, port, repo: model.repo, revision: model.revision, commands: [...commands].sort(), symbols }) +} + +/** Read a port's source at its pinned revision: every function, and the public symbols that name them. */ +export async function scanPort({ port, model, commands, checkout, known, dispatch, builders, guards, labels, trace }) { + const grammar = GRAMMARS[port] + // A port with no reader would be generated as sending nothing, and pass. + if (!grammar) throw new Error(`${port}: no reader for its source; add it to GRAMMARS in scripts/lib/tmux-usage-scan.mjs`) + const symbols = publicSymbols(model) + const functions = [] + const types = [] + const sources = librarySources(checkout, model.revision, grammar) + const wanted = new Set(commands) + for (const [path, text] of sources) { + const scanned = await scanSource({ grammar, text, commands: wanted, known, dispatch, builders, guards, labels, trace }) + for (const fn of scanned.functions) functions.push({ ...fn, file: path }) + for (const type of scanned.types) types.push({ ...type, file: path }) + } + const cache = new Map() + const readSource = (path) => { + if (sources.has(path)) return sources.get(path) + if (!cache.has(path)) { + const result = spawnSync('git', ['-C', checkout, 'show', `${model.revision}:${path}`], { maxBuffer: 1 << 28 }) + cache.set(path, result.status === 0 ? result.stdout.toString('utf8') : undefined) + } + return cache.get(path) + } + return { symbols, functions, types, readSource } +} + +/** A reviewed claim stands over what a scan found for the same symbol, command and scope; otherwise the fewer hops win. */ +const mergeEntries = (found, entries) => { + for (const entry of entries) { + const key = `${entry.symbol}\0${entry.command}\0${entry.scope}` + const held = found.get(key) + if (!held || (entry.reviewed && !held.reviewed) || (Boolean(entry.reviewed) === Boolean(held.reviewed) && held.hops > entry.hops)) found.set(key, entry) + } +} + +/** The sends a scan finds in a port's own source, and the reviewed claims that add to them. */ +function derivePort({ port, scanned, commands, scopes, claims, report, sends }) { + const { symbols, functions, types, readSource } = scanned + const found = new Map() + const problems = [] + for (const command of commands) { + const spec = scopes.commands[command] && { scopes: libraryScopes(scopes.commands[command]) } + const derived = deriveUsage({ command, spec, functions, symbols, definitionOptions: DEFINITION_OPTIONS[port] }) + const reviewed = verifyClaims({ + claims: claims.filter((claim) => claim.port === port && claim.command === command), spec, functions, types, symbols, readSource, definitionOptions: DEFINITION_OPTIONS[port], sends, + }) + problems.push(...reviewed.problems) + mergeEntries(found, [...derived.entries, ...reviewed.entries]) + for (const item of derived.unresolved) report.push(`${port} ${command}: ${item.file}:${item.line} in ${item.function}: ${item.reason}`) + } + return { found, problems } +} + +/** + * Where a core library keeps the source its public symbols come from, for reading it at another revision than its model. + * Only a core that a wrapper shares a repository with, and is pinned apart from, needs this. + */ +const CORE_EXTRACTION = { csharp: { roots: ['src/LibTmux'], options: { inheritedMembers: true } } } + +/** The public symbols of a core library as they were at a revision, extracted from that revision's own files. */ +async function modelAtRevision({ port, checkout, revision }) { + const config = CORE_EXTRACTION[port] + if (!config) throw new Error(`${port}: no source roots are configured to read its symbols at ${revision.slice(0, 8)}`) + const dir = mkdtempSync(join(tmpdir(), 'tmux-usage-')) + try { + const unpacked = spawnSync('tar', ['-x', '-C', dir], { input: git(checkout, 'archive', revision, ...config.roots), maxBuffer: 1 << 28 }) + if (unpacked.status !== 0) throw new Error(`${port}: cannot unpack ${revision.slice(0, 8)}: ${unpacked.stderr}`) + const model = await extractProject({ port, root: join(dir, config.roots[0]), roots: config.roots.map((root) => join(dir, root)), revision, options: config.options }) + for (const symbol of model.symbols) if (symbol.source?.file?.startsWith(`${dir}/`)) symbol.source.file = symbol.source.file.slice(dir.length + 1) + return model + } finally { + rmSync(dir, { recursive: true, force: true }) + } +} + +/** The Operation annotation above the core method that sends, the line that makes a generated wrapper forward to it. */ +function operationAnnotation(core, kinds) { + const pattern = new RegExp(`@Operation\\(\\s*Kind\\.(?:${kinds.join('|')})\\s*\\)`) + return (entry, symbol) => { + // The method a wrapper forwards to is the public one the entry belongs to; the lines it cites may be in a helper. + const name = symbol?.name.replace(/\(.*$/s, '') + const candidates = core.functions.filter((fn) => symbol && fn.file === symbol.file && fn.name === name && fn.start <= (symbol.line ?? 0) + 2 && (symbol.line ?? 0) <= fn.end) + for (const fn of candidates.length ? candidates : core.functions.filter((other) => symbol && other.file === symbol.file && other.name === name)) { + const text = core.readSource(fn.file)?.split('\n') + for (let at = fn.start; text && at <= fn.nameLine; at++) if (pattern.test(text[at - 1] ?? '')) return `${fn.file}:${at}` + } + return undefined + } +} + +/** A wrapper's entries: what it sends through the core method it calls, and the lines that show each hop. */ +function forwardPort({ port, config, scanned, core, coreScan, readEvidence }) { + const problems = [] + let generated + if (config.generated) { + for (const item of config.generated.evidence) { + const [file, line] = [item.at.slice(0, item.at.lastIndexOf(':')), Number(item.at.slice(item.at.lastIndexOf(':') + 1))] + const text = readEvidence(file)?.split('\n')[line - 1] + if (text === undefined) problems.push(`${port}: forwarder evidence ${item.at} is not a line of the pinned source`) + for (const needle of item.has ?? []) if (text !== undefined && !text.includes(needle)) problems.push(`${port}: forwarder evidence ${item.at} does not contain ${JSON.stringify(needle)}`) + } + generated = { under: config.generated.under, evidence: config.generated.evidence.map((item) => item.at), forwards: operationAnnotation(coreScan, config.generated.kinds) } + } + const result = forwardUsage({ + parent: config.parent, functions: scanned.functions, types: scanned.types, symbols: scanned.symbols, + core: { entries: core.entries, symbols: core.symbols, revision: core.revision }, generated, + }) + return { entries: result.entries, problems } +} + +/** Ports that have a model, in the order the site lists them. */ +export async function portsWithModels() { + const { PORTS } = await import(`file://${join(root, 'site/src/lib/ports.ts')}`) + return PORTS.filter((port) => existsSync(join(dataDir, `api/${port.slug}.json`))) +} + +export function checkoutFor(port) { + const override = process.env[`LIBTMUX_DOCS_CHECKOUT_${port.slug.toUpperCase()}`] + return expand(override || port.checkout) +} + +/** + * The revision a wrapper's cited core lines are read at: the wrapper's own when it shares a repository with the core + * library, because the two are built together there, and the core's model otherwise, which is the release the wrapper + * depends on. A wrapper with no core library cites none. + */ +export const viaRevisionFor = (model, coreModel) => (coreModel ? (coreModel.repo === model.repo ? model.revision : coreModel.revision) : undefined) + +/** What a committed file must satisfy without any checkout. */ +export function documentProblems(document, model, scopes, commands, viaRevision) { + const problems = [] + if (document.schemaVersion !== SCHEMA_VERSION) problems.push(`schemaVersion ${document.schemaVersion}`) + if (document.revision !== model.revision) problems.push(`records ${document.revision}, but the API model is at ${model.revision}`) + if (JSON.stringify(document.commands) !== JSON.stringify([...commands].sort())) problems.push(`covers ${JSON.stringify(document.commands)}, expected ${JSON.stringify([...commands].sort())}`) + const ids = new Set(model.symbols.map((symbol) => symbol.publicId ?? symbol.id)) + const byId = new Map(model.symbols.map((symbol) => [symbol.id, symbol])) + const privateIds = new Set(model.symbols.filter((symbol) => isPrivateSymbol(symbol) || notPublic(symbol, byId, model.port)).map((symbol) => symbol.publicId ?? symbol.id)) + for (const [symbol, uses] of Object.entries(document.symbols)) { + if (!ids.has(symbol)) problems.push(`${symbol}: not a symbol of the API model`) + else if (privateIds.has(symbol)) problems.push(`${symbol}: is private or package-private, and only public API is recorded`) + for (const use of uses) { + const scoped = scopes.commands[use.command]?.scopes + if (!commands.includes(use.command)) problems.push(`${symbol}: ${use.command} is not a recorded command`) + if (scoped ? !scoped.some((scope) => scope.id === use.scope) : use.scope !== null) problems.push(`${symbol}: ${use.scope} is not a scope of ${use.command}`) + if (!use.evidence?.length || use.evidence.some((item) => !/^[^:\s][^:]*:\d+$/.test(item))) problems.push(`${symbol}: evidence must be file:line`) + const wrong = conditionProblem(use.when, false) + if (wrong) problems.push(`${symbol}: ${use.command} ${wrong}`) + if (use.via) { + if (!use.via.evidence?.length || use.via.evidence.some((item) => !/^[^:\s][^:]*:\d+$/.test(item))) problems.push(`${symbol}: via evidence must be file:line`) + // The lines of a core library are read where the wrapper is pinned when both live in one repository, and where the core's own model is otherwise. + const expected = use.via.port === model.port ? model.revision : viaRevision + if (use.via.revision !== expected) problems.push(`${symbol}: via ${use.via.symbol} cites ${use.via.port} lines at ${use.via.revision ?? 'no revision'}, which must be ${expected ?? 'absent, for a port with no core library'}`) + } + } + } + return problems +} + +/** The methods named for a command that nothing credits, and the reviews that no longer hold. */ +function sweepProblems({ port, model, document, reviews, exclusions, report, readSource }) { + const has = new Set(Object.entries(document.symbols).flatMap(([symbol, uses]) => uses.map((use) => `${symbol}\0${use.command}`))) + const { candidates } = sweepCandidates({ port, commands: document.commands, symbols: publicSymbols(model), has }) + const { unreviewed, problems } = settleCandidates({ + port, candidates, reviews: reviews.filter((review) => review.port === port), readSource, + // An exclusion settles the builders it removed, and is held to its own evidence elsewhere. + covering: exclusions.filter((exclusion) => exclusion.port === port), + }) + for (const candidate of unreviewed) report.push(`${port} sweep ${candidate.command}: ${candidate.symbol}`) + if (unreviewed.length) { + const shown = unreviewed.slice(0, 6).map((candidate) => `${candidate.symbol.split('.').slice(-2).join('.')} (${candidate.command})`).join(', ') + problems.push(`${port}: ${unreviewed.length} methods named for a command have no entry for it and no review: ${shown}${unreviewed.length > 6 ? ', ...' : ''}`) + } + return problems +} + +export { dispatcherProblems, guardProblems, preflightProblems } + +export async function main() { + const scopes = readJson(join(usageDir, 'scopes.json')) + const claims = existsSync(claimsPath) ? readJson(claimsPath).claims : [] + const exclusions = existsSync(exclusionsPath) ? readJson(exclusionsPath).exclusions : [] + const reviews = existsSync(reviewsPath) ? readJson(reviewsPath).reviews : [] + const dispatchers = existsSync(dispatchersPath) ? readJson(dispatchersPath).dispatchers : [] + const guards = existsSync(guardsPath) ? readJson(guardsPath).guards : [] + const conditions = existsSync(conditionsPath) ? readJson(conditionsPath).conditions : [] + const preflights = existsSync(preflightsPath) ? readJson(preflightsPath).preflights : [] + const ports = await portsWithModels() + const report = [] + const failures = [] + const known = regenerate ? knownCommands() : new Set() + const spellings = commandSpellings() + mkdirSync(usageDir, { recursive: true }) + + for (const command of commandsToRecord) { + if (!scopes.commands[command]) continue + const versions = readJson(join(dataDir, 'tmux/versions.json')).versions + const tmuxCheckout = process.env.LIBTMUX_DOCS_CHECKOUT_TMUX && expand(process.env.LIBTMUX_DOCS_CHECKOUT_TMUX) + for (const { version } of versions) { + const model = readJson(join(dataDir, `tmux/api/${version}.json`)) + const read = tmuxCheckout && existsSync(tmuxCheckout) + ? (file) => spawnSync('git', ['-C', tmuxCheckout, 'show', `${model.revision}:${file}`], { maxBuffer: 1 << 26 }).stdout.toString('utf8') : undefined + for (const problem of scopeProblems(scopes.commands[command], model, command, read)) failures.push(`tmux ${version}: ${problem}`) + } + } + + const forwarders = existsSync(forwardersPath) ? readJson(forwardersPath).forwarders : {} + /** A wrapper stands on its core library's own result, so cores run first. */ + const only = args.includes('--ports') ? new Set(option('--ports').split(',')) : undefined + const wanted = (port) => !only || only.has(port.slug) || [...only].some((slug) => forwarders[slug]?.parent === port.slug) + const ordered = ports.filter(wanted).sort((a, b) => Number(Boolean(forwarders[a.slug])) - Number(Boolean(forwarders[b.slug]))) + const models = new Map(ports.map((port) => [port.slug, readJson(join(dataDir, `api/${port.slug}.json`))])) + const viaRevisionOf = (slug) => viaRevisionFor(models.get(slug), forwarders[slug] && models.get(forwarders[slug].parent)) + + /** Every scan made, by port and revision, for the audit to read the lines an entry cites from. */ + const scans = new Map() + const scanKey = (slug, revision) => `${slug}@${revision}` + /** A port's result at its model's revision, and a core library's at the revision a wrapper in its repository is pinned at. */ + const passes = new Map() + + /** Scan a port's library at a revision and derive what it sends, from the scan and the claims and exclusions that hold there. */ + async function derivePass({ port, model, core }) { + const pinned = models.get(port.slug).revision + const rules = (list) => list.filter((rule) => rule.port === port.slug && ruleHolds(rule, model.revision, pinned)) + // A dispatch API is a name, so it holds at any revision of its port; its definition is checked at the model's. + const apis = dispatchers.filter((api) => api.port === port.slug && (!api.revision || model.revision.startsWith(api.revision))) + const wrappers = guards.filter((guard) => guard.port === port.slug) + const scanned = await scanPort({ + port: port.slug, model, commands: commandsToRecord, checkout: checkoutFor(port), known, + dispatch: new Set(apis.filter((api) => api.kind !== 'builder').map((api) => api.name)), builders: new Set(apis.filter((api) => api.kind === 'builder').map((api) => api.name)), + guards: wrappers.map(({ name, owner }) => ({ name, owner })), + labels: new Map(apis.filter((api) => api.labels?.length).map((api) => [api.name, new Set(api.labels.map((label) => label.at))])), + }) + scans.set(scanKey(port.slug, model.revision), { read: scanned.readSource, functions: scanned.functions }) + const dispatchProblems = model.revision === pinned + ? [...dispatcherProblems({ port: port.slug, dispatchers: apis, readSource: scanned.readSource, functions: scanned.functions }), + ...guardProblems({ port: port.slug, guards: wrappers, readSource: scanned.readSource, functions: scanned.functions })] : [] + const sends = (parent, symbol, command, scope) => { + const entry = core?.found.get(`${symbol}\0${command}\0${scope}`) + return parent === core?.port && entry ? { ...entry, revision: core.revision } : undefined + } + const { found, problems } = derivePort({ port: port.slug, scanned, commands: commandsToRecord, scopes, claims: rules(claims), report, sends }) + const excluded = applyExclusions({ exclusions: rules(exclusions), found, symbols: scanned.symbols, readSource: scanned.readSource }) + return { port: port.slug, revision: model.revision, found, scanned, problems: [...dispatchProblems, ...problems, ...excluded.problems] } + } + + /** The core library as the wrapper sees it: read where the wrapper is pinned if they share a repository, else at the core's model. */ + async function corePassFor(port, config) { + const parent = ports.find((candidate) => candidate.slug === config.parent) + const revision = viaRevisionOf(port.slug) + if (revision === models.get(parent.slug).revision) return passes.get(parent.slug) + const key = scanKey(parent.slug, revision) + if (!passes.has(key)) { + const model = await modelAtRevision({ port: parent.slug, checkout: checkoutFor(parent), revision }) + const pass = await derivePass({ port: parent, model, core: undefined }) + failures.push(...pass.problems) + passes.set(key, pass) + } + return passes.get(key) + } + + const claimFor = (slug, symbol, command, scope, revision) => claims.find((claim) => claim.port === slug && claim.symbol === symbol + && claim.command === command && claim.scope === scope && ruleHolds(claim, revision, models.get(slug).revision)) + + let compared = 0 + for (const port of ordered) { + const model = models.get(port.slug) + const path = join(usageDir, `${port.slug}.json`) + let committed + if (check) { + if (!existsSync(path)) { failures.push(`${port.slug}: no ${path}`); continue } + committed = readJson(path) + for (const problem of documentProblems(committed, model, scopes, commandsToRecord, viaRevisionOf(port.slug))) failures.push(`${port.slug}: ${problem}`) + if (!args.includes('--source')) { + failures.push(...sweepProblems({ port: port.slug, model, document: committed, reviews, exclusions, report })) + continue + } + } + const checkout = checkoutFor(port) + if (!existsSync(join(checkout, '.git')) && !existsSync(join(checkout, 'HEAD'))) { + if (check) { console.log(`gen-tmux-usage: ${port.slug}: no checkout at ${checkout}; skipped regeneration`); continue } + throw new Error(`${port.slug}: no checkout at ${checkout}; set LIBTMUX_DOCS_CHECKOUT_${port.slug.toUpperCase()}`) + } + const config = forwarders[port.slug] + const core = config ? await corePassFor(port, config) : undefined + if (config && !core) failures.push(`${port.slug}: its core library ${config.parent} was not generated`) + const pass = await derivePass({ port, model, core }) + const { found, scanned } = pass + failures.push(...pass.problems) + failures.push(...preflightProblems({ port: port.slug, preflights: preflights.filter((rule) => rule.port === port.slug), readSource: scanned.readSource })) + if (config && core) { + const forwarded = forwardPort({ + port: port.slug, config, scanned, coreScan: core.scanned, readEvidence: scanned.readSource, + core: { entries: [...core.found.values()], symbols: new Map(core.scanned.symbols.map((symbol) => [symbol.id, symbol])), revision: core.revision }, + }) + failures.push(...forwarded.problems) + mergeEntries(found, forwarded.entries) + } + const qualifiers = conditions.filter((item) => item.port === port.slug) + applyConditions({ conditions: qualifiers, found, readSource: scanned.readSource, lenient: true }) + // Go keeps one handle per tmux object and delegates to the server's methods, so a method that calls one on its `server` field sends what it sends. + if (DELEGATING.has(port.slug)) { + const delegated = forwardUsage({ + parent: port.slug, delegate: true, functions: scanned.functions, types: scanned.types, symbols: scanned.symbols, + core: { entries: [...found.values()], symbols: new Map(scanned.symbols.map((symbol) => [symbol.id, symbol])), revision: model.revision }, + }) + mergeEntries(found, delegated.entries) + } + passes.set(port.slug, pass) + // A wrapper forwards what it reads from its core's entries, so the core's conditions are in place before it runs. + failures.push(...applyConditions({ conditions: qualifiers, found, readSource: scanned.readSource })) + // A generic function's methods are not credited with each other's sends. + if (DEFINITION_OPTIONS[port.slug]?.freeFunctions) failures.push(...partialProblems(found).map((problem) => `${port.slug}: ${problem}`)) + const document = portDocument(port.slug, model, [...found.values()], commandsToRecord) + failures.push(...sweepProblems({ port: port.slug, model, document, reviews, exclusions, report, readSource: scanned.readSource })) + // The committed entries are the ones audited, because a check has to read what is published and not what a scan makes of it. + const subject = committed ?? document + failures.push(...auditEvidence({ + port: port.slug, revision: model.revision, claimFor, spellings: (command) => spellings.get(command) ?? [command], + sourcesAt: (slug, revision) => scans.get(scanKey(slug, revision)), + dispatchFor: (slug) => new Set(dispatchers.filter((api) => api.port === slug && api.kind !== 'builder').map((api) => api.name)), + generated: config?.generated && { evidence: config.generated.evidence.map((item) => item.at) }, + uses: Object.entries(subject.symbols).flatMap(([symbol, uses]) => uses.map((use) => ({ symbol, ...use }))), + })) + const text = `${JSON.stringify(document, null, 2)}\n` + if (check) { + if (text !== readFileSync(path, 'utf8')) failures.push(`${port.slug}: stale; run node scripts/gen-tmux-usage.mjs`) + compared++ + } else { + writeFileSync(path, text) + console.log(`gen-tmux-usage: ${port.slug}: ${Object.keys(document.symbols).length} symbols at ${model.revision.slice(0, 8)}`) + } + } + if (args.includes('--report')) console.log(report.join('\n')) + if (failures.length) { + console.error(failures.map((failure) => `gen-tmux-usage: ${failure}`).join('\n')) + process.exitCode = 1 + return + } + if (check) console.log(`gen-tmux-usage: ${ports.length} ports fresh${compared ? ` (${compared} regenerated and compared)` : ' (shape and revisions only; pass --source to regenerate)'}`) +} + +if (process.argv[1] && resolve(process.argv[1]) === fileURLToPath(import.meta.url)) await main() diff --git a/scripts/gen-tmux-usage.negative.mjs b/scripts/gen-tmux-usage.negative.mjs new file mode 100644 index 000000000..211cb0f46 --- /dev/null +++ b/scripts/gen-tmux-usage.negative.mjs @@ -0,0 +1,318 @@ +#!/usr/bin/env node +/* + * Proof that `gen-tmux-usage.mjs --check` fails on usage data that no longer + * fits the API models. + * + * The control is the committed data, because a check that always failed would + * satisfy every other case. Each case is a different way to be stale: a + * revision that moved on, a symbol the model dropped, a scope the command does + * not have, evidence that is not a line, a port whose file went missing, a + * command the file does not cover, a file that covers fewer commands than + * the manual documents, a method named for a command that nothing records, a + * private helper recorded as API, a wrapper that cites its core library's lines + * at a revision other than the one they must be read at, and (with the sources + * checked out) core lines that read as something else at the revision cited. + * + * With the sources checked out it also replays, for each way a literal can reach a line + * without being sent, an entry that an earlier generation recorded: a comparison, a row + * or format selector, a label in a thrown error, a choice made by a condition or by the + * class of a receiver, a helper that never dispatches, a generic runner that an allowlist + * admits, and a literal cited where only its builder was. + * Each is refused by the audit that reads the cited line, and the entry beside it that + * does send is accepted. + * + * It then seeds the reviewed rules (`--rules`): a dispatcher whose cited chain stops short of + * a transport, names a line that does not hold its text, skips a function, or has no chain at + * all; a hop that calls a field the scan cannot type and does not say what it holds, one that + * leads on and does not say why, one that goes to the overload the call's arguments do not fit; + * a label that names a parameter nothing takes, or is dropped, so that a literal the call + * only reports a failure under is read as the command; a guard that builds no if-shell, a + * conditional guard or claim that does not say when, a condition that qualifies no entry, and a + * guard dropped, so that the if-shell it wrapped is recorded in place of the command; a preflight whose line does + * not hold its text or that gives no reason; and for a + * generic function, a send some methods make with no condition that says so, a receiver + * condition that cites a signature in place of the bodies, and one on a send every method makes. + * Each is refused, and the committed rules beside them are accepted. + */ +import { cpSync, existsSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs' +import { homedir } from 'node:os' +import { tmpdir } from 'node:os' +import { dirname, join } from 'node:path' +import { execFileSync } from 'node:child_process' +import { fileURLToPath } from 'node:url' + +const here = dirname(fileURLToPath(import.meta.url)) +const script = join(here, 'gen-tmux-usage.mjs') +const committed = join(here, '..', 'site/src/data/tmux-usage') + +function run(dir) { + try { + return { code: 0, out: execFileSync('node', [script, '--check', '--data', dir], { encoding: 'utf8', stdio: 'pipe' }) } + } catch (error) { + return { code: error.status, out: `${error.stdout ?? ''}${error.stderr ?? ''}` } + } +} + +/** The same check with the sources read, for the ports named. */ +function runSource(dir, ports) { + try { + return { code: 0, out: execFileSync('node', [script, '--check', '--source', '--ports', ports, '--data', dir], { encoding: 'utf8', stdio: 'pipe' }) } + } catch (error) { + return { code: error.status, out: `${error.stdout ?? ''}${error.stderr ?? ''}` } + } +} + +const rules = join(here, 'tmux-usage') + +/** The same check, for the ports named, reading another copy of the reviewed rules. */ +function runRules(dir, ruleDir, ports) { + try { + return { code: 0, out: execFileSync('node', [script, '--check', '--source', '--ports', ports, '--data', dir, '--rules', ruleDir], { encoding: 'utf8', stdio: 'pipe' }) } + } catch (error) { + return { code: error.status, out: `${error.stdout ?? ''}${error.stderr ?? ''}` } + } +} + +const dirs = [] +function fixture() { + const dir = mkdtempSync(join(tmpdir(), 'gen-tmux-usage-')) + cpSync(committed, dir, { recursive: true }) + dirs.push(dir) + return dir +} + +function edit(dir, port, change) { + const file = join(dir, `${port}.json`) + const document = JSON.parse(readFileSync(file, 'utf8')) + change(document) + writeFileSync(file, `${JSON.stringify(document, null, 2)}\n`) +} + +let failures = 0 +const check = (name, ok, detail) => { + if (ok) console.log(`ok ${name}`) + else { console.error(`FAIL ${name} - ${detail}`); failures += 1 } +} +const first = (document) => Object.entries(document.symbols)[0] + +const control = run(fixture()) +check('the committed data passes', control.code === 0, control.out) + +const moved = fixture() +edit(moved, 'py', (document) => { document.revision = '0'.repeat(40) }) +const movedRun = run(moved) +check('a revision that moved on fails', movedRun.code !== 0 && /py: records 0{40}/.test(movedRun.out), movedRun.out) + +const dropped = fixture() +edit(dropped, 'go', (document) => { document.symbols['tmux.Server.NoSuchMethod'] = first(document)[1] }) +const droppedRun = run(dropped) +check('a symbol the model lacks fails', droppedRun.code !== 0 && /go: tmux.Server.NoSuchMethod: not a symbol of the API model/.test(droppedRun.out), droppedRun.out) + +const scoped = fixture() +edit(scoped, 'csharp', (document) => { first(document)[1][0].scope = 'pane' }) +const scopedRun = run(scoped) +check('a scope the command lacks fails', scopedRun.code !== 0 && /pane is not a scope of [a-z-]+/.test(scopedRun.out), scopedRun.out) + +const evidence = fixture() +edit(evidence, 'swift', (document) => { first(document)[1][0].evidence = ['Sources/LibTmux/Server.swift'] }) +const evidenceRun = run(evidence) +check('evidence that is not a line fails', evidenceRun.code !== 0 && /swift: .*evidence must be file:line/.test(evidenceRun.out), evidenceRun.out) + +const missing = fixture() +rmSync(join(missing, 'rs.json')) +const missingRun = run(missing) +check('a port without a file fails', missingRun.code !== 0 && /rs: no /.test(missingRun.out), missingRun.out) + +const unrecorded = fixture() +edit(unrecorded, 'ruby', (document) => { first(document)[1][0].command = 'no-such-command' }) +const unrecordedRun = run(unrecorded) +check('a command the file does not cover fails', unrecordedRun.code !== 0 && /no-such-command is not a recorded command/.test(unrecordedRun.out), unrecordedRun.out) + +const narrow = fixture() +edit(narrow, 'lua', (document) => { document.commands = ['list-panes'] }) +const narrowRun = run(narrow) +check('a file that records fewer commands than the manual fails', narrowRun.code !== 0 && /lua: covers \["list-panes"\], expected \["attach-session"/.test(narrowRun.out), narrowRun.out) + +const missed = fixture() +edit(missed, 'py', (document) => { delete document.symbols['libtmux.Pane.send_keys'] }) +const missedRun = run(missed) +check('a method named for a command that nothing records fails', missedRun.code !== 0 && /py: \d+ methods named for a command have no entry for it and no review: .*Pane\.send_keys \(send-keys\)/.test(missedRun.out), missedRun.out) + +const covered = fixture() +edit(covered, 'ruby', (document) => { delete document.symbols['LibTmux::Pane#send_keys'] }) +const coveredRun = run(covered) +check('the same miss fails in another port, and the other ports stay quiet', coveredRun.code !== 0 && /ruby: .*send_keys/.test(coveredRun.out) && !/py: .*methods named/.test(coveredRun.out), coveredRun.out) + +const privateHelper = fixture() +edit(privateHelper, 'py', (document) => { document.symbols['libtmux.Server._show_option'] = first(document)[1] }) +const privateRun = run(privateHelper) +check('a private helper recorded as API fails', privateRun.code !== 0 && /py: libtmux.Server._show_option: is private or package-private, and only public API is recorded/.test(privateRun.out), privateRun.out) + +const viaMoved = fixture() +edit(viaMoved, 'fsharp', (document) => { + const via = Object.values(document.symbols).flat().find((use) => use.via).via + via.revision = JSON.parse(readFileSync(join(committed, '..', 'api', 'csharp.json'), 'utf8')).revision +}) +const viaMovedRun = run(viaMoved) +check('core lines cited at the core model\'s revision instead of the wrapper\'s fail', viaMovedRun.code !== 0 && /fsharp: .* cites csharp lines at 5b486ea9\w+, which must be 4f1b997b2\w+/.test(viaMovedRun.out), viaMovedRun.out) + +const viaUnnamed = fixture() +edit(viaUnnamed, 'powershell', (document) => { delete Object.values(document.symbols).flat().find((use) => use.via).via.revision }) +const viaUnnamedRun = run(viaUnnamed) +check('a via that names no revision fails', viaUnnamedRun.code !== 0 && /powershell: .* at no revision/.test(viaUnnamedRun.out), viaUnnamedRun.out) + +// Reading the sources needs the checkout the wrapper is pinned in; without it the check skips regeneration and there is nothing to refuse. +if (existsSync(join(process.env.LIBTMUX_DOCS_CHECKOUT_FSHARP ?? join(homedir(), 'work/libtmux/libtmux-dotnet'), '.git'))) { + const control = runSource(fixture(), 'fsharp') + check('the committed F# entries read as cited at the F# revision', control.code === 0, control.out) + // The first line the F# new-session entry cited before the C# core was read where F# is pinned. + const reviewed = fixture() + edit(reviewed, 'fsharp', (document) => { + document.symbols['LibTmux.FSharp.Server.newSession'].find((candidate) => candidate.command === 'new-session').via.evidence[0] = 'src/LibTmux/Server.Lifecycle.cs:368' + }) + const reviewedRun = runSource(reviewed, 'fsharp') + check('a reviewed core line that is not the one its claim cites fails', reviewedRun.code !== 0 && /Server.Lifecycle.cs:368 where its claim cites src\/LibTmux\/Server.Lifecycle.cs:269/.test(reviewedRun.out), reviewedRun.out) + const scanned = fixture() + edit(scanned, 'fsharp', (document) => { + document.symbols['LibTmux.FSharp.Pane.capture'].find((candidate) => candidate.command === 'capture-pane').via.evidence[0] = 'src/LibTmux/Pane.Capture.cs:22' + }) + const scannedRun = runSource(scanned, 'fsharp') + check('a scanned core line that names the command in a failure and does not send it fails', scannedRun.code !== 0 && /src\/LibTmux\/Pane.Capture.cs:22 is not a call that sends capture-pane/.test(scannedRun.out), scannedRun.out) +} else console.log('skip core lines read at the revision cited: no checkout of the .NET repository') + +// A recorded entry is a call that sends, so a line that only spells the command fails whatever kind of line it is. Each case seeds, into +// a port's committed document, the entry an earlier generation recorded from such a line, and expects the audit of that port to name it. +const CHECKOUTS = { + py: '~/work/python/libtmux', java: '~/work/libtmux/libtmux-java', ts: '~/work/libtmux/libtmux-ts', swift: '~/work/libtmux/libtmux-swift', + ruby: '~/work/libtmux/libtmux-ruby', rs: '~/work/libtmux/libtmux-rs', julia: '~/work/libtmux/libtmux-julia', go: '~/work/libtmux/libtmux-go', + fsharp: '~/work/libtmux/libtmux-dotnet', elixir: '~/work/libtmux/libtmux-elixir', +} +const checkoutOf = (port) => (process.env[`LIBTMUX_DOCS_CHECKOUT_${port.toUpperCase()}`] ?? CHECKOUTS[port]).replace(/^~/, homedir()) +const SENDS_NOTHING = [ + ['a format selector', 'py', 'libtmux.Server.new_session', 'list-sessions', ['src/libtmux/server.py:2341'], /py: libtmux.Server.new_session list-sessions: src\/libtmux\/server.py:2341 is not a call that sends list-sessions \(it is an argument of get_output_format/], + ['a comparison', 'java', 'io.github.libtmux.Prompt.Prompt.clear', 'show-prompt-history', ['libtmux/src/main/java/io/github/libtmux/Prompt.java:49', 'libtmux/src/main/java/io/github/libtmux/Prompt.java:44'], /java: io.github.libtmux.Prompt.Prompt.clear show-prompt-history: libtmux\/src\/main\/java\/io\/github\/libtmux\/Prompt.java:49 is not a call that sends show-prompt-history/], + ['a label in a thrown error', 'ts', 'server.Server.validateLayouts', 'display-message', ['packages/libtmux/src/_internal/operations/layout.ts:42', 'packages/libtmux/src/server.ts:955'], /ts: server.Server.validateLayouts display-message: packages\/libtmux\/src\/_internal\/operations\/layout.ts:42 is not a call that sends display-message/], + ['a ternary between two commands', 'swift', 'Server.link(_:into:)', 'move-window', ['Sources/LibTmux/WindowTransfers.swift:75', 'Sources/LibTmux/WindowTransfers.swift:20'], /swift: Server.link\(_:into:\) move-window: Sources\/LibTmux\/WindowTransfers.swift:75 is not a call that sends move-window \(a condition chooses it/], + ['the class of a receiver choosing the command', 'ruby', 'LibTmux::Hooks#unset', 'set-option', ['gems/libtmux/lib/libtmux/options.rb:107'], /ruby: LibTmux::Hooks#unset set-option: gems\/libtmux\/lib\/libtmux\/options.rb:107 is not a call that sends set-option \(a condition chooses it/], + ['a helper that never dispatches', 'java', 'io.github.libtmux.batch.Batch.Batch.length', 'display-message', ['libtmux/src/main/java/io/github/libtmux/batch/Batch.java:94', 'libtmux/src/main/java/io/github/libtmux/batch/Batch.java:72'], /java: io.github.libtmux.batch.Batch.Batch.length display-message: libtmux\/src\/main\/java\/io\/github\/libtmux\/batch\/Batch.java:94 is not a call that sends display-message/], + ['a generic runner that an allowlist admits', 'julia', 'LibTmux.run_command', 'kill-pane', ['src/control_protocol.jl:427', 'src/control.jl:580'], /julia: LibTmux.run_command kill-pane: src\/control_protocol.jl:427 is not a call that sends kill-pane/], + ['the line that builds the command, where the call that sends is further down', 'rs', 'server.Server.command_prompt', 'command-prompt', ['crates/libtmux/src/server/interactive.rs:105'], /rs: server.Server.command_prompt command-prompt: crates\/libtmux\/src\/server\/interactive.rs:105 is not a call that sends command-prompt/], + ['the literal of a builder, with the hop to a method of another type that shares its name', 'rs', 'pane.Pane.split', 'capture-pane', ['crates/libtmux/src/pane.rs:1618', 'crates/libtmux/src/pane.rs:515'], /rs: pane.Pane.split capture-pane: crates\/libtmux\/src\/pane.rs:1618 is not a call that sends capture-pane \(it builds a value for the caller\)/], + ['a command spelled in a request that is only built, where the call that sends is in the control lane', 'elixir', 'LibTmux.Control.Request.field/2', 'display-message', ['lib/libtmux/control/request.ex:51'], /elixir: LibTmux.Control.Request.field\/2 display-message: lib\/libtmux\/control\/request.ex:51 is not a call that sends display-message \(it reaches no call that sends\)/], +] +const sourced = new Map() +for (const [name, port, symbol, command, lines, message] of SENDS_NOTHING) { + if (!existsSync(join(checkoutOf(port), '.git'))) { console.log(`skip ${name}: no checkout of ${port}`); continue } + if (!sourced.has(port)) { + const control = runSource(fixture(), port) + sourced.set(port, control.code === 0) + check(`the committed ${port} entries read as cited`, control.code === 0, control.out) + } + const seeded = fixture() + edit(seeded, port, (document) => { document.symbols[symbol] = [...(document.symbols[symbol] ?? []), { command, scope: null, evidence: lines }] }) + const seededRun = runSource(seeded, port) + check(`an entry cited at ${name} fails`, seededRun.code !== 0 && message.test(seededRun.out), seededRun.out) +} + +// The reviewed rules are held to the pinned source as the usage data is. Each case changes one rule in a copy of them and expects the +// check of that port to name it, and the committed rules in the copy's place to pass. +function ruleFixture() { + const dir = mkdtempSync(join(tmpdir(), 'gen-tmux-rules-')) + cpSync(rules, dir, { recursive: true }) + dirs.push(dir) + return dir +} +function editRules(dir, name, change) { + const file = join(dir, name) + const document = JSON.parse(readFileSync(file, 'utf8')) + change(document) + writeFileSync(file, `${JSON.stringify(document, null, 2)}\n`) +} +const dispatcher = (document, port, name) => document.dispatchers.find((rule) => rule.port === port && rule.name === name) +const BAD_RULES = [ + ['a dispatcher whose chain was removed', 'rs', 'dispatchers.json', (document) => { delete dispatcher(document, 'rs', 'chain').evidence[0].reaches }, + /rs: dispatcher chain at crates\/libtmux\/src\/server.rs:753: reaches no transport, and cites no chain to one/], + ['a dispatcher that shares its name with a function that sends nothing', 'rs', 'dispatchers.json', (document) => { dispatcher(document, 'rs', 'list').evidence.push({ at: 'crates/libtmux/src/plan/wire.rs:149', has: ['list'] }) }, + /rs: dispatcher list at crates\/libtmux\/src\/plan\/wire.rs:149: reaches no transport, and cites no chain to one/], + ['a chain hop whose line does not hold its text', 'rs', 'dispatchers.json', (document) => { dispatcher(document, 'rs', 'send').evidence[0].reaches[0].has = ['.sendx('] }, + /rs: dispatcher send at crates\/libtmux\/src\/control.rs:585: hop crates\/libtmux\/src\/control.rs:586 does not contain "\.sendx\("/], + ['a chain that skips the function between two hops', 'rs', 'dispatchers.json', (document) => { dispatcher(document, 'rs', 'dispatch').evidence[0].reaches.splice(1, 1) }, + /rs: dispatcher dispatch at crates\/libtmux\/src\/plan\/run.rs:443: hop crates\/libtmux\/src\/plan\/run.rs:461 leads to cmd, but crates\/libtmux\/src\/internal\/core.rs:438 is not a line of it/], + ['a chain hop on a field whose type it does not say', 'rs', 'dispatchers.json', (document) => { delete dispatcher(document, 'rs', 'send').evidence[0].reaches[0].on }, + /rs: dispatcher send at crates\/libtmux\/src\/control.rs:585: hop crates\/libtmux\/src\/control.rs:586 is a call of sender\.send\(\), which resolves to no function the scan has read, and not to ControlSender\.send/], + ['a chain hop that leads somewhere and does not say why', 'rs', 'dispatchers.json', (document) => { delete dispatcher(document, 'rs', 'send').evidence[0].reaches.find((hop) => hop.leads).why }, + /rs: dispatcher send at crates\/libtmux\/src\/control.rs:585: hop crates\/libtmux\/src\/control.rs:803 leads to serve and says nothing about why the scan cannot follow it/], + ['a chain that goes to the overload the arguments of the call do not fit', 'java', 'dispatchers.json', (document) => { + const run = dispatcher(document, 'java', 'run').evidence.find((item) => item.at.endsWith('Server.java:1221')) + run.reaches = [run.reaches[0], { ...run.reaches.find((hop) => hop.at.endsWith('Server.java:1251')), at: run.reaches[0].at.replace(':1222', ':1230'), has: ['fence.guarded(snapshot'] }] + }, /java: dispatcher run at .*Server\.java:1221: hop .*Server\.java:1222 is a call of cmd\(1\), which resolves to Server\.cmd at .*Server\.java:765 and Server\.cmd at .*Server\.java:771, and not to Server\.cmd at .*Server\.java:1229/], + ['a julia send some methods make, with no condition that says so', 'julia', 'conditions.json', (document) => { document.conditions = document.conditions.filter((item) => !(item.symbol === 'LibTmux.capture_bytes' && item.command === 'list-buffers')) }, + /julia: LibTmux\.capture_bytes list-buffers null: only the ControlConnection methods send it, and 1 other method such as src\/pane_io\.jl:64 do not, so it needs a condition that says when/], + ['a julia receiver condition that cites a signature in place of the bodies', 'julia', 'conditions.json', (document) => { + for (const item of document.conditions) if (item.symbol === 'LibTmux.get_environment') for (const line of item.evidence) delete line.through + }, /julia: LibTmux\.get_environment show-environment null: condition cites the body of no method that sends it/], + ['a julia receiver condition on a send that every method makes', 'julia', 'conditions.json', (document) => { + document.conditions.push({ port: 'julia', symbol: 'LibTmux.select_pane', command: 'select-pane', scope: null, when: 'on a Server', receiver: 'Server', evidence: [{ at: 'src/operations.jl:372', through: 375, has: ['function select_pane('] }] }) + }, /julia: LibTmux\.select_pane select-pane null: condition says on a Server, but no method of the function is shown not to send it/], + ['a label that names a parameter nothing takes', 'rs', 'dispatchers.json', (document) => { dispatcher(document, 'rs', 'mutate').labels[0].name = 'nope' }, + /rs: dispatcher mutate: no cited definition takes a parameter named nope/], + ['a label dropped, so a literal that only reports a failure is read as the command', 'rs', 'dispatchers.json', (document) => { delete dispatcher(document, 'rs', 'mutate').labels }, + /rs: pane.Pane.send_line send-keys: .* is not a call of Pane.send_line/], + ['a claim marked conditional that does not say when', 'rs', 'claims.json', (document) => { + const claim = document.claims.find((candidate) => candidate.port === 'rs' && candidate.when) + delete claim.when + claim.conditional = true + }, /rs: plan.Plan.run set-option null: is marked conditional, so it must say when/], + ['a condition that qualifies no entry', 'fsharp', 'conditions.json', (document) => { document.conditions.find((item) => item.port === 'fsharp').command = 'no-such-command' }, + /fsharp: LibTmux.FSharp.Server.newSession no-such-command session: condition qualifies no entry/], + ['an exclusion that removes the entry of a claim for the same send', 'go', 'exclusions.json', (document) => { + document.exclusions.push({ port: 'go', owner: 'Server', names: ['NewSession'], commands: ['list-sessions'], why: 'NewSession lists sessions to look up a name only when the request carries one.', + evidence: [{ at: 'tmux/session_lifecycle.go:210', has: ['request.Name != ""'] }, { at: 'tmux/session_lifecycle.go:217', has: ['sessionNamed('] }] }) + }, /go: exclusion of Server\.NewSession for list-sessions: removes the reviewed claim of tmux\.Server\.NewSession list-sessions null, which says it sends it/], + ['an elixir dispatcher whose chain skips the function between two hops', 'elixir', 'dispatchers.json', (document) => { dispatcher(document, 'elixir', 'read').evidence[0].reaches.splice(3, 1) }, + /elixir: dispatcher read at lib\/libtmux\/capture.ex:307: hop lib\/libtmux\/transport\/oneshot.ex:86 leads to run_worker, but lib\/libtmux\/transport\/oneshot.ex:172 is not a line of it/], + ['an elixir dispatcher whose chain stops before the port is written to', 'elixir', 'dispatchers.json', (document) => { dispatcher(document, 'elixir', 'rows').evidence[0].reaches.pop() }, + /elixir: dispatcher rows at lib\/libtmux\/capture.ex:193: hop lib\/libtmux\/transport\/oneshot.ex:172 is not a transport/], + ['an elixir claim whose line does not hold its text', 'elixir', 'claims.json', (document) => { + document.claims.find((claim) => claim.port === 'elixir' && claim.symbol === 'LibTmux.Capture.fetch/2' && claim.command === 'list-sessions').evidence[0].has = ['list(state, "list-panes"'] + }, /elixir: LibTmux.Capture.fetch\/2 list-sessions null: lib\/libtmux\/capture.ex:158 does not contain "list\(state, \\"list-panes\\""/], + ['an elixir claim whose message hop to the connection manager does not hold its text', 'elixir', 'claims.json', (document) => { + document.claims.find((claim) => claim.port === 'elixir' && claim.symbol === 'LibTmux.Control.reconnect/2' && claim.command === 'attach-session').evidence.find((item) => item.at.endsWith('manager.ex:573')).has = ['stop(state, ticket)'] + }, /elixir: LibTmux.Control.reconnect\/2 attach-session null: lib\/libtmux\/control\/manager.ex:573 does not contain "stop\(state, ticket\)"/], + ['an elixir claim that is not anchored in the symbol it names', 'elixir', 'claims.json', (document) => { + document.claims.find((claim) => claim.port === 'elixir' && claim.symbol === 'LibTmux.Server.snapshot/2' && claim.command === 'list-clients').evidence.at(-1).at = 'lib/libtmux/server.ex:60' + }, /elixir: LibTmux.Server.snapshot\/2 list-clients null: lib\/libtmux\/server.ex:60 (?:does not contain|is outside the body of)/], + ['a preflight whose line does not hold its text', 'go', 'preflights.json', (document) => { document.preflights[0].evidence[1].has = ['s.checkNothing('] }, + /go: preflight run-shell: tmux\/transport.go:106 does not contain "s.checkNothing\("/], + ['a preflight that gives no reason', 'go', 'preflights.json', (document) => { delete document.preflights[0].why }, + /go: preflight run-shell: names no command or gives no reason/], + ['a conditional guard that does not say when', 'go', 'guards.json', (document) => { delete document.guards.find((guard) => guard.port === 'go' && guard.name === 'guardCommand').when }, + /go: guard guardCommand: is conditional, so it must say when/], + ['a guard whose function builds no if-shell', 'java', 'guards.json', (document) => { + document.guards.push({ port: 'java', name: 'run', owner: 'Server', purpose: 'refuses a stale target', evidence: [{ at: 'libtmux/src/main/java/io/github/libtmux/Server.java:1221', has: ['run'] }] }) + }, /java: guard Server.run: no function of that name builds an if-shell/], + ['a guard dropped, so the if-shell it wraps is recorded in place of the command', 'java', 'guards.json', (document) => { document.guards = document.guards.filter((guard) => !(guard.port === 'java' && guard.name === 'killOwnedServer')) }, + /java: io.github.libtmux.junit5.NamedServerFixture.NamedServerFixture.close kill-server: .* is not a call that sends kill-server/], +] +const ruled = new Set() +for (const [name, port, file, change, message] of BAD_RULES) { + if (!existsSync(join(checkoutOf(port), '.git'))) { console.log(`skip ${name}: no checkout of ${port}`); continue } + if (!ruled.has(port)) { + ruled.add(port) + const control = runRules(fixture(), ruleFixture(), port) + check(`the committed ${port} rules, read from a copy, pass`, control.code === 0, control.out) + } + const seeded = ruleFixture() + editRules(seeded, file, change) + const seededRun = runRules(fixture(), seeded, port) + check(`${name} fails`, seededRun.code !== 0 && message.test(seededRun.out), seededRun.out) +} + +// A qualifier is a short phrase beside a method, so the data that carries one longer than that fails without a checkout. +const wordy = fixture() +edit(wordy, 'ts', (document) => { Object.values(document.symbols).flat().find((use) => use.when).when = 'one two three four five six seven eight nine' }) +const wordyRun = run(wordy) +check('a qualifier of more than eight words fails', wordyRun.code !== 0 && /ts: .* says when in 9 words, and a qualifier is at most 8/.test(wordyRun.out), wordyRun.out) + +for (const dir of dirs) rmSync(dir, { recursive: true, force: true }) +if (failures) process.exit(1) diff --git a/scripts/lib/tmux-usage-audit.mjs b/scripts/lib/tmux-usage-audit.mjs new file mode 100644 index 000000000..79b233f48 --- /dev/null +++ b/scripts/lib/tmux-usage-audit.mjs @@ -0,0 +1,156 @@ +/** + * Read back every line a usage entry cites, at the revision the entry says it cites it at. + * + * Generation builds the lines from one scan, so a mistake in that scan comes out looking consistent: a wrapper + * that stands on a core library read at another revision cites core lines that read differently where the + * wrapper is pinned, and regenerating reproduces them. This audit starts from the entries as committed and asks + * the source instead. Each cited line must exist at the revision named for it, and must say what the entry + * claims of it: + * + * - a scanned entry cites the call that sends the command, which is a dispatch site of the scan of that file + * at that revision, and each later line is a call of the function around the line before it, resolved by + * what it is called on and not by its name; + * - a reviewed entry cites the lines its claim names, holding the text the claim says they hold; + * - a forwarded entry cites a line that calls the core method, and its `via` is audited at the revision it + * names, as an entry of the core library; + * - no entry's first line reports a failure: a `throw`, an error constructor or a `failed(...)` call spells a + * command to describe what went wrong with it, and sends nothing. A reviewed entry's first line is not a + * builder that only binds the command to a name either, because a claim is read for the line that sends. + */ +import { bareName, builtSites, callTargets } from './tmux-usage-derive.mjs' + +const split = (cite) => { + const colon = cite.lastIndexOf(':') + return { file: cite.slice(0, colon), line: Number(cite.slice(colon + 1)) } +} + +/** A line that throws or builds an error names a command to say it failed. */ +export const REPORTS_FAILURE = /\b(?:throw|raise|panic!)\b|\bThrowIf\w*\(|\bErr\(|\w[Ee]rror\s*\(|\bfail(?:ed)?\s*\(|\b[Ff]ailure\s*\(|\bException\s*\(/ + +/** + * A statement that keeps a command in a variable, or a continuation that applies a scope to one, runs nothing. It + * is the line to cite when the function only builds the command for its caller to send, and the wrong one when the + * same function goes on to send it: `run(...)` or `execute(...)` a few lines later is the line that sends. + */ +export const BINDS_ONLY = /^(?:let|var|val|const)\b[^=]*=\s*(?:[\w.]+\()?\s*Command::new\(|^\.apply\(Command::new\(/ + +/** + * @typedef {{ symbol: string, command: string, scope: string | null, evidence: string[], reviewed?: boolean, + * via?: { port: string, symbol: string, revision: string, evidence: string[], reviewed?: boolean } }} Use + * @typedef {{ read: (path: string) => string | undefined, functions: { file: string, name: string, owner?: string, start: number, end: number, sites: { command: string, line: number, dispatch?: { line: number } | null, why?: string }[], calls: Map, receivers: Map> }[] }} Sources + * + * @param {{ + * port: string, + * revision: string, + * uses: Use[], + * claimFor: (port: string, symbol: string, command: string, scope: string | null, revision: string) => { evidence: { at: string, has?: string[], span?: number }[] } | undefined, + * sourcesAt: (port: string, revision: string) => Sources | undefined, + * spellings: (command: string) => string[], + * generated?: { evidence: string[] }, + * dispatchFor?: (port: string) => ReadonlySet, + * }} input `generated` is the evidence a generated wrapper's entries open with, which names the generator and not a call; + * `dispatchFor` gives the names of the calls that send, for the lines of a claim that hold one. + * @returns {string[]} + */ +export function auditEvidence({ port, revision, uses, claimFor, sourcesAt, spellings, generated, dispatchFor = () => new Set() }) { + const problems = [] + const enclosing = (sources, file, line) => sources.functions + .filter((fn) => fn.file === file && fn.start <= line && line <= fn.end) + .sort((a, b) => b.start - a.start)[0] + + /** Audit one chain of cited lines as an entry of `at`; `label` names what is being audited. */ + const chain = ({ label, at, atRevision, use, ownGenerated }) => { + const sources = sourcesAt(at, atRevision) + if (!sources) { problems.push(`${label}: no scan of ${at} at ${atRevision.slice(0, 8)} to read the cited lines from`); return } + const texts = [] + for (const cite of use.evidence) { + const { file, line } = split(cite) + const text = sources.read(file)?.split('\n')[line - 1] + if (text === undefined || !text.trim()) problems.push(`${label}: ${cite} is not a line of ${at} at ${atRevision.slice(0, 8)}`) + texts.push(text) + } + if (texts.some((text) => text === undefined || !text.trim())) return + if (ownGenerated) { + // A generated wrapper opens with the generator's own lines and ends at the annotation that makes it forward. + if (!/@Operation\b/.test(texts.at(-1))) problems.push(`${label}: ${use.evidence.at(-1)} is not the @Operation annotation of the core method: ${texts.at(-1).trim().slice(0, 90)}`) + return + } + + const apis = dispatchFor(at) + if (use.reviewed) { + const claim = claimFor(at, use.symbol, use.command, use.scope, atRevision) + if (!claim) problems.push(`${label}: reviewed, but no claim of ${at} holds it at ${atRevision.slice(0, 8)}`) + else { + claim.evidence.forEach((item, index) => { + const { line } = split(item.at) + if (item.at !== use.evidence[index]) { problems.push(`${label}: cites ${use.evidence[index]} where its claim cites ${item.at}`); return } + const lines = sources.read(split(item.at).file).split('\n') + const statement = lines.slice(line - 1, line - 1 + (item.span ?? 1)).join('\n') + for (const [position, needle] of (item.has ?? []).entries()) { + if (!(position === 0 ? lines[line - 1] : statement).includes(needle)) problems.push(`${label}: ${item.at} does not contain ${JSON.stringify(needle)}`) + } + }) + } + const { file: firstFile, line: firstLine } = split(use.evidence[0]) + const builder = enclosing(sources, firstFile, firstLine) + if (BINDS_ONLY.test(texts[0].trim()) && builder && [...builder.calls.keys()].some((name) => apis.has(name))) { + problems.push(`${label}: ${use.evidence[0]} only binds the command to a name in ${builder.name}, which goes on to send it; cite the line that sends it: ${texts[0].trim().slice(0, 90)}`) + } + // A line that holds a dispatch call sends, whatever else it does with the result: `if let Err(e) = mutate(...)`. + const sends = [...apis].some((name) => new RegExp(`\\b${name}\\s*[(<]`).test(texts[0])) + if (REPORTS_FAILURE.test(texts[0]) && !sends) problems.push(`${label}: ${use.evidence[0]} reports a failure and sends nothing: ${texts[0].trim().slice(0, 90)}`) + } else if (use.via) { + // A wrapper's own line is a call of the core method, made in the function that holds the line. + const { file: lastFile, line: lastLine } = split(use.evidence.at(-1)) + const caller = enclosing(sources, lastFile, lastLine) + if (!caller || caller.calls.get(bareName(use.via.symbol)) !== lastLine) { + problems.push(`${label}: ${use.evidence.at(-1)} is not a call of ${bareName(use.via.symbol)}: ${texts.at(-1).trim().slice(0, 90)}`) + } + } else { + // The first line is the call that sends the command: a dispatch site of the scan of that file at that revision. A helper + // that built the command and handed it back adds the call of the helper and the literal in it, after the dispatch call. + const spelled = spellings(use.command) + const { file: firstFile, line: firstLine } = split(use.evidence[0]) + const built = builtSites(sources.functions) + let consumed = 1 + const holder = sources.functions.find((fn) => fn.file === firstFile && [...fn.sites, ...(built.get(fn) ?? [])].some((site) => { + if (!spelled.includes(site.command) || (site.dispatch === undefined ? site.line !== firstLine : site.dispatch?.line !== firstLine)) return false + if (!site.via) return true + const sameBuilder = use.evidence[1] === `${fn.file}:${site.via.call}` && use.evidence[2] === `${site.via.file}:${site.line}` + if (sameBuilder) consumed = 3 + return sameBuilder + })) + if (!holder) { + const other = sources.functions.filter((fn) => fn.file === firstFile).flatMap((fn) => fn.sites).find((site) => spelled.includes(site.command) && site.line === firstLine && site.dispatch === null) + problems.push(`${label}: ${use.evidence[0]} is not a call that sends ${use.command}${other ? ` (${other.why})` : ''}: ${texts[0].trim().slice(0, 90)}`) + } + // Each later line is a call, in the function that holds it, of the function around the line before. + const named = (name) => sources.functions.filter((fn) => fn.name === name) + for (let index = consumed; holder && index < texts.length; index++) { + const callee = index === consumed ? holder : enclosing(sources, split(use.evidence[index - 1]).file, split(use.evidence[index - 1]).line) + const next = split(use.evidence[index]) + const caller = enclosing(sources, next.file, next.line) + if (!callee) problems.push(`${label}: ${use.evidence[index - 1]} is in no function, so ${use.evidence[index]} calls nothing`) + else if (!caller || caller.calls.get(callee.name) !== next.line || !callTargets(caller, callee, named(callee.name))) { + problems.push(`${label}: ${use.evidence[index]} is not a call of ${callee.owner ? `${callee.owner}.` : ''}${callee.name}, the function around ${use.evidence[index - 1]}: ${texts[index].trim().slice(0, 90)}`) + } + } + } + } + + for (const use of uses) { + const label = `${port}: ${use.symbol} ${use.command}${use.scope ? ` ${use.scope}` : ''}` + const ownGenerated = Boolean(generated && use.via && generated.evidence.every((cite, index) => use.evidence[index] === cite)) + chain({ label, at: port, atRevision: revision, use, ownGenerated }) + if (use.via) { + if (!use.via.revision) problems.push(`${label}: its via names no revision`) + else { + chain({ + label: `${label} (via ${use.via.port} ${use.via.symbol})`, at: use.via.port, atRevision: use.via.revision, + use: { symbol: use.via.symbol, command: use.command, scope: use.scope, evidence: use.via.evidence, reviewed: use.via.reviewed }, + }) + } + } + } + return problems +} diff --git a/scripts/lib/tmux-usage-derive.mjs b/scripts/lib/tmux-usage-derive.mjs new file mode 100644 index 000000000..b9bd9bdd2 --- /dev/null +++ b/scripts/lib/tmux-usage-derive.mjs @@ -0,0 +1,514 @@ +/** + * Decide which public symbols send a tmux command, and at which scope. + * + * A symbol sends a command when a send site sits in its own body or in a + * private helper it calls. The walk goes up the callers of a helper and stops + * at the first public symbol on each path, so a method that only reads what + * another public method captured is not credited with the capture. + */ + +/** Calls between a send site and the public symbol that wraps it. */ +export const MAX_HOPS = 1 + +/** Calls a method can make before it is said to reach no send, when it is checked against its sibling methods. */ +export const DEEP_HOPS = 3 + +/** + * A helper that this many public symbols call is infrastructure, such as a + * refresh after every mutation, and crediting each caller would list methods + * whose purpose is another command. + */ +export const MAX_SHARED_BY = 4 + +/** The scope a site's flags select, `null` for a command without scopes, `unknown` when no flag settles it. */ +export function classify(spec, flags) { + if (!spec?.scopes) return null + for (const scope of spec.scopes) if ([...scope.flags].every((flag) => flags.includes(flag))) return scope.id + return 'unknown' +} + +/** + * Whether a claim, an exclusion or a review is read against the source at `revision`. One without a `revision` holds + * for the revision its port's model was extracted at; one with a `revision` holds for the revision it starts with, + * which is how a wrapper that shares a repository with its core library reads the core where the wrapper is pinned. + */ +export const ruleHolds = (rule, revision, pinned) => (rule.revision ? revision.startsWith(rule.revision) : revision === pinned) + +const SELF_RECEIVERS = new Set(['this', 'self', 'base', 'super', 'cls', 'me']) + +/** Whether a call can be a call of a function: the arguments it passes fit the parameters it takes, where both are known. */ +export function shapeFits(call, fn) { + if (!call || !fn) return true + if (call.labels && fn.labels) { + let at = 0 + for (const parameter of fn.labels) { + if (call.labels[at] === parameter.label) at++ + else if (!parameter.optional) return false + } + return at === call.labels.length + } + return call.count >= fn.min && call.count <= fn.max +} + +/** + * Whether a call in `caller` is a call of `callee`. A name that only one function has can be nothing else. A name that + * several share is resolved by what the call is made on: an unqualified call or one on `self` is the caller's own type's + * (a free function, when the callee has no type), and a call on a handle named for a type is that type's. A call on + * anything else is left unresolved, because naming `into_command` is not naming the one in `CaptureOptions`. Among the + * overloads of one type, the arguments the call passes pick the one it takes. + * + * Each call of the name is judged by its own receiver and arguments when the scan kept them; `call` names the one to judge. + * + * @param {{ calls: Map, receivers: Map>, callList?: { name: string, receiver?: string, shape?: object }[], owner?: string }} caller + * @param {{ name: string, owner?: string, file?: string, shape?: object }} callee + * @param {{ owner?: string, file?: string }[]} named every function of the port that has the callee's name + * @param {{ name: string, receiver?: string, shape?: object }} [call] + */ +export function callTargets(caller, callee, named, call) { + if (!caller.calls.has(callee.name)) return false + if (named.length <= 1) return true + const calls = call ? [call] : (caller.callList ?? []).filter((candidate) => candidate.name === callee.name) + // Overloads of one type are not always in one file: a Swift extension and a C# partial class add to the type from another. + const overloaded = named.some((other) => other !== callee && other.owner === callee.owner && callee.owner !== undefined) + if (!calls.length) return resolves(caller, caller.receivers.get(callee.name), callee, named) + return calls.some((one) => resolves(caller, one.receiver ? new Set([one.receiver]) : undefined, callee, named) && (!overloaded || shapeFits(one.shape, callee.shape))) +} + +function resolves(caller, receivers, callee, named) { + // Go names its receiver, `func (p Pane) ...`, and calls its own methods on it. + const unqualified = !receivers || [...receivers].every((receiver) => SELF_RECEIVERS.has(receiver) || receiver === caller.selfName) + // A call with no handle in front of it is a free function's, and with a second free function of the name it is the one in the caller's own file or none: which one an import names is not read. + // The overloads of one free function, all in one file, are that file's whichever file the call is in. + if (callee.owner === undefined) return !receivers && (caller.file === callee.file || new Set(named.filter((other) => other.owner === undefined).map((other) => other.file)).size === 1) + if (unqualified) return caller.owner === callee.owner + return [...receivers].some((receiver) => receiver.replace(/^_+/, '') === callee.owner.toLowerCase()) +} + +/** `panes(where:)`, `Server.panes` and `Server#list_panes` all name their last identifier. */ +export function bareName(name) { + // Kotlin and Scala quote a name that is also a keyword: Buffers.`set`. + return name.replace(/\(.*$/s, '').replace(/`/g, '').split(/[.:#\\]+/).filter(Boolean).at(-1) ?? name +} + +/** + * @typedef {import('./tmux-usage-scan.mjs').ScannedFunction & { file: string }} LocatedFunction + * @typedef {{ id: string, name: string, qualified?: string, parentName?: string, file: string, line: number, overloaded?: boolean }} UsageSymbol + * @typedef {{ symbol: string, command: string, scope: string | null, evidence: string[], hops: number }} UsageEntry + * @typedef {{ file: string, line: number, function: string, reason: string }} Unresolved + */ + +/** + * The functions that are each public symbol's own definition, overloads included. + * @param {LocatedFunction[]} functions + * @param {UsageSymbol[]} symbols + * @param {{ sharedOwner?: boolean, freeFunctions?: boolean }} [options] `sharedOwner` accepts the one same-named function of a file under + * another owner; `freeFunctions` gives a function with no owner every same-named function in the port, as Julia's methods of one function are. + * @returns {Map} + */ +export function definitionsOf(functions, symbols, { sharedOwner = false, freeFunctions = false } = {}) { + const byFile = Map.groupBy(functions, (fn) => fn.file) + const byName = Map.groupBy(functions, (fn) => fn.name) + const definitions = new Map() + for (const symbol of symbols) { + const name = bareName(symbol.name) + const inFile = (byFile.get(symbol.file) ?? []).filter((fn) => fn.name === name) + let hits = inFile.filter((fn) => symbol.line >= fn.start && symbol.line <= fn.nameLine) + if (!hits.length) hits = inFile.filter((fn) => symbol.line >= fn.start && symbol.line <= fn.end) + if (hits.length && symbol.overloaded) hits = inFile.filter((fn) => hits.some((hit) => hit.owner === fn.owner)) + const owner = symbol.parentName && bareName(symbol.parentName) + // A type annotation can sit apart from the function it describes, in the same file. + if (!hits.length && owner) hits = inFile.filter((fn) => fn.owner === owner) + // The methods of one Julia function are spread over files, and all of them answer to its one symbol. + if (freeFunctions && !symbol.parentName) hits = (byName.get(name) ?? []).filter((fn) => !fn.owner) + // Handles that share one implementation are declared apart from it: `Pane`, `Window` and `Session` methods all defined once on a base. + if (!hits.length && sharedOwner && inFile.length === 1) hits = inFile + // A declaration in a header is defined in another file under the same type name. + if (!hits.length && owner && !inFile.length) { + hits = (byName.get(name) ?? []).filter((fn) => fn.owner === owner + && (fn.namespace === undefined || symbol.qualified === undefined || symbol.qualified === `${fn.namespace}::${owner}::${name}`)) + } + for (const fn of hits) definitions.set(fn, [...(definitions.get(fn) ?? []), symbol]) + } + // Several declarations can share one definition's name; the header named like the source file owns it. + const stem = (path) => path.replace(/^.*\//, '').replace(/\.[^.]+$/, '') + for (const [fn, owned] of definitions) { + const matching = owned.filter((symbol) => symbol.file !== fn.file && stem(symbol.file) === stem(fn.file)) + if (owned.length > 1 && matching.length) definitions.set(fn, owned.filter((symbol) => symbol.file === fn.file || matching.includes(symbol))) + } + return definitions +} + +/** + * A helper that builds a command and hands it back sends nothing itself: its caller sends the value it gets, by passing the + * call to a dispatch call or the variable it binds the call to. That is a send of the caller, made with a command the helper + * spelled, and it is recorded at the dispatch call with the call of the helper and the literal after it. + * + * @returns {Map} the sites to add to each function that sends through a helper + */ +export function builtSites(functions) { + const byName = Map.groupBy(functions, (fn) => fn.name) + const built = new Map() + for (const caller of functions) { + for (const call of caller.callsites ?? []) { + const candidates = byName.get(call.name) ?? [] + for (const builder of candidates) { + const sites = builder.sites.filter((site) => site.builds) + if (builder === caller || !sites.length) continue + const pseudo = { file: caller.file, calls: new Map([[call.name, call.line]]), receivers: new Map(call.receiver ? [[call.name, new Set([call.receiver])]] : []), owner: caller.owner } + if (!callTargets(pseudo, builder, candidates)) continue + for (const site of sites) { + const list = built.get(caller) ?? [] + if (list.some((held) => held.command === site.command && held.line === site.line && held.via.call === call.line)) continue + list.push({ command: site.command, line: site.line, flags: site.flags, dispatch: call.flows, via: { call: call.line, file: builder.file, name: builder.name } }) + built.set(caller, list) + } + } + } + } + return built +} + +/** + * @param {{ command: string, spec?: { scopes?: { id: string, flags: string }[] }, functions: LocatedFunction[], symbols: UsageSymbol[], definitionOptions?: { sharedOwner?: boolean, freeFunctions?: boolean } }} input + * @returns {{ entries: UsageEntry[], unresolved: Unresolved[] }} + */ +export function deriveUsage({ command, spec, functions, symbols, definitionOptions }) { + const built = builtSites(functions) + const byName = Map.groupBy(functions, (fn) => fn.name) + const definitions = definitionsOf(functions, symbols, definitionOptions) + + /** The functions that call `fn`, by what each call resolves to and not by the name alone. */ + const callersOf = (fn) => { + const named = byName.get(fn.name) ?? [] + return functions.filter((other) => other !== fn && callTargets(other, fn, named)) + } + + /** Public symbols reached from `fn`, each with the call sites walked to reach it and the definition that reaches it. */ + const reach = (fn, trail, depth) => { + const own = definitions.get(fn) + if (own) return own.map((symbol) => ({ symbol, trail, method: fn })) + if (depth >= MAX_HOPS) return [] + return callersOf(fn).flatMap((caller) => reach(caller, [...trail, `${caller.file}:${caller.calls.get(fn.name)}`], depth + 1)) + } + + const entries = new Map() + /** The definitions of a symbol that send an entry's command, by entry: a symbol with several methods is not credited with one's send for all. */ + const senders = new Map() + const unresolved = [] + for (const fn of functions) { + const found = [...fn.sites, ...(built.get(fn) ?? [])].filter((site) => site.command === command) + if (!found.length) continue + // A literal that reaches no call that sends is a label, a comparison or a choice, and records nothing. + for (const site of found.filter((candidate) => candidate.dispatch === null)) { + unresolved.push({ file: fn.file, line: site.line, function: fn.name, reason: site.why ?? 'it reaches no call that sends' }) + } + const sites = found.filter((site) => site.dispatch !== null) + if (!sites.length) continue + const scoped = sites.map((site) => ({ site, scope: classify(spec, site.flags) })) + for (const { site, scope } of scoped) { + if (scope === 'unknown') { + unresolved.push({ file: fn.file, line: site.line, function: fn.name, reason: 'no scope flag beside the command' }) + } + } + const known = scoped.filter(({ scope }) => scope !== 'unknown') + const isPublic = definitions.has(fn) + // A helper that lists at several scopes cannot say which one its caller wants. + const ambiguous = !isPublic && new Set(known.map(({ scope }) => scope)).size > 1 + if (ambiguous) { + unresolved.push({ file: fn.file, line: known[0].site.line, function: fn.name, reason: 'a shared helper lists at several scopes' }) + continue + } + for (const { site, scope } of known) { + const reached = reach(fn, [], 0) + if (!reached.length) { + unresolved.push({ file: fn.file, line: site.line, function: fn.name, reason: 'no public symbol reaches it' }) + continue + } + if (!isPublic && new Set(reached.map(({ symbol }) => symbol.id)).size > MAX_SHARED_BY) { + unresolved.push({ file: fn.file, line: site.line, function: fn.name, reason: `a helper shared by ${new Set(reached.map(({ symbol }) => symbol.id)).size} public symbols` }) + continue + } + for (const { symbol, trail, method } of reached) { + const key = `${symbol.id}\0${scope}` + senders.set(key, (senders.get(key) ?? new Set()).add(method)) + // The line to cite is the call that sends, which is where the command is dispatched and not where it is spelled. + const lines = site.via + ? [`${fn.file}:${site.dispatch.line}`, `${fn.file}:${site.via.call}`, `${site.via.file}:${site.line}`] + : [`${fn.file}:${site.dispatch?.line ?? site.line}`] + const entry = { symbol: symbol.id, command, scope, evidence: [...lines, ...trail.toReversed()], hops: trail.length + lines.length - 1 } + // The same command sent on several paths is cited where the fewest calls reach it, then where it is under the fewest branches. + Object.defineProperty(entry, 'depth', { value: site.depth ?? 0 }) + const held = entries.get(key) + if (!held || held.hops > entry.hops || (held.hops === entry.hops && held.depth > entry.depth)) entries.set(key, entry) + } + } + } + /** + * Whether a function reaches a site that sends the command at the scope within a few calls: by the calls it resolves to, which is + * what credits a symbol, or (`liberal`) by every function of the called name, which is what a function that is not credited + * could still reach. + */ + const reaches = (start, command, scope, liberal) => { + const sends = (fn) => [...fn.sites, ...(built.get(fn) ?? [])].some((site) => site.command === command && site.dispatch !== null && classify(spec, site.flags) === scope) + const seen = new Set([start]) + let frontier = [start] + for (let hop = 0; hop <= DEEP_HOPS && frontier.length; hop++) { + const next = [] + for (const fn of frontier) { + if (sends(fn)) return true + for (const name of fn.calls.keys()) { + const named = byName.get(name) ?? [] + for (const callee of named) if (!seen.has(callee) && (liberal || callTargets(fn, callee, named))) { seen.add(callee); next.push(callee) } + } + } + frontier = next + } + return false + } + // Which of a symbol's definitions send the command, for a symbol that has several: those a call credits, and those that + // only reach it through more calls than a symbol is credited across. + for (const [key, entry] of entries) { + const all = [...definitions].filter(([, owned]) => owned.some((symbol) => symbol.id === entry.symbol)).map(([fn]) => fn) + const sends = [...senders.get(key)] + const others = all.filter((method) => !sends.includes(method)) + Object.defineProperty(entry, 'methods', { + value: { + sends, all, + // A method no call reaches the command from, however far. + lacks: others.filter((method) => !reaches(method, command, entry.scope, true)), + // A method that reaches it only through calls the symbol is not credited across, or only by name. + deep: others.filter((method) => reaches(method, command, entry.scope, true) && reaches(method, command, entry.scope, false)), + unsure: others.filter((method) => reaches(method, command, entry.scope, true) && !reaches(method, command, entry.scope, false)), + }, + }) + } + return { + entries: [...entries.values()].sort((a, b) => a.symbol.localeCompare(b.symbol) || String(a.scope).localeCompare(String(b.scope))), + unresolved, + } +} + +/** + * Reviewed claims for the sends a scan cannot see: a command named by a + * template, a scope carried by a typed argument, or a call into a snapshot. + * Each claim cites the lines that make it true, and the line text must still + * say so at the pinned revision. + * + * A wrapper's claim can name the library symbol it calls, `via`, for a call the forwarding rule + * cannot take on trust, such as one that passes the depth a reviewed claim depends on. It then + * stands only while that symbol sends the command at the same scope, and keeps that symbol's lines. + * + * @typedef {{ at: string, has?: string[], span?: number, in?: string }} Evidence + * @typedef {{ port: string, symbol: string, command: string, scope: string | null, evidence: Evidence[], forwardable?: boolean, incidental?: boolean, via?: { port: string, symbol: string } }} Claim + * @param {{ + * claims: Claim[], + * spec?: { scopes?: { id: string }[] }, + * functions: LocatedFunction[], + * types: { file: string, name?: string, start: number, end: number }[], + * symbols: UsageSymbol[], + * readSource: (path: string) => string | undefined, + * sends?: (port: string, symbol: string, command: string, scope: string | null) => { evidence: string[], revision: string, reviewed?: boolean } | undefined, + * }} input + * @returns {{ entries: UsageEntry[], problems: string[] }} + */ +export function verifyClaims({ claims, spec, functions, types, symbols, readSource, definitionOptions, sends = () => undefined }) { + const definitions = definitionsOf(functions, symbols, definitionOptions) + const bySymbol = new Map(symbols.map((symbol) => [symbol.id, symbol])) + const entries = [] + const problems = [] + for (const claim of claims) { + const label = `${claim.port}: ${claim.symbol} ${claim.command} ${claim.scope}` + const fail = (message) => problems.push(`${label}: ${message}`) + const symbol = bySymbol.get(claim.symbol) + if (!symbol) { fail('no such public symbol in the API model'); continue } + if (spec?.scopes ? !spec.scopes.some((scope) => scope.id === claim.scope) : claim.scope !== null) { + fail('not a scope of this command') + continue + } + if (!claim.evidence?.length) { fail('cites no evidence'); continue } + const wrong = conditionProblem(claim.when, claim.conditional) + if (wrong) { fail(wrong); continue } + let anchored = false + let broken = false + for (const item of claim.evidence) { + const [file, line] = [item.at.slice(0, item.at.lastIndexOf(':')), Number(item.at.slice(item.at.lastIndexOf(':') + 1))] + const lines = readSource(file)?.split('\n') + const sourceLine = lines?.[line - 1] + if (sourceLine === undefined) { fail(`${item.at} is not a line of the pinned source`); broken = true; continue } + // A call that spans lines names its command a few lines below the call: the first text is on the cited + // line, which is the one that sends, and the rest are in the next `span` lines of the same statement. + const statement = lines.slice(line - 1, line - 1 + (item.span ?? 1)).join('\n') + for (const [position, needle] of (item.has ?? []).entries()) { + if (!(position === 0 ? sourceLine : statement).includes(needle)) { fail(`${item.at} does not contain ${JSON.stringify(needle)}`); broken = true } + } + if (item.in !== undefined) { + if (item.in !== claim.symbol) { fail(`${item.at} anchors to ${item.in}, not the claimed symbol`); broken = true; continue } + const inside = [...definitions].some(([fn, owned]) => owned.includes(symbol) && fn.file === file && line >= fn.start && line <= fn.end) + || (![...definitions.values()].some((owned) => owned.includes(symbol)) + && types.some((type) => type.file === file && symbol.file === file && symbol.line >= type.start && symbol.line <= type.end && line >= type.start && line <= type.end)) + if (inside) anchored = true + else { fail(`${item.at} is outside the body of ${claim.symbol}`); broken = true } + } + } + if (!broken && !anchored) { fail('no evidence line is anchored in the symbol with "in"'); broken = true } + const core = claim.via && sends(claim.via.port, claim.via.symbol, claim.command, claim.scope) + if (!broken && claim.via && !core) { + fail(`${claim.via.port} ${claim.via.symbol} does not send ${claim.command} at that scope`) + broken = true + } + if (!broken) { + entries.push({ + symbol: claim.symbol, command: claim.command, scope: claim.scope, evidence: claim.evidence.map((item) => item.at), + hops: claim.evidence.length - 1, reviewed: true, ...(claim.forwardable ? { forwardable: true } : {}), ...(claim.incidental ? { incidental: true } : {}), ...(claim.when ? { when: claim.when } : {}), + ...(core ? { via: { port: claim.via.port, symbol: claim.via.symbol, revision: core.revision, evidence: core.evidence, ...(core.reviewed ? { reviewed: true } : {}) } } : {}), + }) + } + } + return { entries, problems } +} + +/** The longest qualifier a table can carry beside a method: it is one line, and a sentence belongs on a page. */ +export const WHEN_WORDS = 8 + +/** + * What is wrong with the condition of a send, or nothing. A send that only some calls make says when in a few words, + * and a send marked conditional that says nothing would be listed as if every call made it. + */ +export function conditionProblem(when, conditional) { + if (when === undefined) return conditional ? 'is marked conditional, so it must say when' : undefined + if (typeof when !== 'string' || !when.trim()) return 'says when with no words' + if (/\n/.test(when)) return 'says when on more than one line' + const words = when.trim().split(/\s+/).length + return words > WHEN_WORDS ? `says when in ${words} words, and a qualifier is at most ${WHEN_WORDS}: ${when}` : undefined +} + +/** + * A scanned send that only some calls make, such as the one a method makes under a condition on its argument, says when. + * The condition is not a claim about the send, which the scan found and the audit reads back; it qualifies it, and cites the + * lines that show the condition. One that qualifies no entry has gone stale and fails. + * + * @param {{ conditions: { port: string, symbol: string, command: string, scope: string | null, when: string, evidence: { at: string, has?: string[] }[] }[], found: Map, readSource: (path: string) => string | undefined, lenient?: boolean }} input + * `lenient` leaves a condition whose entry is not there yet for a later call, which is how an entry that a method inherits from another is qualified like it. + */ +export function applyConditions({ conditions, found, readSource, lenient = false }) { + const problems = [] + for (const item of conditions) { + const label = `${item.port}: ${item.symbol} ${item.command} ${item.scope}: condition` + const wrong = conditionProblem(item.when, true) + if (wrong) { problems.push(`${label} ${wrong}`); continue } + if (!item.evidence?.length) { problems.push(`${label} cites no lines`); continue } + for (const line of item.evidence) { + const cut = line.at.lastIndexOf(':') + const text = readSource(line.at.slice(0, cut))?.split('\n')[Number(line.at.slice(cut + 1)) - 1] + if (text === undefined) { problems.push(`${label} ${line.at} is not a line of the pinned source`); continue } + for (const needle of line.has ?? []) if (!text.includes(needle)) problems.push(`${label} ${line.at} does not contain ${JSON.stringify(needle)}`) + } + const entry = found.get(`${item.symbol}\0${item.command}\0${item.scope}`) + if (!entry) { if (!lenient) problems.push(`${label} qualifies no entry`) } + else if (entry.when && entry.when !== item.when) problems.push(`${label} differs from the one its claim says: ${entry.when}`) + else { + entry.when = item.when + if (!lenient && item.receiver !== undefined) problems.push(...receiverProblems(label, item, entry)) + } + } + return problems +} + +/** + * A generic function's methods are told apart by the type of the first argument, and a command that only some of them send + * is qualified by that type. The qualifier is true when the methods the scan reaches the command from all take the type, + * and at least one method that takes another type does not reach it, and the condition cites the body of one of each, so + * that both can be read: a signature line that names the type shows neither. + * + * @param {string} label + * @param {{ receiver: string, evidence: { at: string, through?: number }[] }} item + * @param {{ methods?: { sends: { file: string, nameLine: number, end: number, receiverType?: string }[], all: { file: string, nameLine: number, end: number, receiverType?: string }[] } }} entry + */ +export function receiverProblems(label, item, entry) { + if (!entry.methods) return [`${label} names the receiver ${item.receiver}, and the entry was not derived from the methods of a function`] + const { sends, lacks, unsure } = entry.methods + const problems = [] + const wrong = sends.filter((method) => method.receiverType !== item.receiver) + if (wrong.length) problems.push(`${label} says on a ${item.receiver}, but the ${wrong.map((method) => method.receiverType ?? 'untyped').join(', ')} method at ${wrong[0].file}:${wrong[0].nameLine} sends it too`) + if (!lacks.length) problems.push(`${label} says on a ${item.receiver}, but no method of the function is shown not to send it, and a send that every method makes takes no qualifier`) + const same = lacks.filter((method) => method.receiverType === item.receiver) + if (same.length) problems.push(`${label} says on a ${item.receiver}, but the ${item.receiver} method at ${same[0].file}:${same[0].nameLine} does not send it`) + if (unsure.length) problems.push(`${label} cannot say which methods send it: ${unsure[0].file}:${unsure[0].nameLine} may reach it through a call that is not resolved`) + const shown = (methods) => (item.evidence ?? []).some((line) => line.through !== undefined + && methods.some((method) => line.at === `${method.file}:${method.nameLine}` && line.through === method.end)) + if (sends.length && !shown(sends)) problems.push(`${label} cites the body of no method that sends it`) + if (lacks.length && !shown(lacks)) problems.push(`${label} cites the body of no method that does not send it`) + return problems +} +/** + * A command that some of a generic function's methods send and others do not is qualified, so that no method is credited with + * another's send. An entry the scan derived that is sent by a part of the methods says when, in a condition or in a claim. + * + * @param {Map} found + */ +export function partialProblems(found) { + const problems = [] + for (const entry of found.values()) { + if (!entry.methods) continue + const { sends, lacks, unsure } = entry.methods + const where = (methods) => `${methods[0].file}:${methods[0].nameLine}` + if (unsure.length) problems.push(`${entry.symbol} ${entry.command} ${entry.scope}: the method at ${where(unsure)} may reach it through a call that is not resolved, so whether it sends it is not known`) + if (lacks.length && !entry.when) { + problems.push(`${entry.symbol} ${entry.command} ${entry.scope}: only the ${[...new Set(sends.map((method) => method.receiverType ?? 'untyped'))].join(', ')} methods send it, and ${lacks.length} other method${lacks.length > 1 ? 's' : ''} such as ${where(lacks)} do not, so it needs a condition that says when`) + } + } + return problems +} + +/** + * Public symbols that carry a command's name and send nothing: a plan or a chain records the command + * for a later run, a request turns itself into a command value, a function returns the line to type. + * A scan cannot tell these from a sender, because the literal is the same. Each exclusion names the + * symbols it removes, by owning type or by member name inside a file prefix, and cites the lines that + * show they build or record the command, which must still hold at the pinned source. An exclusion + * that removes nothing has gone stale and fails, as a claim does. + * + * `commands` limits an exclusion to those commands of the symbols it names: a lookup that passes the name of a list + * command only to choose the format of its rows sends another command, and its other entries stay. + * + * @typedef {{ port: string, why: string, owner?: string, names?: string[], commands?: string[], in?: string, evidence: Evidence[] }} Exclusion + * @param {{ + * exclusions: Exclusion[], + * found: Map, + * symbols: UsageSymbol[], + * readSource: (path: string) => string | undefined, + * }} input + * @returns {{ removed: UsageEntry[], problems: string[] }} the entries taken out of `found` + */ +export function applyExclusions({ exclusions, found, symbols, readSource }) { + const removed = [] + const problems = [] + for (const exclusion of exclusions) { + const label = `${exclusion.port}: exclusion of ${exclusion.owner ?? ''}${exclusion.names ? `.${exclusion.names.join('|')}` : ''}${exclusion.commands ? ` for ${exclusion.commands.join(',')}` : ''}` + if (!exclusion.owner && !exclusion.names) { problems.push(`${label}: names neither an owner nor member names`); continue } + if (!exclusion.evidence?.length) { problems.push(`${label}: cites no evidence`); continue } + let broken = false + for (const item of exclusion.evidence) { + const [file, line] = [item.at.slice(0, item.at.lastIndexOf(':')), Number(item.at.slice(item.at.lastIndexOf(':') + 1))] + const sourceLine = readSource(file)?.split('\n')[line - 1] + if (sourceLine === undefined) { problems.push(`${label}: ${item.at} is not a line of the pinned source`); broken = true; continue } + for (const needle of item.has ?? []) { + if (!sourceLine.includes(needle)) { problems.push(`${label}: ${item.at} does not contain ${JSON.stringify(needle)}`); broken = true } + } + } + if (broken) continue + const matched = new Set(symbols.filter((symbol) => (!exclusion.owner || (symbol.parentName && bareName(symbol.parentName) === exclusion.owner)) + && (!exclusion.names || exclusion.names.includes(symbol.name)) + && (!exclusion.in || symbol.file.startsWith(exclusion.in))).map((symbol) => symbol.id)) + let count = 0 + for (const [key, entry] of found) { + if (matched.has(entry.symbol) && (!exclusion.commands || exclusion.commands.includes(entry.command))) { + // A claim says the send is made and an exclusion says it is not: the exclusion would win and the claim would never show. + if (entry.reviewed) problems.push(`${label}: removes the reviewed claim of ${entry.symbol} ${entry.command} ${entry.scope}, which says it sends it`) + found.delete(key); removed.push(entry); count++ + } + } + if (!count) problems.push(`${label}: removes no entry, so it is stale`) + } + return { removed, problems } +} diff --git a/scripts/lib/tmux-usage-dispatch.mjs b/scripts/lib/tmux-usage-dispatch.mjs new file mode 100644 index 000000000..ff21521ef --- /dev/null +++ b/scripts/lib/tmux-usage-dispatch.mjs @@ -0,0 +1,242 @@ +import { callTargets } from './tmux-usage-derive.mjs' + +/** + * Checks the calls that `dispatchers.json` says send a tmux command. + * + * A dispatching call is a name, and a scan reads every call of that name as a send of the command it is handed. That is + * only true if the function behind the name really sends, so each definition a rule cites must reach a transport: the + * point where the library starts the tmux process or writes the command to a control client. The rule cites the chain, + * one line per hop, and the chain is read back against the scan of the pinned source. + * + * - The definition is a line of a function with the rule's name. + * - Each hop is a line of the function the hop before it leads to, and holds the text it cites. It calls the next + * function (`calls`): the call on that line, with the object it is made on and the arguments it passes, must resolve to the + * function the next hop is in, as a call does in a derivation, so that a tracing helper called `run` is not the `run` of a + * subprocess; or it leads to it in a way the scan does not follow (`leads`), and says why in `why`: dynamic dispatch + * through a trait, or a command put on a queue that another function writes from. + * - The last line holds the transport: a process start or a write to the control client's input. + * - A definition whose own line starts the process needs no chain. + */ + +/** The line of a port's source that starts a tmux process or writes to a control client, and the files that may hold it. */ +export const TRANSPORT = { + py: { pattern: /subprocess\.(?:Popen|check_call)\(/, files: /\.py$/ }, + ruby: { pattern: /Process\.spawn\(@env|@input\.write_nonblock\(request\.wire/, files: /(?:process|control)\.rb$/ }, + lua: { pattern: /pcall\(uv\.spawn|uv\.spawn,|transport:write\(/, files: /(?:process|control_io)\.lua$/ }, + julia: { pattern: /^\s*run\(|write\(connection\.input\.in/, files: /(?:process|control|lifecycle)\.jl$/ }, + ts: { pattern: /\bspawn\(|stdin\.write\(/, files: /(?:node_spawn_transport|control\/child|control\/connection)\.ts$/ }, + rs: { pattern: /\.spawn\(\)|\.write_all\(/, files: /(?:subprocess|process|protocol)\.rs$/ }, + go: { pattern: /exec\.Command(?:Context)?\(|io\.WriteString\(c\.stdin/, files: /(?:runner|control_startup|control_request)\.go$/ }, + java: { pattern: /starter\.start\(|output\.write\(request\.line\)/, files: /(?:ControlWriter|ProcessTransport)\.java$/ }, + csharp: { pattern: /\bprocess\.Start\(\)|StandardInput\.WriteLineAsync/, files: /(?:TmuxProcessTransport|SystemControlModeProcess)\.cs$/ }, + cxx: { pattern: /::posix_spawnp?\(|::write\(/, files: /(?:posix_child|connection|process)\.cpp$/ }, + swift: { pattern: /Subprocess\.run\(|Glibc\.write\(/, files: /Sources\/LibTmux\/(?:Transport|ControlMode|NonblockingLineWriter)\.swift$/ }, + elixir: { pattern: /\bsend_port\(/, files: /transport\/oneshot\.ex$/ }, +} + +const CONSTRUCTOR = /^(?:__init__|constructor|init|new|initialize)$/ + +/** `Server.cmd`, `Server#cmd` and `cmd(...)` all name `cmd`. */ +export const bareName = (name) => name.replace(/\(.*$/s, '').replace(/`/g, '').split(/[.:#\\]+/).filter(Boolean).at(-1) ?? name + +const split = (cite) => { + const colon = cite.lastIndexOf(':') + return { file: cite.slice(0, colon), line: Number(cite.slice(colon + 1)) } +} + +/** The innermost function of a file that holds a line. */ +const functionAt = (functions, file, line) => functions + .filter((fn) => fn.file === file && fn.start <= line && line <= fn.end) + .sort((a, b) => b.start - a.start)[0] + +/** Whether a function is the one a call or a hand-off names: a function of that name, or the constructor of a type of that name. */ +const isNamed = (fn, name) => fn.name === name || (fn.owner === name && CONSTRUCTOR.test(fn.name)) + +/** + * Whether the call a hop cites is a call of the function the next hop is in. The call on the hop's line is judged by what it is + * made on and the arguments it passes, among the functions of that name. A call made on a field that holds a handle the scan + * cannot type (`self.executor.execute(request)`) says what it holds in `on`, which must be the type of the function the chain + * goes on in, and which the call's own receiver must not contradict. + */ +function callProblems({ where, hop, current, reached, functions, line }) { + const name = hop.calls + const calls = current.callList?.filter((candidate) => candidate.name === name && (candidate.line === line || candidate.calleeLine === line)) + if (current.callList && !calls.length) return [`${where} has no call of ${name} on that line`] + // A constructor is called by the name of its type. + if (reached.name !== name) return reached.owner === name && current.calls.has(name) ? [] : [`${where} does not call ${name}`] + const named = functions.filter((candidate) => candidate.name === name) + const describe = (candidate) => `${candidate.owner ? `${candidate.owner}.` : ''}${candidate.name} at ${candidate.file}:${candidate.nameLine}` + // The type a function is a method of: its owner, or in Julia the type of its first argument, which picks the method of a generic function. + // A free function is named by its file, which is how one of two platform builds of it is chosen. + const typeOf = (candidate) => candidate.owner ?? candidate.receiverType ?? candidate.file.replace(/^.*\//, '') + if (!current.callList) return callTargets(current, reached, named) || (hop.on !== undefined && hop.on === typeOf(reached)) ? [] : [`${where} does not call ${name}`] + const resolved = calls.filter((call) => callTargets(current, reached, named, call)) + const elsewhere = [...new Set(calls.flatMap((call) => named.filter((candidate) => candidate !== reached && callTargets(current, candidate, named, call))))] + if (hop.on !== undefined) { + if (typeOf(reached) !== hop.on) return [`${where} says the call is made on a ${hop.on}, but the chain goes on in ${describe(reached)}`] + if (elsewhere.length && !resolved.length) return [`${where} says the call is made on a ${hop.on}, but its receiver resolves it to ${elsewhere.map(describe).join(' and ')}`] + return [] + } + if (resolved.length) return [] + const call = calls[0] + const made = `${call.receiver ? `${call.receiver}.` : ''}${name}(${call.shape ? (call.shape.labels ? call.shape.labels.map((label) => (label === '_' ? '_' : `${label}:`)).join('') : call.shape.count) : ''})` + return [`${where} is a call of ${made}, which resolves to ${elsewhere.length ? elsewhere.map(describe).join(' and ') : 'no function the scan has read'}, and not to ${describe(reached)}, where the chain goes on${elsewhere.length ? '' : `; if the object it is made on holds a ${reached.owner ?? 'value'}, say so in on`}`] +} + +/** + * @param {{ port: string, rule: { name: string }, item: { at: string, has?: string[], reaches?: { at: string, has?: string[], calls?: string, leads?: string }[] }, + * functions: { file: string, name: string, owner?: string, start: number, end: number, calls: Map }[], + * readSource: (path: string) => string | undefined }} input + * @returns {string[]} + */ +export function chainProblems({ port, rule, item, functions, readSource }) { + const label = `${port}: dispatcher ${rule.name} at ${item.at}` + const transport = TRANSPORT[port] + const textAt = (cite) => { + const { file, line } = split(cite) + return readSource(file)?.split('\n')[line - 1] + } + const reachesTransport = (cite) => { + const { file } = split(cite) + return transport && transport.files.test(file) && transport.pattern.test(textAt(cite) ?? '') + } + // A definition that starts the process itself, `subprocess.check_call(`, needs no chain. + if (reachesTransport(item.at)) return [] + const chain = item.reaches ?? [] + if (!transport) return [`${label}: ${port} has no transport to reach`] + if (!chain.length) return [`${label}: reaches no transport, and cites no chain to one`] + + const problems = [] + const head = split(item.at) + let current = functionAt(functions, head.file, head.line) + if (!current || current.name !== bareName(rule.name)) return [`${label}: is not a line of a function named ${bareName(rule.name)}`] + for (const [index, hop] of chain.entries()) { + const at = split(hop.at) + const where = `${label}: hop ${hop.at}` + const text = textAt(hop.at) + if (text === undefined) { problems.push(`${where} is not a line of the pinned source`); break } + for (const needle of hop.has ?? []) if (!text.includes(needle)) problems.push(`${where} does not contain ${JSON.stringify(needle)}`) + if (current.file !== at.file || current.start > at.line || at.line > current.end) { + problems.push(`${where} is not in ${current.owner ? `${current.owner}.` : ''}${current.name}, the function the chain has reached`) + break + } + if (index === chain.length - 1) { + if (!reachesTransport(hop.at)) problems.push(`${where} is not a transport: no process start or write to a control client`) + break + } + const target = hop.calls ?? hop.leads + if (!target) { problems.push(`${where} names neither the function it calls nor the one it leads to`); break } + if (hop.leads !== undefined && !hop.calls && !hop.why?.trim()) problems.push(`${where} leads to ${hop.leads} and says nothing about why the scan cannot follow it`) + const next = split(chain[index + 1].at) + const reached = functionAt(functions, next.file, next.line) + if (!reached || !isNamed(reached, target)) { + problems.push(`${where} leads to ${target}, but ${chain[index + 1].at} is not a line of it`) + break + } + if (hop.calls) problems.push(...callProblems({ where, hop, current, reached, functions, line: at.line })) + current = reached + } + return problems +} + +/** + * The dispatching and the building calls of a port: each names the code that defines it, the definition must still be + * there, and a dispatching call must reach a transport through a cited chain. A call is recorded as a send only where it + * reaches one of these. Without the function table of the scan, which a document check does not have, only the cited + * lines are read back. + * + * @param {{ port: string, dispatchers: { name: string, why?: string, kind?: string, evidence?: { at: string, has?: string[], reaches?: unknown[] }[], + * labels?: { at: number, name: string }[] }[], readSource: (path: string) => string | undefined, + * functions?: { file: string, name: string, owner?: string, start: number, end: number, calls: Map }[] }} input + * @returns {string[]} + */ +export function dispatcherProblems({ port, dispatchers, readSource, functions }) { + const problems = [] + for (const rule of dispatchers) { + const label = `${port}: dispatcher ${rule.name}` + if (!rule.name || !rule.why?.trim()) { problems.push(`${label}: names no call or gives no reason`); continue } + if (!rule.evidence?.length) { problems.push(`${label}: cites no definition`); continue } + let defined = false + for (const item of rule.evidence) { + const cut = item.at.lastIndexOf(':') + const line = readSource(item.at.slice(0, cut))?.split('\n')[Number(item.at.slice(cut + 1)) - 1] + if (line === undefined) { problems.push(`${label}: ${item.at} is not a line of the pinned source`); continue } + for (const needle of item.has ?? []) if (!line.includes(needle)) problems.push(`${label}: ${item.at} does not contain ${JSON.stringify(needle)}`) + if ((item.has ?? []).some((needle) => needle.includes(rule.name))) defined = true + if (rule.kind !== 'builder' && functions) problems.push(...chainProblems({ port, rule, item, functions, readSource })) + } + if (!defined) problems.push(`${label}: no cited line shows ${rule.name} defined`) + // An argument that only names the command for a failure message is not the command the call sends. + for (const named of rule.labels ?? []) { + if (!Number.isInteger(named.at) || named.at < 0 || !named.name) { problems.push(`${label}: a label names no argument position or parameter`); continue } + const takes = rule.evidence.some((item) => { + const { file, line } = split(item.at) + const text = (readSource(file) ?? '').split('\n').slice(line - 1, line + 9).join('\n').replace(/\{[\s\S]*$/, '') + return new RegExp(`\\b${named.name}\\b`).test(text) + }) + if (!takes) problems.push(`${label}: no cited definition takes a parameter named ${named.name}`) + } + } + return problems +} + +/** + * The functions that wrap a command in `if-shell` to make tmux refuse a stale or foreign target. Such a guard is + * transparent: the command inside it is the one the library sends, and the `if-shell` is the means, so a scan records + * the command and not the guard. A conditional whose purpose is the condition is not a guard, and is recorded as + * `if-shell` with the command inside it as a conditional send. + * + * Each guard names the function that builds the wrapper, cites the lines that show it does and where it sits, and says + * what it refuses. A guard that applies only on some paths says when. + */ +export function guardProblems({ port, guards, readSource, functions }) { + const problems = [] + for (const guard of guards) { + const label = `${port}: guard ${guard.owner ? `${guard.owner}.` : ''}${guard.name}` + if (!guard.name || !guard.purpose?.trim()) { problems.push(`${label}: names no function or states no purpose`); continue } + if (!guard.evidence?.length) { problems.push(`${label}: cites no lines`); continue } + if (guard.conditional && !guard.when?.trim()) problems.push(`${label}: is conditional, so it must say when`) + const defined = functions.filter((fn) => fn.name === guard.name && (!guard.owner || fn.owner === guard.owner)) + if (!defined.length) { problems.push(`${label}: no function of that name in the pinned source`); continue } + const builds = defined.filter((fn) => (readSource(fn.file) ?? '').split('\n').slice(fn.start - 1, fn.end).some((text) => text.includes('if-shell'))) + if (!builds.length) problems.push(`${label}: no function of that name builds an if-shell`) + let shown = false + for (const item of guard.evidence) { + const { file, line } = split(item.at) + const text = readSource(file)?.split('\n')[line - 1] + if (text === undefined) { problems.push(`${label}: ${item.at} is not a line of the pinned source`); continue } + for (const needle of item.has ?? []) if (!text.includes(needle)) problems.push(`${label}: ${item.at} does not contain ${JSON.stringify(needle)}`) + if (text.includes('if-shell') && builds.some((fn) => fn.file === file && fn.start <= line && line <= fn.end)) shown = true + } + if (!shown && builds.length) problems.push(`${label}: no cited line is the if-shell the guard builds`) + } + return problems +} + +/** + * The checks a library makes before every command it sends, which are the library's own and not a send of the method that + * triggers them: Go probes the daemon with `run-shell -C` before each ordinary command. Crediting each method with one would + * list every method that sends under that command, and crediting only some would tell a reader the others never probe, so + * none is credited for the check itself. A method that probes as a step of its own carries a claim that says when. Each rule + * names the command and why, and cites the lines from the call that makes the check to the line that spells the command; the + * lines are read back against the pinned source. + * + * @param {{ port: string, preflights: { command: string, why?: string, evidence?: { at: string, has?: string[] }[] }[], readSource: (path: string) => string | undefined }} input + * @returns {string[]} + */ +export function preflightProblems({ port, preflights, readSource }) { + const problems = [] + for (const rule of preflights) { + const label = `${port}: preflight ${rule.command}` + if (!rule.command || !rule.why?.trim()) { problems.push(`${label}: names no command or gives no reason`); continue } + if (!rule.evidence?.length) { problems.push(`${label}: cites no lines`); continue } + for (const item of rule.evidence) { + const { file, line } = split(item.at) + const text = readSource(file)?.split('\n')[line - 1] + if (text === undefined) { problems.push(`${label}: ${item.at} is not a line of the pinned source`); continue } + for (const needle of item.has ?? []) if (!text.includes(needle)) problems.push(`${label}: ${item.at} does not contain ${JSON.stringify(needle)}`) + } + if (!rule.evidence.some((item) => (item.has ?? []).some((needle) => needle.includes(`"${rule.command}"`)))) problems.push(`${label}: no cited line spells the command`) + } + return problems +} diff --git a/scripts/lib/tmux-usage-forward.mjs b/scripts/lib/tmux-usage-forward.mjs new file mode 100644 index 000000000..94964a2c3 --- /dev/null +++ b/scripts/lib/tmux-usage-forward.mjs @@ -0,0 +1,93 @@ +/** + * Credit a wrapper library with the commands its core library sends. + * + * Kotlin and Scala wrap the Java library, F# and the PowerShell cmdlets wrap the .NET one. A wrapper + * symbol sends a command when it calls a core method that sends it, at the scope the core method + * sends it, and the entry keeps both hops: the line of the call, and the core entry that holds the + * line that sends. A wrapper that only builds a query, or reads what another call captured, calls + * no core sender and gets nothing. + */ +import { bareName, definitionsOf } from './tmux-usage-derive.mjs' + +/** + * @typedef {{ symbol: string, command: string, scope: string | null, evidence: string[], reviewed?: boolean, forwardable?: boolean, incidental?: boolean }} CoreEntry + * @typedef {{ id: string, name: string, parentName?: string, file: string, line: number }} WrapperSymbol + */ + +/** + * @param {{ + * parent: string, + * functions: import('./tmux-usage-derive.mjs').LocatedFunction[], + * types: { file: string, name?: string, start: number, end: number }[], + * symbols: WrapperSymbol[], + * core: { entries: CoreEntry[], symbols: Map, revision: string }, + * generated?: { under: string[], evidence: string[], forwards: (entry: CoreEntry, symbol?: { name: string, file: string, line: number }) => string | undefined }, + * delegate?: boolean, + * }} input + * `core.revision` is the revision the core lines were read at, and every entry says so in its `via`. With `delegate`, the + * wrapper and the core are one library: a method is credited with what a public method of another type sends, when it + * calls it on a handle named for that type (`p.server.SaveBuffer(...)`), and not for the calls it makes on its own type. + * @returns {{ entries: object[], silent: string[] }} `silent` names the wrapper symbols that call no core sender. + */ +export function forwardUsage({ parent, functions, types, symbols, core, generated, delegate = false }) { + const definitions = definitionsOf(functions, symbols) + const owned = new Map() + for (const [fn, list] of definitions) for (const symbol of list) owned.set(symbol, [...(owned.get(symbol) ?? []), fn]) + // A reviewed claim can hold only for the arguments it was read with, such as a snapshot depth, so a + // wrapper that passes its own does not inherit it unless the claim says it holds for every call. + const forwardable = core.entries.filter((entry) => !entry.reviewed || entry.forwardable) + const coreByName = Map.groupBy(forwardable, (entry) => bareName(core.symbols.get(entry.symbol)?.name ?? entry.symbol)) + const entries = new Map() + const forwarding = new Set() + + const add = (symbol, entry, evidence) => { + const key = `${symbol.id}\0${entry.command}\0${entry.scope}` + const result = { + symbol: symbol.id, command: entry.command, scope: entry.scope, evidence, hops: 1, ...(entry.when ? { when: entry.when } : {}), + via: { port: parent, symbol: entry.symbol, revision: core.revision, evidence: entry.evidence, ...(entry.reviewed ? { reviewed: true } : {}), ...(entry.incidental ? { incidental: true } : {}) }, + } + if (!entries.has(key)) entries.set(key, result) + forwarding.add(symbol.id) + } + + for (const symbol of symbols) { + const wrapperOwner = symbol.parentName ? bareName(symbol.parentName).toLowerCase() : undefined + if (generated?.under.some((prefix) => symbol.file.startsWith(prefix))) { + // A generated operation takes its name and its handle from the core method it forwards to. + for (const entry of coreByName.get(bareName(symbol.name)) ?? []) { + const coreSymbol = core.symbols.get(entry.symbol) + const annotation = generated.forwards(entry, coreSymbol) + if (!annotation || !wrapperOwner || bareName(coreSymbol?.parentName ?? '').toLowerCase() !== wrapperOwner) continue + add(symbol, entry, [...generated.evidence, annotation]) + } + continue + } + // The functions that are the symbol's definition, or every function of the type a cmdlet is. + let fns = owned.get(symbol) ?? [] + if (!fns.length) { + const type = types.find((candidate) => candidate.file === symbol.file && candidate.start <= symbol.line && symbol.line <= candidate.end) + if (type) fns = functions.filter((fn) => fn.file === symbol.file && fn.start >= type.start && fn.end <= type.end) + } + for (const fn of fns) { + for (const [name, line] of fn.calls) { + const receivers = fn.receivers.get(name) ?? new Set() + for (const entry of coreByName.get(name) ?? []) { + const coreOwner = bareName(core.symbols.get(entry.symbol)?.parentName ?? '').toLowerCase() + if (!coreOwner) continue + // A call on a handle named for a type is a call on that type: `session.GetPanesAsync()` is Session's, whatever + // type the wrapper method belongs to. Only a call with no named handle, or on the wrapper's own `this`, is its owner's. + const own = [...receivers].every((receiver) => ['this', 'self', 'base'].includes(receiver)) + if (delegate) { + // Only a call on the way to the end of the method, not one under a condition, in a loop or in a cleanup that runs on failure. + if (!receivers.has(coreOwner) || wrapperOwner === coreOwner || entry.symbol === symbol.id || fn.callDepths?.get(name) !== 0) continue + } else if (!(receivers.has(coreOwner) || (own && wrapperOwner === coreOwner))) continue + add(symbol, entry, [`${fn.file}:${line}`]) + } + } + } + } + return { + entries: [...entries.values()].sort((a, b) => a.symbol.localeCompare(b.symbol) || a.command.localeCompare(b.command) || String(a.scope).localeCompare(String(b.scope))), + silent: symbols.filter((symbol) => !forwarding.has(symbol.id)).map((symbol) => symbol.id), + } +} diff --git a/scripts/lib/tmux-usage-lexical.mjs b/scripts/lib/tmux-usage-lexical.mjs new file mode 100644 index 000000000..20e0a2bf0 --- /dev/null +++ b/scripts/lib/tmux-usage-lexical.mjs @@ -0,0 +1,617 @@ +/** + * Read the source of the three languages that have no tree-sitter grammar here, Julia, F# and Elixir, by their + * text: comments and strings are stepped over, a function is the lines an offside rule or an `end` + * gives it, and a call is a name written against its brackets. The result has the shape of a grammar + * scan, so the same derivation reads it. + */ +/** + * The object a call is made on, as its last identifier in lower case: `window` for + * `Window!.GetPanesAsync(...)`, `server` for `this.server.list()`. A library's own handles are named + * for their type, which is how a wrapper's call finds the core method it forwards to. + */ +export function receiverOf(calleeText) { + const parts = calleeText.replace(/<[^<>()]*>/g, '').split(/\?\.|!\.|->|::|[.:]/) + if (parts.length < 2) return undefined + const receiver = /([A-Za-z_]\w*)\W*$/.exec(parts.at(-2).replace(/\([^()]*\)|\[[^\]]*\]/g, ''))?.[1] + return receiver?.toLowerCase() +} + + +const LANGUAGES = { + julia: { line: '#', block: ['#=', '=#'], triple: true, verbatim: false }, + fsharp: { line: '//', block: ['(*', '*)'], triple: true, verbatim: true }, +} + +/** + * Words and punctuation of a source text, with strings kept whole and comments dropped. + * @returns {{ t: 'str' | 'id' | 'sym', v: string, line: number, col: number }[]} + */ +export function tokenize(text, language) { + const { line: lineComment, block, triple, verbatim } = LANGUAGES[language] + const tokens = [] + let line = 1 + let col = 0 + let index = 0 + const step = (count = 1) => { + for (let n = 0; n < count; n++) { + if (text[index] === '\n') { line++; col = 0 } else col++ + index++ + } + } + while (index < text.length) { + const here = text[index] + if (text.startsWith(block[0], index)) { + let depth = 1 + step(block[0].length) + while (index < text.length && depth) { + if (text.startsWith(block[0], index)) { depth++; step(block[0].length) } + else if (text.startsWith(block[1], index)) { depth--; step(block[1].length) } + else step() + } + continue + } + if (text.startsWith(lineComment, index)) { while (index < text.length && text[index] !== '\n') step(); continue } + const start = { line, col } + if (triple && text.startsWith('"""', index)) { + const end = text.indexOf('"""', index + 3) + const stop = end < 0 ? text.length : end + 3 + const value = text.slice(index + 3, end < 0 ? text.length : end) + step(stop - index) + tokens.push({ t: 'str', v: value, ...start, doc: true }) + continue + } + if (here === '"' || (verbatim && here === '@' && text[index + 1] === '"')) { + const raw = here === '@' + step(raw ? 2 : 1) + let value = '' + while (index < text.length && text[index] !== '"') { + if (!raw && text[index] === '\\') { value += text[index + 1] ?? ''; step(2); continue } + value += text[index] + step() + } + step() + tokens.push({ t: 'str', v: value, ...start }) + continue + } + if (/[A-Za-z_]/.test(here)) { + let end = index + 1 + while (end < text.length && /[\w!']/.test(text[end])) end++ + const word = text.slice(index, end) + step(end - index) + tokens.push({ t: 'id', v: word, ...start }) + continue + } + if (/\s/.test(here)) { step(); continue } + step() + tokens.push({ t: 'sym', v: here, ...start }) + } + return tokens +} + +const indentOf = (lines, line) => /^\s*/.exec(lines[line - 1] ?? '')[0].length + +const JULIA_KEYWORDS = new Set(['function', 'if', 'elseif', 'for', 'while', 'return', 'begin', 'let', 'do', 'try', 'catch', 'finally', 'struct', 'mutable', 'macro', 'module', 'end', 'else', 'in', 'isa', 'where', 'quote', 'throw', 'new', 'import', 'using', 'export', 'const', 'global', 'local', 'abstract', 'primitive', 'type', 'typeof']) + +/** The open and close brackets of a token list, as `{ open, close }` indexes. */ +function bracketGroups(tokens) { + const groups = [] + const stack = [] + tokens.forEach((token, index) => { + if (token.t !== 'sym') return + if ('([{'.includes(token.v)) stack.push(index) + else if (')]}'.includes(token.v) && stack.length) groups.push({ open: stack.pop(), close: index }) + }) + return groups +} + +const FLAG = /^-[A-Za-z]+$/ +const flagLetters = (tokens) => new Set(tokens.filter((token) => token.t === 'str').flatMap((token) => + token.v.split(/\s+/).filter((word) => FLAG.test(word)).flatMap((word) => word.slice(1).split('')))) + +/** + * Julia: `function name(...)`, the `end` at its indent, short-form `name(...) = ...`, and the sends and calls inside. + * @param {string} text + * @param {{ commands: ReadonlySet, known: ReadonlySet, dispatch?: ReadonlySet }} input + */ +export function scanJulia(text, { commands, known, dispatch }) { + const lines = text.split('\n') + const tokens = tokenize(text, 'julia') + const groups = bracketGroups(tokens) + const functions = [] + const first = new Map() + tokens.forEach((token, index) => { if (!first.has(token.line)) first.set(token.line, index) }) + for (const [line, index] of first) { + const head = tokens[index] + let at = index + let named + if (head.t === 'id' && head.v === 'function') at = index + 1 + else if (head.t === 'id' && !JULIA_KEYWORDS.has(head.v) && head.col === indentOf(lines, line)) named = true + else continue + // `a.b.name`, with an optional `{T}` before the argument list. + const path = [] + while (tokens[at]?.t === 'id') { + path.push(tokens[at].v) + if (tokens[at + 1]?.v === '.' && tokens[at + 2]?.t === 'id') at += 2 + else { at++; break } + } + if (!path.length) continue + if (tokens[at]?.v === '{') at = groups.find((group) => group.open === at)?.close + 1 || at + if (tokens[at]?.v !== '(') continue + const close = groups.find((group) => group.open === at)?.close + if (close === undefined) continue + const indent = indentOf(lines, line) + let end = line + if (named) { + // Short form: `name(args) = body`, or `name(args) where T = body`. + let after = close + 1 + if (tokens[after]?.v === 'where') while (tokens[after] && tokens[after].v !== '=' && tokens[after].line === tokens[close].line) after++ + if (tokens[after]?.v !== '=' || tokens[after + 1]?.v === '=') continue + // The arguments can span lines, and the body starts where the `=` is. + end = Math.max(line, tokens[after].line) + while (lines[end] !== undefined && lines[end].trim() && indentOf(lines, end + 1) > indent) end++ + } else { + for (let next = line + 1; next <= lines.length; next++) { + if (new RegExp(`^\\s{${indent}}end\\b`).test(lines[next - 1] ?? '')) { end = next; break } + } + if (end === line) continue + } + // A docstring directly above belongs to the function. + let start = line + const above = tokens.findLast((token) => token.line < line) + const docEnd = above ? above.line + (above.v.match(/\n/g)?.length ?? 0) : 0 + if (above?.doc && !lines.slice(docEnd, line - 1).some((value) => value.trim())) start = above.line + // A method of a generic function is told apart by the type of its first argument: `server::Server`, `connection::ControlConnection{T}`. + const selfType = tokens[at + 1]?.t === 'id' && tokens[at + 2]?.v === ':' && tokens[at + 3]?.v === ':' && tokens[at + 4]?.t === 'id' ? tokens[at + 4].v : undefined + functions.push({ name: path.at(-1), start, nameLine: line, end, kind: 'function', sites: [], calls: new Map(), receivers: new Map(), ...(selfType ? { receiverType: selfType } : {}) }) + } + /** + * A table loop defines one function per row: `for (op, command, Ref) in ((:kill_pane, "kill-pane", PaneRef), ...)` + * with an `@eval function $op(...)` body. Each row is a function over the whole loop, and a `$command` in the + * body is the command of the row. + */ + const loops = [] + for (const [line, index] of first) { + if (tokens[index].t !== 'id' || tokens[index].v !== 'for' || tokens[index + 1]?.v !== '(') continue + const pattern = groups.find((group) => group.open === index + 1) + const rowsOpen = pattern && tokens[pattern.close + 1]?.v === 'in' && tokens[pattern.close + 2]?.v === '(' ? pattern.close + 2 : undefined + const rowsGroup = rowsOpen && groups.find((group) => group.open === rowsOpen) + if (!rowsGroup) continue + const vars = tokens.slice(pattern.open + 1, pattern.close).filter((token) => token.t === 'id').map((token) => token.v) + const indent = indentOf(lines, line) + let end = 0 + for (let next = tokens[rowsGroup.close].line + 1; next <= lines.length; next++) { + if (new RegExp(`^\\s{${indent}}end\\b`).test(lines[next - 1] ?? '')) { end = next; break } + } + if (!end) continue + const rows = [] + for (let at = rowsGroup.open + 1; at < rowsGroup.close; at++) { + const row = tokens[at]?.v === '(' ? groups.find((group) => group.open === at) : undefined + if (!row) continue + const elements = [] + let current = [] + for (let item = row.open + 1; item < row.close; item++) { + if (tokens[item].v === ',') { elements.push(current); current = [] } else current.push(tokens[item]) + if ('([{'.includes(tokens[item].v)) item = groups.find((group) => group.open === item)?.close ?? item + } + elements.push(current) + const name = elements[0]?.length === 2 && elements[0][0].v === ':' ? elements[0][1].v : undefined + const spelled = elements.findIndex((parts) => parts.length === 1 && parts[0].t === 'str' && known.has(parts[0].v.split(/\s+/)[0])) + if (name && spelled >= 0) rows.push({ name, command: elements[spelled][0].v, commandVar: vars[spelled] }) + at = row.close + } + if (!rows.length) continue + const fns = rows.map((row) => ({ name: row.name, start: line, nameLine: line, end, kind: 'loop', sites: [], calls: new Map(), receivers: new Map(), synthetic: true, row })) + functions.push(...fns) + loops.push({ bodyStart: tokens[rowsGroup.close].line + 1, end, fns }) + } + /** The name a function is declared with is not a call of it. */ + const isDefinitionName = (token, index, fn) => token.line === fn.nameLine && token.v === fn.name + && (tokens[index - 1]?.v === 'function' || tokens[index - 1]?.line !== token.line || tokens[index - 1]?.v === '.') + const owner = (line) => functions.findLast((fn) => !fn.synthetic && fn.nameLine <= line && line <= fn.end) + const isCommand = (token) => { + if (token.t !== 'str' || token.doc) return undefined + const [head, next] = token.v.split(/\s+/) + return known.has(head) && (next === undefined || next.startsWith('-')) ? head : undefined + } + /** The flags written in the widest bracket group around a token that holds no other command. */ + const flagsAround = (index, command) => { + const holds = (group) => tokens.slice(group.open + 1, group.close).some((other) => { + const found = isCommand(other) + return found && found !== command + }) + const enclosing = groups.filter((group) => group.open < index && index < group.close).sort((a, b) => (a.close - a.open) - (b.close - b.open)) + let around = [tokens[index]] + for (const group of enclosing) { + if (holds(group)) break + around = tokens.slice(group.open, group.close + 1) + } + return [...flagLetters(around)].sort().join('') + } + const adjacentCall = (index) => tokens[index]?.t === 'id' && !JULIA_KEYWORDS.has(tokens[index].v) && tokens[index + 1]?.v === '(' && tokens[index + 1].line === tokens[index].line + && tokens[index + 1].col === tokens[index].col + tokens[index].v.length + const symbolAt = (i, ...values) => tokens[i]?.t === 'sym' && values.includes(tokens[i].v) + /** + * Whether a `?` on the line chooses this command against another one. A condition that only gates the call, `isempty(ss) ? [] : rows("list-windows")`, + * leaves a single command on the line and sends it when the condition holds. + */ + const chosenOnLine = (index) => { + const line = tokens[index].line + if (!tokens.some((other, at) => other.line === line && symbolAt(at, '?'))) return false + const here = isCommand(tokens[index]) + return tokens.some((other) => other.line === line && other !== tokens[index] && isCommand(other) && isCommand(other) !== here) + } + /** A command that is compared with, or one of several a `?:` chooses between, names a command and sends nothing. */ + const chosenOrCompared = (index) => symbolAt(index - 1, '=', '!') && symbolAt(index - 2, '=', '!', '<', '>') || (symbolAt(index + 1, '=', '!') && symbolAt(index + 2, '=')) + || tokens[index - 1]?.v === 'in' || tokens[index - 1]?.v === '∈' || tokens[index + 1]?.v === 'in' + || chosenOnLine(index) + /** The variables an `=` before the literal, in the same statement, binds it to. */ + const boundNames = (index) => { + let depth = 0 + for (let at = index - 1, steps = 0; at >= 0 && steps < 80; at--, steps++) { + const token = tokens[at] + if (token.t === 'sym' && ')]}'.includes(token.v)) depth++ + else if (token.t === 'sym' && '([{'.includes(token.v) && depth) depth-- + else if (!depth && token.t === 'id' && JULIA_KEYWORDS.has(token.v) && !['local', 'const', 'global'].includes(token.v)) return [] + else if (!depth && symbolAt(at, '=') && !symbolAt(at - 1, '=', '!', '<', '>') && !symbolAt(at + 1, '=')) { + let name = at - 1 + // `args::Vector{String} = ...` names args. + while (name >= 0 && !(tokens[name].t === 'id' && !symbolAt(name + 1, '.'))) name-- + return name >= 0 && at - name < 12 ? [tokens[name].v] : [] + } + } + return [] + } + /** Decide whether a site is sent: now when a dispatcher call encloses it, at the end of the file when it is bound. */ + const classify = (fn, site, index) => { + const never = (why) => { site.dispatch = null; site.why = why } + if (chosenOrCompared(index)) return never('a condition chooses it, or it is compared with') + const enclosing = groups.filter((group) => group.open < index && index < group.close).sort((a, b) => (a.close - a.open) - (b.close - b.open)) + for (const group of enclosing) { + if (adjacentCall(group.open - 1) && dispatch.has(tokens[group.open - 1].v)) { site.dispatch = { line: tokens[group.open - 1].line, name: tokens[group.open - 1].v }; return undefined } + } + const names = boundNames(index) + if (!names.length) return never('it reaches no call that sends') + ;(fn.pending ??= []).push({ site, names, after: index, command: site.command }) + return undefined + } + tokens.forEach((token, index) => { + const loop = loops.find((candidate) => candidate.bodyStart <= token.line && token.line <= candidate.end) + const targets = loop ? loop.fns : [owner(token.line)].filter(Boolean) + const command = isCommand(token) + if (command && commands.has(command)) { + for (const fn of targets) { + const site = { command, line: token.line, flags: flagsAround(index, command) } + if (dispatch) classify(fn, site, index) + fn.sites.push(site) + } + } + // `$command` in a table loop is the command of each row. + if (loop && token.v === '$' && tokens[index + 1]?.t === 'id') { + for (const fn of loop.fns) { + if (fn.row.commandVar === tokens[index + 1].v && commands.has(fn.row.command.split(/\s+/)[0])) { + const site = { command: fn.row.command.split(/\s+/)[0], line: token.line, flags: flagsAround(index + 1, fn.row.command.split(/\s+/)[0]) } + if (dispatch) classify(fn, site, index) + fn.sites.push(site) + } + } + } + if (dispatch && adjacentCall(index) && dispatch.has(token.v)) { + const group = groups.find((candidate) => candidate.open === index + 1) + const inside = group ? tokens.slice(group.open + 1, group.close) : [] + const call = { + name: token.v, line: token.line, start: index, + names: new Set(inside.filter((part) => part.t === 'id').map((part) => part.v)), + commands: new Set(inside.map((part) => isCommand(part)).filter(Boolean)), + } + for (const fn of targets) if (!isDefinitionName(token, index, fn)) (fn.sends ??= []).push(call) + } + if (token.t === 'id' && !JULIA_KEYWORDS.has(token.v) && tokens[index + 1]?.v === '(' && tokens[index + 1].line === token.line + && tokens[index + 1].col === token.col + token.v.length) { + for (const fn of targets) { + if (isDefinitionName(token, index, fn)) continue + if (!fn.calls.has(token.v)) fn.calls.set(token.v, token.line) + const receiver = tokens[index - 1]?.v === '.' && tokens[index - 2]?.t === 'id' ? tokens[index - 2].v.toLowerCase() : undefined + if (receiver) fn.receivers.set(token.v, new Set([...(fn.receivers.get(token.v) ?? []), receiver])) + } + } + }) + for (const fn of functions) { + for (const { site, names, after, command } of fn.pending ?? []) { + const call = (fn.sends ?? []).find((candidate) => candidate.start > after && names.some((name) => candidate.names.has(name)) + && [...candidate.commands].every((other) => other === command)) + if (call) site.dispatch = { line: call.line, name: call.name } + else { site.dispatch = null; site.why = 'it reaches no call that sends' } + } + delete fn.pending + delete fn.sends + } + return { functions, types: [], orphans: [] } +} + +const CLOSING = { '"': '"', "'": "'", '/': '/', '|': '|', '(': ')', '[': ']', '{': '}', '<': '>' } + +/** + * Words, strings and sigils of Elixir source, with comments dropped. A string keeps its interpolation as text, + * a heredoc is marked `doc`, and a sigil other than `~s` or `~S` is a `sigil` and never a string. + * @returns {{ t: 'str' | 'chars' | 'sigil' | 'id' | 'num' | 'sym', v: string, line: number, col: number, doc?: boolean }[]} + */ +export function tokenizeElixir(text) { + const tokens = [] + let line = 1 + let col = 0 + let index = 0 + const step = (count = 1) => { + for (let n = 0; n < count; n++) { + if (text[index] === '\n') { line++; col = 0 } else col++ + index++ + } + } + /** Step over `#{ ... }`, whose code may hold strings and braces of its own. */ + const interpolation = () => { + step(2) + let depth = 1 + while (index < text.length && depth) { + const here = text[index] + if (here === '"') { step(); readQuoted('"', true) } + else if (here === '{') { depth++; step() } + else if (here === '}') { depth--; step() } + else step() + } + } + /** The text after an opening delimiter, up to the closing one; the closer is stepped over. */ + const readQuoted = (close, interpolate, escapes = true) => { + let value = '' + while (index < text.length && !text.startsWith(close, index)) { + if (escapes && text[index] === '\\') { value += text.slice(index, index + 2); step(2); continue } + if (interpolate && text.startsWith('#{', index)) { + const from = index + interpolation() + value += text.slice(from, index) + continue + } + value += text[index] + step() + } + step(close.length) + return value + } + while (index < text.length) { + const here = text[index] + const start = { line, col } + if (here === '#') { while (index < text.length && text[index] !== '\n') step(); continue } + if (/\s/.test(here)) { step(); continue } + if (text.startsWith('"""', index) || text.startsWith("'''", index)) { + const quote = text.slice(index, index + 3) + step(3) + tokens.push({ t: quote[0] === '"' ? 'str' : 'chars', v: readQuoted(quote, true), ...start, doc: true }) + continue + } + if (here === '"') { step(); tokens.push({ t: 'str', v: readQuoted('"', true), ...start }); continue } + if (here === "'") { step(); tokens.push({ t: 'chars', v: readQuoted("'", true), ...start }); continue } + if (here === '~' && /[A-Za-z]/.test(text[index + 1] ?? '') && CLOSING[text[index + 2]]) { + const letter = text[index + 1] + const heredoc = text.startsWith('"""', index + 2) || text.startsWith("'''", index + 2) + const close = heredoc ? text.slice(index + 2, index + 5) : CLOSING[text[index + 2]] + step(heredoc ? 5 : 3) + const lower = letter === letter.toLowerCase() + const value = readQuoted(close, lower, lower) + while (/[a-z]/.test(text[index] ?? '')) step() + tokens.push({ t: letter === 's' || letter === 'S' ? 'str' : 'sigil', v: value, ...start, ...(heredoc ? { doc: true } : {}) }) + continue + } + // A character literal, `?a` or `?"`, and not the end of a name such as `ready?`. + if (here === '?' && !/[\w?!]/.test(text[index - 1] ?? '') && text[index + 1] && !/\s/.test(text[index + 1])) { + step(text[index + 1] === '\\' ? 3 : 2) + tokens.push({ t: 'num', v: '?', ...start }) + continue + } + if (/[A-Za-z_]/.test(here)) { + let end = index + 1 + while (end < text.length && /\w/.test(text[end])) end++ + if (/[?!]/.test(text[end] ?? '') && text[end + 1] !== '=') end++ + const word = text.slice(index, end) + step(end - index) + tokens.push({ t: 'id', v: word, ...start }) + continue + } + if (/[0-9]/.test(here)) { + let end = index + 1 + while (end < text.length && (/\w/.test(text[end]) || (text[end] === '.' && /[0-9]/.test(text[end + 1] ?? '')))) end++ + const word = text.slice(index, end) + step(end - index) + tokens.push({ t: 'num', v: word, ...start }) + continue + } + step() + tokens.push({ t: 'sym', v: here, ...start }) + } + return tokens +} + +const ELIXIR_DEFINERS = new Set(['def', 'defp', 'defmacro', 'defmacrop', 'defdelegate', 'defguard', 'defguardp']) + +/** + * Elixir: a `def` or `defp` clause is a function, the `end` that closes its `do` block or the lines indented under + * its `, do:` give it its extent, the `defmodule` around it is its owner, and the attributes above it (`@doc`, + * `@spec`) are part of it, which is where the API model puts a function's line. A call is a name against its + * parenthesis, made on the alias before its dot. A command in a call to a declared dispatcher is sent; any other + * literal is only named, since Elixir hands a command on by variables the scan does not follow. + * @param {string} text + * @param {{ commands: ReadonlySet, known: ReadonlySet, dispatch?: ReadonlySet }} input + */ +export function scanElixir(text, { commands, known, dispatch }) { + const lines = text.split('\n') + const tokens = tokenizeElixir(text) + const groups = bracketGroups(tokens) + const adjacent = (index, next) => tokens[next]?.line === tokens[index].line && tokens[next].col === tokens[index].col + tokens[index].v.length + const keyword = (index) => tokens[index + 1]?.v === ':' && adjacent(index, index + 1) + const atom = (index) => tokens[index - 1]?.v === ':' && adjacent(index - 1, index) + const word = (index, value) => tokens[index]?.t === 'id' && tokens[index].v === value && !keyword(index) && !atom(index) && tokens[index - 1]?.v !== '.' + const opens = (index) => word(index, 'do') || word(index, 'fn') + /** The token index of the `end` that closes the block opened at `index`, or -1. */ + const closing = (index) => { + let depth = 1 + for (let at = index + 1; at < tokens.length; at++) { + if (opens(at)) depth++ + else if (word(at, 'end') && --depth === 0) return at + } + return -1 + } + const first = new Map() + tokens.forEach((token, index) => { if (!first.has(token.line)) first.set(token.line, index) }) + /** The last line a token occupies: a string spans the lines of its text, and a heredoc ends on the line of its closing delimiter. */ + const endLine = (token) => token.line + (token.v.match(/\n/g)?.length ?? 0) + + const modules = [] + for (const [, index] of first) { + if (!word(index, 'defmodule')) continue + const path = [] + let at = index + 1 + while (tokens[at]?.t === 'id' && !word(at, 'do')) { + path.push(tokens[at].v) + if (tokens[at + 1]?.v === '.') at += 2 + else { at++; break } + } + const open = word(at, 'do') ? at : tokens.findIndex((token, i) => i > at && word(i, 'do')) + const close = open < 0 ? -1 : closing(open) + if (path.length && close > 0) modules.push({ name: path.at(-1), start: tokens[index].line, end: tokens[close].line }) + } + const moduleAt = (line) => modules.findLast((module) => module.start <= line && line <= module.end) + + const functions = [] + for (const [line, index] of first) { + if (tokens[index].t !== 'id' || !ELIXIR_DEFINERS.has(tokens[index].v) || tokens[index + 1]?.t !== 'id') continue + const name = tokens[index + 1].v + const after = tokens[index + 2] + if (after && !(after.line !== tokens[index].line || ['(', ',', 'do', 'when'].includes(after.v))) continue + let headEnd = index + 1 + if (tokens[index + 2]?.v === '(' && adjacent(index + 1, index + 2)) headEnd = groups.find((group) => group.open === index + 2)?.close ?? headEnd + const indent = indentOf(lines, line) + let body = -1 + for (let at = headEnd + 1; at < tokens.length; at++) { + if (tokens[at].line > line && indentOf(lines, tokens[at].line) <= indent && first.get(tokens[at].line) === at) break + const group = groups.find((candidate) => candidate.open === at) + if (group) { at = group.close; continue } + if (tokens[at].t === 'id' && tokens[at].v === 'do' && !atom(at)) { body = at; break } + } + let end = tokens[headEnd].line + if (body >= 0 && !keyword(body)) { + const close = closing(body) + if (close < 0) continue + end = tokens[close].line + } else if (body >= 0) { + end = tokens[body].line + for (let next = end + 1; next <= lines.length && lines[next - 1].trim() && indentOf(lines, next) > indent; next++) end = next + } + // The attributes and docs directly above belong to the function: a heredoc is one token, so a blank line inside a doc does not end them. + const lastEnd = functions.at(-1)?.end ?? 0 + let above = index + while (above > 0 && tokens[above].line - endLine(tokens[above - 1]) <= 1 && tokens[above - 1].line > lastEnd && !word(above - 1, 'end')) above-- + let start = line + for (let at = above; at < index; at++) if (tokens[at].v === '@' && first.get(tokens[at].line) === at) { start = tokens[at].line; break } + functions.push({ name, owner: moduleAt(line)?.name, start, nameLine: line, end, kind: tokens[index].v, sites: [], calls: new Map(), receivers: new Map(), callList: [] }) + } + const owner = (line) => functions.filter((fn) => fn.nameLine <= line && line <= fn.end).sort((a, b) => b.nameLine - a.nameLine)[0] + + const isCommand = (token) => { + if (token.t !== 'str' || token.doc) return undefined + const [head, next] = token.v.split(/\s+/) + return known.has(head) && (next === undefined || next.startsWith('-')) ? head : undefined + } + /** The flags written in the widest bracket group around a token that holds no other command. */ + const flagsAround = (index, command) => { + const holds = (group) => tokens.slice(group.open + 1, group.close).some((other) => { + const found = isCommand(other) + return found && found !== command + }) + const enclosing = groups.filter((group) => group.open < index && index < group.close).sort((a, b) => (a.close - a.open) - (b.close - b.open)) + let around = [tokens[index]] + for (const group of enclosing) { + if (holds(group)) break + around = tokens.slice(group.open, group.close + 1) + } + return [...flagLetters(around)].sort().join('') + } + const callOpen = (index) => tokens[index]?.t === 'id' && tokens[index + 1]?.v === '(' && adjacent(index, index + 1) + + tokens.forEach((token, index) => { + const fn = owner(token.line) + const command = isCommand(token) + if (command && commands.has(command)) { + const site = { command, line: token.line, flags: flagsAround(index, command) } + if (dispatch) { + const label = tokens[index + 1]?.v === '-' && tokens[index + 2]?.v === '>' + const enclosing = groups.filter((group) => group.open < index && index < group.close).sort((a, b) => (a.close - a.open) - (b.close - b.open)) + const call = enclosing.find((group) => callOpen(group.open - 1) && dispatch.has(tokens[group.open - 1].v)) + if (label) { site.dispatch = null; site.why = 'a case label names it, and sends nothing' } + else if (call) site.dispatch = { line: tokens[call.open - 1].line, name: tokens[call.open - 1].v } + else { site.dispatch = null; site.why = 'it reaches no call that sends' } + } + fn?.sites.push(site) + } + // The name a clause is declared with is not a call of it. + if (!callOpen(index) || !fn || ELIXIR_DEFINERS.has(token.v) || ELIXIR_DEFINERS.has(tokens[index - 1]?.v)) return + const qualified = tokens[index - 1]?.v === '.' && tokens[index - 2]?.t === 'id' + const receiver = qualified ? tokens[index - 2].v.toLowerCase() : undefined + if (!fn.calls.has(token.v)) fn.calls.set(token.v, token.line) + if (receiver) fn.receivers.set(token.v, new Set([...(fn.receivers.get(token.v) ?? []), receiver])) + fn.callList.push({ name: token.v, receiver, line: token.line, calleeLine: token.line }) + }) + return { functions, types: modules.map((module) => ({ name: module.name, start: module.start, end: module.end })), orphans: [] } +} + +/** + * F#: `let` bindings and members with their module or type, by the offside rule, and the member calls + * inside them. F# in this tree sends nothing itself, so only the shape a wrapper needs is read. + */ +export function scanFSharp(text) { + const lines = text.split('\n') + const tokens = tokenize(text, 'fsharp') + const owners = [] + const functions = [] + const types = [] + const first = new Map() + tokens.forEach((token, index) => { if (!first.has(token.line)) first.set(token.line, index) }) + for (const [line, index] of first) { + const indent = indentOf(lines, line) + while (owners.length && indent <= owners.at(-1).indent) { + const closed = owners.pop() + types.push({ name: closed.name, start: closed.line, end: line - 1 }) + } + let at = index + const words = [] + while (tokens[at]?.t === 'id' && tokens[at].line === line && words.length < 8) words.push(tokens[at++].v) + const keyword = words.find((word) => ['let', 'member', 'module', 'type'].includes(word)) + if (!keyword) continue + if (keyword === 'module' || keyword === 'type') { + const name = words[words.indexOf(keyword) + 1] + // `module A.B` with no `=` names the whole file, so no later line at its indent closes it. + const fileWide = keyword === 'module' && !tokens.some((token) => token.line === line && token.v === '=') + if (name && !['rec', 'internal', 'private', 'public'].includes(name)) owners.push({ name, indent: fileWide ? -1 : indent, line }) + continue + } + const rest = words.slice(words.indexOf(keyword) + 1).filter((word) => !['inline', 'private', 'internal', 'public', 'rec', 'mutable', 'static', 'override', 'abstract', 'default', 'extern'].includes(word)) + let name = rest[0] + if (keyword === 'member') { + // `member this.Name(...)`: the name follows the self identifier and a dot. + const dot = tokens.findIndex((token, i) => i >= index && token.line === line && token.v === '.') + name = dot > 0 && tokens[dot + 1]?.t === 'id' ? tokens[dot + 1].v : rest[0] + } + if (!name || name === '_' || name === '(') continue + let end = line + while (lines[end] !== undefined && (!lines[end].trim() || indentOf(lines, end + 1) > indent)) end++ + while (end > line && !lines[end - 1].trim()) end-- + functions.push({ name, owner: owners.at(-1)?.name, start: line, nameLine: line, end, kind: keyword, sites: [], calls: new Map(), receivers: new Map() }) + } + for (const closed of owners) types.push({ name: closed.name, start: closed.line, end: lines.length }) + tokens.forEach((token, index) => { + if (token.t !== 'id' || tokens[index - 1]?.v !== '.' || tokens[index - 2]?.t !== 'id') return + const next = tokens[index + 1] + if (next?.v !== '(' || next.line !== token.line || next.col !== token.col + token.v.length) return + const fn = functions.findLast((candidate) => candidate.start <= token.line && token.line <= candidate.end) + if (!fn) return + if (!fn.calls.has(token.v)) fn.calls.set(token.v, token.line) + fn.receivers.set(token.v, new Set([...(fn.receivers.get(token.v) ?? []), receiverOf(`${tokens[index - 2].v}.${token.v}`)])) + }) + return { functions, types, orphans: [] } +} diff --git a/scripts/lib/tmux-usage-scan.mjs b/scripts/lib/tmux-usage-scan.mjs new file mode 100644 index 000000000..6288c77b3 --- /dev/null +++ b/scripts/lib/tmux-usage-scan.mjs @@ -0,0 +1,842 @@ +/** + * Find where a library's source sends a tmux command. + * + * A send site is a string literal that spells a command name, in code rather + * than in a comment or a docstring. The scan attributes each site to the + * innermost named function around it and keeps the flag literals that travel + * with the command, because the flags choose the scope tmux lists. + */ +import { parserFor } from '../../packages/api-model/src/parser.ts' +import { receiverOf, scanElixir, scanFSharp, scanJulia } from './tmux-usage-lexical.mjs' + +/** Port to the grammar that reads its source. PowerShell cmdlets are C#; Julia, F# and Elixir are read by their text. */ +export const GRAMMARS = { + py: 'python', ts: 'typescript', rs: 'rust', go: 'go', java: 'java', kotlin: 'kotlin', scala: 'scala', + csharp: 'csharp', powershell: 'csharp', cxx: 'cpp', swift: 'swift', ruby: 'ruby', lua: 'lua', julia: 'julia', fsharp: 'fsharp', elixir: 'elixir', +} + +/** Source extensions per grammar, minus declaration-only files. */ +export const EXTENSIONS = { + python: /\.py$/, typescript: /(? EXTENSIONS[grammar].test(path) && !NOT_LIBRARY.test(path) + +const FUNCTIONS = { + python: ['function_definition'], + typescript: ['method_definition', 'function_declaration', 'generator_function_declaration', 'function_expression', 'arrow_function'], + rust: ['function_item'], + go: ['function_declaration', 'method_declaration'], + java: ['method_declaration', 'constructor_declaration'], + kotlin: ['function_declaration', 'property_declaration', 'secondary_constructor'], + scala: ['function_definition', 'function_declaration', 'val_definition', 'var_definition'], + csharp: ['method_declaration', 'constructor_declaration', 'local_function_statement', 'property_declaration', 'accessor_declaration', 'indexer_declaration', 'operator_declaration'], + cpp: ['function_definition'], + swift: ['function_declaration', 'init_declaration', 'property_declaration', 'subscript_declaration'], + ruby: ['method', 'singleton_method'], + lua: ['function_definition_statement', 'local_function_definition_statement'], +} + +/** Declarations that are functions at the top of a type and only local variables inside a function: `let reply = ...` is not a method named reply. */ +const LOCAL_BINDINGS = new Set(['property_declaration', 'val_definition', 'var_definition']) + +/** Declarations that own functions, named so a method can be told from a same-named one elsewhere. */ +const OWNERS = { + python: ['class_definition'], + typescript: ['class_declaration', 'abstract_class_declaration', 'interface_declaration', 'class'], + rust: ['impl_item', 'trait_item'], + go: [], + java: ['class_declaration', 'interface_declaration', 'enum_declaration', 'record_declaration'], + kotlin: ['class_declaration', 'object_declaration'], + scala: ['class_definition', 'object_definition', 'trait_definition'], + csharp: ['class_declaration', 'struct_declaration', 'interface_declaration', 'record_declaration', 'record_struct_declaration'], + cpp: ['class_specifier', 'struct_specifier', 'namespace_definition'], + swift: ['class_declaration', 'protocol_declaration'], + ruby: ['class', 'module'], + lua: [], +} + +const STRINGS = { + python: ['string'], typescript: ['string', 'template_string'], rust: ['string_literal', 'raw_string_literal'], + go: ['interpreted_string_literal', 'raw_string_literal'], java: ['string_literal'], kotlin: ['string_literal'], + scala: ['string'], csharp: ['string_literal', 'verbatim_string_literal', 'raw_string_literal'], cpp: ['string_literal', 'raw_string_literal'], + swift: ['line_string_literal', 'multi_line_string_literal', 'raw_string_literal'], ruby: ['string'], lua: ['string'], +} + +const CALLS = { + python: ['call'], typescript: ['call_expression'], rust: ['call_expression', 'macro_invocation'], go: ['call_expression'], + java: ['method_invocation', 'object_creation_expression'], kotlin: ['call_expression'], scala: ['call_expression'], + csharp: ['invocation_expression', 'object_creation_expression'], cpp: ['call_expression'], swift: ['call_expression'], + ruby: ['call'], lua: ['call'], +} + +/** + * Nodes between a command literal and the statement that holds it. Climbing + * through them reaches the whole argument list, array, tuple or table the + * flags travel in, and stops at the statement. + */ +const WRAPPERS = new Set([ + 'argument_list', 'arguments', 'argument', 'value_arguments', 'value_argument', 'call_suffix', 'keyword_argument', + 'array', 'array_expression', 'list', 'tuple', 'initializer_list', 'collection_expression', 'array_literal', 'array_creation_expression', + 'implicit_array_creation_expression', 'tuple_expression', 'bracketed_argument_list', 'element_binding_expression', + 'object', 'pair', 'literal_value', 'literal_element', 'keyed_element', 'composite_literal', 'table', 'table_constructor', + 'field', 'field_list', 'expression_list', 'parenthesized_expression', 'array_initializer', 'object_creation_expression', + 'implicit_object_creation_expression', 'initializer_expression', 'new_expression', 'collection_literal', 'dictionary_literal', + 'element_access_expression', 'subscript_expression', 'type_arguments', 'as_expression', 'satisfies_expression', + 'method_invocation', 'invocation_expression', 'call_expression', 'call', 'macro_invocation', 'token_tree', + 'reference_expression', 'borrow_expression', 'unary_expression', 'prefix_expression', 'generic_function', 'field_expression', + 'member_access_expression', 'navigation_expression', 'navigation_suffix', 'selector_expression', 'member_expression', + 'attribute', 'binary_expression', 'string_concatenation', 'interpolated_string_expression', + 'spread_element', 'splat_argument', 'list_splat', 'hash_splat_argument', 'spread_expression', 'range_expression', 'compound_literal_expression', +]) + +/** A node that starts a new function-like scope; strings inside it do not describe the call around it. */ +const isScope = (grammar, node) => FUNCTIONS[grammar].includes(node.type) || /lambda|closure|function_expression|arrow_function|func_literal|anonymous_function|block$/.test(node.type) + +/** + * A branch compiled only for Windows runs against psmux, not tmux. The C++ + * port keeps the two behind `_WIN32`, and the tmux path is the other branch. + */ +function onWindowsOnlyPath(node) { + for (let child = node, cursor = node.parent; cursor; child = cursor, cursor = cursor.parent) { + if (cursor.type !== 'preproc_if' && cursor.type !== 'preproc_ifdef') continue + const condition = cursor.childForFieldName('condition')?.text ?? cursor.childForFieldName('name')?.text ?? '' + if (!/_WIN32/.test(condition)) continue + const alternative = cursor.childForFieldName('alternative') + const inAlternative = alternative && child.id === alternative.id + const windowsFirst = !/!\s*defined|ifndef/.test(`${cursor.type === 'preproc_ifdef' ? cursor.text.slice(0, 8) : ''}${condition}`) + if (windowsFirst !== Boolean(inAlternative)) return true + } + return false +} + +const QUOTE = /^[A-Za-z@$#]*("""|'''|"|'|`|\[=*\[)([\s\S]*?)(?:"""|'''|"|'|`|\]=*\])$/ + +/** The text between a string literal's quotes, or nothing when the node is not quoted text. */ +export function stringValue(node) { + return QUOTE.exec(node.text)?.[2] +} + +const FLAG = /^-[A-Za-z]+$/ + +/** Letters of every flag a string spells: `-a`, `-st`, or the flags inside `list-panes -a -F x`. */ +function flagsIn(value) { + const letters = new Set() + for (const token of value.split(/\s+/)) if (FLAG.test(token)) for (const letter of token.slice(1)) letters.add(letter) + return letters +} + +function lastIdentifier(text) { + const match = /([A-Za-z_][\w-]*)\s*(?:<[^()]*>)?\s*[!?]?$/.exec(text.replace(/\([\s\S]*$/, '')) + return match?.[1] +} + +/** Names the node declares, with the owner chain that qualifies it. */ +function declaredName(grammar, node) { + const field = node.childForFieldName('name') + if (field && grammar === 'lua') { + const parts = field.text.split(/[.:]/) + return { name: parts.at(-1), owner: parts.length > 1 ? parts.at(-2) : undefined } + } + if (field) return { name: lastIdentifier(field.text) ?? field.text } + const named = (type) => node.namedChildren.find((child) => child.type === type) + if (grammar === 'cpp') { + let declarator = node.childForFieldName('declarator') + while (declarator && declarator.type !== 'qualified_identifier' && declarator.type !== 'identifier' && declarator.type !== 'field_identifier') { + declarator = declarator.childForFieldName('declarator') ?? declarator.namedChildren[0] + } + if (!declarator) return undefined + const parts = declarator.text.split('::') + return { name: parts.at(-1), owner: parts.at(-2), scope: parts.slice(0, -2) } + } + if (grammar === 'kotlin' || grammar === 'swift') { + const direct = named('simple_identifier') + if (direct) return { name: direct.text } + const pattern = named('variable_declaration') ?? named('pattern') + const inner = pattern?.namedChildren.find((child) => child.type === 'simple_identifier') + return inner ? { name: inner.text } : undefined + } + if (grammar === 'scala') { + const direct = named('identifier') + if (direct) return { name: direct.text } + const pattern = node.childForFieldName('pattern') + return pattern ? { name: pattern.text } : undefined + } + if (grammar === 'lua') { + const path = named('variable') ?? named('identifier') + if (!path) return undefined + const parts = path.text.split(/[.:]/) + return { name: parts.at(-1), owner: parts.length > 1 ? parts.at(-2) : undefined } + } + if (grammar === 'go') return undefined + if (grammar === 'typescript' && node.type === 'arrow_function') { + const holder = node.parent + const label = holder?.childForFieldName('name') + return label ? { name: label.text } : undefined + } + return undefined +} + +/** What a call invokes, and on what: the last identifier of its callee, which is all a one-hop follow needs. */ +function calleeOf(grammar, node) { + if (node.type === 'object_creation_expression') return { name: node.childForFieldName('type')?.text } + const callee = node.childForFieldName('function') ?? node.childForFieldName('name') ?? node.childForFieldName('method') + ?? node.namedChildren[0] + if (!callee) return undefined + if (grammar === 'java' && node.type === 'method_invocation') { + const object = node.childForFieldName('object')?.text + return { name: node.childForFieldName('name')?.text, receiver: object && receiverOf(`${object}.x`) } + } + if (grammar === 'ruby') { + const receiver = node.childForFieldName('receiver')?.text + const method = node.childForFieldName('method')?.text + // `server.__send__(:execute_typed, [...])` calls execute_typed: the symbol names what is called. + const symbol = ['__send__', 'send', 'public_send'].includes(method) ? node.childForFieldName('arguments')?.namedChildren[0] : undefined + const sent = symbol && /symbol/.test(symbol.type) ? symbol.text.replace(/^:/, '') : undefined + return { name: sent ?? method, receiver: receiver && receiverOf(`${receiver}.x`) } + } + // The callee of a chain, `Command::new("x").arg("-a").arg`, ends with the method that is called: the first parenthesis + // it holds belongs to an earlier call of the chain. + return { name: lastName(callee.text), receiver: receiverOf(callee.text) } +} + +/** The last identifier of a callee's text, which is the name that is called. */ +function lastName(text) { + return /([A-Za-z_][\w-]*)\s*(?:<[^()]*>)?\s*[!?]?$/.exec(text)?.[1] +} + +const ownerName = (grammar, node) => { + if (grammar === 'rust' && node.type === 'impl_item') return lastIdentifier(node.childForFieldName('type')?.text ?? '') + const name = node.childForFieldName('name') ?? node.namedChildren.find((child) => /identifier/.test(child.type)) + return name ? lastIdentifier(name.text) : undefined +} + +const row = (node) => node.startPosition.row + 1 + +/** The grammars of languages that let several functions of one type share a name and tell them apart by their arguments. */ +const OVERLOADING = new Set(['java', 'csharp', 'cpp', 'swift']) + +const notComment = (child) => !/comment/.test(child.type) + +/** + * What a call passes: how many arguments, and for Swift the label of each (`_` for none), which is how `run(rawArguments:)` + * is told from `run(_:)`. + * @returns {{ count: number, labels?: string[] } | undefined} + */ +function callShape(grammar, node) { + if (!OVERLOADING.has(grammar)) return undefined + if (grammar === 'swift') { + const suffix = node.namedChildren.find((child) => child.type === 'call_suffix') + const values = suffix?.namedChildren.find((child) => child.type === 'value_arguments') + if (!values) return undefined + const labels = values.namedChildren.filter((child) => child.type === 'value_argument') + .map((argument) => argument.namedChildren.find((child) => child.type === 'value_argument_label')?.text ?? '_') + // A trailing closure is one more argument without a label. + if (suffix.namedChildren.some((child) => /lambda/.test(child.type))) labels.push('_') + return { count: labels.length, labels } + } + const args = node.childForFieldName('arguments') + return args ? { count: args.namedChildren.filter(notComment).length } : undefined +} + +/** + * What a function takes: the fewest and the most arguments a call may pass, and for Swift the external label of each parameter + * with whether it has a default. + * @returns {{ min: number, max: number, labels?: { label: string, optional: boolean }[] } | undefined} + */ +function functionShape(grammar, node) { + if (!OVERLOADING.has(grammar)) return undefined + if (grammar === 'swift') { + const labels = [] + node.children.forEach((child, index) => { + if (child.type !== 'parameter') return + labels.push({ label: child.namedChildren.find((part) => part.type === 'simple_identifier')?.text ?? '_', optional: node.children[index + 1]?.type === '=' }) + }) + return { min: labels.filter((item) => !item.optional).length, max: labels.length, labels } + } + let list + if (grammar === 'cpp') { + let declarator = node.childForFieldName('declarator') + while (declarator && declarator.type !== 'function_declarator') declarator = declarator.childForFieldName('declarator') + list = declarator?.childForFieldName('parameters') + } else list = node.childForFieldName('parameters') + if (!list) return undefined + const items = list.namedChildren.filter(notComment) + const variadic = items.some((item) => /spread|variadic/.test(item.type)) + const optional = items.filter((item) => item.namedChildren.some((part) => part.type === 'equals_value_clause') || /optional/.test(item.type)).length + // A C++ default is written where the function is declared, which is a header that is not the definition read here. + return { min: grammar === 'cpp' ? 0 : items.length - optional - (variadic ? 1 : 0), max: variadic ? Infinity : items.length } +} + +/** Note a call once per name, at its first line, and remember every object it was made on and the shape of each call. */ +function recordCall(fn, name, receiver, line, shape, calleeLine = line) { + if (!fn.calls.has(name)) fn.calls.set(name, line) + if (receiver) fn.receivers.set(name, new Set([...(fn.receivers.get(name) ?? []), receiver])) + ;(fn.callList ??= []).push({ name, receiver, line, calleeLine, ...(shape ? { shape } : {}) }) +} + +/** + * A call that checks a command rather than runs it names it as a label: `validateArgument("select-layout", ...)` + * says whose argument it is in the error it may raise, `newCommandError("new-session", result)` names the + * command a failure belongs to, `ThrowIfFailed(result, "new-session")` says which command failed, `server.failed("show-environment", result)` + * builds the error to throw for it, `map_err(decode_error("new-window"))` names the command a decode error belongs to, and + * `preflight(ctx, "set-option", name)` checks a command before it is built. The verb ends at a word boundary, + * so `checkedRun` is a runner and `checkArguments` is not. + */ +const CHECKING = /^(?:[Vv]alidate|[Vv]erify|[Ee]nsure|[Rr]eject|[Rr]equire|[Cc]heck|[Ii]nvalid|[Uu]nsupported|[Tt]hrow|[Pp]reflight|[Ff]ail(?:ed)?)(?![a-z])|(?:[Ee]rror|[Ff]ailure|[Ee]xception|refused_result)$/ + +/** Whether the nearest call around a literal only checks something about the command it names. */ +function namedForChecking(grammar, node, CALL) { + for (let cursor = node.parent; cursor; cursor = cursor.parent) { + if (!CALL.has(cursor.type)) continue + return CHECKING.test(calleeOf(grammar, cursor)?.name ?? '') + } + return false +} + +/** + * Commands whose arguments are commands for tmux to run later, in the shell or in its own parser. A command named + * in their argument list is run by tmux when the outer command runs, and the library sends only the outer one: + * `["if-shell", "-F", cond, quoteCommand(["resize-pane", "-Z"])]` sends if-shell. + */ +const RUNS_COMMANDS = new Set(['if-shell', 'run-shell', 'set-hook', 'bind-key', 'command-prompt', 'confirm-before', 'display-menu', 'choose-tree', 'choose-buffer', 'choose-client', 'pipe-pane']) +/** Nodes that only wrap one element of an argument list or array. */ +const ELEMENTS = /^(?:argument|value_argument|literal_element|element|array_element|keyed_element|pair)$/ + +/** Whether a literal is a later argument of a group that opens with a command that runs commands. */ +function nestedInCommand(node, STR, commandOf, skip = () => false) { + for (let child = node, cursor = node.parent; cursor && WRAPPERS.has(cursor.type); child = cursor, cursor = cursor.parent) { + const first = cursor.descendantsOfType([...STR]).find((literal) => { + if (skip(literal)) return false + let at = literal.parent + while (at && at.id !== cursor.id && ELEMENTS.test(at.type)) at = at.parent + return at?.id === cursor.id + }) + if (!first || first.id === node.id || child.startIndex <= first.startIndex) continue + const outer = commandOf(first) + if (outer && RUNS_COMMANDS.has(outer.command)) return true + } + return false +} + +/** The part of a `case`, `when` or `match` arm that is tested against, as opposed to the part that runs. */ +const LABELS = /^(?:switch_label|case_switch_label|case_pattern_switch_label|constant_pattern|match_pattern|when_condition|switch_pattern|case_pattern|case_label)$/ +/** Arms whose tested part is a named field: the node under that field is the label. */ +const ARMS = { switch_case: ['value'], expression_case: ['value'], case_statement: ['value'], when: ['pattern'], in_clause: ['pattern'], case_clause: ['pattern', 'value'], switch_expression_arm: ['pattern'] } +const COMPARISONS = /^(?:binary_expression|comparison_operator|binary_operator|equality_expression|infix_expression)$/ + +/** + * A command name that is compared against, or named by a `case`, is a name being recognised, not a command being + * run: `case "list-sessions" -> format` picks a format by the command about to run. + */ +function isComparand(node) { + for (let child = node, cursor = node.parent; cursor; child = cursor, cursor = cursor.parent) { + if (LABELS.test(cursor.type)) return true + for (const field of ARMS[cursor.type] ?? []) { + if (cursor.childForFieldName(field)?.id === child.id) return true + } + if (COMPARISONS.test(cursor.type)) { + const operator = cursor.childForFieldName('operator')?.text ?? cursor.children.find((part) => !part.isNamed)?.text + return ['==', '!=', '===', '!==', 'is', 'is not'].includes(operator ?? '') + } + if (/(?:^|_)(?:block|body|statement_block|compound_statement|declaration_list)$/.test(cursor.type) || cursor.type.endsWith('_statement')) return false + } + return false +} + +/** A default value or type literal in a signature is not a call. */ +const PARAMETERS = /^(?:parameters?|formal_parameters?|parameter_list|function_value_parameters|class_parameters?|default_parameter|typed_default_parameter|optional_parameter|required_parameter|type_annotation|type_alias_declaration|type_arguments|type)$/ +function inSignature(node) { + for (let cursor = node.parent; cursor; cursor = cursor.parent) { + if (PARAMETERS.test(cursor.type)) return true + if (/(?:^|_)(?:block|body|statement_block|compound_statement|declaration_list)$/.test(cursor.type)) return false + } + return false +} + +/** Expressions that choose between operands: a literal under one is one of several, and only one is sent. */ +const CONDITIONALS = /^(?:ternary_expression|conditional_expression|conditional|if_expression|if_statement_expression|match_expression|switch_expression|switch_expression_arm|elvis_expression|null_coalescing_expression|coalesce_expression)$/ +/** The arm of a `match`, `switch` or `when` that gives a value: the literal under it is the value that arm chooses. */ +const VALUE_ARMS = /^(?:match_arm|switch_expression_arm|switch_case|switch_section|case_clause|expression_case|when_entry|when_clause|in_clause)$/ +const SHORT_CIRCUIT = new Set(['and', 'or', '||', '&&', '??', '?:']) + +/** Identifier-like nodes, whose text names a variable. */ +const NAMES = /(?:^|_)identifier$|^name$|^variable_name$|^constant$/ + +const LAMBDAS = /^(?:lambda|lambda_literal|lambda_expression|closure_expression|arrow_function|anonymous_function|function_expression|func_literal|anonymous_function_expression)$/ + +/** Whether a closure is its one expression, with no statements around it. */ +function oneExpression(lambda) { + const body = lambda.childForFieldName('body') ?? lambda.namedChildren.find((part) => /statements|block|body/.test(part.type)) + if (!body) return true + if (/^(?:block|statement_block|compound_statement)$/.test(body.type)) return false + const inner = body.type === 'statements' ? body.namedChildren : [body] + return inner.length === 1 && !/_statement$|^return|^throw/.test(inner[0].type) +} + +/** + * What a command literal is part of, read from the nodes around it: the calls it is an argument of from the + * innermost out, the statement it ends in, whether a condition chooses it, and the variables the statement + * binds it to. `dispatchOf` decides from these whether it is sent. + */ +function contextOf(grammar, node, CALL) { + const calls = [] + // How many calls were behind the literal when a condition was crossed: a condition inside a call's arguments chooses what the + // call is given, and one above the call chooses whether it is made. + let conditional + let chooser + let top = node + let cursor = node.parent + for (; cursor; cursor = cursor.parent) { + // A closure of one expression hands that expression's value to the call it is an argument of. + if ((LAMBDAS.test(cursor.type) && oneExpression(cursor)) || (cursor.type === 'statements' && cursor.parent && LAMBDAS.test(cursor.parent.type) && oneExpression(cursor.parent))) { top = cursor; continue } + const operator = cursor.type === 'binary_expression' ? (cursor.childForFieldName('operator')?.text ?? cursor.children.find((part) => !part.isNamed)?.text) : undefined + if (CONDITIONALS.test(cursor.type) || VALUE_ARMS.test(cursor.type) || (operator !== undefined && SHORT_CIRCUIT.has(operator))) { + conditional ??= calls.length + chooser = cursor + } else if (!WRAPPERS.has(cursor.type)) break + if (CALL.has(cursor.type)) { + const callee = calleeOf(grammar, cursor) + // A literal in the receiver of a call, `Command::new("x").arg("-a")`, passes through it; one in its arguments is handed to it. + const args = cursor.childForFieldName('arguments') ?? cursor.namedChildren.find((part) => /argument/.test(part.type)) + if (callee?.name) calls.push({ name: callee.name, receiver: callee.receiver, node: cursor, line: calleeRow(cursor), argument: !args || holds(args, node) }) + } + top = cursor + } + return { calls, conditional, chooser, top, boundary: cursor ?? top } +} + +/** The line a call is made on: where its callee ends, which for `sender\n .send(...)` is the `.send` and not `sender`. */ +function calleeRow(call) { + const callee = call.childForFieldName('function') ?? call.childForFieldName('name') ?? call.childForFieldName('method') ?? call.namedChildren[0] + return callee ? callee.endPosition.row + 1 : row(call) +} + +/** + * The identifiers of the object a method call is made on that a later call can take it by: `argv` in `argv.add("x")`, and both + * `request` and `group` in `request.group.push_back(x)`, because the request is what is passed on and the group is what is added to. + */ +function receiverNames(grammar, call) { + const object = grammar === 'java' ? call.childForFieldName('object') : grammar === 'ruby' ? call.childForFieldName('receiver') : (call.childForFieldName('function') ?? call.namedChildren[0]) + const text = object?.text + if (!text) return [] + const base = grammar === 'java' || grammar === 'ruby' ? text : text.replace(/[.:]+[A-Za-z_]\w*$/, '').replace(/->[A-Za-z_]\w*$/, '') + const plain = base.replace(/\([^()]*\)|\[[^\]]*\]/g, '') + const last = /([A-Za-z_]\w*)\W*$/.exec(plain)?.[1] + const root = /^\W*([A-Za-z_]\w*)/.exec(plain)?.[1] + return [...new Set([last, root])].filter((name) => name && !SELF.has(name)) +} + +/** + * Calls a command passes through on its way to a dispatch call: they put an element in a collection or make one. A call that + * is handed the command and builds from it must be a declared builder, because `get_output_format("list-sessions", v)` is handed + * the name of a command too and builds a format. + */ +const PASSING = new Set(['add', 'Add', 'push', 'push_back', 'emplace_back', 'append', 'insert', 'extend', 'arg', 'args', 'apply', 'then', 'concat', 'tinsert', + 'new', 'of', 'List', 'Seq', 'Array', 'Vec', 'asList', 'listOf', 'mutableListOf', 'arrayOf', 'ArrayList', 'LinkedList', 'vec', 'copyOf', 'make', 'string', 'str', 'String', 'Some', 'Ok', 'static_cast', 'move', 'forward', 'unique_ptr', 'make_unique']) + +/** Which argument of a call holds a node, counting from zero, or -1 when it is not directly one of them. */ +function argumentIndex(call, node) { + const args = call.childForFieldName('arguments') ?? call.namedChildren.find((part) => /argument/.test(part.type)) + if (!args) return -1 + const parts = args.namedChildren.filter((part) => !/comment/.test(part.type)) + return parts.findIndex((part) => holds(part, node)) +} + +/** The call that is handed a command and is neither a way to put it in a collection nor a declared builder. */ +function blockedBy(calls, builders) { + return calls.find((call) => call.argument && !PASSING.has(call.name.replace(/<.*$/s, '')) && !builders.has(call.name)) +} + +/** Receivers that are the object a method is called on, not a variable that holds something else. */ +const SELF = new Set(['self', 'this', 'Self', 'cls', 'me', 'base', 'super']) +/** Calls that add an element to the collection they are called on, or return it with one more: they build a command value. */ +const ADDS = new Set(['add', 'Add', 'push', 'push_back', 'emplace_back', 'append', 'insert', 'extend', 'arg', 'args', 'apply', 'then', 'concat', 'tinsert']) +/** Statements that run their body only on some paths. A `try` and a `finally` run on every path. */ +const BRANCHING = /(?:^|_)(?:if|elif|elsif|else|unless|switch|case|when|match|guard|conditional|ternary|for|while|until|loop|catch|except|rescue)(?:_|$)/ + +/** The parts of a statement that run before it chooses a branch, so a call in one of them is not under the branch. */ +const HEADS = ['condition', 'initializer', 'init', 'cond', 'value', 'subject', 'selector', 'iterable'] + +/** A closure of one statement, which a `defer` or a callback runs exactly as written. */ +const singleStatement = (lambda) => { + const body = lambda.childForFieldName('body') ?? lambda.namedChildren.at(-1) + return Boolean(body) && body.namedChildren.length <= 1 +} + +/** + * How many branches deep a node is inside its function, so a send on the main path can be told from one on a side path. + * A closure of several statements counts as one, because it runs when it is called and not where it is written. + */ +function nesting(grammar, node) { + let depth = 0 + for (let child = node, cursor = node.parent; cursor && !FUNCTIONS[grammar].includes(cursor.type); child = cursor, cursor = cursor.parent) { + if (BRANCHING.test(cursor.type) && !HEADS.some((field) => cursor.childForFieldName(field)?.id === child.id)) depth++ + else if (LAMBDAS.test(cursor.type) && !singleStatement(cursor)) depth++ + } + return depth +} + +/** Nodes that end a statement: a binding's names are looked for up to the first of them. */ +const STATEMENT = /(?:_statement|_declaration|_definition|_item|_spec|^statement|^assignment|^declaration)$/ + +/** The identifier texts at the leaves of a node. */ +function leafNames(node, found = []) { + if (NAMES.test(node.type) && node.namedChildCount === 0) found.push(node.text) + else for (const child of node.namedChildren) leafNames(child, found) + return found +} + +const RETURNING = /^\s*(?:return|yield)\b/ +const holds = (outer, inner) => outer.startIndex <= inner.startIndex && inner.endIndex <= outer.endIndex + +/** + * The variables a statement binds a command value to: the names on the left of a declaration or assignment that + * has the literal on its right, or the object a method that adds to a collection is called on (`argv.add("x")`). + */ +function bindingNames(grammar, literal, context) { + const names = new Set() + const take = (node) => { for (const name of leafNames(node)) if (!SELF.has(name)) names.add(name) } + for (let cursor = context.boundary; cursor; cursor = cursor.parent) { + for (const field of ['left', 'pattern', 'name', 'declarator']) { + const part = cursor.childForFieldName(field) + if (part && !holds(part, literal)) take(part) + } + if (STATEMENT.test(cursor.type)) break + } + // Grammars that name no field: what is declared or assigned is the first thing in the declaration. + if (!names.size) { + for (let cursor = context.boundary; cursor; cursor = cursor.parent) { + if (/declarator|assignment|declaration|definition|binding|pattern/.test(cursor.type)) { + const first = cursor.namedChildren.find((child) => !holds(child, literal) && (NAMES.test(child.type) || /pattern|variable/.test(child.type))) + if (first) { take(first); break } + } + if (STATEMENT.test(cursor.type)) break + } + } + // Whether the names are the ones a declaration or an assignment gives the value, and not the collection it is added to. + const assigned = names.size > 0 + const outer = context.calls.findLast((call) => ADDS.has(call.name)) + if (!names.size && outer) { + for (const receiver of receiverNames(grammar, outer.node)) names.add(receiver) + } + return Object.assign([...names], { assigned }) +} + +/** The name an identifier node is read as in a call's arguments. */ +function argumentNames(node) { + const found = new Set() + for (const name of leafNames(node)) found.add(name) + return found +} + +/** + * The Swift grammar predates typed throws and the `package` access level; either is an error that takes the type around it, and + * every method in it loses its owner. A word of the same length that the grammar reads keeps every line and column. + */ +export function withoutNewSwift(text) { + return text + .replace(/\bthrows[ \t]*\([ \t]*[\w.]+[ \t]*\)/g, (match) => 'throws'.padEnd(match.length)) + .replace(/\bpackage(?=\s+(?:static|final|func|var|let|init|struct|class|enum|actor|protocol|extension|typealias|subscript|nonisolated|mutating|override|convenience|required|lazy|indirect|import|associatedtype)\b)/g, 'public ') +} + +const CS_ARGUMENTS = String.raw`(?:"(?:[^"\\]|\\.)*"|[^()"]|\((?:"(?:[^"\\]|\\.)*"|[^()"])*\))*` +const CS_HEADER = String.raw`\b(?:class|struct|record)(?:\s+(?:class|struct))?\s+\w+(?:<[^>]*>)?` + +/** + * The C# grammar predates primary constructors: `sealed class Failure(Task operation) : Exception("...", operation)` is an error that + * takes the rest of the file's classes with it, so every method after it loses its owner. Blanking the parameter list, and the + * arguments a base type is constructed with, keeps every line and column and leaves the declaration the grammar reads. + */ +export function withoutPrimaryConstructors(text) { + const blank = [] + for (const header of text.matchAll(new RegExp(`(${CS_HEADER})\\s*\\((${CS_ARGUMENTS})\\)(\\s*:\\s*[A-Za-z_][\\w.<>]*)?`, 'g'))) { + blank.push([header.index + header[1].length + header[0].slice(header[1].length).indexOf('('), header.index + header[1].length + header[0].slice(header[1].length).indexOf('(') + header[2].length + 2]) + const after = header.index + header[0].length + const constructed = header[3] && new RegExp(`^\\s*(\\(${CS_ARGUMENTS}\\))`).exec(text.slice(after)) + if (constructed) blank.push([after + constructed[0].length - constructed[1].length, after + constructed[0].length]) + } + if (!blank.length) return text + const out = [...text] + for (const [from, to] of blank) for (let at = from; at < to; at++) if (out[at] !== '\n' && out[at] !== '\r') out[at] = ' ' + return out.join('') +} + +/** + * Every named function of a file with the command sites and calls inside it. + * + * With `dispatch`, each site also says whether it is sent: `dispatch: { line, name }` when the literal is an + * argument of a call to one of those names, or builds a command value that the same function later passes to + * one; `dispatch: null`, with `why`, when it is a label, a comparison, a choice made by a condition or a value + * that no call in the function sends. + * + * @param {{ grammar: string, text: string, commands: ReadonlySet, known: ReadonlySet, dispatch?: ReadonlySet, builders?: ReadonlySet, guards?: { name: string, owner?: string }[], labels?: ReadonlyMap>, trace?: (site: object, context: object) => void }} input + * `commands` are the names to find; `known` are all tmux command names, so + * a list that holds a different command is not read as this command's flags. + * @returns {Promise<{ functions: ScannedFunction[], types: { name?: string, start: number, end: number }[], orphans: Site[] }>} + * `types` are the declarations that own functions, so a claim can anchor to + * a class; `orphans` are the sites outside any named function. + */ +export async function scanSource({ grammar, text, commands, known, dispatch, builders: declared = new Set(), guards = [], labels = new Map(), trace }) { + // A guard wraps the command it is handed and hands it on, so it passes a command through as a builder does. + const builders = new Set([...declared, ...guards.map((guard) => guard.name)]) + const isGuard = (fn) => guards.some((guard) => guard.name === fn?.name && (!guard.owner || guard.owner === fn.owner)) + /** Whether a literal is the argument of a dispatching call that only names the command for a failure message. */ + const isLabel = (literal) => { + if (!labels.size) return false + for (let cursor = literal.parent; cursor && !FUNCTIONS[grammar].includes(cursor.type); cursor = cursor.parent) { + if (!CALL.has(cursor.type)) continue + const callee = calleeOf(grammar, cursor) + const named = callee && labels.get(callee.name) + const index = named ? argumentIndex(cursor, literal) : -1 + if (index >= 0) return named.has(index) + } + return false + } + if (grammar === 'julia') return scanJulia(text, { commands, known, dispatch }) + if (grammar === 'elixir') return scanElixir(text, { commands, known, dispatch }) + if (grammar === 'fsharp') return scanFSharp(text) + // A grammar that no reader above or below handles would reach the loader as a file that does not exist. + if (!(grammar in FUNCTIONS)) throw new Error(`no reader for the grammar ${JSON.stringify(grammar)}: scanSource reads ${[...Object.keys(FUNCTIONS), 'julia', 'fsharp', 'elixir'].join(', ')}`) + const parser = await parserFor(grammar) + // The Swift grammar predates typed throws; blanking the type keeps every line and column. + const tree = parser.parse(grammar === 'swift' ? withoutNewSwift(text) : grammar === 'csharp' ? withoutPrimaryConstructors(text) : text) + const functions = [] + const types = [] + const orphans = [] + const stack = [] + const owners = [] + const namespaces = [] + const FN = new Set(FUNCTIONS[grammar]) + const OWN = new Set(OWNERS[grammar]) + const STR = new Set(STRINGS[grammar]) + const CALL = new Set(CALLS[grammar]) + const isCommandLiteral = (node) => { + if (!STR.has(node.type) || node.parent?.type === 'expression_statement') return undefined + const value = stringValue(node) + if (value === undefined) return undefined + // A whole command line starts with the name and goes on with flags; a sentence that starts with one is an error message. + const [head, next] = value.split(/\s+/) + return known.has(head) && (next === undefined || next.startsWith('-')) ? { command: head, value } : undefined + } + + /** The widest enclosing group that holds no other command, and the flags written inside it. */ + const flagsAround = (literal, command) => { + let unit = literal + for (let cursor = literal.parent; cursor && WRAPPERS.has(cursor.type); cursor = cursor.parent) { + const others = cursor.descendantsOfType(STRINGS[grammar]).some((other) => { + const found = isCommandLiteral(other) + return found && found.command !== command + }) + if (others) break + unit = cursor + } + const flags = new Set() + const visit = (node) => { + if (STR.has(node.type)) { + const value = stringValue(node) + if (value !== undefined) for (const letter of flagsIn(value)) flags.add(letter) + return + } + for (const child of node.namedChildren) if (node === unit || !isScope(grammar, child)) visit(child) + } + visit(unit) + return { flags, unit } + } + + /** Whether a condition, crossed before the dispatch call, picks between different commands: `a ? ["detach-client"] : ["detach-client", "-E"]` does not. */ + const chooses = (context, at, own) => { + if (context.conditional === undefined || (at >= 0 && context.conditional > at)) return false + const named = new Set(context.chooser.descendantsOfType([...STR]).map((part) => isCommandLiteral(part)?.command).filter(Boolean)) + return own === undefined ? true : named.size > 1 || !named.has(own) + } + + /** Decide whether a site is sent: now when a dispatcher encloses it, at the end of its function when it is bound. */ + const classify = (site, node, owner, literal) => { + const context = contextOf(grammar, node, CALL) + trace?.(site, context) + const never = (why, builds = false) => { site.dispatch = null; site.why = why; if (builds) site.builds = true } + const at = context.calls.findIndex((call) => dispatch.has(call.name)) + // An argument that only names the command for the dispatcher's failure message is not the command it sends. + if (at >= 0 && labels.has(context.calls[at].name) && labels.get(context.calls[at].name).has(argumentIndex(context.calls[at].node, node))) { + return never(`it names the command ${context.calls[at].name} reports a failure under, and is not the command it sends`) + } + if (chooses(context, at, literal.command)) return never('a condition chooses it among other commands') + const through = at < 0 ? context.calls : context.calls.slice(0, at) + const blocked = blockedBy(through, builders) + if (blocked) return never(`it is an argument of ${blocked.name}, which neither sends it nor builds a command from it`) + if (at >= 0) { site.dispatch = { line: context.calls[at].line, name: context.calls[at].name }; return undefined } + // A command put straight into a `return` or a `yield`, or the last expression of a body, is a value built for the caller. + const body = context.boundary.parent + const bodyLike = (part) => part && /body|block|statements|compound/.test(part.type) + // A body whose last child is the expression itself, as Rust's `{ Command::new("x").arg("-a") }`, hands the value back too. + const tail = (bodyLike(body) && body.namedChildren.at(-1)?.id === context.boundary.id) + || (bodyLike(context.boundary) && FUNCTIONS[grammar].includes(body?.type) && context.boundary.namedChildren.at(-1)?.id === context.top.id) + if (RETURNING.test(context.boundary.text) || tail) return never('it builds a value for the caller', true) + const names = bindingNames(grammar, node, context) + if (!names.length || !owner) return never('it reaches no call that sends') + ;(owner.pending ??= []).push({ target: site, names, after: context.boundary.endIndex, command: literal.command }) + return undefined + } + + /** + * Decide whether the value of a call is sent: the call is an argument of a dispatch call, or its result is bound to a + * variable that a later dispatch call takes. A helper that builds a command and returns it is sent by its caller this way. + */ + const trackCall = (call, node, owner) => { + const context = contextOf(grammar, node, CALL) + const at = context.calls.findIndex((outer) => dispatch.has(outer.name)) + if (chooses(context, at)) return + if (blockedBy(at < 0 ? context.calls : context.calls.slice(0, at), builders)) return + if (at >= 0) { (owner.callsites ??= []).push({ ...call, flows: { line: context.calls[at].line, name: context.calls[at].name } }); return } + const names = bindingNames(grammar, node, context) + if (names.length) (owner.pending ??= []).push({ target: { ...call }, names, after: context.boundary.endIndex, call: true }) + // `attach, guard = guard_command(attach)` puts something else under the name: what comes out is not the list that went in. + if (names.assigned && !PASSING.has(call.name.replace(/<.*$/s, '')) && !builders.has(call.name)) { + (owner.rebinds ??= []).push({ name: call.name, start: node.startIndex, bound: new Set(names), taken: argumentNames(node) }) + } + } + + const walk = (node) => { + let pushed = false + let owned = false + let namespaced = false + if (OWN.has(node.type)) { + const name = ownerName(grammar, node) + if (node.type === 'namespace_definition') { + namespaces.push(name) + namespaced = true + } else { + owners.push(name) + owned = true + types.push({ name, start: row(node), end: node.endPosition.row + 1 }) + } + } + if (grammar === 'go' && node.type === 'method_declaration') { + const receiver = node.childForFieldName('receiver')?.text + const name = node.childForFieldName('name')?.text + const type = receiver && /([A-Za-z_]\w*)\s*\)?$/.exec(receiver.replace(/\[.*\]/, ''))?.[1] + if (name) { pushFunction(name, type); pushed = true; stack.at(-1).selfName = /^\(\s*(\w+)\s/.exec(receiver ?? '')?.[1]?.toLowerCase() } + } else if (grammar === 'go' && node.type === 'function_declaration') { + pushFunction(node.childForFieldName('name').text, undefined) + pushed = true + } else if (FN.has(node.type) && !(stack.length && LOCAL_BINDINGS.has(node.type))) { + const declared = declaredName(grammar, node) + if (declared?.name) { pushFunction(declared.name, declared.owner, declared.scope); pushed = true } + } + + function pushFunction(name, owner, scope = []) { + const wrapper = node.parent && ['decorated_definition', 'export_statement'].includes(node.parent.type) ? node.parent : node + const fn = { + name, owner: owner ?? owners.filter(Boolean).at(-1), start: row(wrapper), nameLine: row(node.childForFieldName('name') ?? node), + end: node.endPosition.row + 1, kind: node.type, sites: [], calls: new Map(), receivers: new Map(), + ...(functionShape(grammar, node) ? { shape: functionShape(grammar, node) } : {}), + // A namespace opened by a macro is invisible here, so an empty chain is unknown, not global. + ...([...namespaces.filter(Boolean), ...scope].length ? { namespace: [...namespaces.filter(Boolean), ...scope].join('::') } : {}), + } + functions.push(fn) + stack.push(fn) + } + + const literal = commands.size && isCommandLiteral(node) + // Inside a declared guard the command wrapped in `if-shell` is the one the library sends: the guard only makes tmux refuse a stale target. + const guarded = guards.length > 0 && isGuard(stack.at(-1)) + if (literal && commands.has(literal.command) && !inSignature(node) && !onWindowsOnlyPath(node) && !namedForChecking(grammar, node, CALL) && !isComparand(node) + && (guarded || !nestedInCommand(node, STR, isCommandLiteral, isLabel))) { + const { flags } = flagsAround(node, literal.command) + const site = { command: literal.command, line: row(node), flags: [...flags].sort().join('') } + const owner = stack.at(-1) + if (dispatch) { + site.depth = nesting(grammar, node) + if (guarded && literal.command === 'if-shell') { site.dispatch = null; site.why = 'it is the check a guard wraps a command in'; site.guard = true } + else classify(site, node, owner, literal) + } + ;(owner?.sites ?? orphans).push(site) + } + if (CALL.has(node.type) && stack.length) { + const callee = calleeOf(grammar, node) + if (callee?.name) { + recordCall(stack.at(-1), callee.name, callee.receiver, row(node), callShape(grammar, node), calleeRow(node)) + if (dispatch) { + const callDepths = (stack.at(-1).callDepths ??= new Map()) + callDepths.set(callee.name, Math.min(callDepths.get(callee.name) ?? Infinity, nesting(grammar, node))) + } + if (dispatch?.has(callee.name)) { + const named = labels.get(callee.name) + const commands = new Set(node.descendantsOfType([...STR]) + .filter((part) => !named?.has(argumentIndex(node, part))) + .map((part) => isCommandLiteral(part)?.command).filter(Boolean)) + ;(stack.at(-1).sends ??= []).push({ name: callee.name, line: calleeRow(node), start: node.startIndex, end: node.endIndex, names: argumentNames(node), commands }) + } else if (dispatch) { + trackCall({ name: callee.name, receiver: callee.receiver, line: calleeRow(node) }, node, stack.at(-1)) + // `batch.add(std::move(literal))` hands the value to `batch`, so a call that takes `batch` takes it too. + if (ADDS.has(callee.name)) { + for (const target of receiverNames(grammar, node)) (stack.at(-1).adds ??= []).push({ target, start: node.startIndex, names: argumentNames(node) }) + } + } + } + } + if (dispatch && stack.length && /return|yield|jump|control_transfer/.test(node.type) && RETURNING.test(node.text)) (stack.at(-1).returns ??= []).push(argumentNames(node)) + for (const child of node.namedChildren) walk(child) + if (pushed) { + const done = stack.pop() + // The last statement of a body is its value in a language that returns the last expression. + const tail = node.childForFieldName('body')?.namedChildren.at(-1) + const returned = [...(done.returns ?? []), ...(tail ? [argumentNames(tail)] : [])] + // A command value a function builds is sent by the first later call that takes it and names no other command. + for (const { target, names: bound, after, command, call: isCall } of done.pending ?? []) { + // The names a value goes by: the variables it is bound to, and the collections it is added to after that. + const names = new Set(bound) + for (let grown = true; grown;) { + grown = false + for (const added of done.adds ?? []) { + if (added.start >= after && !names.has(added.target) && [...names].some((name) => added.names.has(name))) { names.add(added.target); grown = true } + } + } + const takes = (candidate) => candidate.start >= after && [...names].some((name) => candidate.names.has(name)) + && (isCall ? candidate.commands.size === 0 : [...candidate.commands].every((other) => other === command)) + const outer = (done.sends ?? []).find(takes) + // A dispatch call whose argument is a closure that makes the inner dispatch call is cited at the inner one, which is the call that sends. + const sends = outer && (done.sends ?? []).filter((candidate) => takes(candidate) && candidate.start >= outer.start && candidate.end <= outer.end) + .reduce((deepest, candidate) => (candidate.start > deepest.start ? candidate : deepest), outer) + // A call between the literal and the send that takes the name and binds it again has changed what the name holds. + const rebound = sends && (done.rebinds ?? []).find((change) => change.start >= after && change.start < sends.start + && [...names].some((name) => change.bound.has(name) && change.taken.has(name))) + if (rebound) { + target.dispatch = null + target.why = `its variable is rebound by ${rebound.name}, which neither sends it nor builds a command from it` + } else if (isCall) { + if (sends) (done.callsites ??= []).push({ ...target, flows: { line: sends.line, name: sends.name } }) + } else if (sends) target.dispatch = { line: sends.line, name: sends.name } + else { + target.dispatch = null + target.why = 'it reaches no call that sends' + // A command put in a variable that the function hands back is built for its caller. + if (returned.some((used) => [...names].some((name) => used.has(name)))) { target.builds = true; target.why = 'it builds a value for the caller' } + } + } + delete done.pending + delete done.sends + delete done.returns + delete done.adds + delete done.rebinds + } + if (owned) owners.pop() + if (namespaced) namespaces.pop() + } + walk(tree.rootNode) + tree.delete() + return { functions, types, orphans } +} + +/** + * @typedef {{ name: string, owner?: string, start: number, nameLine: number, end: number, kind: string, sites: Site[], calls: Map, receivers: Map>, callDepths?: Map, namespace?: string }} ScannedFunction + * @typedef {{ command: string, line: number, flags: string, dispatch?: { line: number, name: string } | null, why?: string, builds?: boolean, depth?: number }} Site + */ diff --git a/scripts/lib/tmux-usage-scopes.mjs b/scripts/lib/tmux-usage-scopes.mjs new file mode 100644 index 000000000..f7e605cb8 --- /dev/null +++ b/scripts/lib/tmux-usage-scopes.mjs @@ -0,0 +1,60 @@ +/** + * The scopes tmux gives one command, read from its C dispatch. + * + * `list-panes` lists the server with `-a`, a session with `-s`, and otherwise + * the target window. Each scope has a C function, so a libtmux method that + * sends the command at a scope can be linked to that function and back. + */ + +/** The flags a library call must spell to count as a scope: the C flag, or the target flag of the default scope. */ +export function libraryScopes(entry) { + return entry.scopes.map((scope) => ({ id: scope.id, flags: scope.flag || scope.target || '' })) +} + +/** + * The flag that guards the call on `line` (1-based) of a tmux source file: + * `a` for `if (args_has(args, 'a'))`, an empty string for a bare `else`. + * Anything else is not a dispatch this table can describe. + */ +export function guardFlag(source, line) { + const lines = source.split('\n') + for (let index = line - 2; index >= Math.max(0, line - 3); index--) { + const text = lines[index] + if (/^\s*$/.test(text)) continue + const flag = /args_has\(\s*args\s*,\s*'(\w)'\s*\)/.exec(text) + if (flag) return flag[1] + if (/^\s*(?:\}\s*)?else\s*(?:\{\s*)?$/.test(text)) return '' + return undefined + } + return undefined +} + +/** + * Problems with one command's scope table against one release's C model. + * @param {{ scopes: { id: string, flag: string, function: string, inline?: string[] }[] }} entry + * @param {{ version?: string, commands: { name: string, callback: string }[], symbols: { id: string, name: string, references?: { target: string, kind: string, sites?: { file: string, line: number }[] }[] }[] }} model + * @param {string} command + * @param {(file: string) => string | undefined} [readSource] The release's C source, when a checkout is at hand. + */ +export function scopeProblems(entry, model, command, readSource) { + const problems = [] + const registered = model.commands.find((candidate) => candidate.name === command) + const exec = registered && model.symbols.find((symbol) => symbol.id === registered.callback) + if (!exec) return [`${command}: no registered callback`] + for (const scope of entry.scopes) { + const target = model.symbols.find((symbol) => symbol.name === scope.function && symbol.id.startsWith('c:function:')) + // A release can dispatch inline, with no function for the scope; the table must say so and the function must really be absent. + if (scope.inline?.includes(model.version)) { + if (target) problems.push(`${command}: ${scope.function} exists in tmux ${model.version}, so the scope is not inline there`) + continue + } + const call = target && exec.references?.find((reference) => reference.kind === 'call' && reference.target === target.id) + if (!call) { problems.push(`${command}: ${exec.name} does not call ${scope.function}`); continue } + const site = call.sites?.[0] + const source = site && readSource?.(site.file) + if (source === undefined || !site) continue + const flag = guardFlag(source, site.line) + if (flag !== scope.flag) problems.push(`${command}: ${scope.function} is called under ${flag === undefined ? 'no readable guard' : `'${flag}'`}, not '${scope.flag}'`) + } + return problems +} diff --git a/scripts/lib/tmux-usage-sweep.mjs b/scripts/lib/tmux-usage-sweep.mjs new file mode 100644 index 000000000..c1bca8201 --- /dev/null +++ b/scripts/lib/tmux-usage-sweep.mjs @@ -0,0 +1,166 @@ +/** + * Find the public methods whose name says they send a tmux command and that no recorded entry credits. + * + * A scan credits a symbol only when the command literal is in its body or one private helper away. A + * method that reaches the literal through a plan, a builder or two helpers is missed, and the page of + * the command then says no method sends it. The name of a method is only how a miss is found, never + * what lists it: every candidate is settled by a reviewed claim that cites the hops, or by a review that + * says why the method does not send the command and cites the line that shows it. + */ +import { bareName } from './tmux-usage-derive.mjs' + +/** Words a method may use for the verb of a command, where the library's wording differs from tmux's. */ +const VERB_ALIASES = { + list: ['list', 'search', 'find', 'get'], + show: ['show', 'get', 'read'], + display: ['display', 'show'], + new: ['new', 'create'], + kill: ['kill', 'close', 'destroy', 'remove', 'delete'], + set: ['set', 'unset', 'append', 'configure', 'apply'], +} + +/** Commands that tmux keeps as spellings of `set-option -w` and `show-options -w`; libraries send the option commands. */ +export const OPTION_SPELLINGS = new Set(['set-window-option', 'show-window-options']) + +/** Where the library itself lives in each port, so a consumer package or a test helper is not swept. */ +export const LIBRARY_ROOTS = { + py: ['src/libtmux/'], + ruby: ['gems/libtmux/', 'gems/libtmux-async/'], + lua: ['lua/libtmux/'], + julia: ['src/'], + ts: ['packages/libtmux/'], + rs: ['crates/libtmux/'], + go: ['tmux/'], + java: ['libtmux/src/'], + kotlin: ['libtmux-kotlin/'], + scala: ['libtmux-scala/', 'libtmux-scala-cats/'], + csharp: ['src/LibTmux/'], + fsharp: ['src/LibTmux.FSharp/'], + powershell: ['src/LibTmux.PowerShell/'], + cxx: ['include/libtmux/'], + swift: ['Sources/LibTmux/'], +} +const NOT_LIBRARY = /(^|\/)(tmuxtest|testing|tests?|examples?)(\/|$)/i +/** Members every type has, whose names are never about a tmux command: `GetHashCode` is not a getter of a list. */ +const OBJECT_MEMBERS = new Set(['GetHashCode', 'GetType', 'ToString', 'Equals', 'hashCode', 'toString', 'equals', 'hash', 'eql?', '__hash__', '__eq__', '__str__', '__repr__', 'inspect', 'to_s']) + +/** `panes` is a plural, `previous` and `access` are not. */ +const singular = (word) => (/(?:ss|us|is)$/.test(word) ? word : word.replace(/s$/, '')) + +/** The lower-case words of a member name, plural stripped: `sendKeysAsync`, `send_keys` and `Send-TmuxText` each give `send` first. */ +export function memberWords(name) { + // Swift names carry their argument labels: `newWindow(in:named:startDirectory:)` is about a window, not about starting. + return name.replace(/\(.*$/s, '').replace(/([a-z0-9])([A-Z])/g, '$1 $2').split(/[^A-Za-z0-9]+/).map((word) => word.toLowerCase()) + .filter((word) => word && word !== 'async' && word !== 'tmux').map(singular) +} + +/** Owners whose handle a command may belong to beyond the noun it names: a pane splits a window. */ +const NOUN_OWNERS = { 'split-window': ['pane', 'window'], 'send-keys': ['pane'], 'capture-pane': ['pane'], 'clear-history': ['pane'], 'rotate-window': ['window'], 'copy-mode': ['pane'] } + +/** Whether a member's name carries the verb of the command and the noun, in its own name or its owner's. */ +export function carriesCommand(command, member, owner) { + const parts = command.split('-') + const accepted = VERB_ALIASES[parts[0]] ?? [parts[0]] + const words = memberWords(member) + if (!words.some((word) => accepted.includes(word))) return false + const noun = singular(parts.at(-1)) + const ownerWords = owner ? memberWords(bareName(owner)) : [] + return words.includes(noun) || ownerWords.includes(noun) || (NOUN_OWNERS[command] ?? []).some((name) => ownerWords.includes(name)) +} + +/** + * @typedef {{ id: string, name: string, parentName?: string, file: string, kind?: string }} SweepSymbol + * @typedef {{ symbol: string, name: string, owner?: string, command: string, file: string }} Candidate + * A method named for one command that has the noun of another only through its owner, `Session.newWindow` for + * `new-session`, is the other command's when the data records that it sends it. That is deduced from an entry + * that cites its own lines, so it settles the candidate without a review. + * + * @param {{ port: string, commands: string[], symbols: SweepSymbol[], has: ReadonlySet }} input + * `has` holds `symbol\0command` for every entry the data records. + * @returns {{ candidates: Candidate[], siblings: number }} `siblings` counts the candidates the method's own sibling command settled. + */ +export function sweepCandidates({ port, commands, symbols, has }) { + const roots = LIBRARY_ROOTS[port] ?? [] + const found = [] + let siblings = 0 + for (const symbol of symbols) { + if (symbol.kind === 'attribute' || OBJECT_MEMBERS.has(symbol.name) || NOT_LIBRARY.test(symbol.file) || !roots.some((root) => symbol.file.startsWith(root))) continue + for (const command of commands) { + if (OPTION_SPELLINGS.has(command) || has.has(`${symbol.id}\0${command}`)) continue + if (!carriesCommand(command, symbol.name, symbol.parentName)) continue + if (commands.some((other) => other !== command && has.has(`${symbol.id}\0${other}`) && carriesCommand(other, symbol.name, symbol.parentName) + && sameVerb(command, other) && !carriesOwn(command, symbol.name))) { siblings++; continue } + found.push({ symbol: symbol.id, name: symbol.name, owner: symbol.parentName, command, file: symbol.file }) + } + } + return { candidates: found, siblings } +} + +const verbOf = (command) => command.split('-')[0] +const sameVerb = (a, b) => verbOf(a) === verbOf(b) +/** Whether the member's own words, and not only its owner's, carry the command's noun. */ +const carriesOwn = (command, member) => memberWords(member).includes(singular(command.split('-').at(-1))) + +/** + * What a review says it covers: the symbols of one owner or by member name, for some commands, in some files. + * + * An entry must hold on every tmux release the port supports at its revision. A method that sends one command on + * some releases and another on the rest is `version-gated`: it is recorded as neither, because each would be false + * on part of the supported range. Its review cites the gate, the branch it opens, the branch it closes, and the + * line that sets the supported floor below the gate, so the range the gate splits is shown to be supported. A gate + * the floor has moved past is not a review but a plain `other-command`: only the branch that remains is sent. + * + * @typedef {{ port: string, kind: 'builds' | 'other-command' | 'values' | 'no-send' | 'version-gated', why: string, owner?: string, ownerSuffix?: string, names?: string[], commands?: string[], in?: string, evidence: { at: string, has?: string[] }[] }} Review + */ +export const REVIEW_KINDS = ['builds', 'other-command', 'values', 'no-send', 'version-gated'] + +/** A gate review shows the gate, both branches and the floor, each by the text that is on the cited line. */ +const GATE_EVIDENCE = 4 + +/** Whether a rule that names an owner, member names and a file prefix selects a candidate. */ +export function selects(rule, candidate) { + return (!rule.owner || (candidate.owner && bareName(candidate.owner) === rule.owner)) + && (!rule.ownerSuffix || (candidate.owner && bareName(candidate.owner).endsWith(rule.ownerSuffix))) + && (!rule.names || rule.names.includes(candidate.name) || rule.names.includes(candidate.name.replace(/\(.*$/s, ''))) + && (!rule.commands || rule.commands.includes(candidate.command)) + && (!rule.in || candidate.file.startsWith(rule.in)) +} + +/** + * Settle the candidates with the reviews, and check each review against the pinned source. + * + * @param {{ port: string, candidates: Candidate[], reviews: Review[], covering?: Omit[], readSource?: (path: string) => string | undefined }} input + * Without `readSource` the evidence lines are not read, which is what a check without a checkout can do. + * `covering` rules settle the candidates they select without being checked here: they are held to their own evidence elsewhere. + * @returns {{ unreviewed: Candidate[], reviewed: number, problems: string[] }} + */ +export function settleCandidates({ port, candidates, reviews, covering = [], readSource }) { + const problems = [] + const covered = new Set() + for (const rule of covering) for (const candidate of candidates) if (selects(rule, candidate)) covered.add(candidate) + for (const review of reviews) { + const label = `${port}: review of ${review.owner ?? review.ownerSuffix ?? ''}${review.names ? `.${review.names.join('|')}` : ''}${review.commands ? ` for ${review.commands.join(',')}` : ''}` + if (!review.owner && !review.ownerSuffix && !review.names && !review.commands) { problems.push(`${label}: names no owner, member or command`); continue } + if (!REVIEW_KINDS.includes(review.kind)) { problems.push(`${label}: kind ${JSON.stringify(review.kind)} is not one of ${REVIEW_KINDS.join(', ')}`); continue } + if (!review.why?.trim()) { problems.push(`${label}: gives no reason`); continue } + if (!review.evidence?.length) { problems.push(`${label}: cites no evidence`); continue } + if (review.kind === 'version-gated' && (review.evidence.length < GATE_EVIDENCE || review.evidence.some((item) => !item.has?.length))) { + problems.push(`${label}: a version-gated review cites the gate, both branches and the supported floor, ${GATE_EVIDENCE} lines at least, each with the text that shows it`) + continue + } + let broken = false + for (const item of readSource ? review.evidence : []) { + const file = item.at.slice(0, item.at.lastIndexOf(':')) + const line = readSource(file)?.split('\n')[Number(item.at.slice(item.at.lastIndexOf(':') + 1)) - 1] + if (line === undefined) { problems.push(`${label}: ${item.at} is not a line of the pinned source`); broken = true; continue } + for (const needle of item.has ?? []) { + if (!line.includes(needle)) { problems.push(`${label}: ${item.at} does not contain ${JSON.stringify(needle)}`); broken = true } + } + } + if (broken) continue + const hit = candidates.filter((candidate) => selects(review, candidate)) + if (!hit.length) problems.push(`${label}: settles no candidate, so it is stale`) + for (const candidate of hit) covered.add(candidate) + } + return { unreviewed: candidates.filter((candidate) => !covered.has(candidate)), reviewed: covered.size, problems } +} diff --git a/scripts/test-all.sh b/scripts/test-all.sh index 05f906ff2..51fce25dc 100755 --- a/scripts/test-all.sh +++ b/scripts/test-all.sh @@ -151,6 +151,15 @@ fi step 'tmux catalog (negative)' node scripts/gen-tmux-catalog.negative.mjs +# Which library symbols send which tmux command is read from each port's +# source at the revision its API model was extracted from. Without the port +# checkouts this verifies shape and revisions; with them it regenerates too. +step 'tmux library usage' +node scripts/gen-tmux-usage.mjs --check --source + +step 'tmux library usage (negative)' +node scripts/gen-tmux-usage.negative.mjs + step 'shell port table' node scripts/gen-shell-ports.mjs --check diff --git a/scripts/test-loop.mjs b/scripts/test-loop.mjs index 2287147b9..a1da48243 100644 --- a/scripts/test-loop.mjs +++ b/scripts/test-loop.mjs @@ -77,6 +77,7 @@ try { node('scripts/gen-mentions.mjs', '--check'), node('scripts/gen-workspace-entities.mjs', '--check'), node('scripts/gen-tmux-catalog.mjs', '--check'), + node('scripts/gen-tmux-usage.mjs', '--check'), node('scripts/gen-shell-ports.mjs', '--check'), node('scripts/gen-brand-css.mjs', '--check'), ) diff --git a/scripts/tmux-usage/claims.json b/scripts/tmux-usage/claims.json new file mode 100644 index 000000000..c18afa88f --- /dev/null +++ b/scripts/tmux-usage/claims.json @@ -0,0 +1,15123 @@ +{ + "schemaVersion": 1, + "claims": [ + { + "port": "rs", + "symbol": "server.Server.panes", + "command": "list-panes", + "scope": "server", + "evidence": [ + { + "at": "crates/libtmux/src/internal/listing.rs:208", + "has": [ + "list(core, LIST_COMMAND" + ] + }, + { + "at": "crates/libtmux/src/internal/listing.rs:204", + "has": [ + "LIST_COMMAND: &str = \"list-panes\"" + ] + }, + { + "at": "crates/libtmux/src/internal/listing.rs:58", + "has": [ + "Self::Server", + ".arg(\"-a\")" + ] + }, + { + "at": "crates/libtmux/src/server/discovery.rs:41", + "has": [ + "listing::panes", + "Scope::Server" + ], + "in": "server.Server.panes" + } + ] + }, + { + "port": "rs", + "symbol": "session.Session.panes", + "command": "list-panes", + "scope": "session", + "evidence": [ + { + "at": "crates/libtmux/src/internal/listing.rs:208", + "has": [ + "list(core, LIST_COMMAND" + ] + }, + { + "at": "crates/libtmux/src/internal/listing.rs:204", + "has": [ + "LIST_COMMAND: &str = \"list-panes\"" + ] + }, + { + "at": "crates/libtmux/src/internal/listing.rs:60", + "has": [ + "Self::SessionTarget", + ".arg(\"-s\")" + ] + }, + { + "at": "crates/libtmux/src/session.rs:440", + "has": [ + "listing::panes", + "Scope::SessionTarget" + ], + "in": "session.Session.panes" + } + ] + }, + { + "port": "rs", + "symbol": "window.Window.panes", + "command": "list-panes", + "scope": "window", + "evidence": [ + { + "at": "crates/libtmux/src/internal/listing.rs:208", + "has": [ + "list(core, LIST_COMMAND" + ] + }, + { + "at": "crates/libtmux/src/internal/listing.rs:204", + "has": [ + "LIST_COMMAND: &str = \"list-panes\"" + ] + }, + { + "at": "crates/libtmux/src/internal/listing.rs:59", + "has": [ + "Self::Target", + ".arg(\"-t\")" + ] + }, + { + "at": "crates/libtmux/src/window/navigation.rs:23", + "has": [ + "listing::panes", + "Scope::Target" + ], + "in": "window.Window.panes" + } + ] + }, + { + "port": "rs", + "symbol": "pane.Pane.capture", + "command": "capture-pane", + "scope": null, + "evidence": [ + { + "at": "crates/libtmux/src/pane/observe.rs:171", + "has": [ + "self.core.execute(command)" + ] + }, + { + "at": "crates/libtmux/src/pane.rs:1618", + "has": [ + "Command::new(\"capture-pane\")" + ] + }, + { + "at": "crates/libtmux/src/pane.rs:1613", + "has": [ + "self.into_command(pane)" + ] + }, + { + "at": "crates/libtmux/src/pane/observe.rs:169", + "has": [ + "options.lower(" + ] + }, + { + "at": "crates/libtmux/src/pane/observe.rs:121", + "has": [ + "capture_with(" + ], + "in": "pane.Pane.capture" + } + ] + }, + { + "port": "rs", + "symbol": "pane.Pane.set_option", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "crates/libtmux/src/internal/options.rs:172", + "has": [ + "run(", + "\"set-option\"" + ], + "span": 3 + }, + { + "at": "crates/libtmux/src/pane/settings.rs:87", + "has": [ + "set(" + ], + "in": "pane.Pane.set_option" + } + ] + }, + { + "port": "rs", + "symbol": "pane.Pane.set_typed_option", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "crates/libtmux/src/internal/options.rs:172", + "has": [ + "run(", + "\"set-option\"" + ], + "span": 3 + }, + { + "at": "crates/libtmux/src/internal/options.rs:206", + "has": [ + "set(" + ] + }, + { + "at": "crates/libtmux/src/pane/settings.rs:128", + "has": [ + "set_typed(" + ], + "in": "pane.Pane.set_typed_option" + } + ] + }, + { + "port": "rs", + "symbol": "pane.Pane.append_option", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "crates/libtmux/src/internal/options.rs:172", + "has": [ + "run(", + "\"set-option\"" + ], + "span": 3 + }, + { + "at": "crates/libtmux/src/pane/settings.rs:147", + "has": [ + "set(" + ], + "in": "pane.Pane.append_option" + } + ] + }, + { + "port": "rs", + "symbol": "pane.Pane.unset_option", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "crates/libtmux/src/internal/options.rs:220", + "has": [ + "run(", + "\"set-option\"" + ], + "span": 3 + }, + { + "at": "crates/libtmux/src/pane/settings.rs:160", + "has": [ + "unset(" + ], + "in": "pane.Pane.unset_option" + } + ] + }, + { + "port": "rs", + "symbol": "server.Server.wait_for_channel", + "command": "wait-for", + "scope": null, + "evidence": [ + { + "at": "crates/libtmux/src/internal/wait_for.rs:248", + "has": [ + "channel_command(" + ] + }, + { + "at": "crates/libtmux/src/internal/wait_for.rs:363", + "has": [ + "wait-for" + ] + }, + { + "at": "crates/libtmux/src/internal/wait_for.rs:221", + "has": [ + "park(" + ] + }, + { + "at": "crates/libtmux/src/server/channels.rs:225", + "has": [ + "wait(" + ], + "in": "server.Server.wait_for_channel" + } + ] + }, + { + "port": "rs", + "symbol": "server.Server.set_option", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "crates/libtmux/src/internal/options.rs:172", + "has": [ + "run(", + "\"set-option\"" + ], + "span": 3 + }, + { + "at": "crates/libtmux/src/server/settings.rs:102", + "has": [ + "set(" + ], + "in": "server.Server.set_option" + } + ] + }, + { + "port": "rs", + "symbol": "server.Server.set_typed_option", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "crates/libtmux/src/internal/options.rs:172", + "has": [ + "run(", + "\"set-option\"" + ], + "span": 3 + }, + { + "at": "crates/libtmux/src/internal/options.rs:206", + "has": [ + "set(" + ] + }, + { + "at": "crates/libtmux/src/server/settings.rs:130", + "has": [ + "set_typed(" + ], + "in": "server.Server.set_typed_option" + } + ] + }, + { + "port": "rs", + "symbol": "server.Server.unset_option", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "crates/libtmux/src/internal/options.rs:220", + "has": [ + "run(", + "\"set-option\"" + ], + "span": 3 + }, + { + "at": "crates/libtmux/src/server/settings.rs:139", + "has": [ + "unset(" + ], + "in": "server.Server.unset_option" + } + ] + }, + { + "port": "rs", + "symbol": "server.Server.set_global_option", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "crates/libtmux/src/internal/options.rs:172", + "has": [ + "run(", + "\"set-option\"" + ], + "span": 3 + }, + { + "at": "crates/libtmux/src/server/settings.rs:155", + "has": [ + "set(" + ], + "in": "server.Server.set_global_option" + } + ] + }, + { + "port": "rs", + "symbol": "server.Server.set_typed_global_option", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "crates/libtmux/src/internal/options.rs:172", + "has": [ + "run(", + "\"set-option\"" + ], + "span": 3 + }, + { + "at": "crates/libtmux/src/internal/options.rs:206", + "has": [ + "set(" + ] + }, + { + "at": "crates/libtmux/src/server/settings.rs:194", + "has": [ + "set_typed(" + ], + "in": "server.Server.set_typed_global_option" + } + ] + }, + { + "port": "rs", + "symbol": "server.Server.set_environment", + "command": "set-environment", + "scope": null, + "evidence": [ + { + "at": "crates/libtmux/src/internal/environment.rs:45", + "has": [ + "listing::mutate(", + "\"set-environment\"" + ], + "span": 4 + }, + { + "at": "crates/libtmux/src/server/settings.rs:258", + "has": [ + "set(" + ], + "in": "server.Server.set_environment" + } + ] + }, + { + "port": "rs", + "symbol": "server.Server.unset_environment", + "command": "set-environment", + "scope": null, + "evidence": [ + { + "at": "crates/libtmux/src/internal/environment.rs:74", + "has": [ + "listing::mutate(", + "\"set-environment\"" + ], + "span": 4 + }, + { + "at": "crates/libtmux/src/server/settings.rs:315", + "has": [ + "unset(" + ], + "in": "server.Server.unset_environment" + } + ] + }, + { + "port": "rs", + "symbol": "server.Server.set_array_option", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "crates/libtmux/src/internal/options.rs:172", + "has": [ + "run(", + "\"set-option\"" + ], + "span": 3 + }, + { + "at": "crates/libtmux/src/server/settings.rs:376", + "has": [ + "set(" + ], + "in": "server.Server.set_array_option" + } + ] + }, + { + "port": "rs", + "symbol": "server.Server.append_array_option", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "crates/libtmux/src/internal/options.rs:172", + "has": [ + "run(", + "\"set-option\"" + ], + "span": 3 + }, + { + "at": "crates/libtmux/src/server/settings.rs:400", + "has": [ + "set(" + ], + "in": "server.Server.append_array_option" + } + ] + }, + { + "port": "rs", + "symbol": "server.Server.unset_array_option", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "crates/libtmux/src/internal/options.rs:220", + "has": [ + "run(", + "\"set-option\"" + ], + "span": 3 + }, + { + "at": "crates/libtmux/src/server/settings.rs:416", + "has": [ + "unset(" + ], + "in": "server.Server.unset_array_option" + } + ] + }, + { + "port": "rs", + "symbol": "server.Server.set_global_window_option", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "crates/libtmux/src/internal/options.rs:172", + "has": [ + "run(", + "\"set-option\"" + ], + "span": 3 + }, + { + "at": "crates/libtmux/src/server/settings.rs:431", + "has": [ + "set(" + ], + "in": "server.Server.set_global_window_option" + } + ] + }, + { + "port": "rs", + "symbol": "server.Server.set_typed_global_window_option", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "crates/libtmux/src/internal/options.rs:172", + "has": [ + "run(", + "\"set-option\"" + ], + "span": 3 + }, + { + "at": "crates/libtmux/src/internal/options.rs:206", + "has": [ + "set(" + ] + }, + { + "at": "crates/libtmux/src/server/settings.rs:461", + "has": [ + "set_typed(" + ], + "in": "server.Server.set_typed_global_window_option" + } + ] + }, + { + "port": "rs", + "symbol": "session.Session.set_option", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "crates/libtmux/src/internal/options.rs:172", + "has": [ + "run(", + "\"set-option\"" + ], + "span": 3 + }, + { + "at": "crates/libtmux/src/session/settings.rs:90", + "has": [ + "set(" + ], + "in": "session.Session.set_option" + } + ] + }, + { + "port": "rs", + "symbol": "session.Session.set_typed_option", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "crates/libtmux/src/internal/options.rs:172", + "has": [ + "run(", + "\"set-option\"" + ], + "span": 3 + }, + { + "at": "crates/libtmux/src/internal/options.rs:206", + "has": [ + "set(" + ] + }, + { + "at": "crates/libtmux/src/session/settings.rs:151", + "has": [ + "set_typed(" + ], + "in": "session.Session.set_typed_option" + } + ] + }, + { + "port": "rs", + "symbol": "session.Session.append_option", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "crates/libtmux/src/internal/options.rs:172", + "has": [ + "run(", + "\"set-option\"" + ], + "span": 3 + }, + { + "at": "crates/libtmux/src/session/settings.rs:170", + "has": [ + "set(" + ], + "in": "session.Session.append_option" + } + ] + }, + { + "port": "rs", + "symbol": "session.Session.unset_option", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "crates/libtmux/src/internal/options.rs:220", + "has": [ + "run(", + "\"set-option\"" + ], + "span": 3 + }, + { + "at": "crates/libtmux/src/session/settings.rs:190", + "has": [ + "unset(" + ], + "in": "session.Session.unset_option" + } + ] + }, + { + "port": "rs", + "symbol": "session.Session.set_environment", + "command": "set-environment", + "scope": null, + "evidence": [ + { + "at": "crates/libtmux/src/internal/environment.rs:45", + "has": [ + "listing::mutate(", + "\"set-environment\"" + ], + "span": 4 + }, + { + "at": "crates/libtmux/src/session/settings.rs:373", + "has": [ + "set(" + ], + "in": "session.Session.set_environment" + } + ] + }, + { + "port": "rs", + "symbol": "session.Session.unset_environment", + "command": "set-environment", + "scope": null, + "evidence": [ + { + "at": "crates/libtmux/src/internal/environment.rs:74", + "has": [ + "listing::mutate(", + "\"set-environment\"" + ], + "span": 4 + }, + { + "at": "crates/libtmux/src/session/settings.rs:538", + "has": [ + "unset(" + ], + "in": "session.Session.unset_environment" + } + ] + }, + { + "port": "rs", + "symbol": "window.Window.set_option", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "crates/libtmux/src/internal/options.rs:172", + "has": [ + "run(", + "\"set-option\"" + ], + "span": 3 + }, + { + "at": "crates/libtmux/src/window/settings.rs:90", + "has": [ + "set(" + ], + "in": "window.Window.set_option" + } + ] + }, + { + "port": "rs", + "symbol": "window.Window.set_typed_option", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "crates/libtmux/src/internal/options.rs:172", + "has": [ + "run(", + "\"set-option\"" + ], + "span": 3 + }, + { + "at": "crates/libtmux/src/internal/options.rs:206", + "has": [ + "set(" + ] + }, + { + "at": "crates/libtmux/src/window/settings.rs:131", + "has": [ + "set_typed(" + ], + "in": "window.Window.set_typed_option" + } + ] + }, + { + "port": "rs", + "symbol": "window.Window.append_option", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "crates/libtmux/src/internal/options.rs:172", + "has": [ + "run(", + "\"set-option\"" + ], + "span": 3 + }, + { + "at": "crates/libtmux/src/window/settings.rs:150", + "has": [ + "set(" + ], + "in": "window.Window.append_option" + } + ] + }, + { + "port": "rs", + "symbol": "window.Window.unset_option", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "crates/libtmux/src/internal/options.rs:220", + "has": [ + "run(", + "\"set-option\"" + ], + "span": 3 + }, + { + "at": "crates/libtmux/src/window/settings.rs:170", + "has": [ + "unset(" + ], + "in": "window.Window.unset_option" + } + ] + }, + { + "port": "rs", + "symbol": "pane.Pane.set_hook", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "crates/libtmux/src/internal/options.rs:261", + "has": [ + "run(", + "\"set-hook\"" + ], + "span": 3 + }, + { + "at": "crates/libtmux/src/pane/settings.rs:177", + "has": [ + "options::set_hook(" + ], + "in": "pane.Pane.set_hook" + } + ] + }, + { + "port": "rs", + "symbol": "pane.Pane.unset_hook", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "crates/libtmux/src/internal/options.rs:278", + "has": [ + "run(", + "\"set-hook\"" + ], + "span": 3 + }, + { + "at": "crates/libtmux/src/pane/settings.rs:190", + "has": [ + "options::unset_hook(" + ], + "in": "pane.Pane.unset_hook" + } + ] + }, + { + "port": "rs", + "symbol": "server.Server.set_hook", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "crates/libtmux/src/internal/options.rs:261", + "has": [ + "run(", + "\"set-hook\"" + ], + "span": 3 + }, + { + "at": "crates/libtmux/src/server/settings.rs:473", + "has": [ + "options::set_hook(" + ], + "in": "server.Server.set_hook" + } + ] + }, + { + "port": "rs", + "symbol": "server.Server.unset_hook", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "crates/libtmux/src/internal/options.rs:278", + "has": [ + "run(", + "\"set-hook\"" + ], + "span": 3 + }, + { + "at": "crates/libtmux/src/server/settings.rs:482", + "has": [ + "options::unset_hook(" + ], + "in": "server.Server.unset_hook" + } + ] + }, + { + "port": "rs", + "symbol": "server.Server.set_hooks", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "crates/libtmux/src/internal/options.rs:607", + "has": [ + "run(core, \"set-hook\"" + ] + }, + { + "at": "crates/libtmux/src/server/settings.rs:545", + "has": [ + "options::set_hooks(" + ], + "in": "server.Server.set_hooks" + } + ] + }, + { + "port": "rs", + "symbol": "session.Session.set_hook", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "crates/libtmux/src/internal/options.rs:261", + "has": [ + "run(", + "\"set-hook\"" + ], + "span": 3 + }, + { + "at": "crates/libtmux/src/session/settings.rs:207", + "has": [ + "options::set_hook(" + ], + "in": "session.Session.set_hook" + } + ] + }, + { + "port": "rs", + "symbol": "session.Session.unset_hook", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "crates/libtmux/src/internal/options.rs:278", + "has": [ + "run(", + "\"set-hook\"" + ], + "span": 3 + }, + { + "at": "crates/libtmux/src/session/settings.rs:220", + "has": [ + "options::unset_hook(" + ], + "in": "session.Session.unset_hook" + } + ] + }, + { + "port": "rs", + "symbol": "session.Session.set_hooks", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "crates/libtmux/src/internal/options.rs:607", + "has": [ + "run(core, \"set-hook\"" + ] + }, + { + "at": "crates/libtmux/src/session/settings.rs:284", + "has": [ + "options::set_hooks(" + ], + "in": "session.Session.set_hooks" + } + ] + }, + { + "port": "rs", + "symbol": "window.Window.set_hook", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "crates/libtmux/src/internal/options.rs:261", + "has": [ + "run(", + "\"set-hook\"" + ], + "span": 3 + }, + { + "at": "crates/libtmux/src/window/settings.rs:187", + "has": [ + "options::set_hook(" + ], + "in": "window.Window.set_hook" + } + ] + }, + { + "port": "rs", + "symbol": "window.Window.unset_hook", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "crates/libtmux/src/internal/options.rs:278", + "has": [ + "run(", + "\"set-hook\"" + ], + "span": 3 + }, + { + "at": "crates/libtmux/src/window/settings.rs:200", + "has": [ + "options::unset_hook(" + ], + "in": "window.Window.unset_hook" + } + ] + }, + { + "port": "rs", + "symbol": "window.Window.set_hooks", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "crates/libtmux/src/internal/options.rs:607", + "has": [ + "run(core, \"set-hook\"" + ] + }, + { + "at": "crates/libtmux/src/window/settings.rs:268", + "has": [ + "options::set_hooks(" + ], + "in": "window.Window.set_hooks" + } + ] + }, + { + "port": "rs", + "symbol": "session.Session.windows", + "command": "list-windows", + "scope": "session", + "evidence": [ + { + "at": "crates/libtmux/src/internal/listing.rs:160", + "has": [ + "list(core, LIST_COMMAND" + ] + }, + { + "at": "crates/libtmux/src/internal/listing.rs:156", + "has": [ + "LIST_COMMAND: &str = \"list-windows\"" + ] + }, + { + "at": "crates/libtmux/src/internal/listing.rs:59", + "has": [ + "Self::Target" + ] + }, + { + "at": "crates/libtmux/src/session.rs:280", + "has": [ + "listing::windows(&self.core, listing::Scope::Target(&target)" + ], + "in": "session.Session.windows" + } + ] + }, + { + "port": "rs", + "symbol": "session.Session.search_windows", + "command": "list-windows", + "scope": "session", + "evidence": [ + { + "at": "crates/libtmux/src/internal/listing.rs:160", + "has": [ + "list(core, LIST_COMMAND" + ] + }, + { + "at": "crates/libtmux/src/internal/listing.rs:156", + "has": [ + "LIST_COMMAND: &str = \"list-windows\"" + ] + }, + { + "at": "crates/libtmux/src/internal/listing.rs:59", + "has": [ + "Self::Target" + ] + }, + { + "at": "crates/libtmux/src/session.rs:280", + "has": [ + "listing::windows(&self.core, listing::Scope::Target(&target)" + ] + }, + { + "at": "crates/libtmux/src/session.rs:324", + "has": [ + "self.windows().await?" + ], + "in": "session.Session.search_windows" + } + ] + }, + { + "port": "rs", + "symbol": "window.Window.search_panes", + "command": "list-panes", + "scope": "window", + "evidence": [ + { + "at": "crates/libtmux/src/internal/listing.rs:208", + "has": [ + "list(core, LIST_COMMAND" + ] + }, + { + "at": "crates/libtmux/src/internal/listing.rs:204", + "has": [ + "LIST_COMMAND: &str = \"list-panes\"" + ] + }, + { + "at": "crates/libtmux/src/internal/listing.rs:59", + "has": [ + "Self::Target" + ] + }, + { + "at": "crates/libtmux/src/window/navigation.rs:23", + "has": [ + "listing::panes" + ] + }, + { + "at": "crates/libtmux/src/window/navigation.rs:67", + "has": [ + "self.panes().await?" + ], + "in": "window.Window.search_panes" + } + ] + }, + { + "port": "rs", + "symbol": "pane.Pane.capture_with", + "command": "capture-pane", + "scope": null, + "evidence": [ + { + "at": "crates/libtmux/src/pane/observe.rs:171", + "has": [ + "self.core.execute(command)" + ], + "in": "pane.Pane.capture_with" + }, + { + "at": "crates/libtmux/src/pane.rs:1618", + "has": [ + "Command::new(\"capture-pane\")" + ] + }, + { + "at": "crates/libtmux/src/pane.rs:1613", + "has": [ + "self.into_command(pane)" + ] + }, + { + "at": "crates/libtmux/src/pane/observe.rs:169", + "has": [ + "options.lower(" + ] + } + ] + }, + { + "port": "rs", + "symbol": "server.Server.new_session", + "command": "new-session", + "scope": null, + "evidence": [ + { + "at": "crates/libtmux/src/internal/listing.rs:362", + "has": [ + "core.execute(command)" + ] + }, + { + "at": "crates/libtmux/src/server.rs:2286", + "has": [ + "Command::new(\"new-session\")" + ] + }, + { + "at": "crates/libtmux/src/internal/listing.rs:411", + "has": [ + "create_one(core, \"new-session\", build" + ] + }, + { + "at": "crates/libtmux/src/server.rs:898", + "has": [ + "listing::create_session(", + "options.into_command(format)" + ], + "in": "server.Server.new_session" + } + ] + }, + { + "port": "rs", + "symbol": "session.Session.new_window", + "command": "new-window", + "scope": null, + "evidence": [ + { + "at": "crates/libtmux/src/internal/listing.rs:362", + "has": [ + "core.execute(command)" + ] + }, + { + "at": "crates/libtmux/src/session.rs:1139", + "has": [ + "Command::new(\"new-window\")" + ] + }, + { + "at": "crates/libtmux/src/internal/listing.rs:427", + "has": [ + "create_one(core, \"new-window\", build" + ] + }, + { + "at": "crates/libtmux/src/session.rs:495", + "has": [ + "listing::create_window(", + "options.into_command(&session, format)" + ], + "in": "session.Session.new_window" + } + ] + }, + { + "port": "rs", + "symbol": "window.Window.split", + "command": "split-window", + "scope": null, + "evidence": [ + { + "at": "crates/libtmux/src/internal/listing.rs:362", + "has": [ + "core.execute(command)" + ] + }, + { + "at": "crates/libtmux/src/window.rs:1948", + "has": [ + "Command::new(\"split-window\")" + ] + }, + { + "at": "crates/libtmux/src/internal/listing.rs:444", + "has": [ + "create_one(core, \"split-window\", build" + ] + }, + { + "at": "crates/libtmux/src/window.rs:367", + "has": [ + "listing::create_pane(", + "options.into_command(&window, format)" + ], + "in": "window.Window.split" + } + ] + }, + { + "port": "rs", + "symbol": "pane.Pane.split", + "command": "split-window", + "scope": null, + "evidence": [ + { + "at": "crates/libtmux/src/internal/listing.rs:362", + "has": [ + "core.execute(command)" + ] + }, + { + "at": "crates/libtmux/src/window.rs:1948", + "has": [ + "Command::new(\"split-window\")" + ] + }, + { + "at": "crates/libtmux/src/internal/listing.rs:444", + "has": [ + "create_one(core, \"split-window\", build" + ] + }, + { + "at": "crates/libtmux/src/pane.rs:515", + "has": [ + "listing::create_pane(", + "options.into_command(&pane, format)" + ], + "in": "pane.Pane.split" + } + ] + }, + { + "port": "rs", + "symbol": "pane.Pane.capture_lines", + "command": "capture-pane", + "scope": null, + "evidence": [ + { + "at": "crates/libtmux/src/pane/observe.rs:171", + "has": [ + "self.core.execute(command)" + ] + }, + { + "at": "crates/libtmux/src/pane.rs:1618", + "has": [ + "Command::new(\"capture-pane\")" + ] + }, + { + "at": "crates/libtmux/src/pane.rs:1613", + "has": [ + "self.into_command(pane)" + ] + }, + { + "at": "crates/libtmux/src/pane/observe.rs:169", + "has": [ + "options.lower(" + ] + }, + { + "at": "crates/libtmux/src/pane/observe.rs:237", + "has": [ + ".capture_with(" + ], + "in": "pane.Pane.capture_lines" + } + ] + }, + { + "port": "ts", + "symbol": "server.Server.snapshot", + "command": "list-panes", + "scope": "server", + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/acquire.ts:27", + "has": [ + "\"list-panes\"", + "[\"-a\"]" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/acquire.ts:90", + "has": [ + "ACQUISITION_LISTINGS" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/acquire.ts:126", + "has": [ + "acquireServerGraphAttempt" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/snapshot.ts:42", + "has": [ + "acquireServerGraph" + ] + }, + { + "at": "packages/libtmux/src/server.ts:533", + "has": [ + "buildServerSnapshot" + ], + "in": "server.Server.snapshot" + } + ] + }, + { + "port": "ts", + "symbol": "server.Server.newSession", + "command": "new-session", + "scope": null, + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/plans.ts:35", + "has": [ + "\"new-session\"" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/plans.ts:120", + "has": [ + "argv: newSessionArgs(options)" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/mutations.ts:43", + "has": [ + "runCommand(runtime, plan.argv, options)" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/mutations.ts:52", + "has": [ + "runPlan(server, runtime, planNewSession(options), options)" + ] + }, + { + "at": "packages/libtmux/src/server.ts:1115", + "has": [ + "return newSession(this, runtimeForServer(this), options)" + ], + "in": "server.Server.newSession" + } + ] + }, + { + "port": "ts", + "symbol": "pane.Pane.showOptions", + "command": "show-options", + "scope": null, + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/options.ts:114", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "packages/libtmux/src/pane.ts:181", + "has": [ + "return showOptions(runtimeFor" + ], + "in": "pane.Pane.showOptions" + } + ] + }, + { + "port": "ts", + "symbol": "pane.Pane.setOption", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/options.ts:175", + "has": [ + "\"set-option\"" + ] + }, + { + "at": "packages/libtmux/src/pane.ts:207", + "has": [ + "return setOption(runtimeFor" + ], + "in": "pane.Pane.setOption" + } + ] + }, + { + "port": "ts", + "symbol": "pane.Pane.unsetOption", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/options.ts:201", + "has": [ + "\"set-option\"" + ] + }, + { + "at": "packages/libtmux/src/pane.ts:218", + "has": [ + "return unsetOption(runtimeFor" + ], + "in": "pane.Pane.unsetOption" + } + ] + }, + { + "port": "ts", + "symbol": "server.Server.showOptions", + "command": "show-options", + "scope": null, + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/options.ts:114", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "packages/libtmux/src/server.ts:783", + "has": [ + "return showOptions(runtimeFor" + ], + "in": "server.Server.showOptions" + } + ] + }, + { + "port": "ts", + "symbol": "server.Server.setOption", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/options.ts:175", + "has": [ + "\"set-option\"" + ] + }, + { + "at": "packages/libtmux/src/server.ts:809", + "has": [ + "return setOption(runtimeFor" + ], + "in": "server.Server.setOption" + } + ] + }, + { + "port": "ts", + "symbol": "server.Server.unsetOption", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/options.ts:201", + "has": [ + "\"set-option\"" + ] + }, + { + "at": "packages/libtmux/src/server.ts:820", + "has": [ + "return unsetOption(runtimeFor" + ], + "in": "server.Server.unsetOption" + } + ] + }, + { + "port": "ts", + "symbol": "session.Session.showOptions", + "command": "show-options", + "scope": null, + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/options.ts:114", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "packages/libtmux/src/session.ts:118", + "has": [ + "return showOptions(runtimeFor" + ], + "in": "session.Session.showOptions" + } + ] + }, + { + "port": "ts", + "symbol": "session.Session.setOption", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/options.ts:175", + "has": [ + "\"set-option\"" + ] + }, + { + "at": "packages/libtmux/src/session.ts:144", + "has": [ + "return setOption(runtimeFor" + ], + "in": "session.Session.setOption" + } + ] + }, + { + "port": "ts", + "symbol": "session.Session.unsetOption", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/options.ts:201", + "has": [ + "\"set-option\"" + ] + }, + { + "at": "packages/libtmux/src/session.ts:155", + "has": [ + "return unsetOption(runtimeFor" + ], + "in": "session.Session.unsetOption" + } + ] + }, + { + "port": "ts", + "symbol": "window.Window.showOptions", + "command": "show-options", + "scope": null, + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/options.ts:114", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "packages/libtmux/src/window.ts:233", + "has": [ + "return showOptions(runtimeFor" + ], + "in": "window.Window.showOptions" + } + ] + }, + { + "port": "ts", + "symbol": "window.Window.setOption", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/options.ts:175", + "has": [ + "\"set-option\"" + ] + }, + { + "at": "packages/libtmux/src/window.ts:259", + "has": [ + "return setOption(runtimeFor" + ], + "in": "window.Window.setOption" + } + ] + }, + { + "port": "ts", + "symbol": "window.Window.unsetOption", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/options.ts:201", + "has": [ + "\"set-option\"" + ] + }, + { + "at": "packages/libtmux/src/window.ts:270", + "has": [ + "return unsetOption(runtimeFor" + ], + "in": "window.Window.unsetOption" + } + ] + }, + { + "port": "ts", + "symbol": "server.Server.showGlobalOptions", + "command": "show-options", + "scope": null, + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/options.ts:114", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "packages/libtmux/src/server.ts:856", + "has": [ + "return showOptions(runtimeForServer(this), scope" + ], + "in": "server.Server.showGlobalOptions" + } + ] + }, + { + "port": "ts", + "symbol": "server.Server.setGlobalOption", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/options.ts:175", + "has": [ + "\"set-option\"" + ] + }, + { + "at": "packages/libtmux/src/server.ts:872", + "has": [ + "return setOption(runtimeForServer(this), scope" + ], + "in": "server.Server.setGlobalOption" + } + ] + }, + { + "port": "ts", + "symbol": "server.Server.unsetGlobalOption", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/options.ts:201", + "has": [ + "\"set-option\"" + ] + }, + { + "at": "packages/libtmux/src/server.ts:886", + "has": [ + "return unsetOption(runtimeForServer(this), scope" + ], + "in": "server.Server.unsetGlobalOption" + } + ] + }, + { + "port": "ts", + "symbol": "pane.Pane.split", + "command": "split-window", + "scope": null, + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/plans.ts:97", + "has": [ + "\"split-window\"" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/plans.ts:154", + "has": [ + "splitWindowArgs(target, options)" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/mutations.ts:43", + "has": [ + "runCommand(runtime, plan.argv, options)" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/mutations.ts:70", + "has": [ + "planSplitWindow(" + ] + }, + { + "at": "packages/libtmux/src/pane.ts:233", + "has": [ + "splitWindow(this.server" + ], + "in": "pane.Pane.split" + } + ] + }, + { + "port": "ts", + "symbol": "window.Window.split", + "command": "split-window", + "scope": null, + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/plans.ts:97", + "has": [ + "\"split-window\"" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/plans.ts:154", + "has": [ + "splitWindowArgs(target, options)" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/mutations.ts:43", + "has": [ + "runCommand(runtime, plan.argv, options)" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/mutations.ts:70", + "has": [ + "planSplitWindow(" + ] + }, + { + "at": "packages/libtmux/src/window.ts:285", + "has": [ + "splitWindow(this.server" + ], + "in": "window.Window.split" + } + ] + }, + { + "port": "ts", + "symbol": "session.Session.newWindow", + "command": "new-window", + "scope": null, + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/plans.ts:71", + "has": [ + "\"new-window\"" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/plans.ts:133", + "has": [ + "newWindowArgs(sessionId, options)" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/mutations.ts:43", + "has": [ + "runCommand(runtime, plan.argv, options)" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/mutations.ts:61", + "has": [ + "planNewWindow(" + ] + }, + { + "at": "packages/libtmux/src/session.ts:307", + "has": [ + "newWindow(this.server" + ], + "in": "session.Session.newWindow" + } + ] + }, + { + "port": "ts", + "symbol": "window.Window.nextLayout", + "command": "next-layout", + "scope": null, + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/topology.ts:412", + "has": [ + "`${step}-layout`" + ] + }, + { + "at": "packages/libtmux/src/window.ts:318", + "has": [ + "cycleLayout(runtimeForHandle(this), this.id, \"next\")" + ], + "in": "window.Window.nextLayout" + } + ] + }, + { + "port": "ts", + "symbol": "window.Window.previousLayout", + "command": "previous-layout", + "scope": null, + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/topology.ts:412", + "has": [ + "`${step}-layout`" + ] + }, + { + "at": "packages/libtmux/src/window.ts:329", + "has": [ + "cycleLayout(runtimeForHandle(this), this.id, \"previous\")" + ], + "in": "window.Window.previousLayout" + } + ] + }, + { + "port": "ts", + "symbol": "pane.Pane.killIfWindowUnshared", + "command": "if-shell", + "scope": null, + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/plans.ts:179", + "has": [ + "\"if-shell\"" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/plans.ts:192", + "has": [ + "conditionalTargetMutation(" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/mutations.ts:86", + "has": [ + "planKillPaneIfUnshared(target).argv" + ] + }, + { + "at": "packages/libtmux/src/pane.ts:255", + "has": [ + "killPaneIfWindowUnshared(" + ], + "in": "pane.Pane.killIfWindowUnshared" + } + ] + }, + { + "port": "ts", + "symbol": "mcp.server.main", + "command": "start-server", + "scope": null, + "when": "a minimal launch, no explicit selection", + "evidence": [ + { + "at": "packages/mcp/src/startup.ts:88", + "has": [ + "server.cmd(\"start-server\"" + ] + }, + { + "at": "packages/mcp/src/server.ts:244", + "has": [ + "inspectServerStartup(" + ], + "in": "mcp.server.main" + } + ] + }, + { + "port": "ts", + "symbol": "mcp.server.main", + "command": "show-options", + "scope": null, + "when": "a minimal launch, no explicit selection", + "evidence": [ + { + "at": "packages/mcp/src/startup.ts:89", + "has": [ + "server.cmd(\"show-options\"" + ] + }, + { + "at": "packages/mcp/src/server.ts:244", + "has": [ + "inspectServerStartup(" + ], + "in": "mcp.server.main" + } + ] + }, + { + "port": "ts", + "symbol": "mcp.server.main", + "command": "display-message", + "scope": null, + "when": "unless an explicit launch finds no server", + "evidence": [ + { + "at": "packages/mcp/src/startup.ts:92", + "has": [ + "server.cmd(\"display-message\"" + ] + }, + { + "at": "packages/mcp/src/startup.ts:107", + "has": [ + "server.isAlive()" + ] + }, + { + "at": "packages/mcp/src/startup.ts:110", + "has": [ + "server.cmd(\"display-message\"" + ] + }, + { + "at": "packages/mcp/src/startup.ts:124", + "has": [ + "return Object.freeze(" + ] + }, + { + "at": "packages/mcp/src/server.ts:244", + "has": [ + "inspectServerStartup(" + ], + "in": "mcp.server.main" + } + ] + }, + { + "port": "ts", + "symbol": "mcp.server.main", + "command": "list-sessions", + "scope": null, + "when": "an explicit launch", + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/server_utils.ts:129", + "has": [ + "runtime.transport.execute(", + "[\"list-sessions\"]" + ], + "span": 6 + }, + { + "at": "packages/libtmux/src/server.ts:1301", + "has": [ + "isAlive(runtimeForServer(this))" + ] + }, + { + "at": "packages/mcp/src/startup.ts:107", + "has": [ + "server.isAlive()" + ] + }, + { + "at": "packages/mcp/src/server.ts:244", + "has": [ + "inspectServerStartup(" + ], + "in": "mcp.server.main" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Server#list_panes", + "command": "list-panes", + "scope": "server", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/server.rb:470", + "has": [ + "\"list-#{kind}s\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/server.rb:163", + "has": [ + "list_entities(:pane", + "[\"-a\"]" + ], + "in": "LibTmux::Server#list_panes" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Session#list_panes", + "command": "list-panes", + "scope": "session", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/server.rb:470", + "has": [ + "\"list-#{kind}s\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/entity.rb:113", + "has": [ + ":list_entities, :pane", + "[\"-s\", \"-t\"" + ], + "in": "LibTmux::Session#list_panes" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Window#list_panes", + "command": "list-panes", + "scope": "window", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/server.rb:470", + "has": [ + "\"list-#{kind}s\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/entity.rb:123", + "has": [ + ":list_entities, :pane", + "[\"-t\"" + ], + "in": "LibTmux::Window#list_panes" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Server#list_sessions", + "command": "list-sessions", + "scope": null, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/server.rb:470", + "has": [ + "\"list-#{kind}s\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/server.rb:155", + "has": [ + "list_entities(:session" + ], + "in": "LibTmux::Server#list_sessions" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Server#list_windows", + "command": "list-windows", + "scope": "server", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/server.rb:470", + "has": [ + "\"list-#{kind}s\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/server.rb:159", + "has": [ + "list_entities(:window, [\"-a\"]" + ], + "in": "LibTmux::Server#list_windows" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Server#list_window_links", + "command": "list-windows", + "scope": "server", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/operations.rb:207", + "has": [ + "\"list-windows\", *flags" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:74", + "has": [ + "acquire_links([\"-a\"]" + ], + "in": "LibTmux::Server#list_window_links" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Server#search_panes", + "command": "list-panes", + "scope": "server", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/capture.rb:93", + "has": [ + "\"list-panes\", \"-a\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/server.rb:228", + "has": [ + "Internal::Capture.new(self" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/source_query.rb:42", + "has": [ + "server.snapshot(**options)" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/server.rb:232", + "has": [ + "SourceQuery.new(:pane" + ], + "in": "LibTmux::Server#search_panes" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Server#snapshot", + "command": "list-sessions", + "scope": null, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/capture.rb:72", + "has": [ + "[\"list-sessions\"]" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/server.rb:228", + "has": [ + "Internal::Capture.new(self" + ], + "in": "LibTmux::Server#snapshot" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Server#snapshot", + "command": "list-windows", + "scope": "server", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/capture.rb:84", + "has": [ + "\"list-windows\", \"-a\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/server.rb:228", + "has": [ + "Internal::Capture.new(self" + ], + "in": "LibTmux::Server#snapshot" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Server#snapshot", + "command": "list-panes", + "scope": "server", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/capture.rb:93", + "has": [ + "\"list-panes\", \"-a\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/server.rb:228", + "has": [ + "Internal::Capture.new(self" + ], + "in": "LibTmux::Server#snapshot" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Server#snapshot", + "command": "list-clients", + "scope": null, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/capture.rb:94", + "has": [ + "\"list-clients\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/server.rb:228", + "has": [ + "Internal::Capture.new(self" + ], + "in": "LibTmux::Server#snapshot" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Async::Server#list_sessions", + "command": "list-sessions", + "scope": null, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/server.rb:470", + "has": [ + "\"list-#{kind}s\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/server.rb:155", + "has": [ + "list_entities(:session" + ], + "in": "LibTmux::Async::Server#list_sessions" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Async::Server#list_windows", + "command": "list-windows", + "scope": "server", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/server.rb:470", + "has": [ + "\"list-#{kind}s\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/server.rb:159", + "has": [ + "list_entities(:window, [\"-a\"]" + ], + "in": "LibTmux::Async::Server#list_windows" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Async::Server#list_window_links", + "command": "list-windows", + "scope": "server", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/operations.rb:207", + "has": [ + "\"list-windows\", *flags" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:74", + "has": [ + "acquire_links([\"-a\"]" + ], + "in": "LibTmux::Async::Server#list_window_links" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Async::Server#search_panes", + "command": "list-panes", + "scope": "server", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/capture.rb:93", + "has": [ + "\"list-panes\", \"-a\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/server.rb:228", + "has": [ + "Internal::Capture.new(self" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/source_query.rb:42", + "has": [ + "server.snapshot(**options)" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/server.rb:232", + "has": [ + "SourceQuery.new(:pane" + ], + "in": "LibTmux::Async::Server#search_panes" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Async::Server#snapshot", + "command": "list-sessions", + "scope": null, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/capture.rb:72", + "has": [ + "[\"list-sessions\"]" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/server.rb:228", + "has": [ + "Internal::Capture.new(self" + ], + "in": "LibTmux::Async::Server#snapshot" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Async::Server#snapshot", + "command": "list-windows", + "scope": "server", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/capture.rb:84", + "has": [ + "\"list-windows\", \"-a\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/server.rb:228", + "has": [ + "Internal::Capture.new(self" + ], + "in": "LibTmux::Async::Server#snapshot" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Async::Server#snapshot", + "command": "list-panes", + "scope": "server", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/capture.rb:93", + "has": [ + "\"list-panes\", \"-a\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/server.rb:228", + "has": [ + "Internal::Capture.new(self" + ], + "in": "LibTmux::Async::Server#snapshot" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Async::Server#snapshot", + "command": "list-clients", + "scope": null, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/capture.rb:94", + "has": [ + "\"list-clients\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/server.rb:228", + "has": [ + "Internal::Capture.new(self" + ], + "in": "LibTmux::Async::Server#snapshot" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Async::Server#list_panes", + "command": "list-panes", + "scope": "server", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/server.rb:470", + "has": [ + "\"list-#{kind}s\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/server.rb:163", + "has": [ + "list_entities(:pane, [\"-a\"]" + ], + "in": "LibTmux::Async::Server#list_panes" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Session#list_windows", + "command": "list-windows", + "scope": "session", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/server.rb:470", + "has": [ + "\"list-#{kind}s\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/entity.rb:109", + "has": [ + ":list_entities, :window, [\"-t\"" + ], + "in": "LibTmux::Session#list_windows" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Session#list_window_links", + "command": "list-windows", + "scope": "session", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/operations.rb:207", + "has": [ + "\"list-windows\", *flags" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:265", + "has": [ + ":acquire_links, [\"-t\", target]" + ], + "in": "LibTmux::Session#list_window_links" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Session#new_window", + "command": "new-window", + "scope": null, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/server.rb:509", + "has": [ + "\"new-window\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/entity.rb:104", + "has": [ + "server.__send__(:create_window" + ], + "in": "LibTmux::Session#new_window" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Session#set_environment", + "command": "set-environment", + "scope": null, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/operations.rb:223", + "has": [ + "\"set-environment\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:276", + "has": [ + "server.__send__(:mutate_environment, [\"-t\", target]" + ], + "in": "LibTmux::Session#set_environment" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Window#split", + "command": "split-window", + "scope": null, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/server.rb:528", + "has": [ + "\"split-window\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/entity.rb:127", + "has": [ + "server.__send__(:split_window" + ], + "in": "LibTmux::Window#split" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Pane#split", + "command": "split-window", + "scope": null, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/server.rb:528", + "has": [ + "\"split-window\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/entity.rb:165", + "has": [ + "server.__send__(:split_window" + ], + "in": "LibTmux::Pane#split" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Pane#kill", + "command": "kill-pane", + "scope": null, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/entity.rb:88", + "has": [ + "\"kill-#{ref.kind}\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/server.rb:436", + "has": [ + "{session: Session, window: Window, pane: Pane" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/entity.rb:87", + "has": [ + "def kill(timeout: 5.0, cancel: nil)" + ], + "in": "LibTmux::Pane#kill" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Window#kill", + "command": "kill-window", + "scope": null, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/entity.rb:88", + "has": [ + "\"kill-#{ref.kind}\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/server.rb:436", + "has": [ + "{session: Session, window: Window, pane: Pane" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/entity.rb:87", + "has": [ + "def kill(timeout: 5.0, cancel: nil)" + ], + "in": "LibTmux::Window#kill" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Session#kill", + "command": "kill-session", + "scope": null, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/entity.rb:88", + "has": [ + "\"kill-#{ref.kind}\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/server.rb:436", + "has": [ + "{session: Session, window: Window, pane: Pane" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:255", + "has": [ + "super(timeout: timeout, cancel: cancel)" + ], + "in": "LibTmux::Session#kill" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Options#get", + "command": "show-options", + "scope": null, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/options.rb:61", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/options.rb:65", + "has": [ + ":execute_typed, args" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/options.rb:83", + "has": [ + "list(name: name" + ], + "in": "LibTmux::Options#get" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Hooks#get", + "command": "show-hooks", + "scope": null, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/options.rb:61", + "has": [ + "\"show-hooks\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/options.rb:65", + "has": [ + ":execute_typed, args" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/options.rb:167", + "has": [ + "super" + ], + "in": "LibTmux::Hooks#get" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Options#list", + "command": "show-options", + "scope": null, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/options.rb:61", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/options.rb:65", + "has": [ + "execute_typed", + "args" + ], + "in": "LibTmux::Options#list" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Hooks#list", + "command": "show-hooks", + "scope": null, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/options.rb:61", + "has": [ + "\"show-hooks\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/options.rb:65", + "has": [ + "execute_typed", + "args" + ], + "in": "LibTmux::Hooks#list" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Options#unset", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/options.rb:107", + "has": [ + "\"set-option\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/options.rb:108", + "has": [ + "execute_typed", + "command" + ], + "in": "LibTmux::Options#unset" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Hooks#unset", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/options.rb:107", + "has": [ + "\"set-hook\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/options.rb:108", + "has": [ + "execute_typed", + "command" + ], + "in": "LibTmux::Hooks#unset" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Server#switch_client", + "command": "switch-client", + "scope": null, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/terminal.rb:41", + "has": [ + "\"switch-client\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/terminal.rb:42", + "has": [ + "execute_typed([command" + ], + "in": "LibTmux::Server#switch_client" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Async::Server#switch_client", + "command": "switch-client", + "scope": null, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/terminal.rb:41", + "has": [ + "\"switch-client\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/terminal.rb:42", + "has": [ + "execute_typed([command" + ], + "in": "LibTmux::Async::Server#switch_client" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Server.NewSession", + "command": "new-session", + "scope": null, + "evidence": [ + { + "at": "tmux/session_lifecycle.go:93", + "has": [ + "\"new-session\"" + ] + }, + { + "at": "tmux/session_lifecycle.go:64", + "has": [ + "renderNewSessionArguments(" + ] + }, + { + "at": "tmux/session_lifecycle.go:232", + "has": [ + "newSessionArguments(request)" + ] + }, + { + "at": "tmux/session_lifecycle.go:236", + "has": [ + "literalCmd(ctx, arguments...)" + ], + "in": "tmux.Server.NewSession" + } + ], + "forwardable": true + }, + { + "port": "go", + "symbol": "tmux.Session.NewWindow", + "command": "new-window", + "scope": null, + "evidence": [ + { + "at": "tmux/window_lifecycle.go:159", + "has": [ + "\"new-window\"" + ] + }, + { + "at": "tmux/window_lifecycle.go:215", + "has": [ + "newWindowArguments(" + ] + }, + { + "at": "tmux/window_lifecycle.go:226", + "has": [ + "literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/window_lifecycle.go:90", + "has": [ + "return newWindow(" + ], + "in": "tmux.Session.NewWindow" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Window.NewWindow", + "command": "new-window", + "scope": null, + "evidence": [ + { + "at": "tmux/window_lifecycle.go:159", + "has": [ + "\"new-window\"" + ] + }, + { + "at": "tmux/window_lifecycle.go:215", + "has": [ + "newWindowArguments(" + ] + }, + { + "at": "tmux/window_lifecycle.go:226", + "has": [ + "literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/window_lifecycle.go:119", + "has": [ + "return newWindow(" + ], + "in": "tmux.Window.NewWindow" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Pane.Capture", + "command": "capture-pane", + "scope": null, + "evidence": [ + { + "at": "tmux/pane_capture.go:282", + "has": [ + "\"capture-pane\"" + ] + }, + { + "at": "tmux/pane_capture.go:222", + "has": [ + "p.captureArguments(" + ] + }, + { + "at": "tmux/pane_capture.go:232", + "has": [ + "p.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/pane_capture.go:127", + "has": [ + "p.capturePane(" + ], + "in": "tmux.Pane.Capture" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Pane.CaptureBytes", + "command": "capture-pane", + "scope": null, + "evidence": [ + { + "at": "tmux/pane_capture.go:282", + "has": [ + "\"capture-pane\"" + ] + }, + { + "at": "tmux/pane_capture.go:222", + "has": [ + "p.captureArguments(" + ] + }, + { + "at": "tmux/pane_capture.go:232", + "has": [ + "p.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/pane_capture.go:141", + "has": [ + "p.capturePane(" + ], + "in": "tmux.Pane.CaptureBytes" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Pane.CaptureToBuffer", + "command": "capture-pane", + "scope": null, + "evidence": [ + { + "at": "tmux/pane_capture.go:282", + "has": [ + "\"capture-pane\"" + ] + }, + { + "at": "tmux/pane_capture.go:222", + "has": [ + "p.captureArguments(" + ] + }, + { + "at": "tmux/pane_capture.go:232", + "has": [ + "p.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/pane_capture.go:157", + "has": [ + "p.capturePane(" + ], + "in": "tmux.Pane.CaptureToBuffer" + } + ] + }, + { + "port": "go", + "symbol": "tmux.GlobalSessionScope.SetHook", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "tmux/hook_runtime.go:538", + "has": [ + "set-hook" + ] + }, + { + "at": "tmux/hook_runtime.go:547", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/hook_runtime.go:526", + "has": [ + "runHookMutation(" + ] + }, + { + "at": "tmux/hook_runtime.go:187", + "has": [ + "changeHook(" + ], + "in": "tmux.GlobalSessionScope.SetHook" + } + ] + }, + { + "port": "go", + "symbol": "tmux.GlobalWindowScope.SetHook", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "tmux/hook_runtime.go:538", + "has": [ + "set-hook" + ] + }, + { + "at": "tmux/hook_runtime.go:547", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/hook_runtime.go:526", + "has": [ + "runHookMutation(" + ] + }, + { + "at": "tmux/hook_runtime.go:194", + "has": [ + "changeHook(" + ], + "in": "tmux.GlobalWindowScope.SetHook" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Session.SetHook", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "tmux/hook_runtime.go:538", + "has": [ + "set-hook" + ] + }, + { + "at": "tmux/hook_runtime.go:547", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/hook_runtime.go:526", + "has": [ + "runHookMutation(" + ] + }, + { + "at": "tmux/hook_runtime.go:213", + "has": [ + "changeHook(" + ], + "in": "tmux.Session.SetHook" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Window.SetHook", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "tmux/hook_runtime.go:538", + "has": [ + "set-hook" + ] + }, + { + "at": "tmux/hook_runtime.go:547", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/hook_runtime.go:526", + "has": [ + "runHookMutation(" + ] + }, + { + "at": "tmux/hook_runtime.go:224", + "has": [ + "changeHook(" + ], + "in": "tmux.Window.SetHook" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Pane.SetHook", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "tmux/hook_runtime.go:538", + "has": [ + "set-hook" + ] + }, + { + "at": "tmux/hook_runtime.go:547", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/hook_runtime.go:526", + "has": [ + "runHookMutation(" + ] + }, + { + "at": "tmux/hook_runtime.go:235", + "has": [ + "changeHook(" + ], + "in": "tmux.Pane.SetHook" + } + ] + }, + { + "port": "go", + "symbol": "tmux.GlobalSessionScope.AppendHook", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "tmux/hook_runtime.go:538", + "has": [ + "set-hook" + ] + }, + { + "at": "tmux/hook_runtime.go:547", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/hook_runtime.go:526", + "has": [ + "runHookMutation(" + ] + }, + { + "at": "tmux/hook_runtime.go:242", + "has": [ + "changeHook(" + ], + "in": "tmux.GlobalSessionScope.AppendHook" + } + ] + }, + { + "port": "go", + "symbol": "tmux.GlobalWindowScope.AppendHook", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "tmux/hook_runtime.go:538", + "has": [ + "set-hook" + ] + }, + { + "at": "tmux/hook_runtime.go:547", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/hook_runtime.go:526", + "has": [ + "runHookMutation(" + ] + }, + { + "at": "tmux/hook_runtime.go:249", + "has": [ + "changeHook(" + ], + "in": "tmux.GlobalWindowScope.AppendHook" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Session.AppendHook", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "tmux/hook_runtime.go:538", + "has": [ + "set-hook" + ] + }, + { + "at": "tmux/hook_runtime.go:547", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/hook_runtime.go:526", + "has": [ + "runHookMutation(" + ] + }, + { + "at": "tmux/hook_runtime.go:268", + "has": [ + "changeHook(" + ], + "in": "tmux.Session.AppendHook" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Window.AppendHook", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "tmux/hook_runtime.go:538", + "has": [ + "set-hook" + ] + }, + { + "at": "tmux/hook_runtime.go:547", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/hook_runtime.go:526", + "has": [ + "runHookMutation(" + ] + }, + { + "at": "tmux/hook_runtime.go:279", + "has": [ + "changeHook(" + ], + "in": "tmux.Window.AppendHook" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Pane.AppendHook", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "tmux/hook_runtime.go:538", + "has": [ + "set-hook" + ] + }, + { + "at": "tmux/hook_runtime.go:547", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/hook_runtime.go:526", + "has": [ + "runHookMutation(" + ] + }, + { + "at": "tmux/hook_runtime.go:290", + "has": [ + "changeHook(" + ], + "in": "tmux.Pane.AppendHook" + } + ] + }, + { + "port": "go", + "symbol": "tmux.GlobalSessionScope.UnsetHook", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "tmux/hook_runtime.go:538", + "has": [ + "set-hook" + ] + }, + { + "at": "tmux/hook_runtime.go:547", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/hook_runtime.go:526", + "has": [ + "runHookMutation(" + ] + }, + { + "at": "tmux/hook_runtime.go:297", + "has": [ + "changeHook(" + ], + "in": "tmux.GlobalSessionScope.UnsetHook" + } + ] + }, + { + "port": "go", + "symbol": "tmux.GlobalWindowScope.UnsetHook", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "tmux/hook_runtime.go:538", + "has": [ + "set-hook" + ] + }, + { + "at": "tmux/hook_runtime.go:547", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/hook_runtime.go:526", + "has": [ + "runHookMutation(" + ] + }, + { + "at": "tmux/hook_runtime.go:304", + "has": [ + "changeHook(" + ], + "in": "tmux.GlobalWindowScope.UnsetHook" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Session.UnsetHook", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "tmux/hook_runtime.go:538", + "has": [ + "set-hook" + ] + }, + { + "at": "tmux/hook_runtime.go:547", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/hook_runtime.go:526", + "has": [ + "runHookMutation(" + ] + }, + { + "at": "tmux/hook_runtime.go:323", + "has": [ + "changeHook(" + ], + "in": "tmux.Session.UnsetHook" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Window.UnsetHook", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "tmux/hook_runtime.go:538", + "has": [ + "set-hook" + ] + }, + { + "at": "tmux/hook_runtime.go:547", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/hook_runtime.go:526", + "has": [ + "runHookMutation(" + ] + }, + { + "at": "tmux/hook_runtime.go:334", + "has": [ + "changeHook(" + ], + "in": "tmux.Window.UnsetHook" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Pane.UnsetHook", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "tmux/hook_runtime.go:538", + "has": [ + "set-hook" + ] + }, + { + "at": "tmux/hook_runtime.go:547", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/hook_runtime.go:526", + "has": [ + "runHookMutation(" + ] + }, + { + "at": "tmux/hook_runtime.go:345", + "has": [ + "changeHook(" + ], + "in": "tmux.Pane.UnsetHook" + } + ] + }, + { + "port": "go", + "symbol": "tmux.GlobalSessionScope.SetHooks", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "tmux/hook_runtime.go:538", + "has": [ + "set-hook" + ] + }, + { + "at": "tmux/hook_runtime.go:547", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/hook_runtime.go:602", + "has": [ + "runHookMutation(" + ] + }, + { + "at": "tmux/hook_runtime.go:419", + "has": [ + "setHooks(" + ], + "in": "tmux.GlobalSessionScope.SetHooks" + } + ] + }, + { + "port": "go", + "symbol": "tmux.GlobalWindowScope.SetHooks", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "tmux/hook_runtime.go:538", + "has": [ + "set-hook" + ] + }, + { + "at": "tmux/hook_runtime.go:547", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/hook_runtime.go:602", + "has": [ + "runHookMutation(" + ] + }, + { + "at": "tmux/hook_runtime.go:432", + "has": [ + "setHooks(" + ], + "in": "tmux.GlobalWindowScope.SetHooks" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Session.SetHooks", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "tmux/hook_runtime.go:538", + "has": [ + "set-hook" + ] + }, + { + "at": "tmux/hook_runtime.go:547", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/hook_runtime.go:602", + "has": [ + "runHookMutation(" + ] + }, + { + "at": "tmux/hook_runtime.go:458", + "has": [ + "setHooks(" + ], + "in": "tmux.Session.SetHooks" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Window.SetHooks", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "tmux/hook_runtime.go:538", + "has": [ + "set-hook" + ] + }, + { + "at": "tmux/hook_runtime.go:547", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/hook_runtime.go:602", + "has": [ + "runHookMutation(" + ] + }, + { + "at": "tmux/hook_runtime.go:475", + "has": [ + "setHooks(" + ], + "in": "tmux.Window.SetHooks" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Pane.SetHooks", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "tmux/hook_runtime.go:538", + "has": [ + "set-hook" + ] + }, + { + "at": "tmux/hook_runtime.go:547", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/hook_runtime.go:602", + "has": [ + "runHookMutation(" + ] + }, + { + "at": "tmux/hook_runtime.go:492", + "has": [ + "setHooks(" + ], + "in": "tmux.Pane.SetHooks" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Server.SetOption", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "tmux/option_mutation.go:406", + "has": [ + "set-option" + ] + }, + { + "at": "tmux/option_mutation.go:421", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/option_mutation.go:35", + "has": [ + "changeOption(" + ], + "in": "tmux.Server.SetOption" + } + ] + }, + { + "port": "go", + "symbol": "tmux.GlobalSessionScope.SetOption", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "tmux/option_mutation.go:406", + "has": [ + "set-option" + ] + }, + { + "at": "tmux/option_mutation.go:421", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/option_mutation.go:56", + "has": [ + "changeOption(" + ], + "in": "tmux.GlobalSessionScope.SetOption" + } + ] + }, + { + "port": "go", + "symbol": "tmux.GlobalWindowScope.SetOption", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "tmux/option_mutation.go:406", + "has": [ + "set-option" + ] + }, + { + "at": "tmux/option_mutation.go:421", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/option_mutation.go:77", + "has": [ + "changeOption(" + ], + "in": "tmux.GlobalWindowScope.SetOption" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Session.SetOption", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "tmux/option_mutation.go:406", + "has": [ + "set-option" + ] + }, + { + "at": "tmux/option_mutation.go:421", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/option_mutation.go:102", + "has": [ + "changeOption(" + ], + "in": "tmux.Session.SetOption" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Window.SetOption", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "tmux/option_mutation.go:406", + "has": [ + "set-option" + ] + }, + { + "at": "tmux/option_mutation.go:421", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/option_mutation.go:122", + "has": [ + "changeOption(" + ], + "in": "tmux.Window.SetOption" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Pane.SetOption", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "tmux/option_mutation.go:406", + "has": [ + "set-option" + ] + }, + { + "at": "tmux/option_mutation.go:421", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/option_mutation.go:138", + "has": [ + "changeOption(" + ], + "in": "tmux.Pane.SetOption" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Server.AppendOption", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "tmux/option_mutation.go:406", + "has": [ + "set-option" + ] + }, + { + "at": "tmux/option_mutation.go:421", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/option_mutation.go:150", + "has": [ + "changeOption(" + ], + "in": "tmux.Server.AppendOption" + } + ] + }, + { + "port": "go", + "symbol": "tmux.GlobalSessionScope.AppendOption", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "tmux/option_mutation.go:406", + "has": [ + "set-option" + ] + }, + { + "at": "tmux/option_mutation.go:421", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/option_mutation.go:171", + "has": [ + "changeOption(" + ], + "in": "tmux.GlobalSessionScope.AppendOption" + } + ] + }, + { + "port": "go", + "symbol": "tmux.GlobalWindowScope.AppendOption", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "tmux/option_mutation.go:406", + "has": [ + "set-option" + ] + }, + { + "at": "tmux/option_mutation.go:421", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/option_mutation.go:192", + "has": [ + "changeOption(" + ], + "in": "tmux.GlobalWindowScope.AppendOption" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Session.AppendOption", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "tmux/option_mutation.go:406", + "has": [ + "set-option" + ] + }, + { + "at": "tmux/option_mutation.go:421", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/option_mutation.go:217", + "has": [ + "changeOption(" + ], + "in": "tmux.Session.AppendOption" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Window.AppendOption", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "tmux/option_mutation.go:406", + "has": [ + "set-option" + ] + }, + { + "at": "tmux/option_mutation.go:421", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/option_mutation.go:237", + "has": [ + "changeOption(" + ], + "in": "tmux.Window.AppendOption" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Pane.AppendOption", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "tmux/option_mutation.go:406", + "has": [ + "set-option" + ] + }, + { + "at": "tmux/option_mutation.go:421", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/option_mutation.go:253", + "has": [ + "changeOption(" + ], + "in": "tmux.Pane.AppendOption" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Server.UnsetOption", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "tmux/option_mutation.go:451", + "has": [ + "set-option" + ] + }, + { + "at": "tmux/option_mutation.go:462", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/option_mutation.go:267", + "has": [ + "unsetOption(" + ], + "in": "tmux.Server.UnsetOption" + } + ] + }, + { + "port": "go", + "symbol": "tmux.GlobalSessionScope.UnsetOption", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "tmux/option_mutation.go:451", + "has": [ + "set-option" + ] + }, + { + "at": "tmux/option_mutation.go:462", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/option_mutation.go:281", + "has": [ + "unsetOption(" + ], + "in": "tmux.GlobalSessionScope.UnsetOption" + } + ] + }, + { + "port": "go", + "symbol": "tmux.GlobalWindowScope.UnsetOption", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "tmux/option_mutation.go:451", + "has": [ + "set-option" + ] + }, + { + "at": "tmux/option_mutation.go:462", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/option_mutation.go:303", + "has": [ + "unsetOption(" + ], + "in": "tmux.GlobalWindowScope.UnsetOption" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Session.UnsetOption", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "tmux/option_mutation.go:451", + "has": [ + "set-option" + ] + }, + { + "at": "tmux/option_mutation.go:462", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/option_mutation.go:329", + "has": [ + "unsetOption(" + ], + "in": "tmux.Session.UnsetOption" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Window.UnsetOption", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "tmux/option_mutation.go:451", + "has": [ + "set-option" + ] + }, + { + "at": "tmux/option_mutation.go:462", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/option_mutation.go:344", + "has": [ + "unsetOption(" + ], + "in": "tmux.Window.UnsetOption" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Pane.UnsetOption", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "tmux/option_mutation.go:451", + "has": [ + "set-option" + ] + }, + { + "at": "tmux/option_mutation.go:462", + "has": [ + "runOptionMutation(ctx, server, arguments" + ] + }, + { + "at": "tmux/option_mutation.go:472", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/option_mutation.go:370", + "has": [ + "unsetOption(" + ], + "in": "tmux.Pane.UnsetOption" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Session.Kill", + "command": "kill-session", + "scope": null, + "evidence": [ + { + "at": "tmux/lifecycle_kill.go:151", + "has": [ + "kill-session" + ] + }, + { + "at": "tmux/lifecycle_kill.go:172", + "has": [ + "s.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/lifecycle_kill.go:114", + "has": [ + "KillWith(" + ], + "in": "tmux.Session.Kill" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Pane.CaptureToFile", + "command": "capture-pane", + "scope": null, + "evidence": [ + { + "at": "tmux/pane_capture.go:282", + "has": [ + "capture-pane" + ] + }, + { + "at": "tmux/pane_capture.go:232", + "has": [ + "p.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/pane_capture.go:222", + "has": [ + "captureArguments(" + ] + }, + { + "at": "tmux/pane_capture.go:157", + "has": [ + "capturePane(" + ] + }, + { + "at": "tmux/pane_capture.go:194", + "has": [ + "CaptureToBuffer(" + ], + "in": "tmux.Pane.CaptureToFile" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Server.NewSessionConnection", + "command": "new-session", + "scope": null, + "evidence": [ + { + "at": "tmux/session_lifecycle.go:93", + "has": [ + "new-session" + ] + }, + { + "at": "tmux/connection.go:193", + "has": [ + "effective.guardCommand(arguments" + ] + }, + { + "at": "tmux/connection.go:307", + "has": [ + "renderNewSessionArguments(" + ] + }, + { + "at": "tmux/connection.go:177", + "has": [ + "newSessionConnectionArguments(" + ], + "in": "tmux.Server.NewSessionConnection" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Pane.Split", + "command": "split-window", + "scope": null, + "evidence": [ + { + "at": "tmux/pane_create.go:425", + "has": [ + "\"split-window\"" + ] + }, + { + "at": "tmux/pane_create.go:358", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/pane_create.go:331", + "has": [ + "splitPane(ctx, p.server" + ], + "in": "tmux.Pane.Split" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Window.SplitPane", + "command": "split-window", + "scope": null, + "evidence": [ + { + "at": "tmux/pane_create.go:425", + "has": [ + "\"split-window\"" + ] + }, + { + "at": "tmux/pane_create.go:358", + "has": [ + "server.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/pane_create.go:312", + "has": [ + "splitPane(ctx, w.server" + ], + "in": "tmux.Window.SplitPane" + } + ] + }, + { + "port": "java", + "symbol": "io.github.libtmux.Server.Server.snapshot", + "command": "list-panes", + "scope": "server", + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:183", + "has": [ + "\"list-panes\"", + "\"-a\"" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:103", + "has": [ + "capture(process)" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:878", + "has": [ + "capture.attempt()" + ], + "in": "io.github.libtmux.Server.Server.snapshot" + } + ], + "forwardable": true + }, + { + "port": "java", + "symbol": "io.github.libtmux.Server.Server.newSession", + "command": "new-session", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/SessionSpec.java:145", + "has": [ + "argv.add(\"new-session\")" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/SessionSpec.java:137", + "has": [ + "List argv(String format" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:156", + "has": [ + "run(spec.argv(" + ], + "in": "io.github.libtmux.Server.Server.newSession" + } + ] + }, + { + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.capture", + "command": "capture-pane", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/CaptureSpec.java:85", + "has": [ + "argv.add(\"capture-pane\")" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/CaptureSpec.java:78", + "has": [ + "List argv(String target, TmuxVersion running)" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:533", + "has": [ + "server.run(snapshot, spec.argv(" + ], + "in": "io.github.libtmux.Pane.Pane.capture" + } + ] + }, + { + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.split", + "command": "split-window", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/SplitSpec.java:165", + "has": [ + "argv.add(\"split-window\")" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/SplitSpec.java:162", + "has": [ + "List argv(String target, String format, TmuxVersion running)" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:904", + "has": [ + "server.run(previous, argv)" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:893", + "has": [ + "created(server, snapshot, spec.argv(" + ], + "in": "io.github.libtmux.Pane.Pane.split" + } + ] + }, + { + "port": "java", + "symbol": "io.github.libtmux.Window.Window.split", + "command": "split-window", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/SplitSpec.java:165", + "has": [ + "argv.add(\"split-window\")" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/SplitSpec.java:162", + "has": [ + "List argv(String target, String format, TmuxVersion running)" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:904", + "has": [ + "server.run(previous, argv)" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Window.java:191", + "has": [ + "Pane.created(server, snapshot, spec.argv(" + ], + "in": "io.github.libtmux.Window.Window.split" + } + ] + }, + { + "port": "java", + "symbol": "io.github.libtmux.Session.Session.newWindow", + "command": "new-window", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/WindowSpec.java:117", + "has": [ + "argv.add(\"new-window\")" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/WindowSpec.java:115", + "has": [ + "List argv(String target, String format)" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Session.java:215", + "has": [ + "server.run(snapshot, spec.argv(" + ], + "in": "io.github.libtmux.Session.Session.newWindow" + } + ] + }, + { + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.send", + "command": "send-keys", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:639", + "has": [ + "List.of(\"send-keys\")" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:576", + "has": [ + "sendKeysArgv(keys, false)" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:583", + "has": [ + "server.run(snapshot, argv)" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:560", + "has": [ + "sendKeys(keys, () -> {})" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:548", + "has": [ + "sendKeys(List.of(keys))" + ], + "in": "io.github.libtmux.Pane.Pane.send" + } + ] + }, + { + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.sendLine", + "command": "send-keys", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:639", + "has": [ + "List.of(\"send-keys\")" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:617", + "has": [ + "sendKeysArgv(keys, true)" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:625", + "has": [ + "server.run(snapshot, argv)" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:601", + "has": [ + "sendLiteral(keys, () -> {})" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:652", + "has": [ + "sendLiteral(List.of(command" + ], + "in": "io.github.libtmux.Pane.Pane.sendLine" + } + ] + }, + { + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.respawnIn", + "command": "respawn-pane", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:772", + "has": [ + "\"respawn-pane\"" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:770", + "has": [ + "static List respawnArgv(" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:767", + "has": [ + "server.run(snapshot, respawnArgv(" + ], + "in": "io.github.libtmux.Pane.Pane.respawnIn" + } + ] + }, + { + "port": "java", + "symbol": "io.github.libtmux.Environment.Environment.get", + "command": "show-environment", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Environment.java:357", + "has": [ + "command(\"show-environment\", tail)" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Environment.java:192", + "has": [ + "showArgv(SHELL_FORM)" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Environment.java:194", + "has": [ + "cmd(argv)" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Environment.java:85", + "has": [ + "entry(name)" + ], + "in": "io.github.libtmux.Environment.Environment.get" + } + ] + }, + { + "port": "java", + "symbol": "io.github.libtmux.Environment.Environment.isRemoved", + "command": "show-environment", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Environment.java:357", + "has": [ + "command(\"show-environment\", tail)" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Environment.java:192", + "has": [ + "showArgv(SHELL_FORM)" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Environment.java:194", + "has": [ + "cmd(argv)" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Environment.java:96", + "has": [ + "entry(name)" + ], + "in": "io.github.libtmux.Environment.Environment.isRemoved" + } + ] + }, + { + "port": "java", + "symbol": "io.github.libtmux.batch.Batch.Batch.run", + "command": "display-message", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/batch/Batch.java:94", + "has": [ + "\"display-message\"" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/batch/Batch.java:85", + "has": [ + "dispatch.apply(assemble())" + ], + "in": "io.github.libtmux.batch.Batch.Batch.run" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/batch/Batch.java:82", + "has": [ + "operations.isEmpty()" + ] + } + ], + "when": "the batch is not empty", + "incidental": true + }, + { + "port": "csharp", + "symbol": "LibTmux.Server.CaptureSnapshotAsync", + "command": "list-panes", + "scope": "server", + "evidence": [ + { + "at": "src/LibTmux/Snapshots/ServerSnapshot.cs:120", + "has": [ + "\"list-panes\"", + "[\"-a\"" + ] + }, + { + "at": "src/LibTmux/Snapshots/ServerSnapshot.cs:55", + "has": [ + "ReadRowsAsync" + ] + }, + { + "at": "src/LibTmux/Server.Snapshots.cs:119", + "has": [ + ".ReadAsync(live, depth, sessionFilter" + ] + }, + { + "at": "src/LibTmux/Server.Snapshots.cs:98", + "has": [ + "CaptureSnapshotAsync(depth, timeProvider, sessionFilter: null" + ] + }, + { + "at": "src/LibTmux/Server.Snapshots.cs:91", + "has": [ + "CaptureSnapshotAsync(depth, TimeProvider.System" + ], + "in": "LibTmux.Server.CaptureSnapshotAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.TmuxBuffers.DeleteAsync", + "command": "delete-buffer", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "src/LibTmux/Server.Buffers.cs:71", + "has": [ + "\"delete-buffer\"" + ] + }, + { + "at": "src/LibTmux/Server.Buffers.cs:73", + "has": [ + "RunUtilityAsync(arguments" + ] + }, + { + "at": "src/LibTmux/Buffers/TmuxBuffers.cs:78", + "has": [ + "_server.DeleteBufferAsync(" + ], + "in": "LibTmux.TmuxBuffers.DeleteAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.TmuxKeys.BindAsync", + "command": "bind-key", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "src/LibTmux/Server.Keys.cs:17", + "has": [ + "\"bind-key\"" + ] + }, + { + "at": "src/LibTmux/Server.Keys.cs:12", + "has": [ + "RunUtilityAsync(BuildBindKeyArguments(" + ] + }, + { + "at": "src/LibTmux/Keys/TmuxKeys.cs:29", + "has": [ + "_server.BindKeyAsync(" + ], + "in": "LibTmux.TmuxKeys.BindAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.TmuxKeys.UnbindAsync", + "command": "unbind-key", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "src/LibTmux/Server.Keys.cs:39", + "has": [ + "\"unbind-key\"" + ] + }, + { + "at": "src/LibTmux/Server.Keys.cs:33", + "has": [ + "RunUtilityAsync(BuildUnbindKeyArguments(" + ] + }, + { + "at": "src/LibTmux/Keys/TmuxKeys.cs:44", + "has": [ + "_server.UnbindKeyAsync(" + ], + "in": "LibTmux.TmuxKeys.UnbindAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.Pane.SendTextAsync", + "command": "send-keys", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "src/LibTmux/Pane.Input.cs:24", + "has": [ + "\"send-keys\"" + ] + }, + { + "at": "src/LibTmux/Pane.Input.cs:71", + "has": [ + "BuildSendKeysArguments(request)" + ] + }, + { + "at": "src/LibTmux/Pane.Input.cs:94", + "has": [ + "BuildSendKeysCommands(request)" + ] + }, + { + "at": "src/LibTmux/Pane.Input.cs:100", + "has": [ + "RunAsync(arguments" + ] + }, + { + "at": "src/LibTmux/Pane.Input.cs:119", + "has": [ + "SendKeysAsync(new SendKeysRequest" + ], + "in": "LibTmux.Pane.SendTextAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.Pane.SendTextAndWaitAsync", + "command": "send-keys", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "src/LibTmux/Pane.Input.cs:24", + "has": [ + "\"send-keys\"" + ] + }, + { + "at": "src/LibTmux/Pane.Input.cs:71", + "has": [ + "BuildSendKeysArguments(request)" + ] + }, + { + "at": "src/LibTmux/Pane.Input.cs:94", + "has": [ + "BuildSendKeysCommands(request)" + ] + }, + { + "at": "src/LibTmux/Pane.Input.cs:100", + "has": [ + "RunAsync(arguments" + ] + }, + { + "at": "src/LibTmux/Pane.Waiting.cs:169", + "has": [ + "SendKeysAsync(keys, token)" + ] + }, + { + "at": "src/LibTmux/Pane.Waiting.cs:103", + "has": [ + "SendKeysAndWaitAsync(" + ], + "in": "LibTmux.Pane.SendTextAndWaitAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.Pane.SendKeysAndWaitAsync", + "command": "send-keys", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "src/LibTmux/Pane.Input.cs:24", + "has": [ + "\"send-keys\"" + ] + }, + { + "at": "src/LibTmux/Pane.Input.cs:71", + "has": [ + "BuildSendKeysArguments(request)" + ] + }, + { + "at": "src/LibTmux/Pane.Input.cs:94", + "has": [ + "BuildSendKeysCommands(request)" + ] + }, + { + "at": "src/LibTmux/Pane.Input.cs:100", + "has": [ + "RunAsync(arguments" + ] + }, + { + "at": "src/LibTmux/Pane.Waiting.cs:169", + "has": [ + "SendKeysAsync(keys, token)" + ], + "in": "LibTmux.Pane.SendKeysAndWaitAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.Server.SearchClientsAsync", + "command": "list-clients", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "src/LibTmux/Server.Clients.cs:41", + "has": [ + ".FetchAsync(\"list-clients\"" + ] + }, + { + "at": "src/LibTmux/Server.Queries.cs:41", + "has": [ + "ReadClientsAsync(" + ] + }, + { + "at": "src/LibTmux/Query/NativeFilterSearch.cs:68", + "has": [ + "QueryAsync(" + ], + "in": "LibTmux.Server.SearchClientsAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.Server.CreateSessionAsync", + "command": "new-session", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "src/LibTmux/Server.Lifecycle.cs:374", + "has": [ + "\"new-session\"" + ] + }, + { + "at": "src/LibTmux/Server.Lifecycle.cs:179", + "has": [ + "BuildNewSessionArguments(options" + ] + }, + { + "at": "src/LibTmux/Server.Lifecycle.cs:141", + "has": [ + "CreateSessionWithReceiptAsync(" + ], + "in": "LibTmux.Server.CreateSessionAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.Server.CreateOwnedSessionAsync", + "command": "new-session", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "src/LibTmux/Server.Lifecycle.cs:374", + "has": [ + "\"new-session\"" + ] + }, + { + "at": "src/LibTmux/Server.Lifecycle.cs:179", + "has": [ + "BuildNewSessionArguments(options" + ] + }, + { + "at": "src/LibTmux/Server.Lifecycle.cs:141", + "has": [ + "CreateSessionWithReceiptAsync(" + ] + }, + { + "at": "src/LibTmux/Server.Lifecycle.cs:334", + "has": [ + "CreateSessionAsync(request" + ], + "in": "LibTmux.Server.CreateOwnedSessionAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.Server.AttachSessionAsync", + "command": "attach-session", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "src/LibTmux/Session.Lifecycle.cs:424", + "has": [ + "\"attach-session\"" + ] + }, + { + "at": "src/LibTmux/Server.Lifecycle.cs:358", + "has": [ + "Session.BuildAttachArguments(" + ] + }, + { + "at": "src/LibTmux/Server.Lifecycle.cs:357", + "has": [ + "Dispatch(" + ], + "in": "LibTmux.Server.AttachSessionAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.Session.CreateWindowAsync", + "command": "new-window", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "src/LibTmux/Session.Lifecycle.cs:470", + "has": [ + "\"new-window\"" + ] + }, + { + "at": "src/LibTmux/Session.Lifecycle.cs:343", + "has": [ + "BuildNewWindowArguments(" + ] + }, + { + "at": "src/LibTmux/Session.Lifecycle.cs:342", + "has": [ + "_commandDispatcher.ExecuteAsync(" + ] + }, + { + "at": "src/LibTmux/Session.Lifecycle.cs:295", + "has": [ + "CreateWindowCoreAsync(" + ], + "in": "LibTmux.Session.CreateWindowAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.Session.CreateWindowWithReceiptAsync", + "command": "new-window", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "src/LibTmux/Session.Lifecycle.cs:470", + "has": [ + "\"new-window\"" + ] + }, + { + "at": "src/LibTmux/Session.Lifecycle.cs:343", + "has": [ + "BuildNewWindowArguments(" + ] + }, + { + "at": "src/LibTmux/Session.Lifecycle.cs:342", + "has": [ + "_commandDispatcher.ExecuteAsync(" + ] + }, + { + "at": "src/LibTmux/Session.Lifecycle.cs:321", + "has": [ + "CreateWindowCoreAsync(" + ], + "in": "LibTmux.Session.CreateWindowWithReceiptAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.Session.CreateOwnedWindowAsync", + "command": "new-window", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "src/LibTmux/Session.Lifecycle.cs:470", + "has": [ + "\"new-window\"" + ] + }, + { + "at": "src/LibTmux/Session.Lifecycle.cs:343", + "has": [ + "BuildNewWindowArguments(" + ] + }, + { + "at": "src/LibTmux/Session.Lifecycle.cs:342", + "has": [ + "_commandDispatcher.ExecuteAsync(" + ] + }, + { + "at": "src/LibTmux/Session.Lifecycle.cs:295", + "has": [ + "CreateWindowCoreAsync(" + ] + }, + { + "at": "src/LibTmux/Session.WindowNavigation.cs:32", + "has": [ + "CreateWindowAsync(request" + ], + "in": "LibTmux.Session.CreateOwnedWindowAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.Window.FindPaneAsync", + "command": "list-panes", + "scope": "window", + "forwardable": true, + "evidence": [ + { + "at": "src/LibTmux/Window.Relations.cs:123", + "has": [ + "list-panes" + ] + }, + { + "at": "src/LibTmux/Window.Panes.cs:112", + "has": [ + "GetPanesAsync(" + ], + "in": "LibTmux.Window.FindPaneAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.Session.GetWindowAsync", + "command": "list-windows", + "scope": "session", + "evidence": [ + { + "at": "src/LibTmux/Session.Relations.cs:100", + "has": [ + "\"list-windows\"" + ] + }, + { + "at": "src/LibTmux/Session.Relations.cs:101", + "has": [ + "[\"-t\", _id.ToString()]" + ] + }, + { + "at": "src/LibTmux/Session.Relations.cs:63", + "has": [ + "FindWindowAsync(id" + ], + "in": "LibTmux.Session.GetWindowAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.Window.GetPaneAsync", + "command": "list-panes", + "scope": "window", + "evidence": [ + { + "at": "src/LibTmux/Window.Relations.cs:123", + "has": [ + "list-panes" + ] + }, + { + "at": "src/LibTmux/Window.Panes.cs:112", + "has": [ + "GetPanesAsync(" + ] + }, + { + "at": "src/LibTmux/Window.Panes.cs:98", + "has": [ + "FindPaneAsync(target" + ], + "in": "LibTmux.Window.GetPaneAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.Client.GetAsync", + "command": "list-clients", + "scope": null, + "evidence": [ + { + "at": "src/LibTmux/Server.Clients.cs:41", + "has": [ + ".FetchAsync(\"list-clients\"" + ] + }, + { + "at": "src/LibTmux/Server.Clients.cs:27", + "has": [ + "ReadClientsAsync(" + ] + }, + { + "at": "src/LibTmux/Client.Administration.cs:79", + "has": [ + "server.GetClientsAsync(" + ], + "in": "LibTmux.Client.GetAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.Client.GetAttachedSessionAsync", + "command": "list-clients", + "scope": null, + "evidence": [ + { + "at": "src/LibTmux/Server.Clients.cs:41", + "has": [ + ".FetchAsync(\"list-clients\"" + ] + }, + { + "at": "src/LibTmux/Server.Clients.cs:27", + "has": [ + "ReadClientsAsync(" + ] + }, + { + "at": "src/LibTmux/Client.Administration.cs:114", + "has": [ + "owner.GetClientsAsync(" + ] + }, + { + "at": "src/LibTmux/Client.Administration.cs:156", + "has": [ + "ResolveAttachmentAsync(" + ], + "in": "LibTmux.Client.GetAttachedSessionAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.Client.GetAttachedSessionAsync", + "command": "list-sessions", + "scope": null, + "evidence": [ + { + "at": "src/LibTmux/Server.Collections.cs:18", + "has": [ + "list-sessions" + ] + }, + { + "at": "src/LibTmux/Client.Administration.cs:123", + "has": [ + "owner.GetSessionsAsync(" + ] + }, + { + "at": "src/LibTmux/Client.Administration.cs:156", + "has": [ + "ResolveAttachmentAsync(" + ], + "in": "LibTmux.Client.GetAttachedSessionAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.Client.GetAttachedWindowAsync", + "command": "list-clients", + "scope": null, + "evidence": [ + { + "at": "src/LibTmux/Server.Clients.cs:41", + "has": [ + ".FetchAsync(\"list-clients\"" + ] + }, + { + "at": "src/LibTmux/Server.Clients.cs:27", + "has": [ + "ReadClientsAsync(" + ] + }, + { + "at": "src/LibTmux/Client.Administration.cs:114", + "has": [ + "owner.GetClientsAsync(" + ] + }, + { + "at": "src/LibTmux/Client.Administration.cs:164", + "has": [ + "ResolveAttachmentAsync(" + ], + "in": "LibTmux.Client.GetAttachedWindowAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.Client.GetAttachedWindowAsync", + "command": "list-windows", + "scope": "session", + "evidence": [ + { + "at": "src/LibTmux/Session.Relations.cs:153", + "has": [ + "list-windows" + ] + }, + { + "at": "src/LibTmux/Client.Administration.cs:133", + "has": [ + "session.GetWindowsAsync(" + ] + }, + { + "at": "src/LibTmux/Client.Administration.cs:164", + "has": [ + "ResolveAttachmentAsync(" + ], + "in": "LibTmux.Client.GetAttachedWindowAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.Client.GetAttachedPaneAsync", + "command": "list-clients", + "scope": null, + "evidence": [ + { + "at": "src/LibTmux/Server.Clients.cs:41", + "has": [ + ".FetchAsync(\"list-clients\"" + ] + }, + { + "at": "src/LibTmux/Server.Clients.cs:27", + "has": [ + "ReadClientsAsync(" + ] + }, + { + "at": "src/LibTmux/Client.Administration.cs:114", + "has": [ + "owner.GetClientsAsync(" + ] + }, + { + "at": "src/LibTmux/Client.Administration.cs:172", + "has": [ + "ResolveAttachmentAsync(" + ], + "in": "LibTmux.Client.GetAttachedPaneAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.Client.GetAttachedPaneAsync", + "command": "list-panes", + "scope": "window", + "evidence": [ + { + "at": "src/LibTmux/Window.Relations.cs:123", + "has": [ + "list-panes" + ] + }, + { + "at": "src/LibTmux/Client.Administration.cs:142", + "has": [ + "window.GetPanesAsync(" + ] + }, + { + "at": "src/LibTmux/Client.Administration.cs:172", + "has": [ + "ResolveAttachmentAsync(" + ], + "in": "LibTmux.Client.GetAttachedPaneAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.TmuxBuffers.GetLinesAsync", + "command": "list-buffers", + "scope": null, + "evidence": [ + { + "at": "src/LibTmux/Server.Buffers.cs:78", + "has": [ + "\"list-buffers\"" + ] + }, + { + "at": "src/LibTmux/Server.Buffers.cs:96", + "has": [ + "BuildListBuffersArguments(request)" + ] + }, + { + "at": "src/LibTmux/Server.Buffers.cs:97", + "has": [ + "ReadUtilityAsync(arguments" + ] + }, + { + "at": "src/LibTmux/Buffers/TmuxBuffers.cs:94", + "has": [ + "_server.GetBufferLinesAsync(" + ], + "in": "LibTmux.TmuxBuffers.GetLinesAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.Server.CaptureSnapshotAsync", + "command": "list-sessions", + "scope": null, + "evidence": [ + { + "at": "src/LibTmux/Snapshots/ServerSnapshot.cs:106", + "has": [ + "\"list-sessions\"" + ] + }, + { + "at": "src/LibTmux/Snapshots/ServerSnapshot.cs:55", + "has": [ + "ReadRowsAsync" + ] + }, + { + "at": "src/LibTmux/Server.Snapshots.cs:119", + "has": [ + ".ReadAsync(live, depth, sessionFilter" + ] + }, + { + "at": "src/LibTmux/Server.Snapshots.cs:98", + "has": [ + "CaptureSnapshotAsync(depth, timeProvider, sessionFilter: null" + ] + }, + { + "at": "src/LibTmux/Server.Snapshots.cs:91", + "has": [ + "CaptureSnapshotAsync(depth, TimeProvider.System" + ], + "in": "LibTmux.Server.CaptureSnapshotAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.Server.CaptureSnapshotAsync", + "command": "list-windows", + "scope": "server", + "evidence": [ + { + "at": "src/LibTmux/Snapshots/ServerSnapshot.cs:115", + "has": [ + "\"list-windows\"" + ] + }, + { + "at": "src/LibTmux/Snapshots/ServerSnapshot.cs:115", + "has": [ + "[\"-a\"" + ] + }, + { + "at": "src/LibTmux/Snapshots/ServerSnapshot.cs:55", + "has": [ + "ReadRowsAsync" + ] + }, + { + "at": "src/LibTmux/Server.Snapshots.cs:119", + "has": [ + ".ReadAsync(live, depth, sessionFilter" + ] + }, + { + "at": "src/LibTmux/Server.Snapshots.cs:98", + "has": [ + "CaptureSnapshotAsync(depth, timeProvider, sessionFilter: null" + ] + }, + { + "at": "src/LibTmux/Server.Snapshots.cs:91", + "has": [ + "CaptureSnapshotAsync(depth, TimeProvider.System" + ], + "in": "LibTmux.Server.CaptureSnapshotAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.Client.ResolveAttachmentAsync", + "command": "list-clients", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "src/LibTmux/Server.Clients.cs:41", + "has": [ + ".FetchAsync(\"list-clients\"" + ] + }, + { + "at": "src/LibTmux/Server.Clients.cs:27", + "has": [ + "ReadClientsAsync(" + ] + }, + { + "at": "src/LibTmux/Client.Administration.cs:114", + "has": [ + "owner.GetClientsAsync(" + ], + "in": "LibTmux.Client.ResolveAttachmentAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.Server.FindSessionAsync", + "command": "display-message", + "scope": null, + "evidence": [ + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:125", + "has": [ + "\"display-message\"" + ] + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:107", + "has": [ + "ReadAsync(" + ] + }, + { + "at": "src/LibTmux/Materialization/RelationReader.cs:53", + "has": [ + ".FetchOneAsync(" + ] + }, + { + "at": "src/LibTmux/Server.Identity.cs:229", + "has": [ + "RelationReader.FindAsync(" + ], + "in": "LibTmux.Server.FindSessionAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.Server.GetSessionAsync", + "command": "display-message", + "scope": null, + "evidence": [ + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:125", + "has": [ + "\"display-message\"" + ] + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:107", + "has": [ + "ReadAsync(" + ] + }, + { + "at": "src/LibTmux/Materialization/RelationReader.cs:53", + "has": [ + ".FetchOneAsync(" + ] + }, + { + "at": "src/LibTmux/Server.Identity.cs:229", + "has": [ + "RelationReader.FindAsync(" + ] + }, + { + "at": "src/LibTmux/Server.Identity.cs:214", + "has": [ + "FindSessionAsync(" + ], + "in": "LibTmux.Server.GetSessionAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.Server.FindWindowAsync", + "command": "display-message", + "scope": null, + "evidence": [ + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:125", + "has": [ + "\"display-message\"" + ] + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:107", + "has": [ + "ReadAsync(" + ] + }, + { + "at": "src/LibTmux/Materialization/RelationReader.cs:53", + "has": [ + ".FetchOneAsync(" + ] + }, + { + "at": "src/LibTmux/Server.Identity.cs:266", + "has": [ + "RelationReader.FindAsync(" + ], + "in": "LibTmux.Server.FindWindowAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.Server.GetWindowAsync", + "command": "display-message", + "scope": null, + "evidence": [ + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:125", + "has": [ + "\"display-message\"" + ] + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:107", + "has": [ + "ReadAsync(" + ] + }, + { + "at": "src/LibTmux/Materialization/RelationReader.cs:53", + "has": [ + ".FetchOneAsync(" + ] + }, + { + "at": "src/LibTmux/Server.Identity.cs:266", + "has": [ + "RelationReader.FindAsync(" + ] + }, + { + "at": "src/LibTmux/Server.Identity.cs:251", + "has": [ + "FindWindowAsync(" + ], + "in": "LibTmux.Server.GetWindowAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.Server.FindPaneAsync", + "command": "display-message", + "scope": null, + "evidence": [ + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:125", + "has": [ + "\"display-message\"" + ] + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:107", + "has": [ + "ReadAsync(" + ] + }, + { + "at": "src/LibTmux/Materialization/RelationReader.cs:53", + "has": [ + ".FetchOneAsync(" + ] + }, + { + "at": "src/LibTmux/Server.Identity.cs:303", + "has": [ + "RelationReader.FindAsync(" + ], + "in": "LibTmux.Server.FindPaneAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.Server.GetPaneAsync", + "command": "display-message", + "scope": null, + "evidence": [ + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:125", + "has": [ + "\"display-message\"" + ] + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:107", + "has": [ + "ReadAsync(" + ] + }, + { + "at": "src/LibTmux/Materialization/RelationReader.cs:53", + "has": [ + ".FetchOneAsync(" + ] + }, + { + "at": "src/LibTmux/Server.Identity.cs:303", + "has": [ + "RelationReader.FindAsync(" + ] + }, + { + "at": "src/LibTmux/Server.Identity.cs:288", + "has": [ + "FindPaneAsync(" + ], + "in": "LibTmux.Server.GetPaneAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.TmuxHooks.SetAsync", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "src/LibTmux/Hooks/TmuxHooks.cs:214", + "has": [ + "[\"set-hook\"]" + ] + }, + { + "at": "src/LibTmux/Hooks/TmuxHooks.cs:244", + "has": [ + "BuildSetArguments(request)" + ] + }, + { + "at": "src/LibTmux/Hooks/TmuxHooks.cs:247", + "has": [ + "DispatchAsync(arguments" + ], + "in": "LibTmux.TmuxHooks.SetAsync" + } + ] + }, + { + "port": "csharp", + "revision": "4f1b997b2e4aeb604c4184707e49dcd4dea44fef", + "symbol": "LibTmux.Pane.SendTextAndWaitAsync", + "command": "send-keys", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "src/LibTmux/Pane.Input.cs:24", + "has": [ + "[\"send-keys\", \"-t\", Target]" + ] + }, + { + "at": "src/LibTmux/Pane.Input.cs:71", + "has": [ + "BuildSendKeysArguments(request)" + ] + }, + { + "at": "src/LibTmux/Pane.Input.cs:94", + "has": [ + "BuildSendKeysCommands(request)" + ] + }, + { + "at": "src/LibTmux/Pane.Input.cs:100", + "has": [ + "RunAsync(arguments" + ] + }, + { + "at": "src/LibTmux/Pane.Waiting.cs:196", + "has": [ + "SendKeysAsync(keys, token)" + ] + }, + { + "at": "src/LibTmux/Pane.Waiting.cs:130", + "has": [ + "SendKeysAndWaitAsync(" + ], + "in": "LibTmux.Pane.SendTextAndWaitAsync" + } + ] + }, + { + "port": "csharp", + "revision": "4f1b997b2e4aeb604c4184707e49dcd4dea44fef", + "symbol": "LibTmux.Pane.SendKeysAndWaitAsync", + "command": "send-keys", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "src/LibTmux/Pane.Input.cs:24", + "has": [ + "[\"send-keys\", \"-t\", Target]" + ] + }, + { + "at": "src/LibTmux/Pane.Input.cs:71", + "has": [ + "BuildSendKeysArguments(request)" + ] + }, + { + "at": "src/LibTmux/Pane.Input.cs:94", + "has": [ + "BuildSendKeysCommands(request)" + ] + }, + { + "at": "src/LibTmux/Pane.Input.cs:100", + "has": [ + "RunAsync(arguments" + ] + }, + { + "at": "src/LibTmux/Pane.Waiting.cs:196", + "has": [ + "SendKeysAsync(keys, token)" + ], + "in": "LibTmux.Pane.SendKeysAndWaitAsync" + } + ] + }, + { + "port": "csharp", + "revision": "4f1b997b2e4aeb604c4184707e49dcd4dea44fef", + "symbol": "LibTmux.Server.CreateSessionAsync", + "command": "new-session", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "src/LibTmux/Server.Lifecycle.cs:269", + "has": [ + "yield return \"new-session\"" + ] + }, + { + "at": "src/LibTmux/Server.Lifecycle.cs:147", + "has": [ + "BuildNewSessionArguments(options)" + ], + "in": "LibTmux.Server.CreateSessionAsync" + } + ] + }, + { + "port": "csharp", + "revision": "4f1b997b2e4aeb604c4184707e49dcd4dea44fef", + "symbol": "LibTmux.Session.CreateWindowAsync", + "command": "new-window", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "src/LibTmux/Session.Lifecycle.cs:396", + "has": [ + "yield return \"new-window\"" + ] + }, + { + "at": "src/LibTmux/Session.Lifecycle.cs:289", + "has": [ + "BuildNewWindowArguments(options" + ] + }, + { + "at": "src/LibTmux/Session.Lifecycle.cs:288", + "has": [ + "_commandDispatcher.ExecuteAsync(" + ], + "in": "LibTmux.Session.CreateWindowAsync" + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.Pane.SendKeysAsync", + "command": "send-keys", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "src/LibTmux/Pane.Input.cs:24", + "has": [ + "[\"send-keys\", \"-t\", Target]" + ] + }, + { + "at": "src/LibTmux/Pane.Input.cs:71", + "has": [ + "BuildSendKeysArguments(request)" + ] + }, + { + "at": "src/LibTmux/Pane.Input.cs:94", + "has": [ + "BuildSendKeysCommands(request)" + ] + }, + { + "at": "src/LibTmux/Pane.Input.cs:100", + "has": [ + "RunAsync(arguments" + ], + "in": "LibTmux.Pane.SendKeysAsync" + } + ] + }, + { + "port": "csharp", + "revision": "4f1b997b2e4aeb604c4184707e49dcd4dea44fef", + "symbol": "LibTmux.Pane.SendKeysAsync", + "command": "send-keys", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "src/LibTmux/Pane.Input.cs:24", + "has": [ + "[\"send-keys\", \"-t\", Target]" + ] + }, + { + "at": "src/LibTmux/Pane.Input.cs:71", + "has": [ + "BuildSendKeysArguments(request)" + ] + }, + { + "at": "src/LibTmux/Pane.Input.cs:94", + "has": [ + "BuildSendKeysCommands(request)" + ] + }, + { + "at": "src/LibTmux/Pane.Input.cs:100", + "has": [ + "RunAsync(arguments" + ], + "in": "LibTmux.Pane.SendKeysAsync" + } + ] + }, + { + "port": "fsharp", + "symbol": "LibTmux.FSharp.Server.newSession", + "command": "list-panes", + "scope": "window", + "via": { + "port": "csharp", + "symbol": "LibTmux.Window.GetPanesAsync" + }, + "evidence": [ + { + "at": "src/LibTmux.FSharp/Hierarchy.fs:109", + "has": [ + "created.GetPanesAsync(" + ], + "in": "LibTmux.FSharp.Server.newSession" + } + ] + }, + { + "port": "fsharp", + "symbol": "LibTmux.FSharp.Options.set", + "command": "set-option", + "scope": null, + "via": { + "port": "csharp", + "symbol": "LibTmux.TmuxOptions.SetAsync" + }, + "evidence": [ + { + "at": "src/LibTmux.FSharp/Hierarchy.fs:218", + "has": [ + "options.SetAsync(" + ], + "in": "LibTmux.FSharp.Options.set" + } + ] + }, + { + "port": "fsharp", + "symbol": "LibTmux.FSharp.Options.get", + "command": "show-options", + "scope": null, + "via": { + "port": "csharp", + "symbol": "LibTmux.TmuxOptions.GetAsync" + }, + "evidence": [ + { + "at": "src/LibTmux.FSharp/Hierarchy.fs:215", + "has": [ + "options.GetAsync(" + ], + "in": "LibTmux.FSharp.Options.get" + } + ] + }, + { + "port": "powershell", + "symbol": "LibTmux\\Get-TmuxPane", + "command": "list-panes", + "scope": "server", + "via": { + "port": "csharp", + "symbol": "LibTmux.Server.CaptureSnapshotAsync" + }, + "evidence": [ + { + "at": "src/LibTmux.PowerShell/GetTmuxPaneCommand.cs:49", + "has": [ + "Server!.CaptureSnapshotAsync(SnapshotDepth.Panes" + ], + "in": "LibTmux\\Get-TmuxPane" + } + ] + }, + { + "port": "powershell", + "symbol": "LibTmux\\Set-TmuxEnvironment", + "command": "set-environment", + "scope": null, + "via": { + "port": "csharp", + "symbol": "LibTmux.TmuxEnvironment.SetAsync" + }, + "evidence": [ + { + "at": "src/LibTmux.PowerShell/SetTmuxEnvironmentCommand.cs:59", + "has": [ + "TmuxOwner.Environment(owner)" + ] + }, + { + "at": "src/LibTmux.PowerShell/SetTmuxEnvironmentCommand.cs:66", + "has": [ + "environment.SetAsync(" + ], + "in": "LibTmux\\Set-TmuxEnvironment" + } + ] + }, + { + "port": "powershell", + "symbol": "LibTmux\\Set-TmuxHook", + "command": "set-hook", + "scope": null, + "via": { + "port": "csharp", + "symbol": "LibTmux.TmuxHooks.SetAsync" + }, + "evidence": [ + { + "at": "src/LibTmux.PowerShell/SetTmuxHookCommand.cs:74", + "has": [ + "TmuxOwner.Hooks(owner)" + ] + }, + { + "at": "src/LibTmux.PowerShell/SetTmuxHookCommand.cs:82", + "has": [ + "hooks.SetAsync(request" + ], + "in": "LibTmux\\Set-TmuxHook" + } + ] + }, + { + "port": "powershell", + "symbol": "LibTmux\\Set-TmuxOption", + "command": "set-option", + "scope": null, + "via": { + "port": "csharp", + "symbol": "LibTmux.TmuxOptions.SetAsync" + }, + "evidence": [ + { + "at": "src/LibTmux.PowerShell/SetTmuxOptionCommand.cs:86", + "has": [ + "TmuxOwner.Options(owner)" + ] + }, + { + "at": "src/LibTmux.PowerShell/SetTmuxOptionCommand.cs:102", + "has": [ + "options.SetAsync(request" + ], + "in": "LibTmux\\Set-TmuxOption" + } + ] + }, + { + "port": "powershell", + "symbol": "LibTmux\\Send-TmuxKey", + "command": "send-keys", + "scope": null, + "evidence": [ + { + "at": "src/LibTmux.PowerShell/SendTmuxKeyCommand.cs:35", + "has": [ + "new SendKeysRequest" + ] + }, + { + "at": "src/LibTmux.PowerShell/SendTmuxKeyCommand.cs:46", + "has": [ + "request.ToCommand(Pane)" + ] + }, + { + "at": "src/LibTmux.PowerShell/SendTmuxKeyCommand.cs:45", + "has": [ + "server.Chain()" + ] + }, + { + "at": "src/LibTmux.PowerShell/SendTmuxKeyCommand.cs:47", + "has": [ + ".ExecuteAsync(token)" + ], + "in": "LibTmux\\Send-TmuxKey" + } + ] + }, + { + "port": "powershell", + "symbol": "LibTmux\\Get-TmuxClientAttachment", + "command": "list-clients", + "scope": null, + "via": { + "port": "csharp", + "symbol": "LibTmux.Client.ResolveAttachmentAsync" + }, + "evidence": [ + { + "at": "src/LibTmux.PowerShell/GetTmuxClientAttachmentCommand.cs:23", + "has": [ + "Client.ResolveAttachmentAsync(" + ], + "in": "LibTmux\\Get-TmuxClientAttachment" + } + ] + }, + { + "port": "powershell", + "symbol": "LibTmux\\Get-TmuxSession", + "command": "list-sessions", + "scope": null, + "via": { + "port": "csharp", + "symbol": "LibTmux.Server.CaptureSnapshotAsync" + }, + "evidence": [ + { + "at": "src/LibTmux.PowerShell/GetTmuxSessionCommand.cs:35", + "has": [ + "Server.CaptureSnapshotAsync(SnapshotDepth.Sessions" + ], + "in": "LibTmux\\Get-TmuxSession" + } + ] + }, + { + "port": "powershell", + "symbol": "LibTmux\\Get-TmuxEnvironment", + "command": "show-environment", + "scope": null, + "via": { + "port": "csharp", + "symbol": "LibTmux.TmuxEnvironment.GetAllAsync" + }, + "evidence": [ + { + "at": "src/LibTmux.PowerShell/GetTmuxEnvironmentCommand.cs:39", + "has": [ + "environment.GetAllAsync(" + ], + "in": "LibTmux\\Get-TmuxEnvironment" + } + ] + }, + { + "port": "powershell", + "symbol": "LibTmux\\Get-TmuxHook", + "command": "show-hooks", + "scope": null, + "via": { + "port": "csharp", + "symbol": "LibTmux.TmuxHooks.GetAllAsync" + }, + "evidence": [ + { + "at": "src/LibTmux.PowerShell/GetTmuxHookCommand.cs:69", + "has": [ + "hooks.GetAllAsync(" + ], + "in": "LibTmux\\Get-TmuxHook" + } + ] + }, + { + "port": "powershell", + "symbol": "LibTmux\\Get-TmuxOption", + "command": "show-options", + "scope": null, + "via": { + "port": "csharp", + "symbol": "LibTmux.TmuxOptions.GetAllAsync" + }, + "evidence": [ + { + "at": "src/LibTmux.PowerShell/GetTmuxOptionCommand.cs:67", + "has": [ + "options.GetAllAsync(" + ], + "in": "LibTmux\\Get-TmuxOption" + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.snapshot", + "command": "list-windows", + "scope": "server", + "when": "a session exists", + "evidence": [ + { + "at": "src/acquisition.jl:109", + "has": [ + "\"list-windows\"" + ] + }, + { + "at": "src/acquisition.jl:114", + "has": [ + "args=(\"-a\",)" + ] + }, + { + "at": "src/acquisition.jl:106", + "has": [ + "isempty(ss)" + ] + }, + { + "at": "src/acquisition.jl:231", + "has": [ + "_capture_graph_rows(" + ], + "in": "LibTmux.snapshot" + }, + { + "at": "src/control_io.jl:223", + "has": [ + "isempty(ss)", + "rows(\"list-windows\"" + ] + }, + { + "at": "src/control.jl:538", + "has": [ + "push!(argv, \"-a\")" + ] + }, + { + "at": "src/control_io.jl:249", + "has": [ + "_capture_graph_rows(" + ], + "in": "LibTmux.snapshot" + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.snapshot", + "command": "list-panes", + "scope": "server", + "evidence": [ + { + "at": "src/acquisition.jl:120", + "has": [ + "\"list-panes\"" + ] + }, + { + "at": "src/acquisition.jl:125", + "has": [ + "args=(\"-a\",)" + ] + }, + { + "at": "src/acquisition.jl:117", + "has": [ + "isempty(ss)" + ] + }, + { + "at": "src/acquisition.jl:231", + "has": [ + "_capture_graph_rows(" + ], + "in": "LibTmux.snapshot" + }, + { + "at": "src/control_io.jl:224", + "has": [ + "isempty(ss)", + "rows(\"list-panes\"" + ] + }, + { + "at": "src/control.jl:538", + "has": [ + "push!(argv, \"-a\")" + ] + }, + { + "at": "src/control_io.jl:249", + "has": [ + "_capture_graph_rows(" + ], + "in": "LibTmux.snapshot" + } + ], + "when": "a session exists" + }, + { + "port": "julia", + "symbol": "LibTmux.capture_pane", + "command": "capture-pane", + "scope": null, + "evidence": [ + { + "at": "src/control_io.jl:101", + "has": [ + "\"capture-pane\"" + ] + }, + { + "at": "src/control_io.jl:173", + "has": [ + "capture_bytes(" + ], + "in": "LibTmux.capture_pane" + }, + { + "at": "src/pane_io.jl:77", + "has": [ + "\"capture-pane\"" + ] + }, + { + "at": "src/pane_io.jl:94", + "has": [ + "capture_bytes(server" + ], + "in": "LibTmux.capture_pane" + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.resize_pane", + "command": "resize-pane", + "scope": null, + "evidence": [ + { + "at": "src/control_topology.jl:92", + "has": [ + "\"resize-pane\"" + ] + }, + { + "at": "src/control_topology.jl:102", + "has": [ + "_control_topology_effect(context, args)" + ], + "in": "LibTmux.resize_pane" + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.resize_window", + "command": "resize-window", + "scope": null, + "evidence": [ + { + "at": "src/control_topology.jl:92", + "has": [ + "\"resize-window\"" + ] + }, + { + "at": "src/control_topology.jl:102", + "has": [ + "_control_topology_effect(context, args)" + ], + "in": "LibTmux.resize_window" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Pane:capture", + "command": "capture-pane", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/pane.lua:10", + "has": [ + "capture = \"capture-pane\"" + ] + }, + { + "at": "lua/libtmux/_internal/pane.lua:226", + "has": [ + "commands[kind]" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:180", + "has": [ + "\"capture\"" + ], + "in": "libtmux.Pane:capture" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Pane:clear_history", + "command": "clear-history", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/pane.lua:12", + "has": [ + "clear_history = \"clear-history\"" + ] + }, + { + "at": "lua/libtmux/_internal/pane.lua:226", + "has": [ + "commands[kind]" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:185", + "has": [ + "\"clear_history\"" + ], + "in": "libtmux.Pane:clear_history" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Pane:capture_to_buffer", + "command": "capture-pane", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/pane.lua:11", + "has": [ + "capture_to_buffer = \"capture-pane\"" + ] + }, + { + "at": "lua/libtmux/_internal/pane.lua:226", + "has": [ + "commands[kind]" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:190", + "has": [ + "\"capture_to_buffer\"" + ], + "in": "libtmux.Pane:capture_to_buffer" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Pane:send_text", + "command": "send-keys", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/pane.lua:13", + "has": [ + "send_text = \"send-keys\"" + ] + }, + { + "at": "lua/libtmux/_internal/pane.lua:226", + "has": [ + "commands[kind]" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:195", + "has": [ + "\"send_text\"" + ], + "in": "libtmux.Pane:send_text" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Pane:send_keys", + "command": "send-keys", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/pane.lua:14", + "has": [ + "send_keys = \"send-keys\"" + ] + }, + { + "at": "lua/libtmux/_internal/pane.lua:226", + "has": [ + "commands[kind]" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:200", + "has": [ + "\"send_keys\"" + ], + "in": "libtmux.Pane:send_keys" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Pane:copy_mode", + "command": "copy-mode", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/pane.lua:15", + "has": [ + "copy_mode = \"copy-mode\"" + ] + }, + { + "at": "lua/libtmux/_internal/pane.lua:226", + "has": [ + "commands[kind]" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:205", + "has": [ + "\"copy_mode\"" + ], + "in": "libtmux.Pane:copy_mode" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Pane:copy_command", + "command": "send-keys", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/pane.lua:16", + "has": [ + "copy_command = \"send-keys\"" + ] + }, + { + "at": "lua/libtmux/_internal/pane.lua:226", + "has": [ + "commands[kind]" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:213", + "has": [ + "\"copy_command\"" + ], + "in": "libtmux.Pane:copy_command" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Pane:resize", + "command": "resize-pane", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/pane.lua:17", + "has": [ + "resize = \"resize-pane\"" + ] + }, + { + "at": "lua/libtmux/_internal/pane.lua:226", + "has": [ + "commands[kind]" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:221", + "has": [ + "implementation = ", + "pane" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:222", + "has": [ + "\"resize\"" + ], + "in": "libtmux.Pane:resize" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Pane:kill", + "command": "kill-pane", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/pane.lua:18", + "has": [ + "kill = \"kill-pane\"" + ] + }, + { + "at": "lua/libtmux/_internal/pane.lua:226", + "has": [ + "commands[kind]" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:227", + "has": [ + "implementation = ", + "pane" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:228", + "has": [ + "\"kill\"" + ], + "in": "libtmux.Pane:kill" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Pane:respawn", + "command": "respawn-pane", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/pane.lua:19", + "has": [ + "respawn = \"respawn-pane\"" + ] + }, + { + "at": "lua/libtmux/_internal/pane.lua:226", + "has": [ + "commands[kind]" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:253", + "has": [ + "implementation = ", + "pane" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:254", + "has": [ + "\"respawn\"" + ], + "in": "libtmux.Pane:respawn" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Pane:select", + "command": "select-pane", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/pane.lua:20", + "has": [ + "select = \"select-pane\"" + ] + }, + { + "at": "lua/libtmux/_internal/pane.lua:226", + "has": [ + "commands[kind]" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:259", + "has": [ + "implementation = ", + "pane" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:260", + "has": [ + "\"select\"" + ], + "in": "libtmux.Pane:select" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Pane:set_title", + "command": "select-pane", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/pane.lua:21", + "has": [ + "set_title = \"select-pane\"" + ] + }, + { + "at": "lua/libtmux/_internal/pane.lua:226", + "has": [ + "commands[kind]" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:297", + "has": [ + "\"set_title\"" + ], + "in": "libtmux.Pane:set_title" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Pane:swap", + "command": "swap-pane", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/pane.lua:22", + "has": [ + "swap = \"swap-pane\"" + ] + }, + { + "at": "lua/libtmux/_internal/pane.lua:226", + "has": [ + "commands[kind]" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:307", + "has": [ + "implementation = ", + "pane" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:308", + "has": [ + "\"swap\"" + ], + "in": "libtmux.Pane:swap" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Session:rename", + "command": "rename-session", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/topology.lua:64", + "has": [ + "rename = \"rename-session\"" + ] + }, + { + "at": "lua/libtmux/_internal/topology.lua:339", + "has": [ + "targets[" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:233", + "has": [ + "\"rename\"" + ], + "in": "libtmux.Session:rename" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Window:rename", + "command": "rename-window", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/topology.lua:70", + "has": [ + "rename = \"rename-window\"" + ] + }, + { + "at": "lua/libtmux/_internal/topology.lua:339", + "has": [ + "targets[" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:233", + "has": [ + "\"rename\"" + ], + "in": "libtmux.Window:rename" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Session:kill", + "command": "kill-session", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/topology.lua:65", + "has": [ + "kill = \"kill-session\"" + ] + }, + { + "at": "lua/libtmux/_internal/topology.lua:339", + "has": [ + "targets[" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:227", + "has": [ + "implementation = ", + "topology" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:228", + "has": [ + "\"kill\"" + ], + "in": "libtmux.Session:kill" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Window:kill", + "command": "kill-window", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/topology.lua:71", + "has": [ + "kill = \"kill-window\"" + ] + }, + { + "at": "lua/libtmux/_internal/topology.lua:339", + "has": [ + "targets[" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:227", + "has": [ + "implementation = ", + "topology" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:228", + "has": [ + "\"kill\"" + ], + "in": "libtmux.Window:kill" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Window:resize", + "command": "resize-window", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/topology.lua:72", + "has": [ + "resize = \"resize-window\"" + ] + }, + { + "at": "lua/libtmux/_internal/topology.lua:339", + "has": [ + "targets[" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:221", + "has": [ + "implementation = ", + "topology" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:222", + "has": [ + "\"resize\"" + ], + "in": "libtmux.Window:resize" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Window:layout", + "command": "select-layout", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/topology.lua:73", + "has": [ + "layout = \"select-layout\"" + ] + }, + { + "at": "lua/libtmux/_internal/topology.lua:339", + "has": [ + "targets[" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:248", + "has": [ + "\"layout\"" + ], + "in": "libtmux.Window:layout" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Window:respawn", + "command": "respawn-window", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/topology.lua:74", + "has": [ + "respawn = \"respawn-window\"" + ] + }, + { + "at": "lua/libtmux/_internal/topology.lua:339", + "has": [ + "targets[" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:253", + "has": [ + "implementation = ", + "topology" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:254", + "has": [ + "\"respawn\"" + ], + "in": "libtmux.Window:respawn" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Session:renumber_windows", + "command": "move-window", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/topology.lua:66", + "has": [ + "renumber_windows = \"move-window\"" + ] + }, + { + "at": "lua/libtmux/_internal/topology.lua:339", + "has": [ + "targets[" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:243", + "has": [ + "\"renumber_windows\"" + ], + "in": "libtmux.Session:renumber_windows" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.WindowLink:select", + "command": "select-window", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/topology.lua:77", + "has": [ + "select = \"select-window\"" + ] + }, + { + "at": "lua/libtmux/_internal/topology.lua:201", + "has": [ + "targets.window_link[kind]" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:259", + "has": [ + "implementation = ", + "topology" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:260", + "has": [ + "\"select\"" + ], + "in": "libtmux.WindowLink:select" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.WindowLink:link", + "command": "link-window", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/topology.lua:78", + "has": [ + "link = \"link-window\"" + ] + }, + { + "at": "lua/libtmux/_internal/topology.lua:201", + "has": [ + "targets.window_link[kind]" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:265", + "has": [ + "\"link\"" + ], + "in": "libtmux.WindowLink:link" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.WindowLink:move", + "command": "move-window", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/topology.lua:79", + "has": [ + "move = \"move-window\"" + ] + }, + { + "at": "lua/libtmux/_internal/topology.lua:201", + "has": [ + "targets.window_link[kind]" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:270", + "has": [ + "\"move\"" + ], + "in": "libtmux.WindowLink:move" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.WindowLink:swap", + "command": "swap-window", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/topology.lua:80", + "has": [ + "swap = \"swap-window\"" + ] + }, + { + "at": "lua/libtmux/_internal/topology.lua:201", + "has": [ + "targets.window_link[kind]" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:307", + "has": [ + "implementation = ", + "topology" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:308", + "has": [ + "\"swap\"" + ], + "in": "libtmux.WindowLink:swap" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.WindowLink:unlink", + "command": "unlink-window", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/topology.lua:81", + "has": [ + "unlink = \"unlink-window\"" + ] + }, + { + "at": "lua/libtmux/_internal/topology.lua:201", + "has": [ + "targets.window_link[kind]" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:275", + "has": [ + "\"unlink\"" + ], + "in": "libtmux.WindowLink:unlink" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Pane:move_to", + "command": "join-pane", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/topology.lua:395", + "has": [ + "\"join-pane\"" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:280", + "has": [ + "\"move_to\"" + ], + "in": "libtmux.Pane:move_to" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Pane:break_out", + "command": "break-pane", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/topology.lua:201", + "has": [ + "\"break-pane\"" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:288", + "has": [ + "\"break_out\"" + ], + "in": "libtmux.Pane:break_out" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Session:navigate_window", + "command": "next-window", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/topology.lua:466", + "has": [ + "next-window" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:238", + "has": [ + "\"navigate_window\"" + ], + "in": "libtmux.Session:navigate_window" + } + ], + "when": "the direction is \"next\"" + }, + { + "port": "lua", + "symbol": "libtmux.Session:navigate_window", + "command": "previous-window", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/topology.lua:466", + "has": [ + "previous-window" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:238", + "has": [ + "\"navigate_window\"" + ], + "in": "libtmux.Session:navigate_window" + } + ], + "when": "the direction is \"previous\"" + }, + { + "port": "lua", + "symbol": "libtmux.Session:navigate_window", + "command": "last-window", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/topology.lua:466", + "has": [ + "last-window" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:238", + "has": [ + "\"navigate_window\"" + ], + "in": "libtmux.Session:navigate_window" + } + ], + "when": "the direction is \"last\"" + }, + { + "port": "lua", + "symbol": "libtmux.Session:get_option", + "command": "show-options", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:177", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:78", + "has": [ + "\"option\", \"get\"" + ], + "in": "libtmux.Session:get_option" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Session:list_options", + "command": "show-options", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:177", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:83", + "has": [ + "\"option\", \"list\"" + ], + "in": "libtmux.Session:list_options" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Session:set_option", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:175", + "has": [ + "\"set-hook\" or \"set-option\"" + ] + }, + { + "at": "lua/libtmux/_internal/settings.lua:261", + "has": [ + "argv(verb" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:88", + "has": [ + "\"option\", \"set\"" + ], + "in": "libtmux.Session:set_option" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Session:unset_option", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:175", + "has": [ + "\"set-hook\" or \"set-option\"" + ] + }, + { + "at": "lua/libtmux/_internal/settings.lua:185", + "has": [ + "\"-u\"" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:93", + "has": [ + "\"option\", \"unset\"" + ], + "in": "libtmux.Session:unset_option" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Session:get_hook", + "command": "show-options", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:177", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:98", + "has": [ + "\"hook\", \"get\"" + ], + "in": "libtmux.Session:get_hook" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Session:list_hooks", + "command": "show-options", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:177", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:103", + "has": [ + "\"hook\", \"list\"" + ], + "in": "libtmux.Session:list_hooks" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Session:set_hook", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:175", + "has": [ + "\"set-hook\" or \"set-option\"" + ] + }, + { + "at": "lua/libtmux/_internal/settings.lua:261", + "has": [ + "argv(verb" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:108", + "has": [ + "\"hook\", \"set\"" + ], + "in": "libtmux.Session:set_hook" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Session:unset_hook", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:175", + "has": [ + "\"set-hook\" or \"set-option\"" + ] + }, + { + "at": "lua/libtmux/_internal/settings.lua:185", + "has": [ + "\"-u\"" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:113", + "has": [ + "\"hook\", \"unset\"" + ], + "in": "libtmux.Session:unset_hook" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Session:run_hook", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:190", + "has": [ + "\"set-hook\", \"-R\"" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:118", + "has": [ + "\"hook\", \"run\"" + ], + "in": "libtmux.Session:run_hook" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Window:get_option", + "command": "show-options", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:177", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:78", + "has": [ + "\"option\", \"get\"" + ], + "in": "libtmux.Window:get_option" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Window:list_options", + "command": "show-options", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:177", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:83", + "has": [ + "\"option\", \"list\"" + ], + "in": "libtmux.Window:list_options" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Window:set_option", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:175", + "has": [ + "\"set-hook\" or \"set-option\"" + ] + }, + { + "at": "lua/libtmux/_internal/settings.lua:261", + "has": [ + "argv(verb" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:88", + "has": [ + "\"option\", \"set\"" + ], + "in": "libtmux.Window:set_option" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Window:unset_option", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:175", + "has": [ + "\"set-hook\" or \"set-option\"" + ] + }, + { + "at": "lua/libtmux/_internal/settings.lua:185", + "has": [ + "\"-u\"" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:93", + "has": [ + "\"option\", \"unset\"" + ], + "in": "libtmux.Window:unset_option" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Window:get_hook", + "command": "show-options", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:177", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:98", + "has": [ + "\"hook\", \"get\"" + ], + "in": "libtmux.Window:get_hook" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Window:list_hooks", + "command": "show-options", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:177", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:103", + "has": [ + "\"hook\", \"list\"" + ], + "in": "libtmux.Window:list_hooks" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Window:set_hook", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:175", + "has": [ + "\"set-hook\" or \"set-option\"" + ] + }, + { + "at": "lua/libtmux/_internal/settings.lua:261", + "has": [ + "argv(verb" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:108", + "has": [ + "\"hook\", \"set\"" + ], + "in": "libtmux.Window:set_hook" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Window:unset_hook", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:175", + "has": [ + "\"set-hook\" or \"set-option\"" + ] + }, + { + "at": "lua/libtmux/_internal/settings.lua:185", + "has": [ + "\"-u\"" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:113", + "has": [ + "\"hook\", \"unset\"" + ], + "in": "libtmux.Window:unset_hook" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Window:run_hook", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:190", + "has": [ + "\"set-hook\", \"-R\"" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:118", + "has": [ + "\"hook\", \"run\"" + ], + "in": "libtmux.Window:run_hook" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Pane:get_option", + "command": "show-options", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:177", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:78", + "has": [ + "\"option\", \"get\"" + ], + "in": "libtmux.Pane:get_option" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Pane:list_options", + "command": "show-options", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:177", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:83", + "has": [ + "\"option\", \"list\"" + ], + "in": "libtmux.Pane:list_options" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Pane:set_option", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:175", + "has": [ + "\"set-hook\" or \"set-option\"" + ] + }, + { + "at": "lua/libtmux/_internal/settings.lua:261", + "has": [ + "argv(verb" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:88", + "has": [ + "\"option\", \"set\"" + ], + "in": "libtmux.Pane:set_option" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Pane:unset_option", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:175", + "has": [ + "\"set-hook\" or \"set-option\"" + ] + }, + { + "at": "lua/libtmux/_internal/settings.lua:185", + "has": [ + "\"-u\"" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:93", + "has": [ + "\"option\", \"unset\"" + ], + "in": "libtmux.Pane:unset_option" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Pane:get_hook", + "command": "show-options", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:177", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:98", + "has": [ + "\"hook\", \"get\"" + ], + "in": "libtmux.Pane:get_hook" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Pane:list_hooks", + "command": "show-options", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:177", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:103", + "has": [ + "\"hook\", \"list\"" + ], + "in": "libtmux.Pane:list_hooks" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Pane:set_hook", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:175", + "has": [ + "\"set-hook\" or \"set-option\"" + ] + }, + { + "at": "lua/libtmux/_internal/settings.lua:261", + "has": [ + "argv(verb" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:108", + "has": [ + "\"hook\", \"set\"" + ], + "in": "libtmux.Pane:set_hook" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Pane:unset_hook", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:175", + "has": [ + "\"set-hook\" or \"set-option\"" + ] + }, + { + "at": "lua/libtmux/_internal/settings.lua:185", + "has": [ + "\"-u\"" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:113", + "has": [ + "\"hook\", \"unset\"" + ], + "in": "libtmux.Pane:unset_hook" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Pane:run_hook", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:190", + "has": [ + "\"set-hook\", \"-R\"" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:118", + "has": [ + "\"hook\", \"run\"" + ], + "in": "libtmux.Pane:run_hook" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Server:get_option", + "command": "show-options", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:177", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "lua/libtmux/_internal/server.lua:380", + "has": [ + "\"option\", \"get\"" + ], + "in": "libtmux.Server:get_option" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Server:list_options", + "command": "show-options", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:177", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "lua/libtmux/_internal/server.lua:384", + "has": [ + "\"option\", \"list\"" + ], + "in": "libtmux.Server:list_options" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Server:set_option", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:175", + "has": [ + "\"set-hook\" or \"set-option\"" + ] + }, + { + "at": "lua/libtmux/_internal/settings.lua:261", + "has": [ + "argv(verb" + ] + }, + { + "at": "lua/libtmux/_internal/server.lua:388", + "has": [ + "\"option\", \"set\"" + ], + "in": "libtmux.Server:set_option" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Server:unset_option", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:175", + "has": [ + "\"set-hook\" or \"set-option\"" + ] + }, + { + "at": "lua/libtmux/_internal/settings.lua:185", + "has": [ + "\"-u\"" + ] + }, + { + "at": "lua/libtmux/_internal/server.lua:392", + "has": [ + "\"option\", \"unset\"" + ], + "in": "libtmux.Server:unset_option" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Server:get_hook", + "command": "show-options", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:177", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "lua/libtmux/_internal/server.lua:396", + "has": [ + "\"hook\", \"get\"" + ], + "in": "libtmux.Server:get_hook" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Server:list_hooks", + "command": "show-options", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:177", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "lua/libtmux/_internal/server.lua:400", + "has": [ + "\"hook\", \"list\"" + ], + "in": "libtmux.Server:list_hooks" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Server:set_hook", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:175", + "has": [ + "\"set-hook\" or \"set-option\"" + ] + }, + { + "at": "lua/libtmux/_internal/settings.lua:261", + "has": [ + "argv(verb" + ] + }, + { + "at": "lua/libtmux/_internal/server.lua:404", + "has": [ + "\"hook\", \"set\"" + ], + "in": "libtmux.Server:set_hook" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Server:unset_hook", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:175", + "has": [ + "\"set-hook\" or \"set-option\"" + ] + }, + { + "at": "lua/libtmux/_internal/settings.lua:185", + "has": [ + "\"-u\"" + ] + }, + { + "at": "lua/libtmux/_internal/server.lua:408", + "has": [ + "\"hook\", \"unset\"" + ], + "in": "libtmux.Server:unset_hook" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Session:get_environment", + "command": "show-environment", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/environment.lua:31", + "has": [ + "\"show-environment\"", + "\"set-environment\"" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:123", + "has": [ + "\"get\"" + ], + "in": "libtmux.Session:get_environment" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Session:list_environment", + "command": "show-environment", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/environment.lua:31", + "has": [ + "\"show-environment\"", + "\"set-environment\"" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:128", + "has": [ + "\"list\"" + ], + "in": "libtmux.Session:list_environment" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Session:set_environment", + "command": "set-environment", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/environment.lua:31", + "has": [ + "\"show-environment\"", + "\"set-environment\"" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:133", + "has": [ + "\"set\"" + ], + "in": "libtmux.Session:set_environment" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Session:unset_environment", + "command": "set-environment", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/environment.lua:31", + "has": [ + "\"show-environment\"", + "\"set-environment\"" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:138", + "has": [ + "\"unset\"" + ], + "in": "libtmux.Session:unset_environment" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Session:remove_environment", + "command": "set-environment", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/environment.lua:31", + "has": [ + "\"show-environment\"", + "\"set-environment\"" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:143", + "has": [ + "\"remove\"" + ], + "in": "libtmux.Session:remove_environment" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Server:get_environment", + "command": "show-environment", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/environment.lua:31", + "has": [ + "\"show-environment\"", + "\"set-environment\"" + ] + }, + { + "at": "lua/libtmux/_internal/server.lua:412", + "has": [ + "\"get\"" + ], + "in": "libtmux.Server:get_environment" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Server:list_environment", + "command": "show-environment", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/environment.lua:31", + "has": [ + "\"show-environment\"", + "\"set-environment\"" + ] + }, + { + "at": "lua/libtmux/_internal/server.lua:416", + "has": [ + "\"list\"" + ], + "in": "libtmux.Server:list_environment" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Server:set_environment", + "command": "set-environment", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/environment.lua:31", + "has": [ + "\"show-environment\"", + "\"set-environment\"" + ] + }, + { + "at": "lua/libtmux/_internal/server.lua:420", + "has": [ + "\"set\"" + ], + "in": "libtmux.Server:set_environment" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Server:unset_environment", + "command": "set-environment", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/environment.lua:31", + "has": [ + "\"show-environment\"", + "\"set-environment\"" + ] + }, + { + "at": "lua/libtmux/_internal/server.lua:424", + "has": [ + "\"unset\"" + ], + "in": "libtmux.Server:unset_environment" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Server:remove_environment", + "command": "set-environment", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/environment.lua:31", + "has": [ + "\"show-environment\"", + "\"set-environment\"" + ] + }, + { + "at": "lua/libtmux/_internal/server.lua:428", + "has": [ + "\"remove\"" + ], + "in": "libtmux.Server:remove_environment" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Session:new_window", + "command": "new-window", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/domain.lua:7", + "has": [ + "window = \"new-window\"" + ] + }, + { + "at": "lua/libtmux/_internal/domain.lua:174", + "has": [ + "commands[kind]" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:313", + "has": [ + "\"window\"" + ], + "in": "libtmux.Session:new_window" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Pane:split", + "command": "split-window", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/domain.lua:7", + "has": [ + "pane = \"split-window\"" + ] + }, + { + "at": "lua/libtmux/_internal/domain.lua:174", + "has": [ + "commands[kind]" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:318", + "has": [ + "\"pane\"" + ], + "in": "libtmux.Pane:split" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Server:new_session", + "command": "new-session", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/domain.lua:7", + "has": [ + "session = \"new-session\"" + ] + }, + { + "at": "lua/libtmux/_internal/domain.lua:174", + "has": [ + "commands[kind]" + ] + }, + { + "at": "lua/libtmux/_internal/server.lua:460", + "has": [ + "\"session\"" + ], + "in": "libtmux.Server:new_session" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Server:set_buffer", + "command": "load-buffer", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/buffer.lua:9", + "has": [ + "set = \"load-buffer\"" + ] + }, + { + "at": "lua/libtmux/_internal/buffer.lua:140", + "has": [ + "commands[kind]" + ] + }, + { + "at": "lua/libtmux/_internal/server.lua:440", + "has": [ + "\"set\"" + ], + "in": "libtmux.Server:set_buffer" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Server:show_buffer", + "command": "show-buffer", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/buffer.lua:9", + "has": [ + "show = \"show-buffer\"" + ] + }, + { + "at": "lua/libtmux/_internal/buffer.lua:140", + "has": [ + "commands[kind]" + ] + }, + { + "at": "lua/libtmux/_internal/server.lua:444", + "has": [ + "\"show\"" + ], + "in": "libtmux.Server:show_buffer" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Server:delete_buffer", + "command": "delete-buffer", + "scope": null, + "when": "except before tmux 3.4", + "evidence": [ + { + "at": "lua/libtmux/_internal/buffer.lua:9", + "has": [ + "delete = \"delete-buffer\"" + ] + }, + { + "at": "lua/libtmux/_internal/buffer.lua:140", + "has": [ + "commands[kind]" + ] + }, + { + "at": "lua/libtmux/_internal/server.lua:448", + "has": [ + "\"delete\"" + ], + "in": "libtmux.Server:delete_buffer" + }, + { + "at": "lua/libtmux/_internal/buffer.lua:125", + "has": [ + "kind == \"delete\" and version < 4" + ] + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Pane:paste_buffer", + "command": "paste-buffer", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/buffer.lua:9", + "has": [ + "paste = \"paste-buffer\"" + ] + }, + { + "at": "lua/libtmux/_internal/buffer.lua:140", + "has": [ + "commands[kind]" + ] + }, + { + "at": "lua/libtmux/_internal/entity.lua:302", + "has": [ + "\"paste\"" + ], + "in": "libtmux.Pane:paste_buffer" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Server:switch_client", + "command": "switch-client", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/client.lua:93", + "has": [ + "\"switch-client\"" + ] + }, + { + "at": "lua/libtmux/_internal/server.lua:456", + "has": [ + "\"switch\"" + ], + "in": "libtmux.Server:switch_client" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Server:switch_client", + "command": "list-clients", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/client.lua:129", + "has": [ + "\"list-clients\"" + ] + }, + { + "at": "lua/libtmux/_internal/server.lua:456", + "has": [ + "\"switch\"" + ], + "in": "libtmux.Server:switch_client" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Server:detach_client", + "command": "detach-client", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/client.lua:103", + "has": [ + "\"detach-client\"" + ] + }, + { + "at": "lua/libtmux/_internal/server.lua:452", + "has": [ + "\"detach\"" + ], + "in": "libtmux.Server:detach_client" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Server:detach_client", + "command": "list-clients", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/client.lua:129", + "has": [ + "\"list-clients\"" + ] + }, + { + "at": "lua/libtmux/_internal/server.lua:452", + "has": [ + "\"detach\"" + ], + "in": "libtmux.Server:detach_client" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Server:snapshot", + "command": "list-sessions", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/server.lua:20", + "has": [ + "\"list-sessions\"" + ] + }, + { + "at": "lua/libtmux/_internal/server.lua:96", + "has": [ + "ipairs(specs)" + ] + }, + { + "at": "lua/libtmux/_internal/server.lua:309", + "has": [ + "acquire(" + ] + }, + { + "at": "lua/libtmux/_internal/server.lua:432", + "has": [ + "capture(" + ], + "in": "libtmux.Server:snapshot" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Server:snapshot", + "command": "list-windows", + "scope": "server", + "evidence": [ + { + "at": "lua/libtmux/_internal/server.lua:21", + "has": [ + "\"list-windows\"", + "\"-a\"" + ] + }, + { + "at": "lua/libtmux/_internal/server.lua:96", + "has": [ + "ipairs(specs)" + ] + }, + { + "at": "lua/libtmux/_internal/server.lua:309", + "has": [ + "acquire(" + ] + }, + { + "at": "lua/libtmux/_internal/server.lua:432", + "has": [ + "capture(" + ], + "in": "libtmux.Server:snapshot" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Server:snapshot", + "command": "list-clients", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/server.lua:24", + "has": [ + "\"list-clients\"" + ] + }, + { + "at": "lua/libtmux/_internal/server.lua:96", + "has": [ + "ipairs(specs)" + ] + }, + { + "at": "lua/libtmux/_internal/server.lua:309", + "has": [ + "acquire(" + ] + }, + { + "at": "lua/libtmux/_internal/server.lua:432", + "has": [ + "capture(" + ], + "in": "libtmux.Server:snapshot" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Server:snapshot", + "command": "list-buffers", + "scope": null, + "evidence": [ + { + "at": "lua/libtmux/_internal/server.lua:25", + "has": [ + "\"list-buffers\"" + ] + }, + { + "at": "lua/libtmux/_internal/server.lua:96", + "has": [ + "ipairs(specs)" + ] + }, + { + "at": "lua/libtmux/_internal/server.lua:309", + "has": [ + "acquire(" + ] + }, + { + "at": "lua/libtmux/_internal/server.lua:432", + "has": [ + "capture(" + ], + "in": "libtmux.Server:snapshot" + } + ] + }, + { + "port": "lua", + "symbol": "libtmux.Server:snapshot", + "command": "list-panes", + "scope": "server", + "evidence": [ + { + "at": "lua/libtmux/_internal/server.lua:22", + "has": [ + "\"list-panes\"", + "\"-a\"" + ] + }, + { + "at": "lua/libtmux/_internal/server.lua:177", + "has": [ + "ipairs(specs)" + ] + }, + { + "at": "lua/libtmux/_internal/server.lua:309", + "has": [ + "acquire(" + ] + }, + { + "at": "lua/libtmux/_internal/server.lua:432", + "has": [ + "capture(" + ], + "in": "libtmux.Server:snapshot" + } + ] + }, + { + "port": "py", + "symbol": "libtmux.hooks.HooksMixin.show_hook", + "command": "show-hooks", + "scope": null, + "evidence": [ + { + "at": "src/libtmux/hooks.py:364", + "has": [ + "show-hooks" + ] + }, + { + "at": "src/libtmux/hooks.py:414", + "has": [ + "_show_hook(" + ], + "in": "libtmux.hooks.HooksMixin.show_hook" + } + ] + }, + { + "port": "py", + "symbol": "libtmux.hooks.HooksMixin.set_hooks", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "src/libtmux/hooks.py:186", + "has": [ + "self.cmd(", + "\"set-hook\"" + ], + "span": 2 + }, + { + "at": "src/libtmux/hooks.py:525", + "has": [ + "self.set_hook(" + ], + "in": "libtmux.hooks.HooksMixin.set_hooks" + } + ] + }, + { + "port": "py", + "symbol": "libtmux.options.OptionsMixin.show_options", + "command": "show-options", + "scope": null, + "evidence": [ + { + "at": "src/libtmux/options.py:886", + "has": [ + "show-options" + ] + }, + { + "at": "src/libtmux/options.py:928", + "has": [ + "_show_options_raw(" + ] + }, + { + "at": "src/libtmux/options.py:977", + "has": [ + "_show_options_dict(" + ] + }, + { + "at": "src/libtmux/options.py:1037", + "has": [ + "_show_options(" + ], + "in": "libtmux.options.OptionsMixin.show_options" + } + ] + }, + { + "port": "py", + "symbol": "libtmux.options.OptionsMixin.show_option", + "command": "show-options", + "scope": null, + "evidence": [ + { + "at": "src/libtmux/options.py:1134", + "has": [ + "show-options" + ] + }, + { + "at": "src/libtmux/options.py:1185", + "has": [ + "_show_option_raw(" + ] + }, + { + "at": "src/libtmux/options.py:1296", + "has": [ + "_show_option(" + ], + "in": "libtmux.options.OptionsMixin.show_option" + } + ] + }, + { + "port": "py", + "symbol": "libtmux.Window.set_window_option", + "command": "set-option", + "scope": null, + "evidence": [ + { + "at": "src/libtmux/options.py:705", + "has": [ + "set-option" + ] + }, + { + "at": "src/libtmux/window.py:1833", + "has": [ + "set_option(" + ], + "in": "libtmux.Window.set_window_option" + } + ] + }, + { + "port": "py", + "symbol": "libtmux.Window.show_window_options", + "command": "show-options", + "scope": null, + "evidence": [ + { + "at": "src/libtmux/options.py:886", + "has": [ + "show-options" + ] + }, + { + "at": "src/libtmux/options.py:928", + "has": [ + "_show_options_raw(" + ] + }, + { + "at": "src/libtmux/options.py:977", + "has": [ + "_show_options_dict(" + ] + }, + { + "at": "src/libtmux/options.py:1037", + "has": [ + "_show_options(" + ] + }, + { + "at": "src/libtmux/window.py:1849", + "has": [ + "show_options(" + ], + "in": "libtmux.Window.show_window_options" + } + ] + }, + { + "port": "py", + "symbol": "libtmux.Window.show_window_option", + "command": "show-options", + "scope": null, + "evidence": [ + { + "at": "src/libtmux/options.py:1134", + "has": [ + "show-options" + ] + }, + { + "at": "src/libtmux/options.py:1185", + "has": [ + "_show_option_raw(" + ] + }, + { + "at": "src/libtmux/options.py:1296", + "has": [ + "_show_option(" + ] + }, + { + "at": "src/libtmux/window.py:1872", + "has": [ + "show_option(" + ], + "in": "libtmux.Window.show_window_option" + } + ] + }, + { + "port": "py", + "symbol": "libtmux.Pane.show_options", + "command": "show-options", + "scope": null, + "evidence": [ + { + "at": "src/libtmux/options.py:886", + "has": [ + "show-options" + ] + }, + { + "at": "src/libtmux/options.py:928", + "has": [ + "_show_options_raw(" + ] + }, + { + "at": "src/libtmux/options.py:977", + "has": [ + "_show_options_dict(" + ] + }, + { + "at": "src/libtmux/options.py:1037", + "has": [ + "_show_options(" + ], + "in": "libtmux.Pane.show_options" + } + ] + }, + { + "port": "py", + "symbol": "libtmux.Pane.show_option", + "command": "show-options", + "scope": null, + "evidence": [ + { + "at": "src/libtmux/options.py:1134", + "has": [ + "show-options" + ] + }, + { + "at": "src/libtmux/options.py:1185", + "has": [ + "_show_option_raw(" + ] + }, + { + "at": "src/libtmux/options.py:1296", + "has": [ + "_show_option(" + ], + "in": "libtmux.Pane.show_option" + } + ] + }, + { + "port": "py", + "symbol": "libtmux.Pane.show_hook", + "command": "show-hooks", + "scope": null, + "evidence": [ + { + "at": "src/libtmux/hooks.py:364", + "has": [ + "show-hooks" + ] + }, + { + "at": "src/libtmux/hooks.py:414", + "has": [ + "_show_hook(" + ], + "in": "libtmux.Pane.show_hook" + } + ] + }, + { + "port": "py", + "symbol": "libtmux.Pane.set_hooks", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "src/libtmux/hooks.py:186", + "has": [ + "self.cmd(", + "\"set-hook\"" + ], + "span": 2 + }, + { + "at": "src/libtmux/hooks.py:525", + "has": [ + "self.set_hook(" + ], + "in": "libtmux.Pane.set_hooks" + } + ] + }, + { + "port": "py", + "symbol": "libtmux.Server.show_options", + "command": "show-options", + "scope": null, + "evidence": [ + { + "at": "src/libtmux/options.py:886", + "has": [ + "show-options" + ] + }, + { + "at": "src/libtmux/options.py:928", + "has": [ + "_show_options_raw(" + ] + }, + { + "at": "src/libtmux/options.py:977", + "has": [ + "_show_options_dict(" + ] + }, + { + "at": "src/libtmux/options.py:1037", + "has": [ + "_show_options(" + ], + "in": "libtmux.Server.show_options" + } + ] + }, + { + "port": "py", + "symbol": "libtmux.Server.show_option", + "command": "show-options", + "scope": null, + "evidence": [ + { + "at": "src/libtmux/options.py:1134", + "has": [ + "show-options" + ] + }, + { + "at": "src/libtmux/options.py:1185", + "has": [ + "_show_option_raw(" + ] + }, + { + "at": "src/libtmux/options.py:1296", + "has": [ + "_show_option(" + ], + "in": "libtmux.Server.show_option" + } + ] + }, + { + "port": "py", + "symbol": "libtmux.Server.show_hook", + "command": "show-hooks", + "scope": null, + "evidence": [ + { + "at": "src/libtmux/hooks.py:364", + "has": [ + "show-hooks" + ] + }, + { + "at": "src/libtmux/hooks.py:414", + "has": [ + "_show_hook(" + ], + "in": "libtmux.Server.show_hook" + } + ] + }, + { + "port": "py", + "symbol": "libtmux.Server.set_hooks", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "src/libtmux/hooks.py:186", + "has": [ + "self.cmd(", + "\"set-hook\"" + ], + "span": 2 + }, + { + "at": "src/libtmux/hooks.py:525", + "has": [ + "self.set_hook(" + ], + "in": "libtmux.Server.set_hooks" + } + ] + }, + { + "port": "py", + "symbol": "libtmux.Session.show_options", + "command": "show-options", + "scope": null, + "evidence": [ + { + "at": "src/libtmux/options.py:886", + "has": [ + "show-options" + ] + }, + { + "at": "src/libtmux/options.py:928", + "has": [ + "_show_options_raw(" + ] + }, + { + "at": "src/libtmux/options.py:977", + "has": [ + "_show_options_dict(" + ] + }, + { + "at": "src/libtmux/options.py:1037", + "has": [ + "_show_options(" + ], + "in": "libtmux.Session.show_options" + } + ] + }, + { + "port": "py", + "symbol": "libtmux.Session.show_option", + "command": "show-options", + "scope": null, + "evidence": [ + { + "at": "src/libtmux/options.py:1134", + "has": [ + "show-options" + ] + }, + { + "at": "src/libtmux/options.py:1185", + "has": [ + "_show_option_raw(" + ] + }, + { + "at": "src/libtmux/options.py:1296", + "has": [ + "_show_option(" + ], + "in": "libtmux.Session.show_option" + } + ] + }, + { + "port": "py", + "symbol": "libtmux.Session.show_hook", + "command": "show-hooks", + "scope": null, + "evidence": [ + { + "at": "src/libtmux/hooks.py:364", + "has": [ + "show-hooks" + ] + }, + { + "at": "src/libtmux/hooks.py:414", + "has": [ + "_show_hook(" + ], + "in": "libtmux.Session.show_hook" + } + ] + }, + { + "port": "py", + "symbol": "libtmux.Session.set_hooks", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "src/libtmux/hooks.py:186", + "has": [ + "self.cmd(", + "\"set-hook\"" + ], + "span": 2 + }, + { + "at": "src/libtmux/hooks.py:525", + "has": [ + "self.set_hook(" + ], + "in": "libtmux.Session.set_hooks" + } + ] + }, + { + "port": "py", + "symbol": "libtmux.Window.show_options", + "command": "show-options", + "scope": null, + "evidence": [ + { + "at": "src/libtmux/options.py:886", + "has": [ + "show-options" + ] + }, + { + "at": "src/libtmux/options.py:928", + "has": [ + "_show_options_raw(" + ] + }, + { + "at": "src/libtmux/options.py:977", + "has": [ + "_show_options_dict(" + ] + }, + { + "at": "src/libtmux/options.py:1037", + "has": [ + "_show_options(" + ], + "in": "libtmux.Window.show_options" + } + ] + }, + { + "port": "py", + "symbol": "libtmux.Window.show_option", + "command": "show-options", + "scope": null, + "evidence": [ + { + "at": "src/libtmux/options.py:1134", + "has": [ + "show-options" + ] + }, + { + "at": "src/libtmux/options.py:1185", + "has": [ + "_show_option_raw(" + ] + }, + { + "at": "src/libtmux/options.py:1296", + "has": [ + "_show_option(" + ], + "in": "libtmux.Window.show_option" + } + ] + }, + { + "port": "py", + "symbol": "libtmux.Window.show_hook", + "command": "show-hooks", + "scope": null, + "evidence": [ + { + "at": "src/libtmux/hooks.py:364", + "has": [ + "show-hooks" + ] + }, + { + "at": "src/libtmux/hooks.py:414", + "has": [ + "_show_hook(" + ], + "in": "libtmux.Window.show_hook" + } + ] + }, + { + "port": "py", + "symbol": "libtmux.Window.set_hooks", + "command": "set-hook", + "scope": null, + "evidence": [ + { + "at": "src/libtmux/hooks.py:186", + "has": [ + "self.cmd(", + "\"set-hook\"" + ], + "span": 2 + }, + { + "at": "src/libtmux/hooks.py:525", + "has": [ + "self.set_hook(" + ], + "in": "libtmux.Window.set_hooks" + } + ] + }, + { + "port": "py", + "symbol": "libtmux.Window.new_window", + "command": "new-window", + "scope": null, + "evidence": [ + { + "at": "src/libtmux/session.py:939", + "has": [ + "new-window" + ] + }, + { + "at": "src/libtmux/window.py:1599", + "has": [ + "self.session.new_window(" + ], + "in": "libtmux.Window.new_window" + } + ] + }, + { + "port": "py", + "symbol": "libtmux.Window.split", + "command": "split-window", + "scope": null, + "evidence": [ + { + "at": "src/libtmux/pane.py:1404", + "has": [ + "split-window" + ] + }, + { + "at": "src/libtmux/window.py:609", + "has": [ + "active_pane.split(" + ], + "in": "libtmux.Window.split" + } + ] + }, + { + "port": "py", + "symbol": "libtmux.Window.new_pane", + "command": "new-pane", + "scope": null, + "evidence": [ + { + "at": "src/libtmux/pane.py:1572", + "has": [ + "new-pane" + ] + }, + { + "at": "src/libtmux/window.py:707", + "has": [ + "active_pane.new_pane(" + ], + "in": "libtmux.Window.new_pane" + } + ] + }, + { + "port": "cxx", + "symbol": "libtmux::Pane::break_out", + "command": "if-shell", + "scope": null, + "evidence": [ + { + "at": "src/entities.cpp:1287", + "has": [ + "\"if-shell\", \"-F\", \"-t\", target" + ] + }, + { + "at": "src/entities.cpp:1289", + "has": [ + "executor->run(command" + ] + }, + { + "at": "src/entities.cpp:1451", + "has": [ + "break_out_unnamed(*this" + ], + "in": "libtmux::Pane::break_out" + } + ] + }, + { + "port": "swift", + "symbol": "Server.link(_:into:)", + "command": "link-window", + "scope": null, + "evidence": [ + { + "at": "Sources/LibTmux/WindowTransfers.swift:75", + "has": [ + "\"link-window\"" + ] + }, + { + "at": "Sources/LibTmux/WindowTransfers.swift:91", + "has": [ + "runGuarded(" + ] + }, + { + "at": "Sources/LibTmux/WindowTransfers.swift:20", + "has": [ + "transfer(" + ] + }, + { + "at": "Sources/LibTmux/WindowTransfers.swift:27", + "has": [ + "moving: false" + ], + "in": "Server.link(_:into:)" + } + ] + }, + { + "port": "swift", + "symbol": "Server.move(_:to:at:)", + "command": "move-window", + "scope": null, + "evidence": [ + { + "at": "Sources/LibTmux/WindowTransfers.swift:75", + "has": [ + "\"move-window\"" + ] + }, + { + "at": "Sources/LibTmux/WindowTransfers.swift:91", + "has": [ + "runGuarded(" + ] + }, + { + "at": "Sources/LibTmux/WindowTransfers.swift:46", + "has": [ + "transfer(" + ] + }, + { + "at": "Sources/LibTmux/WindowTransfers.swift:10", + "has": [ + "moving: true" + ], + "in": "Server.move(_:to:at:)" + } + ] + }, + { + "port": "swift", + "symbol": "Server.breakPane(_:from:named:)", + "command": "break-pane", + "scope": null, + "evidence": [ + { + "at": "Sources/LibTmux/Navigation.swift:127", + "has": [ + "TmuxCommand(\"break-pane\"" + ] + }, + { + "at": "Sources/LibTmux/Navigation.swift:144", + "has": [ + "windowAppearance(" + ], + "in": "Server.breakPane(_:from:named:)" + } + ] + }, + { + "port": "swift", + "symbol": "Server.breakPane(_:from:named:)", + "command": "if-shell", + "scope": null, + "when": "no name is given", + "evidence": [ + { + "at": "Sources/LibTmux/Navigation.swift:136", + "has": [ + "\"if-shell\"" + ] + }, + { + "at": "Sources/LibTmux/Navigation.swift:144", + "has": [ + "windowAppearance(" + ], + "in": "Server.breakPane(_:from:named:)" + } + ] + }, + { + "port": "kotlin", + "symbol": "io.github.libtmux.kotlin.Options.get", + "command": "show-options", + "scope": null, + "via": { + "port": "java", + "symbol": "io.github.libtmux.Options.Options.get" + }, + "evidence": [ + { + "at": "libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Options.kt:27", + "has": [ + "java.get(name)" + ], + "in": "io.github.libtmux.kotlin.Options.get" + } + ] + }, + { + "port": "kotlin", + "symbol": "io.github.libtmux.kotlin.Options.set", + "command": "set-option", + "scope": null, + "via": { + "port": "java", + "symbol": "io.github.libtmux.Options.Options.set" + }, + "evidence": [ + { + "at": "libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Options.kt:35", + "has": [ + "java.set(name, value)" + ], + "in": "io.github.libtmux.kotlin.Options.set" + } + ] + }, + { + "port": "scala", + "symbol": "io.github.libtmux.scaladsl.cats.Options.get", + "command": "show-options", + "scope": null, + "via": { + "port": "java", + "symbol": "io.github.libtmux.Options.Options.get" + }, + "evidence": [ + { + "at": "libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala:60", + "has": [ + "self.underlying.get(name)" + ], + "in": "io.github.libtmux.scaladsl.cats.Options.get" + } + ] + }, + { + "port": "scala", + "symbol": "io.github.libtmux.scaladsl.cats.Options.set", + "command": "set-option", + "scope": null, + "via": { + "port": "java", + "symbol": "io.github.libtmux.Options.Options.set" + }, + "evidence": [ + { + "at": "libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala:74", + "has": [ + "self.underlying.set(name, value)" + ], + "in": "io.github.libtmux.scaladsl.cats.Options.set" + } + ] + }, + { + "port": "scala", + "symbol": "io.github.libtmux.scaladsl.cats.Batch.run", + "command": "display-message", + "scope": null, + "when": "the batch is not empty", + "via": { + "port": "java", + "symbol": "io.github.libtmux.batch.Batch.Batch.run" + }, + "evidence": [ + { + "at": "libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Batch.scala:26", + "has": [ + "build().run()" + ], + "in": "io.github.libtmux.scaladsl.cats.Batch.run" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Server#attach", + "command": "attach-session", + "scope": null, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/terminal.rb:60", + "has": [ + "\"attach-session\"" + ], + "in": "LibTmux::Server#attach" + }, + { + "at": "gems/libtmux/lib/libtmux/terminal.rb:62", + "has": [ + "TerminalExecution" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/terminal.rb:88", + "has": [ + "Process.spawn(", + "*@argv" + ], + "span": 2 + } + ] + }, + { + "port": "go", + "symbol": "tmux.Server.Snapshot", + "command": "list-sessions", + "scope": null, + "evidence": [ + { + "at": "tmux/snapshot_capture.go:39", + "has": [ + "\"list-sessions\"" + ] + }, + { + "at": "tmux/snapshot_capture.go:45", + "has": [ + "s.snapshotListing(" + ], + "in": "tmux.Server.Snapshot" + } + ], + "forwardable": true + }, + { + "port": "go", + "symbol": "tmux.Server.Snapshot", + "command": "list-windows", + "scope": "server", + "evidence": [ + { + "at": "tmux/snapshot_capture.go:40", + "has": [ + "\"list-windows\"", + "\"-a\"" + ] + }, + { + "at": "tmux/snapshot_capture.go:45", + "has": [ + "s.snapshotListing(" + ], + "in": "tmux.Server.Snapshot" + } + ], + "forwardable": true + }, + { + "port": "go", + "symbol": "tmux.Server.Snapshot", + "command": "list-panes", + "scope": "server", + "evidence": [ + { + "at": "tmux/snapshot_capture.go:41", + "has": [ + "\"list-panes\"", + "\"-a\"" + ] + }, + { + "at": "tmux/snapshot_capture.go:45", + "has": [ + "s.snapshotListing(" + ], + "in": "tmux.Server.Snapshot" + } + ], + "forwardable": true + }, + { + "port": "go", + "symbol": "tmux.Server.Snapshot", + "command": "list-clients", + "scope": null, + "evidence": [ + { + "at": "tmux/snapshot_capture.go:42", + "has": [ + "\"list-clients\"" + ] + }, + { + "at": "tmux/snapshot_capture.go:45", + "has": [ + "s.snapshotListing(" + ], + "in": "tmux.Server.Snapshot" + } + ], + "forwardable": true + }, + { + "port": "go", + "symbol": "tmuxtest.NewControlMode", + "command": "attach-session", + "scope": null, + "evidence": [ + { + "at": "tmux/tmuxtest/control.go:183", + "has": [ + "\"attach-session\"" + ] + }, + { + "at": "tmux/tmuxtest/control.go:185", + "has": [ + "exec.Command(arguments[0]" + ] + }, + { + "at": "tmux/tmuxtest/control.go:209", + "has": [ + "command.Start()" + ] + }, + { + "at": "tmux/tmuxtest/control.go:58", + "has": [ + "startControlMode(" + ], + "in": "tmuxtest.NewControlMode" + } + ] + }, + { + "port": "go", + "symbol": "tmuxtest.NewSession", + "command": "kill-session", + "scope": null, + "when": "the test ends, in t.Cleanup", + "evidence": [ + { + "at": "tmux/tmuxtest/resources.go:135", + "has": [ + "runCleanupCommand(server, \"kill-session\"" + ] + }, + { + "at": "tmux/tmuxtest/harness.go:549", + "has": [ + "runCommand(ctx, server, args...)" + ] + }, + { + "at": "tmux/tmuxtest/harness.go:539", + "has": [ + "server.Cmd(ctx, args...)" + ] + }, + { + "at": "tmux/tmuxtest/resources.go:56", + "has": [ + "registerSessionCleanup(" + ], + "in": "tmuxtest.NewSession" + } + ] + }, + { + "port": "java", + "symbol": "io.github.libtmux.control.ControlClient.ControlClient.attachUnfenced", + "command": "attach-session", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/control/ControlClient.java:217", + "has": [ + "\"attach-session\"" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/control/ControlClient.java:224", + "has": [ + "carrier.start(command)" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/control/ControlClient.java:156", + "has": [ + "connect(LOCAL" + ], + "in": "io.github.libtmux.control.ControlClient.ControlClient.attachUnfenced" + } + ] + }, + { + "port": "java", + "symbol": "io.github.libtmux.control.ControlClient.ControlClient.attach", + "command": "attach-session", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/control/ControlClient.java:217", + "has": [ + "\"attach-session\"" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/control/ControlClient.java:224", + "has": [ + "carrier.start(command)" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/control/ControlClient.java:196", + "has": [ + "connect(carrier" + ], + "in": "io.github.libtmux.control.ControlClient.ControlClient.attach" + } + ] + }, + { + "port": "java", + "symbol": "io.github.libtmux.Options.Options.all", + "command": "display-message", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Options.java:196", + "has": [ + "batch.add(\"display-message\"" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Options.java:198", + "has": [ + "batch.run()" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Options.java:153", + "has": [ + "withVersion(" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Options.java:140", + "has": [ + "read(List.of())" + ], + "in": "io.github.libtmux.Options.Options.all" + } + ] + }, + { + "port": "java", + "symbol": "io.github.libtmux.Options.Options.effective", + "command": "display-message", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Options.java:196", + "has": [ + "batch.add(\"display-message\"" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Options.java:198", + "has": [ + "batch.run()" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Options.java:153", + "has": [ + "withVersion(" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Options.java:319", + "has": [ + "read(List.of(\"-A\"))" + ], + "in": "io.github.libtmux.Options.Options.effective" + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.paste_bytes", + "command": "paste-buffer", + "scope": null, + "evidence": [ + { + "at": "src/pane_io.jl:243", + "has": [ + "args = [\"paste-buffer\"" + ] + }, + { + "at": "src/pane_io.jl:236", + "has": [ + "_paste_flags(usage, pane, bracketed)" + ] + }, + { + "at": "src/pane_io.jl:273", + "has": [ + "_paste_args(context, pane, bracketed)" + ] + }, + { + "at": "src/pane_io.jl:278", + "has": [ + "_operation_command(", + "args..." + ], + "span": 4, + "in": "LibTmux.paste_bytes" + }, + { + "at": "src/control_buffers.jl:178", + "has": [ + "_control_effect(" + ] + }, + { + "at": "src/control_buffers.jl:180", + "has": [ + "[args..." + ] + }, + { + "at": "src/control_buffers.jl:150", + "has": [ + "_paste_flags(" + ] + }, + { + "at": "src/control_buffers.jl:174", + "has": [ + "_control_paste_args(" + ], + "in": "LibTmux.paste_bytes" + } + ] + }, + { + "port": "cxx", + "symbol": "libtmux::Connection::connect", + "command": "attach-session", + "scope": null, + "evidence": [ + { + "at": "src/connection.cpp:360", + "has": [ + "\"attach-session\"" + ] + }, + { + "at": "src/connection.cpp:369", + "has": [ + "::posix_spawnp(" + ] + }, + { + "at": "src/connection.cpp:1043", + "has": [ + "spawn_client(options)" + ], + "in": "libtmux::Connection::connect" + } + ] + }, + { + "port": "cxx", + "symbol": "libtmux::Connection::connect", + "command": "refresh-client", + "scope": null, + "evidence": [ + { + "at": "src/connection.cpp:1089", + "has": [ + "\"refresh-client\"", + "\"new-layouts\"" + ] + }, + { + "at": "src/connection.cpp:1093", + "has": [ + "connection.execute(" + ], + "in": "libtmux::Connection::connect" + } + ] + }, + { + "port": "py", + "symbol": "libtmux.Server.new_session", + "command": "kill-session", + "scope": null, + "when": "kill_session is true, session exists", + "evidence": [ + { + "at": "src/libtmux/server.py:2312", + "has": [ + "self.cmd(\"kill-session\"", + "target=session_name" + ], + "in": "libtmux.Server.new_session" + }, + { + "at": "src/libtmux/server.py:2311", + "has": [ + "if kill_session:" + ] + } + ] + }, + { + "port": "go", + "symbol": "tmux.Server.NewSession", + "command": "kill-session", + "scope": null, + "when": "KillExisting is set, session exists", + "evidence": [ + { + "at": "tmux/session_lifecycle.go:225", + "has": [ + "effective.literalCmd(ctx, \"kill-session\"" + ], + "in": "tmux.Server.NewSession" + }, + { + "at": "tmux/session_lifecycle.go:221", + "has": [ + "!request.KillExisting" + ] + } + ] + }, + { + "port": "go", + "symbol": "tmux.Server.HasSession", + "command": "has-session", + "scope": null, + "when": "the request sets Pattern", + "evidence": [ + { + "at": "tmux/session_lifecycle.go:143", + "has": [ + "s.literalCmd(ctx, \"has-session\"" + ], + "in": "tmux.Server.HasSession" + }, + { + "at": "tmux/session_lifecycle.go:139", + "has": [ + "!request.Pattern" + ] + } + ] + }, + { + "port": "ts", + "symbol": "session.Session.selectWindow", + "command": "last-window", + "scope": null, + "when": "the target is \"last\"", + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/session_nav.ts:34", + "has": [ + "\"last-window\"", + "target === \"last\"" + ] + }, + { + "at": "packages/libtmux/src/session.ts:378", + "has": [ + "selectWindowIn(" + ], + "in": "session.Session.selectWindow" + } + ] + }, + { + "port": "ts", + "symbol": "session.Session.selectWindow", + "command": "next-window", + "scope": null, + "when": "the target is \"next\"", + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/session_nav.ts:35", + "has": [ + "\"next-window\"", + "target === \"next\"" + ] + }, + { + "at": "packages/libtmux/src/session.ts:378", + "has": [ + "selectWindowIn(" + ], + "in": "session.Session.selectWindow" + } + ] + }, + { + "port": "ts", + "symbol": "session.Session.selectWindow", + "command": "previous-window", + "scope": null, + "when": "the target is \"previous\"", + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/session_nav.ts:37", + "has": [ + "\"previous-window\"" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/session_nav.ts:36", + "has": [ + "target === \"previous\"" + ] + }, + { + "at": "packages/libtmux/src/session.ts:378", + "has": [ + "selectWindowIn(" + ], + "in": "session.Session.selectWindow" + } + ] + }, + { + "port": "ts", + "symbol": "server.Server.validateLayouts", + "command": "display-message", + "scope": null, + "when": "layouts that depend on the tmux version", + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/layout.ts:62", + "has": [ + "[\"display-message\", \"-p\", \"#{version}\"]" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/layout.ts:51", + "has": [ + "needsVersion.length === 0" + ] + }, + { + "at": "packages/libtmux/src/server.ts:955", + "has": [ + "validateLayouts(runtimeForServer(this)" + ], + "in": "server.Server.validateLayouts" + } + ] + }, + { + "port": "cxx", + "symbol": "libtmux::Server::validate_layouts", + "command": "display-message", + "scope": null, + "when": "layouts that depend on the tmux version", + "evidence": [ + { + "at": "src/layout.cpp:390", + "has": [ + "backend.run({\"display-message\"" + ] + }, + { + "at": "src/layout.cpp:386", + "has": [ + "if (!sensitive)" + ] + }, + { + "at": "src/server.cpp:687", + "has": [ + "detail::validate_layouts(*backend_" + ], + "in": "libtmux::Server::validate_layouts" + } + ] + }, + { + "port": "go", + "symbol": "tmuxtest.NewSession", + "command": "new-session", + "scope": null, + "evidence": [ + { + "at": "tmux/session_lifecycle.go:236", + "has": [ + "effective.literalCmd(ctx, arguments...)" + ] + }, + { + "at": "tmux/session_lifecycle.go:232", + "has": [ + "newSessionArguments(request)" + ] + }, + { + "at": "tmux/tmuxtest/resources.go:49", + "has": [ + "server.NewSession(ctx, request)" + ], + "in": "tmuxtest.NewSession" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Server.OpenControl", + "command": "attach-session", + "scope": null, + "evidence": [ + { + "at": "tmux/control_startup.go:155", + "has": [ + "exec.Command(state.config.executable, arguments...)" + ] + }, + { + "at": "tmux/control_startup.go:107", + "has": [ + "s.startControlWithBacklog(" + ] + }, + { + "at": "tmux/control_startup.go:96", + "has": [ + "\"attach-session\"" + ] + }, + { + "at": "tmux/identity.go:137", + "has": [ + "s.boundToInstance()" + ] + }, + { + "at": "tmux/control_startup.go:50", + "has": [ + "s.openControlWithBacklog(" + ] + }, + { + "at": "tmux/control_startup.go:42", + "has": [ + "s.openControl(" + ], + "in": "tmux.Server.OpenControl" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Server.OpenNotifications", + "command": "attach-session", + "scope": null, + "evidence": [ + { + "at": "tmux/control_startup.go:155", + "has": [ + "exec.Command(state.config.executable, arguments...)" + ] + }, + { + "at": "tmux/control_startup.go:107", + "has": [ + "s.startControlWithBacklog(" + ] + }, + { + "at": "tmux/control_startup.go:96", + "has": [ + "\"attach-session\"" + ] + }, + { + "at": "tmux/identity.go:137", + "has": [ + "s.boundToInstance()" + ] + }, + { + "at": "tmux/notification_stream.go:116", + "has": [ + "s.openControlWithBacklog(" + ], + "in": "tmux.Server.OpenNotifications" + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.open_control", + "command": "attach-session", + "scope": null, + "evidence": [ + { + "at": "src/control.jl:642", + "has": [ + "run(" + ] + }, + { + "at": "src/control.jl:628", + "has": [ + "\"attach-session\"" + ] + }, + { + "at": "src/control.jl:1095", + "has": [ + "_open_control_lane(" + ], + "in": "LibTmux.open_control" + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.set_option", + "command": "show-options", + "scope": null, + "incidental": true, + "when": "on a Server", + "evidence": [ + { + "at": "src/configuration.jl:159", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "src/configuration.jl:160", + "has": [ + "_operation_command(context, args...)" + ] + }, + { + "at": "src/configuration.jl:176", + "has": [ + "_configuration_rows(context, scope, name)" + ] + }, + { + "at": "src/configuration.jl:279", + "has": [ + "_configuration_option_rows(context, scope, args.name)" + ], + "in": "LibTmux.set_option" + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.unset_option", + "command": "show-options", + "scope": null, + "incidental": true, + "when": "on a Server", + "evidence": [ + { + "at": "src/configuration.jl:159", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "src/configuration.jl:160", + "has": [ + "_operation_command(context, args...)" + ] + }, + { + "at": "src/configuration.jl:176", + "has": [ + "_configuration_rows(context, scope, name)" + ] + }, + { + "at": "src/configuration.jl:292", + "has": [ + "_configuration_option_rows(context, scope, args.name)" + ], + "in": "LibTmux.unset_option" + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.set_hook", + "command": "show-options", + "scope": null, + "incidental": true, + "when": "on a Server", + "evidence": [ + { + "at": "src/configuration.jl:159", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "src/configuration.jl:160", + "has": [ + "_operation_command(context, args...)" + ] + }, + { + "at": "src/configuration.jl:176", + "has": [ + "_configuration_rows(context, scope, name)" + ] + }, + { + "at": "src/configuration.jl:403", + "has": [ + "_configuration_option_rows(context, scope, name)" + ] + }, + { + "at": "src/configuration.jl:477", + "has": [ + "_configuration_hook_rows(context, scope, args.name)" + ], + "in": "LibTmux.set_hook" + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.unset_hook", + "command": "show-options", + "scope": null, + "incidental": true, + "when": "on a Server", + "evidence": [ + { + "at": "src/configuration.jl:159", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "src/configuration.jl:160", + "has": [ + "_operation_command(context, args...)" + ] + }, + { + "at": "src/configuration.jl:176", + "has": [ + "_configuration_rows(context, scope, name)" + ] + }, + { + "at": "src/configuration.jl:403", + "has": [ + "_configuration_option_rows(context, scope, name)" + ] + }, + { + "at": "src/configuration.jl:485", + "has": [ + "_configuration_hook_rows(context, scope, args.name)" + ], + "in": "LibTmux.unset_hook" + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.observe_output", + "command": "list-windows", + "scope": "session", + "evidence": [ + { + "at": "src/observation.jl:503", + "has": [ + "_control_rows(", + "\"list-windows\"" + ], + "span": 4 + }, + { + "at": "src/observation.jl:535", + "has": [ + "_observation_target(connection, pane, started, timeout, cancel)" + ], + "in": "LibTmux.observe_output" + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.get_hook", + "command": "show-options", + "scope": null, + "evidence": [ + { + "at": "src/configuration.jl:159", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "src/configuration.jl:160", + "has": [ + "_operation_command(context, args...)" + ] + }, + { + "at": "src/configuration.jl:176", + "has": [ + "_configuration_rows(context, scope, name)" + ] + }, + { + "at": "src/configuration.jl:403", + "has": [ + "_configuration_option_rows(context, scope, name)" + ] + }, + { + "at": "src/configuration.jl:439", + "has": [ + "_configuration_hook_rows(context, scope, args.name)" + ], + "in": "LibTmux.get_hook" + } + ] + }, + { + "port": "cxx", + "symbol": "libtmux::Connection::set_pane_output", + "command": "refresh-client", + "scope": null, + "evidence": [ + { + "at": "src/connection.cpp:1256", + "has": [ + "execute(std::move(request), deadline)" + ], + "in": "libtmux::Connection::set_pane_output" + }, + { + "at": "src/connection.cpp:1249", + "has": [ + "\"refresh-client\"" + ] + } + ] + }, + { + "port": "csharp", + "symbol": "LibTmux.Pane.SplitAsync", + "command": "split-window", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "src/LibTmux/Pane.Topology.cs:576", + "has": [ + "_commandDispatcher.ExecuteAsync(arguments" + ] + }, + { + "at": "src/LibTmux/Pane.Topology.cs:105", + "has": [ + "\"split-window\"" + ] + }, + { + "at": "src/LibTmux/Pane.Topology.cs:232", + "has": [ + "CreatePaneFromAsync(arguments, \"split-window\"" + ], + "in": "LibTmux.Pane.SplitAsync" + } + ] + }, + { + "port": "ts", + "symbol": "pane.Pane.killIfWindowUnshared", + "command": "kill-pane", + "scope": null, + "when": "the window has one placement", + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/mutations.ts:86", + "has": [ + "planKillPaneIfUnshared(target).argv" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/plans.ts:195", + "has": [ + "[\"kill-pane\", \"-t\", target]" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/plans.ts:192", + "has": [ + "conditionalTargetMutation(" + ] + }, + { + "at": "packages/libtmux/src/pane.ts:255", + "has": [ + "killPaneIfWindowUnshared(" + ], + "in": "pane.Pane.killIfWindowUnshared" + } + ] + }, + { + "port": "ts", + "symbol": "pane.Pane.zoom", + "command": "resize-pane", + "scope": null, + "when": "the window is not zoomed", + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/topology.ts:267", + "has": [ + "runCommands(" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/topology.ts:276", + "has": [ + "quoteCommand([\"resize-pane\", \"-Z\", ...at])" + ] + }, + { + "at": "packages/libtmux/src/pane.ts:386", + "has": [ + "zoomPane(" + ], + "in": "pane.Pane.zoom" + } + ] + }, + { + "port": "ts", + "symbol": "pane.Pane.unzoom", + "command": "resize-pane", + "scope": null, + "when": "the window is zoomed", + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/topology.ts:295", + "has": [ + "runCommand(" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/topology.ts:297", + "has": [ + "quoteCommand([\"resize-pane\", \"-Z\", ...at])" + ] + }, + { + "at": "packages/libtmux/src/pane.ts:400", + "has": [ + "unzoomTarget(" + ], + "in": "pane.Pane.unzoom" + } + ] + }, + { + "port": "ts", + "symbol": "window.Window.unzoom", + "command": "resize-pane", + "scope": null, + "when": "the window is zoomed", + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/topology.ts:295", + "has": [ + "runCommand(" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/topology.ts:297", + "has": [ + "quoteCommand([\"resize-pane\", \"-Z\", ...at])" + ] + }, + { + "at": "packages/libtmux/src/window.ts:387", + "has": [ + "unzoomTarget(" + ], + "in": "window.Window.unzoom" + } + ] + }, + { + "port": "rs", + "symbol": "plan.Plan.run", + "command": "set-option", + "scope": null, + "when": "the plan has a set-option step", + "evidence": [ + { + "at": "crates/libtmux/src/plan/run.rs:461", + "has": [ + "server.cmd(first)" + ] + }, + { + "at": "crates/libtmux/src/plan/ops/options.rs:123", + "has": [ + "Command::new(\"set-option\")" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:550", + "has": [ + ".render(" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:449", + "has": [ + "self.render_step(step, bound)" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:377", + "has": [ + ".dispatch(server, &step, &bound)" + ], + "in": "plan.Plan.run" + } + ] + }, + { + "port": "rs", + "symbol": "plan.Plan.run_over_control_mode", + "command": "set-option", + "scope": null, + "when": "the plan has a set-option step", + "evidence": [ + { + "at": "crates/libtmux/src/plan/run.rs:869", + "has": [ + ".send(command)" + ] + }, + { + "at": "crates/libtmux/src/plan/ops/options.rs:123", + "has": [ + "Command::new(\"set-option\")" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:856", + "has": [ + ".render(&resolve, ())" + ], + "in": "plan.Plan.run_over_control_mode" + } + ] + }, + { + "port": "rs", + "symbol": "plan.Plan.run", + "command": "set-environment", + "scope": null, + "when": "the plan has a set-environment step", + "evidence": [ + { + "at": "crates/libtmux/src/plan/run.rs:461", + "has": [ + "server.cmd(first)" + ] + }, + { + "at": "crates/libtmux/src/plan/ops/options.rs:210", + "has": [ + "Command::new(\"set-environment\")" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:550", + "has": [ + ".render(" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:449", + "has": [ + "self.render_step(step, bound)" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:377", + "has": [ + ".dispatch(server, &step, &bound)" + ], + "in": "plan.Plan.run" + } + ] + }, + { + "port": "rs", + "symbol": "plan.Plan.run_over_control_mode", + "command": "set-environment", + "scope": null, + "when": "the plan has a set-environment step", + "evidence": [ + { + "at": "crates/libtmux/src/plan/run.rs:869", + "has": [ + ".send(command)" + ] + }, + { + "at": "crates/libtmux/src/plan/ops/options.rs:210", + "has": [ + "Command::new(\"set-environment\")" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:856", + "has": [ + ".render(&resolve, ())" + ], + "in": "plan.Plan.run_over_control_mode" + } + ] + }, + { + "port": "rs", + "symbol": "plan.Plan.run", + "command": "split-window", + "scope": null, + "when": "the plan has a split-window step", + "evidence": [ + { + "at": "crates/libtmux/src/plan/run.rs:461", + "has": [ + "server.cmd(first)" + ] + }, + { + "at": "crates/libtmux/src/plan/ops/panes.rs:257", + "has": [ + "Command::new(\"split-window\")" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:550", + "has": [ + ".render(" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:449", + "has": [ + "self.render_step(step, bound)" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:377", + "has": [ + ".dispatch(server, &step, &bound)" + ], + "in": "plan.Plan.run" + } + ] + }, + { + "port": "rs", + "symbol": "plan.Plan.run_over_control_mode", + "command": "split-window", + "scope": null, + "when": "the plan has a split-window step", + "evidence": [ + { + "at": "crates/libtmux/src/plan/run.rs:869", + "has": [ + ".send(command)" + ] + }, + { + "at": "crates/libtmux/src/plan/ops/panes.rs:257", + "has": [ + "Command::new(\"split-window\")" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:856", + "has": [ + ".render(&resolve, ())" + ], + "in": "plan.Plan.run_over_control_mode" + } + ] + }, + { + "port": "rs", + "symbol": "plan.Plan.run", + "command": "send-keys", + "scope": null, + "when": "the plan has a send-keys step", + "evidence": [ + { + "at": "crates/libtmux/src/plan/run.rs:461", + "has": [ + "server.cmd(first)" + ] + }, + { + "at": "crates/libtmux/src/plan/ops/panes.rs:412", + "has": [ + "Command::new(\"send-keys\")" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:550", + "has": [ + ".render(" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:449", + "has": [ + "self.render_step(step, bound)" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:377", + "has": [ + ".dispatch(server, &step, &bound)" + ], + "in": "plan.Plan.run" + } + ] + }, + { + "port": "rs", + "symbol": "plan.Plan.run_over_control_mode", + "command": "send-keys", + "scope": null, + "when": "the plan has a send-keys step", + "evidence": [ + { + "at": "crates/libtmux/src/plan/run.rs:869", + "has": [ + ".send(command)" + ] + }, + { + "at": "crates/libtmux/src/plan/ops/panes.rs:412", + "has": [ + "Command::new(\"send-keys\")" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:856", + "has": [ + ".render(&resolve, ())" + ], + "in": "plan.Plan.run_over_control_mode" + } + ] + }, + { + "port": "rs", + "symbol": "plan.Plan.run", + "command": "select-pane", + "scope": null, + "when": "the plan has a select-pane step", + "evidence": [ + { + "at": "crates/libtmux/src/plan/run.rs:461", + "has": [ + "server.cmd(first)" + ] + }, + { + "at": "crates/libtmux/src/plan/ops/panes.rs:481", + "has": [ + "Command::new(\"select-pane\")" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:550", + "has": [ + ".render(" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:449", + "has": [ + "self.render_step(step, bound)" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:377", + "has": [ + ".dispatch(server, &step, &bound)" + ], + "in": "plan.Plan.run" + } + ] + }, + { + "port": "rs", + "symbol": "plan.Plan.run_over_control_mode", + "command": "select-pane", + "scope": null, + "when": "the plan has a select-pane step", + "evidence": [ + { + "at": "crates/libtmux/src/plan/run.rs:869", + "has": [ + ".send(command)" + ] + }, + { + "at": "crates/libtmux/src/plan/ops/panes.rs:481", + "has": [ + "Command::new(\"select-pane\")" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:856", + "has": [ + ".render(&resolve, ())" + ], + "in": "plan.Plan.run_over_control_mode" + } + ] + }, + { + "port": "rs", + "symbol": "plan.Plan.run", + "command": "capture-pane", + "scope": null, + "when": "the plan has a capture-pane step", + "evidence": [ + { + "at": "crates/libtmux/src/plan/run.rs:461", + "has": [ + "server.cmd(first)" + ] + }, + { + "at": "crates/libtmux/src/plan/ops/panes.rs:531", + "has": [ + "Command::new(\"capture-pane\")" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:550", + "has": [ + ".render(" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:449", + "has": [ + "self.render_step(step, bound)" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:377", + "has": [ + ".dispatch(server, &step, &bound)" + ], + "in": "plan.Plan.run" + } + ] + }, + { + "port": "rs", + "symbol": "plan.Plan.run_over_control_mode", + "command": "capture-pane", + "scope": null, + "when": "the plan has a capture-pane step", + "evidence": [ + { + "at": "crates/libtmux/src/plan/run.rs:869", + "has": [ + ".send(command)" + ] + }, + { + "at": "crates/libtmux/src/plan/ops/panes.rs:531", + "has": [ + "Command::new(\"capture-pane\")" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:856", + "has": [ + ".render(&resolve, ())" + ], + "in": "plan.Plan.run_over_control_mode" + } + ] + }, + { + "port": "rs", + "symbol": "plan.Plan.run", + "command": "kill-pane", + "scope": null, + "when": "the plan has a kill-pane step", + "evidence": [ + { + "at": "crates/libtmux/src/plan/run.rs:461", + "has": [ + "server.cmd(first)" + ] + }, + { + "at": "crates/libtmux/src/plan/ops/panes.rs:580", + "has": [ + "Command::new(\"kill-pane\")" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:550", + "has": [ + ".render(" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:449", + "has": [ + "self.render_step(step, bound)" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:377", + "has": [ + ".dispatch(server, &step, &bound)" + ], + "in": "plan.Plan.run" + } + ] + }, + { + "port": "rs", + "symbol": "plan.Plan.run_over_control_mode", + "command": "kill-pane", + "scope": null, + "when": "the plan has a kill-pane step", + "evidence": [ + { + "at": "crates/libtmux/src/plan/run.rs:869", + "has": [ + ".send(command)" + ] + }, + { + "at": "crates/libtmux/src/plan/ops/panes.rs:580", + "has": [ + "Command::new(\"kill-pane\")" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:856", + "has": [ + ".render(&resolve, ())" + ], + "in": "plan.Plan.run_over_control_mode" + } + ] + }, + { + "port": "rs", + "symbol": "plan.Plan.run", + "command": "new-session", + "scope": null, + "when": "the plan has a new-session step", + "evidence": [ + { + "at": "crates/libtmux/src/plan/run.rs:461", + "has": [ + "server.cmd(first)" + ] + }, + { + "at": "crates/libtmux/src/plan/ops/sessions.rs:92", + "has": [ + "Command::new(\"new-session\")" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:550", + "has": [ + ".render(" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:449", + "has": [ + "self.render_step(step, bound)" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:377", + "has": [ + ".dispatch(server, &step, &bound)" + ], + "in": "plan.Plan.run" + } + ] + }, + { + "port": "rs", + "symbol": "plan.Plan.run_over_control_mode", + "command": "new-session", + "scope": null, + "when": "the plan has a new-session step", + "evidence": [ + { + "at": "crates/libtmux/src/plan/run.rs:869", + "has": [ + ".send(command)" + ] + }, + { + "at": "crates/libtmux/src/plan/ops/sessions.rs:92", + "has": [ + "Command::new(\"new-session\")" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:856", + "has": [ + ".render(&resolve, ())" + ], + "in": "plan.Plan.run_over_control_mode" + } + ] + }, + { + "port": "rs", + "symbol": "plan.Plan.run", + "command": "run-shell", + "scope": null, + "when": "the plan has a run-shell step", + "evidence": [ + { + "at": "crates/libtmux/src/plan/run.rs:461", + "has": [ + "server.cmd(first)" + ] + }, + { + "at": "crates/libtmux/src/plan/ops/timing.rs:81", + "has": [ + "Command::new(\"run-shell\")" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:550", + "has": [ + ".render(" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:449", + "has": [ + "self.render_step(step, bound)" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:377", + "has": [ + ".dispatch(server, &step, &bound)" + ], + "in": "plan.Plan.run" + } + ] + }, + { + "port": "rs", + "symbol": "plan.Plan.run", + "command": "new-window", + "scope": null, + "when": "the plan has a new-window step", + "evidence": [ + { + "at": "crates/libtmux/src/plan/run.rs:461", + "has": [ + "server.cmd(first)" + ] + }, + { + "at": "crates/libtmux/src/plan/ops/windows.rs:151", + "has": [ + "Command::new(\"new-window\")" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:550", + "has": [ + ".render(" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:449", + "has": [ + "self.render_step(step, bound)" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:377", + "has": [ + ".dispatch(server, &step, &bound)" + ], + "in": "plan.Plan.run" + } + ] + }, + { + "port": "rs", + "symbol": "plan.Plan.run_over_control_mode", + "command": "new-window", + "scope": null, + "when": "the plan has a new-window step", + "evidence": [ + { + "at": "crates/libtmux/src/plan/run.rs:869", + "has": [ + ".send(command)" + ] + }, + { + "at": "crates/libtmux/src/plan/ops/windows.rs:151", + "has": [ + "Command::new(\"new-window\")" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:856", + "has": [ + ".render(&resolve, ())" + ], + "in": "plan.Plan.run_over_control_mode" + } + ] + }, + { + "port": "rs", + "symbol": "plan.Plan.run", + "command": "select-window", + "scope": null, + "when": "the plan has a select-window step", + "evidence": [ + { + "at": "crates/libtmux/src/plan/run.rs:461", + "has": [ + "server.cmd(first)" + ] + }, + { + "at": "crates/libtmux/src/plan/ops/windows.rs:223", + "has": [ + "Command::new(\"select-window\")" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:550", + "has": [ + ".render(" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:449", + "has": [ + "self.render_step(step, bound)" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:377", + "has": [ + ".dispatch(server, &step, &bound)" + ], + "in": "plan.Plan.run" + } + ] + }, + { + "port": "rs", + "symbol": "plan.Plan.run_over_control_mode", + "command": "select-window", + "scope": null, + "when": "the plan has a select-window step", + "evidence": [ + { + "at": "crates/libtmux/src/plan/run.rs:869", + "has": [ + ".send(command)" + ] + }, + { + "at": "crates/libtmux/src/plan/ops/windows.rs:223", + "has": [ + "Command::new(\"select-window\")" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:856", + "has": [ + ".render(&resolve, ())" + ], + "in": "plan.Plan.run_over_control_mode" + } + ] + }, + { + "port": "rs", + "symbol": "plan.Plan.run", + "command": "rename-window", + "scope": null, + "when": "the plan has a rename-window step", + "evidence": [ + { + "at": "crates/libtmux/src/plan/run.rs:461", + "has": [ + "server.cmd(first)" + ] + }, + { + "at": "crates/libtmux/src/plan/ops/windows.rs:271", + "has": [ + "Command::new(\"rename-window\")" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:550", + "has": [ + ".render(" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:449", + "has": [ + "self.render_step(step, bound)" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:377", + "has": [ + ".dispatch(server, &step, &bound)" + ], + "in": "plan.Plan.run" + } + ] + }, + { + "port": "rs", + "symbol": "plan.Plan.run_over_control_mode", + "command": "rename-window", + "scope": null, + "when": "the plan has a rename-window step", + "evidence": [ + { + "at": "crates/libtmux/src/plan/run.rs:869", + "has": [ + ".send(command)" + ] + }, + { + "at": "crates/libtmux/src/plan/ops/windows.rs:271", + "has": [ + "Command::new(\"rename-window\")" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:856", + "has": [ + ".render(&resolve, ())" + ], + "in": "plan.Plan.run_over_control_mode" + } + ] + }, + { + "port": "rs", + "symbol": "plan.Plan.run", + "command": "kill-window", + "scope": null, + "when": "the plan has a kill-window step", + "evidence": [ + { + "at": "crates/libtmux/src/plan/run.rs:461", + "has": [ + "server.cmd(first)" + ] + }, + { + "at": "crates/libtmux/src/plan/ops/windows.rs:317", + "has": [ + "Command::new(\"kill-window\")" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:550", + "has": [ + ".render(" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:449", + "has": [ + "self.render_step(step, bound)" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:377", + "has": [ + ".dispatch(server, &step, &bound)" + ], + "in": "plan.Plan.run" + } + ] + }, + { + "port": "rs", + "symbol": "plan.Plan.run_over_control_mode", + "command": "kill-window", + "scope": null, + "when": "the plan has a kill-window step", + "evidence": [ + { + "at": "crates/libtmux/src/plan/run.rs:869", + "has": [ + ".send(command)" + ] + }, + { + "at": "crates/libtmux/src/plan/ops/windows.rs:317", + "has": [ + "Command::new(\"kill-window\")" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:856", + "has": [ + ".render(&resolve, ())" + ], + "in": "plan.Plan.run_over_control_mode" + } + ] + }, + { + "port": "rs", + "symbol": "plan.Plan.run", + "command": "select-layout", + "scope": null, + "when": "the plan has a select-layout step", + "evidence": [ + { + "at": "crates/libtmux/src/plan/run.rs:461", + "has": [ + "server.cmd(first)" + ] + }, + { + "at": "crates/libtmux/src/plan/ops/windows.rs:370", + "has": [ + "Command::new(\"select-layout\")" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:550", + "has": [ + ".render(" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:449", + "has": [ + "self.render_step(step, bound)" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:377", + "has": [ + ".dispatch(server, &step, &bound)" + ], + "in": "plan.Plan.run" + } + ] + }, + { + "port": "rs", + "symbol": "plan.Plan.run_over_control_mode", + "command": "select-layout", + "scope": null, + "when": "the plan has a select-layout step", + "evidence": [ + { + "at": "crates/libtmux/src/plan/run.rs:869", + "has": [ + ".send(command)" + ] + }, + { + "at": "crates/libtmux/src/plan/ops/windows.rs:370", + "has": [ + "Command::new(\"select-layout\")" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:856", + "has": [ + ".render(&resolve, ())" + ], + "in": "plan.Plan.run_over_control_mode" + } + ] + }, + { + "port": "cxx", + "symbol": "libtmux::Pane::break_out", + "command": "break-pane", + "scope": null, + "when": "the window has several panes", + "evidence": [ + { + "at": "src/entities.cpp:1289", + "has": [ + "executor->run(command" + ] + }, + { + "at": "src/entities.cpp:1287", + "has": [ + "\"if-shell\", \"-F\", \"-t\", target" + ] + }, + { + "at": "src/entities.cpp:1279", + "has": [ + "break-pane -d -s" + ] + }, + { + "at": "src/entities.cpp:1451", + "has": [ + "break_out_unnamed(*this" + ], + "in": "libtmux::Pane::break_out" + } + ] + }, + { + "port": "cxx", + "symbol": "libtmux::Pane::break_out", + "command": "rename-window", + "scope": null, + "when": "named, and the window has one pane", + "evidence": [ + { + "at": "src/entities.cpp:1373", + "has": [ + "executor->run(command" + ] + }, + { + "at": "src/entities.cpp:1371", + "has": [ + "\"if-shell\", \"-F\", \"-t\", target" + ] + }, + { + "at": "src/entities.cpp:1366", + "has": [ + "rename-window -t" + ] + }, + { + "at": "src/entities.cpp:1452", + "has": [ + "break_out_named(*this" + ], + "in": "libtmux::Pane::break_out" + } + ] + }, + { + "port": "cxx", + "symbol": "libtmux::Pane::break_out", + "command": "display-message", + "scope": null, + "when": "the window has one pane", + "evidence": [ + { + "at": "src/entities.cpp:1289", + "has": [ + "executor->run(command" + ] + }, + { + "at": "src/entities.cpp:1287", + "has": [ + "\"if-shell\", \"-F\", \"-t\", target" + ] + }, + { + "at": "src/entities.cpp:1281", + "has": [ + "display-message -p -t" + ] + }, + { + "at": "src/entities.cpp:1451", + "has": [ + "break_out_unnamed(*this" + ], + "in": "libtmux::Pane::break_out" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Session#kill", + "command": "if-shell", + "scope": null, + "when": "expected windows or panes are given", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/operations.rb:172", + "has": [ + "names.fetch(\"if-shell\")" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:171", + "has": [ + "names.fetch(\"kill-session\")" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:257", + "has": [ + "kill_session_with_windows" + ], + "in": "LibTmux::Session#kill" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Server.Window", + "command": "list-windows", + "scope": "session", + "forwardable": true, + "evidence": [ + { + "at": "tmux/lookup.go:198", + "has": [ + "s.snapshotListing(" + ] + }, + { + "at": "tmux/lookup.go:196", + "has": [ + "\"-t\", identifier" + ] + }, + { + "at": "tmux/lookup.go:139", + "has": [ + "s.livePointWithTargetValidation(" + ] + }, + { + "at": "tmux/lookup.go:62", + "has": [ + "\"list-windows\", true)" + ], + "in": "tmux.Server.Window" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Server.Pane", + "command": "list-panes", + "scope": "window", + "forwardable": true, + "evidence": [ + { + "at": "tmux/lookup.go:198", + "has": [ + "s.snapshotListing(" + ] + }, + { + "at": "tmux/lookup.go:196", + "has": [ + "\"-t\", identifier" + ] + }, + { + "at": "tmux/lookup.go:139", + "has": [ + "s.livePointWithTargetValidation(" + ] + }, + { + "at": "tmux/lookup.go:79", + "has": [ + "\"list-panes\", true)" + ], + "in": "tmux.Server.Pane" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Server.Session", + "command": "run-shell", + "scope": null, + "when": "the Server has no daemon identity", + "forwardable": true, + "evidence": [ + { + "at": "tmux/identity.go:226", + "has": [ + "probe.runCheckedCommand(" + ] + }, + { + "at": "tmux/identity.go:227", + "has": [ + "identityProbeArguments(" + ] + }, + { + "at": "tmux/identity.go:339", + "has": [ + "\"run-shell\"" + ] + }, + { + "at": "tmux/identity.go:220", + "has": [ + "if s.daemon != nil {" + ] + }, + { + "at": "tmux/identity.go:216", + "has": [ + "s.probeServerIdentity(" + ] + }, + { + "at": "tmux/lookup.go:179", + "has": [ + "s.probeSnapshotIdentity(ctx)" + ] + }, + { + "at": "tmux/lookup.go:139", + "has": [ + "s.livePointWithTargetValidation(" + ] + }, + { + "at": "tmux/lookup.go:11", + "has": [ + "s.livePoint(" + ], + "in": "tmux.Server.Session" + } + ], + "incidental": true + }, + { + "port": "go", + "symbol": "tmux.Server.Window", + "command": "run-shell", + "scope": null, + "when": "the Server has no daemon identity", + "forwardable": true, + "evidence": [ + { + "at": "tmux/identity.go:226", + "has": [ + "probe.runCheckedCommand(" + ] + }, + { + "at": "tmux/identity.go:227", + "has": [ + "identityProbeArguments(" + ] + }, + { + "at": "tmux/identity.go:339", + "has": [ + "\"run-shell\"" + ] + }, + { + "at": "tmux/identity.go:220", + "has": [ + "if s.daemon != nil {" + ] + }, + { + "at": "tmux/identity.go:216", + "has": [ + "s.probeServerIdentity(" + ] + }, + { + "at": "tmux/lookup.go:179", + "has": [ + "s.probeSnapshotIdentity(ctx)" + ] + }, + { + "at": "tmux/lookup.go:139", + "has": [ + "s.livePointWithTargetValidation(" + ] + }, + { + "at": "tmux/lookup.go:62", + "has": [ + "s.livePoint(" + ], + "in": "tmux.Server.Window" + } + ], + "incidental": true + }, + { + "port": "go", + "symbol": "tmux.Server.Pane", + "command": "run-shell", + "scope": null, + "when": "the Server has no daemon identity", + "forwardable": true, + "evidence": [ + { + "at": "tmux/identity.go:226", + "has": [ + "probe.runCheckedCommand(" + ] + }, + { + "at": "tmux/identity.go:227", + "has": [ + "identityProbeArguments(" + ] + }, + { + "at": "tmux/identity.go:339", + "has": [ + "\"run-shell\"" + ] + }, + { + "at": "tmux/identity.go:220", + "has": [ + "if s.daemon != nil {" + ] + }, + { + "at": "tmux/identity.go:216", + "has": [ + "s.probeServerIdentity(" + ] + }, + { + "at": "tmux/lookup.go:179", + "has": [ + "s.probeSnapshotIdentity(ctx)" + ] + }, + { + "at": "tmux/lookup.go:139", + "has": [ + "s.livePointWithTargetValidation(" + ] + }, + { + "at": "tmux/lookup.go:79", + "has": [ + "s.livePoint(" + ], + "in": "tmux.Server.Pane" + } + ], + "incidental": true + }, + { + "port": "go", + "symbol": "tmux.Server.Client", + "command": "run-shell", + "scope": null, + "when": "the Server has no daemon identity", + "forwardable": true, + "evidence": [ + { + "at": "tmux/identity.go:226", + "has": [ + "probe.runCheckedCommand(" + ] + }, + { + "at": "tmux/identity.go:227", + "has": [ + "identityProbeArguments(" + ] + }, + { + "at": "tmux/identity.go:339", + "has": [ + "\"run-shell\"" + ] + }, + { + "at": "tmux/identity.go:220", + "has": [ + "if s.daemon != nil {" + ] + }, + { + "at": "tmux/identity.go:216", + "has": [ + "s.probeServerIdentity(" + ] + }, + { + "at": "tmux/lookup.go:179", + "has": [ + "s.probeSnapshotIdentity(ctx)" + ] + }, + { + "at": "tmux/lookup.go:139", + "has": [ + "s.livePointWithTargetValidation(" + ] + }, + { + "at": "tmux/lookup.go:94", + "has": [ + "s.livePoint(" + ], + "in": "tmux.Server.Client" + } + ], + "incidental": true + }, + { + "port": "go", + "symbol": "tmux.Server.NewSession", + "command": "list-sessions", + "scope": null, + "when": "a name is given", + "evidence": [ + { + "at": "tmux/session_lifecycle.go:157", + "has": [ + "s.literalCmd(ctx, \"list-sessions\"" + ] + }, + { + "at": "tmux/session_lifecycle.go:210", + "has": [ + "if request.Name != \"\"" + ] + }, + { + "at": "tmux/session_lifecycle.go:217", + "has": [ + "effective.sessionNamed(ctx, request.Name)" + ], + "in": "tmux.Server.NewSession" + } + ], + "incidental": true + }, + { + "port": "go", + "symbol": "tmux.Server.NewSessionConnection", + "command": "list-sessions", + "scope": null, + "when": "a name is given", + "evidence": [ + { + "at": "tmux/session_lifecycle.go:157", + "has": [ + "s.literalCmd(ctx, \"list-sessions\"" + ] + }, + { + "at": "tmux/connection.go:184", + "has": [ + "if request.Name != \"\"" + ] + }, + { + "at": "tmux/connection.go:185", + "has": [ + "effective.sessionNamed(ctx, request.Name)" + ], + "in": "tmux.Server.NewSessionConnection" + } + ], + "incidental": true + }, + { + "port": "swift", + "symbol": "Server.capture(_:includingHistory:maximumLines:)", + "command": "capture-pane", + "scope": null, + "evidence": [ + { + "at": "Sources/LibTmux/PaneInteraction.swift:295", + "has": [ + "runIsolated(" + ] + }, + { + "at": "Sources/LibTmux/PaneInteraction.swift:296", + "has": [ + "\"capture-pane\"" + ] + }, + { + "at": "Sources/LibTmux/PaneInteraction.swift:139", + "has": [ + "captureTail(" + ] + }, + { + "at": "Sources/LibTmux/PaneInteraction.swift:103", + "has": [ + "captureTail(" + ], + "in": "Server.capture(_:includingHistory:maximumLines:)" + } + ] + }, + { + "port": "swift", + "symbol": "Server.capture(_:includingHistory:maximumLines:)", + "command": "display-message", + "scope": null, + "evidence": [ + { + "at": "Sources/LibTmux/Formats.swift:364", + "has": [ + "runGuarded(command, by: values" + ] + }, + { + "at": "Sources/LibTmux/Formats.swift:359", + "has": [ + "\"display-message\"" + ] + }, + { + "at": "Sources/LibTmux/Formats.swift:314", + "has": [ + "format(" + ] + }, + { + "at": "Sources/LibTmux/PaneInteraction.swift:322", + "has": [ + "formatGlobal(" + ] + }, + { + "at": "Sources/LibTmux/PaneInteraction.swift:138", + "has": [ + "captureBounds(for: pane)" + ] + }, + { + "at": "Sources/LibTmux/PaneInteraction.swift:103", + "has": [ + "captureTail(" + ], + "in": "Server.capture(_:includingHistory:maximumLines:)" + } + ], + "incidental": true + }, + { + "port": "swift", + "symbol": "Server.captureRange(_:startingAt:endingAt:joiningWrappedLines:maximumLines:)", + "command": "display-message", + "scope": null, + "evidence": [ + { + "at": "Sources/LibTmux/Formats.swift:364", + "has": [ + "runGuarded(command, by: values" + ] + }, + { + "at": "Sources/LibTmux/Formats.swift:359", + "has": [ + "\"display-message\"" + ] + }, + { + "at": "Sources/LibTmux/Formats.swift:314", + "has": [ + "format(" + ] + }, + { + "at": "Sources/LibTmux/PaneInteraction.swift:322", + "has": [ + "formatGlobal(" + ] + }, + { + "at": "Sources/LibTmux/PaneInteraction.swift:119", + "has": [ + "captureBounds(for: pane)" + ], + "in": "Server.captureRange(_:startingAt:endingAt:joiningWrappedLines:maximumLines:)" + } + ], + "incidental": true + }, + { + "port": "swift", + "symbol": "Server.link(_:into:)", + "command": "list-windows", + "scope": "server", + "evidence": [ + { + "at": "Sources/LibTmux/Server.swift:273", + "has": [ + "list(" + ] + }, + { + "at": "Sources/LibTmux/Server.swift:274", + "has": [ + "\"list-windows\", [\"-a\"" + ] + }, + { + "at": "Sources/LibTmux/Server.swift:269", + "has": [ + "windowListingRows()" + ] + }, + { + "at": "Sources/LibTmux/WindowTransfers.swift:82", + "has": [ + "windowLinks()" + ] + }, + { + "at": "Sources/LibTmux/WindowTransfers.swift:20", + "has": [ + "transfer(" + ], + "in": "Server.link(_:into:)" + } + ], + "incidental": true + }, + { + "port": "swift", + "symbol": "Server.move(_:to:at:)", + "command": "list-windows", + "scope": "server", + "when": "no index is given", + "evidence": [ + { + "at": "Sources/LibTmux/Server.swift:273", + "has": [ + "list(" + ] + }, + { + "at": "Sources/LibTmux/Server.swift:274", + "has": [ + "\"list-windows\", [\"-a\"" + ] + }, + { + "at": "Sources/LibTmux/Server.swift:269", + "has": [ + "windowListingRows()" + ] + }, + { + "at": "Sources/LibTmux/WindowTransfers.swift:82", + "has": [ + "windowLinks()" + ] + }, + { + "at": "Sources/LibTmux/WindowTransfers.swift:79", + "has": [ + "if let requestedIndex" + ] + }, + { + "at": "Sources/LibTmux/WindowTransfers.swift:46", + "has": [ + "transfer(" + ] + }, + { + "at": "Sources/LibTmux/WindowTransfers.swift:10", + "has": [ + "transfer(" + ], + "in": "Server.move(_:to:at:)" + } + ], + "incidental": true + }, + { + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.sendKeys", + "command": "display-message", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:735", + "has": [ + "server.run(" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:737", + "has": [ + "\"display-message\"" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:656", + "has": [ + "expand(\"#{pane_synchronized}\")" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:577", + "has": [ + "keyRecipients()" + ], + "in": "io.github.libtmux.Pane.Pane.sendKeys" + } + ], + "incidental": true + }, + { + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.sendLiteral", + "command": "display-message", + "scope": null, + "forwardable": true, + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:735", + "has": [ + "server.run(" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:737", + "has": [ + "\"display-message\"" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:656", + "has": [ + "expand(\"#{pane_synchronized}\")" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:619", + "has": [ + "keyRecipients()" + ], + "in": "io.github.libtmux.Pane.Pane.sendLiteral" + } + ], + "incidental": true + }, + { + "port": "java", + "symbol": "io.github.libtmux.mcp.Main.Main.main", + "command": "start-server", + "scope": null, + "when": "the launch chooses no socket", + "evidence": [ + { + "at": "libtmux-mcp/src/main/java/io/github/libtmux/mcp/LaunchConfiguration.java:106", + "has": [ + "server.cmd(\"start-server\"" + ] + }, + { + "at": "libtmux-mcp/src/main/java/io/github/libtmux/mcp/LaunchConfiguration.java:88", + "has": [ + "dedicatedProfile(server)" + ] + }, + { + "at": "libtmux-mcp/src/main/java/io/github/libtmux/mcp/Main.java:52", + "has": [ + "launch.profile(server)" + ], + "in": "io.github.libtmux.mcp.Main.Main.main" + } + ] + }, + { + "port": "java", + "symbol": "io.github.libtmux.mcp.Main.Main.main", + "command": "display-message", + "scope": null, + "evidence": [ + { + "at": "libtmux-mcp/src/main/java/io/github/libtmux/mcp/LaunchConfiguration.java:111", + "has": [ + "server.cmd(\"display-message\"" + ] + }, + { + "at": "libtmux-mcp/src/main/java/io/github/libtmux/mcp/LaunchConfiguration.java:88", + "has": [ + "dedicatedProfile(server)" + ] + }, + { + "at": "libtmux-mcp/src/main/java/io/github/libtmux/mcp/Main.java:52", + "has": [ + "launch.profile(server)" + ], + "in": "io.github.libtmux.mcp.Main.Main.main" + } + ] + }, + { + "port": "go", + "symbol": "tmux.Server.SearchSessions", + "command": "run-shell", + "scope": null, + "when": "the Server has no daemon identity", + "forwardable": true, + "evidence": [ + { + "at": "tmux/identity.go:226", + "has": [ + "probe.runCheckedCommand(" + ] + }, + { + "at": "tmux/identity.go:227", + "has": [ + "identityProbeArguments(" + ] + }, + { + "at": "tmux/identity.go:339", + "has": [ + "\"run-shell\"" + ] + }, + { + "at": "tmux/identity.go:220", + "has": [ + "if s.daemon != nil {" + ] + }, + { + "at": "tmux/identity.go:216", + "has": [ + "s.probeServerIdentity(" + ] + }, + { + "at": "tmux/search.go:195", + "has": [ + "s.probeSnapshotIdentity(ctx)" + ] + }, + { + "at": "tmux/search.go:175", + "has": [ + "s.searchSnapshotProjected(" + ] + }, + { + "at": "tmux/search.go:28", + "has": [ + "searchSnapshot(" + ], + "in": "tmux.Server.SearchSessions" + } + ], + "incidental": true + }, + { + "port": "go", + "symbol": "tmux.Server.SearchClients", + "command": "run-shell", + "scope": null, + "when": "the Server has no daemon identity", + "forwardable": true, + "evidence": [ + { + "at": "tmux/identity.go:226", + "has": [ + "probe.runCheckedCommand(" + ] + }, + { + "at": "tmux/identity.go:227", + "has": [ + "identityProbeArguments(" + ] + }, + { + "at": "tmux/identity.go:339", + "has": [ + "\"run-shell\"" + ] + }, + { + "at": "tmux/identity.go:220", + "has": [ + "if s.daemon != nil {" + ] + }, + { + "at": "tmux/identity.go:216", + "has": [ + "s.probeServerIdentity(" + ] + }, + { + "at": "tmux/search.go:195", + "has": [ + "s.probeSnapshotIdentity(ctx)" + ] + }, + { + "at": "tmux/search.go:175", + "has": [ + "s.searchSnapshotProjected(" + ] + }, + { + "at": "tmux/search.go:46", + "has": [ + "searchSnapshot(" + ], + "in": "tmux.Server.SearchClients" + } + ], + "incidental": true + }, + { + "port": "go", + "symbol": "tmux.Server.SearchWindows", + "command": "run-shell", + "scope": null, + "when": "the Server has no daemon identity", + "forwardable": true, + "evidence": [ + { + "at": "tmux/identity.go:226", + "has": [ + "probe.runCheckedCommand(" + ] + }, + { + "at": "tmux/identity.go:227", + "has": [ + "identityProbeArguments(" + ] + }, + { + "at": "tmux/identity.go:339", + "has": [ + "\"run-shell\"" + ] + }, + { + "at": "tmux/identity.go:220", + "has": [ + "if s.daemon != nil {" + ] + }, + { + "at": "tmux/identity.go:216", + "has": [ + "s.probeServerIdentity(" + ] + }, + { + "at": "tmux/search.go:195", + "has": [ + "s.probeSnapshotIdentity(ctx)" + ] + }, + { + "at": "tmux/search.go:175", + "has": [ + "s.searchSnapshotProjected(" + ] + }, + { + "at": "tmux/search.go:62", + "has": [ + "searchSnapshot(" + ], + "in": "tmux.Server.SearchWindows" + } + ], + "incidental": true + }, + { + "port": "go", + "symbol": "tmux.Server.SearchPanes", + "command": "run-shell", + "scope": null, + "when": "the Server has no daemon identity", + "forwardable": true, + "evidence": [ + { + "at": "tmux/identity.go:226", + "has": [ + "probe.runCheckedCommand(" + ] + }, + { + "at": "tmux/identity.go:227", + "has": [ + "identityProbeArguments(" + ] + }, + { + "at": "tmux/identity.go:339", + "has": [ + "\"run-shell\"" + ] + }, + { + "at": "tmux/identity.go:220", + "has": [ + "if s.daemon != nil {" + ] + }, + { + "at": "tmux/identity.go:216", + "has": [ + "s.probeServerIdentity(" + ] + }, + { + "at": "tmux/search.go:195", + "has": [ + "s.probeSnapshotIdentity(ctx)" + ] + }, + { + "at": "tmux/search.go:175", + "has": [ + "s.searchSnapshotProjected(" + ] + }, + { + "at": "tmux/search.go:78", + "has": [ + "searchSnapshot(" + ], + "in": "tmux.Server.SearchPanes" + } + ], + "incidental": true + }, + { + "port": "go", + "symbol": "tmux.Session.SearchWindows", + "command": "run-shell", + "scope": null, + "when": "the Server has no daemon identity", + "forwardable": true, + "evidence": [ + { + "at": "tmux/identity.go:226", + "has": [ + "probe.runCheckedCommand(" + ] + }, + { + "at": "tmux/identity.go:227", + "has": [ + "identityProbeArguments(" + ] + }, + { + "at": "tmux/identity.go:339", + "has": [ + "\"run-shell\"" + ] + }, + { + "at": "tmux/identity.go:220", + "has": [ + "if s.daemon != nil {" + ] + }, + { + "at": "tmux/identity.go:216", + "has": [ + "s.probeServerIdentity(" + ] + }, + { + "at": "tmux/search.go:195", + "has": [ + "s.probeSnapshotIdentity(ctx)" + ] + }, + { + "at": "tmux/search.go:175", + "has": [ + "s.searchSnapshotProjected(" + ] + }, + { + "at": "tmux/search.go:100", + "has": [ + "searchSnapshot(" + ], + "in": "tmux.Session.SearchWindows" + } + ], + "incidental": true + }, + { + "port": "go", + "symbol": "tmux.Session.SearchPanes", + "command": "run-shell", + "scope": null, + "when": "the Server has no daemon identity", + "forwardable": true, + "evidence": [ + { + "at": "tmux/identity.go:226", + "has": [ + "probe.runCheckedCommand(" + ] + }, + { + "at": "tmux/identity.go:227", + "has": [ + "identityProbeArguments(" + ] + }, + { + "at": "tmux/identity.go:339", + "has": [ + "\"run-shell\"" + ] + }, + { + "at": "tmux/identity.go:220", + "has": [ + "if s.daemon != nil {" + ] + }, + { + "at": "tmux/identity.go:216", + "has": [ + "s.probeServerIdentity(" + ] + }, + { + "at": "tmux/search.go:195", + "has": [ + "s.probeSnapshotIdentity(ctx)" + ] + }, + { + "at": "tmux/search.go:175", + "has": [ + "s.searchSnapshotProjected(" + ] + }, + { + "at": "tmux/search.go:127", + "has": [ + "searchSnapshot(" + ], + "in": "tmux.Session.SearchPanes" + } + ], + "incidental": true + }, + { + "port": "go", + "symbol": "tmux.Window.SearchPanes", + "command": "run-shell", + "scope": null, + "when": "the Server has no daemon identity", + "forwardable": true, + "evidence": [ + { + "at": "tmux/identity.go:226", + "has": [ + "probe.runCheckedCommand(" + ] + }, + { + "at": "tmux/identity.go:227", + "has": [ + "identityProbeArguments(" + ] + }, + { + "at": "tmux/identity.go:339", + "has": [ + "\"run-shell\"" + ] + }, + { + "at": "tmux/identity.go:220", + "has": [ + "if s.daemon != nil {" + ] + }, + { + "at": "tmux/identity.go:216", + "has": [ + "s.probeServerIdentity(" + ] + }, + { + "at": "tmux/search.go:195", + "has": [ + "s.probeSnapshotIdentity(ctx)" + ] + }, + { + "at": "tmux/search.go:175", + "has": [ + "s.searchSnapshotProjected(" + ] + }, + { + "at": "tmux/search.go:152", + "has": [ + "searchSnapshot(" + ], + "in": "tmux.Window.SearchPanes" + } + ], + "incidental": true + }, + { + "port": "go", + "symbol": "tmux.Server.SessionByName", + "command": "run-shell", + "scope": null, + "when": "the Server has no daemon identity", + "forwardable": true, + "evidence": [ + { + "at": "tmux/identity.go:226", + "has": [ + "probe.runCheckedCommand(" + ] + }, + { + "at": "tmux/identity.go:227", + "has": [ + "identityProbeArguments(" + ] + }, + { + "at": "tmux/identity.go:339", + "has": [ + "\"run-shell\"" + ] + }, + { + "at": "tmux/identity.go:220", + "has": [ + "if s.daemon != nil {" + ] + }, + { + "at": "tmux/identity.go:216", + "has": [ + "s.probeServerIdentity(" + ] + }, + { + "at": "tmux/search.go:195", + "has": [ + "s.probeSnapshotIdentity(ctx)" + ] + }, + { + "at": "tmux/search.go:175", + "has": [ + "s.searchSnapshotProjected(" + ] + }, + { + "at": "tmux/lookup.go:36", + "has": [ + "searchSnapshot(" + ], + "in": "tmux.Server.SessionByName" + } + ], + "incidental": true + }, + { + "port": "go", + "symbol": "tmux.Server.Snapshot", + "command": "run-shell", + "scope": null, + "when": "the Server has no daemon identity", + "forwardable": true, + "evidence": [ + { + "at": "tmux/identity.go:226", + "has": [ + "probe.runCheckedCommand(" + ] + }, + { + "at": "tmux/identity.go:227", + "has": [ + "identityProbeArguments(" + ] + }, + { + "at": "tmux/identity.go:339", + "has": [ + "\"run-shell\"" + ] + }, + { + "at": "tmux/identity.go:220", + "has": [ + "if s.daemon != nil {" + ] + }, + { + "at": "tmux/identity.go:216", + "has": [ + "s.probeServerIdentity(" + ] + }, + { + "at": "tmux/snapshot_capture.go:24", + "has": [ + "s.probeSnapshotIdentity(ctx)" + ], + "in": "tmux.Server.Snapshot" + } + ], + "incidental": true + }, + { + "port": "go", + "symbol": "tmux.Pane.OpenObservation", + "command": "list-windows", + "scope": "session", + "forwardable": true, + "evidence": [ + { + "at": "tmux/control_observation.go:350", + "has": [ + "c.cmd(", + "\"list-windows\"" + ], + "span": 9 + }, + { + "at": "tmux/control_observation.go:305", + "has": [ + "client.observePane(ctx, p)" + ], + "in": "tmux.Pane.OpenObservation" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::WindowLink#display", + "command": "show-options", + "scope": null, + "incidental": true, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/options.rb:65", + "has": [ + "execute_typed" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/options.rb:61", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:130", + "has": [ + "options(scope: :server).list(name: \"command-alias\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:113", + "has": [ + "builtin_spellings(\"if-shell\", \"display-message\", command" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/entity.rb:245", + "has": [ + "__send__(:execute_link" + ], + "in": "LibTmux::WindowLink#display" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::WindowLink#display", + "command": "list-commands", + "scope": null, + "incidental": true, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/operations.rb:137", + "has": [ + "\"list-commands\"", + "execute_typed(" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:113", + "has": [ + "builtin_spellings(\"if-shell\", \"display-message\", command" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/entity.rb:245", + "has": [ + "__send__(:execute_link" + ], + "in": "LibTmux::WindowLink#display" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::WindowLink#kill", + "command": "show-options", + "scope": null, + "incidental": true, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/options.rb:65", + "has": [ + "execute_typed" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/options.rb:61", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:130", + "has": [ + "options(scope: :server).list(name: \"command-alias\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:113", + "has": [ + "builtin_spellings(\"if-shell\", \"display-message\", command" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/entity.rb:228", + "has": [ + "__send__(:execute_link" + ], + "in": "LibTmux::WindowLink#kill" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::WindowLink#kill", + "command": "list-commands", + "scope": null, + "incidental": true, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/operations.rb:137", + "has": [ + "\"list-commands\"", + "execute_typed(" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:113", + "has": [ + "builtin_spellings(\"if-shell\", \"display-message\", command" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/entity.rb:228", + "has": [ + "__send__(:execute_link" + ], + "in": "LibTmux::WindowLink#kill" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::WindowLink#move", + "command": "show-options", + "scope": null, + "incidental": true, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/options.rb:65", + "has": [ + "execute_typed" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/options.rb:61", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:130", + "has": [ + "options(scope: :server).list(name: \"command-alias\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:113", + "has": [ + "builtin_spellings(\"if-shell\", \"display-message\", command" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/entity.rb:235", + "has": [ + "__send__(:execute_link" + ], + "in": "LibTmux::WindowLink#move" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::WindowLink#move", + "command": "list-commands", + "scope": null, + "incidental": true, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/operations.rb:137", + "has": [ + "\"list-commands\"", + "execute_typed(" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:113", + "has": [ + "builtin_spellings(\"if-shell\", \"display-message\", command" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/entity.rb:235", + "has": [ + "__send__(:execute_link" + ], + "in": "LibTmux::WindowLink#move" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::WindowLink#select", + "command": "show-options", + "scope": null, + "incidental": true, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/options.rb:65", + "has": [ + "execute_typed" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/options.rb:61", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:130", + "has": [ + "options(scope: :server).list(name: \"command-alias\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:113", + "has": [ + "builtin_spellings(\"if-shell\", \"display-message\", command" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/entity.rb:220", + "has": [ + "__send__(:execute_link" + ], + "in": "LibTmux::WindowLink#select" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::WindowLink#select", + "command": "list-commands", + "scope": null, + "incidental": true, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/operations.rb:137", + "has": [ + "\"list-commands\"", + "execute_typed(" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:113", + "has": [ + "builtin_spellings(\"if-shell\", \"display-message\", command" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/entity.rb:220", + "has": [ + "__send__(:execute_link" + ], + "in": "LibTmux::WindowLink#select" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::WindowLink#swap", + "command": "show-options", + "scope": null, + "incidental": true, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/options.rb:65", + "has": [ + "execute_typed" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/options.rb:61", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:130", + "has": [ + "options(scope: :server).list(name: \"command-alias\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:113", + "has": [ + "builtin_spellings(\"if-shell\", \"display-message\", command" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/entity.rb:240", + "has": [ + "__send__(:execute_link" + ], + "in": "LibTmux::WindowLink#swap" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::WindowLink#swap", + "command": "list-commands", + "scope": null, + "incidental": true, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/operations.rb:137", + "has": [ + "\"list-commands\"", + "execute_typed(" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:113", + "has": [ + "builtin_spellings(\"if-shell\", \"display-message\", command" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/entity.rb:240", + "has": [ + "__send__(:execute_link" + ], + "in": "LibTmux::WindowLink#swap" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::WindowLink#unlink", + "command": "show-options", + "scope": null, + "incidental": true, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/options.rb:65", + "has": [ + "execute_typed" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/options.rb:61", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:130", + "has": [ + "options(scope: :server).list(name: \"command-alias\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:113", + "has": [ + "builtin_spellings(\"if-shell\", \"display-message\", command" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/entity.rb:224", + "has": [ + "__send__(:execute_link" + ], + "in": "LibTmux::WindowLink#unlink" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::WindowLink#unlink", + "command": "list-commands", + "scope": null, + "incidental": true, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/operations.rb:137", + "has": [ + "\"list-commands\"", + "execute_typed(" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:113", + "has": [ + "builtin_spellings(\"if-shell\", \"display-message\", command" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/entity.rb:224", + "has": [ + "__send__(:execute_link" + ], + "in": "LibTmux::WindowLink#unlink" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Session#kill", + "command": "show-options", + "scope": null, + "incidental": true, + "when": "expected windows or panes are given", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/options.rb:65", + "has": [ + "execute_typed" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/options.rb:61", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:130", + "has": [ + "options(scope: :server).list(name: \"command-alias\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:165", + "has": [ + "builtin_spellings(\"if-shell\", \"display-message\", \"kill-session\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:257", + "has": [ + "kill_session_with_windows" + ], + "in": "LibTmux::Session#kill" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Session#kill", + "command": "list-commands", + "scope": null, + "incidental": true, + "when": "expected windows or panes are given", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/operations.rb:137", + "has": [ + "\"list-commands\"", + "execute_typed(" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:165", + "has": [ + "builtin_spellings(\"if-shell\", \"display-message\", \"kill-session\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:257", + "has": [ + "kill_session_with_windows" + ], + "in": "LibTmux::Session#kill" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Server#switch_client", + "command": "show-options", + "scope": null, + "incidental": true, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/options.rb:65", + "has": [ + "execute_typed" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/options.rb:61", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:130", + "has": [ + "options(scope: :server).list(name: \"command-alias\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/terminal.rb:41", + "has": [ + "builtin_spellings(\"switch-client\"" + ], + "in": "LibTmux::Server#switch_client" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Server#switch_client", + "command": "list-commands", + "scope": null, + "incidental": true, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/operations.rb:137", + "has": [ + "\"list-commands\"", + "execute_typed(" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/terminal.rb:41", + "has": [ + "builtin_spellings(\"switch-client\"" + ], + "in": "LibTmux::Server#switch_client" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Async::Server#switch_client", + "command": "show-options", + "scope": null, + "incidental": true, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/options.rb:65", + "has": [ + "execute_typed" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/options.rb:61", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:130", + "has": [ + "options(scope: :server).list(name: \"command-alias\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/terminal.rb:41", + "has": [ + "builtin_spellings(\"switch-client\"" + ], + "in": "LibTmux::Async::Server#switch_client" + } + ] + }, + { + "port": "ruby", + "symbol": "LibTmux::Async::Server#switch_client", + "command": "list-commands", + "scope": null, + "incidental": true, + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/operations.rb:137", + "has": [ + "\"list-commands\"", + "execute_typed(" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/terminal.rb:41", + "has": [ + "builtin_spellings(\"switch-client\"" + ], + "in": "LibTmux::Async::Server#switch_client" + } + ] + }, + { + "port": "elixir", + "symbol": "LibTmux.Capture.fetch/2", + "command": "list-sessions", + "scope": null, + "evidence": [ + { + "at": "lib/libtmux/capture.ex:158", + "has": [ + "list(state, \"list-sessions\"" + ] + }, + { + "at": "lib/libtmux/capture.ex:96", + "has": [ + "topology(state)" + ] + }, + { + "at": "lib/libtmux/capture.ex:89", + "has": [ + "attempt(state, 1)" + ], + "in": "LibTmux.Capture.fetch/2" + } + ] + }, + { + "port": "elixir", + "symbol": "LibTmux.Capture.fetch/2", + "command": "list-windows", + "scope": "server", + "evidence": [ + { + "at": "lib/libtmux/capture.ex:164", + "has": [ + "rows(state, \"list-windows\", [\"-a\"]" + ] + }, + { + "at": "lib/libtmux/capture.ex:96", + "has": [ + "topology(state)" + ] + }, + { + "at": "lib/libtmux/capture.ex:89", + "has": [ + "attempt(state, 1)" + ], + "in": "LibTmux.Capture.fetch/2" + } + ] + }, + { + "port": "elixir", + "symbol": "LibTmux.Capture.fetch/2", + "command": "list-panes", + "scope": "server", + "evidence": [ + { + "at": "lib/libtmux/capture.ex:177", + "has": [ + "list(state, \"list-panes\", [\"-a\"]" + ] + }, + { + "at": "lib/libtmux/capture.ex:96", + "has": [ + "topology(state)" + ] + }, + { + "at": "lib/libtmux/capture.ex:89", + "has": [ + "attempt(state, 1)" + ], + "in": "LibTmux.Capture.fetch/2" + } + ] + }, + { + "port": "elixir", + "symbol": "LibTmux.Capture.fetch/2", + "command": "list-clients", + "scope": null, + "evidence": [ + { + "at": "lib/libtmux/capture.ex:178", + "has": [ + "list(state, \"list-clients\"" + ] + }, + { + "at": "lib/libtmux/capture.ex:96", + "has": [ + "topology(state)" + ] + }, + { + "at": "lib/libtmux/capture.ex:89", + "has": [ + "attempt(state, 1)" + ], + "in": "LibTmux.Capture.fetch/2" + } + ] + }, + { + "port": "elixir", + "symbol": "LibTmux.Capture.fetch/2", + "command": "display-message", + "scope": null, + "evidence": [ + { + "at": "lib/libtmux/capture.ex:293", + "has": [ + "read(state, \"display-message\"" + ] + }, + { + "at": "lib/libtmux/capture.ex:95", + "has": [ + "identity(state)" + ] + }, + { + "at": "lib/libtmux/capture.ex:89", + "has": [ + "attempt(state, 1)" + ], + "in": "LibTmux.Capture.fetch/2" + } + ] + }, + { + "port": "elixir", + "symbol": "LibTmux.Server.snapshot/2", + "command": "list-sessions", + "scope": null, + "evidence": [ + { + "at": "lib/libtmux/capture.ex:158", + "has": [ + "list(state, \"list-sessions\"" + ] + }, + { + "at": "lib/libtmux/capture.ex:96", + "has": [ + "topology(state)" + ] + }, + { + "at": "lib/libtmux/capture.ex:89", + "has": [ + "attempt(state, 1)" + ] + }, + { + "at": "lib/libtmux/server.ex:78", + "has": [ + "Capture.fetch(" + ], + "in": "LibTmux.Server.snapshot/2" + } + ] + }, + { + "port": "elixir", + "symbol": "LibTmux.Server.snapshot/2", + "command": "list-windows", + "scope": "server", + "evidence": [ + { + "at": "lib/libtmux/capture.ex:164", + "has": [ + "rows(state, \"list-windows\", [\"-a\"]" + ] + }, + { + "at": "lib/libtmux/capture.ex:96", + "has": [ + "topology(state)" + ] + }, + { + "at": "lib/libtmux/capture.ex:89", + "has": [ + "attempt(state, 1)" + ] + }, + { + "at": "lib/libtmux/server.ex:78", + "has": [ + "Capture.fetch(" + ], + "in": "LibTmux.Server.snapshot/2" + } + ] + }, + { + "port": "elixir", + "symbol": "LibTmux.Server.snapshot/2", + "command": "list-panes", + "scope": "server", + "evidence": [ + { + "at": "lib/libtmux/capture.ex:177", + "has": [ + "list(state, \"list-panes\", [\"-a\"]" + ] + }, + { + "at": "lib/libtmux/capture.ex:96", + "has": [ + "topology(state)" + ] + }, + { + "at": "lib/libtmux/capture.ex:89", + "has": [ + "attempt(state, 1)" + ] + }, + { + "at": "lib/libtmux/server.ex:78", + "has": [ + "Capture.fetch(" + ], + "in": "LibTmux.Server.snapshot/2" + } + ] + }, + { + "port": "elixir", + "symbol": "LibTmux.Server.snapshot/2", + "command": "list-clients", + "scope": null, + "evidence": [ + { + "at": "lib/libtmux/capture.ex:178", + "has": [ + "list(state, \"list-clients\"" + ] + }, + { + "at": "lib/libtmux/capture.ex:96", + "has": [ + "topology(state)" + ] + }, + { + "at": "lib/libtmux/capture.ex:89", + "has": [ + "attempt(state, 1)" + ] + }, + { + "at": "lib/libtmux/server.ex:78", + "has": [ + "Capture.fetch(" + ], + "in": "LibTmux.Server.snapshot/2" + } + ] + }, + { + "port": "elixir", + "symbol": "LibTmux.Server.snapshot/2", + "command": "display-message", + "scope": null, + "evidence": [ + { + "at": "lib/libtmux/capture.ex:293", + "has": [ + "read(state, \"display-message\"" + ] + }, + { + "at": "lib/libtmux/capture.ex:95", + "has": [ + "identity(state)" + ] + }, + { + "at": "lib/libtmux/capture.ex:89", + "has": [ + "attempt(state, 1)" + ] + }, + { + "at": "lib/libtmux/server.ex:78", + "has": [ + "Capture.fetch(" + ], + "in": "LibTmux.Server.snapshot/2" + } + ] + }, + { + "port": "elixir", + "symbol": "LibTmux.Server.snapshot!/2", + "command": "list-sessions", + "scope": null, + "evidence": [ + { + "at": "lib/libtmux/capture.ex:158", + "has": [ + "list(state, \"list-sessions\"" + ] + }, + { + "at": "lib/libtmux/capture.ex:96", + "has": [ + "topology(state)" + ] + }, + { + "at": "lib/libtmux/capture.ex:89", + "has": [ + "attempt(state, 1)" + ] + }, + { + "at": "lib/libtmux/server.ex:78", + "has": [ + "Capture.fetch(" + ] + }, + { + "at": "lib/libtmux/server.ex:83", + "has": [ + "snapshot(server, options)" + ], + "in": "LibTmux.Server.snapshot!/2" + } + ] + }, + { + "port": "elixir", + "symbol": "LibTmux.Server.snapshot!/2", + "command": "list-windows", + "scope": "server", + "evidence": [ + { + "at": "lib/libtmux/capture.ex:164", + "has": [ + "rows(state, \"list-windows\", [\"-a\"]" + ] + }, + { + "at": "lib/libtmux/capture.ex:96", + "has": [ + "topology(state)" + ] + }, + { + "at": "lib/libtmux/capture.ex:89", + "has": [ + "attempt(state, 1)" + ] + }, + { + "at": "lib/libtmux/server.ex:78", + "has": [ + "Capture.fetch(" + ] + }, + { + "at": "lib/libtmux/server.ex:83", + "has": [ + "snapshot(server, options)" + ], + "in": "LibTmux.Server.snapshot!/2" + } + ] + }, + { + "port": "elixir", + "symbol": "LibTmux.Server.snapshot!/2", + "command": "list-panes", + "scope": "server", + "evidence": [ + { + "at": "lib/libtmux/capture.ex:177", + "has": [ + "list(state, \"list-panes\", [\"-a\"]" + ] + }, + { + "at": "lib/libtmux/capture.ex:96", + "has": [ + "topology(state)" + ] + }, + { + "at": "lib/libtmux/capture.ex:89", + "has": [ + "attempt(state, 1)" + ] + }, + { + "at": "lib/libtmux/server.ex:78", + "has": [ + "Capture.fetch(" + ] + }, + { + "at": "lib/libtmux/server.ex:83", + "has": [ + "snapshot(server, options)" + ], + "in": "LibTmux.Server.snapshot!/2" + } + ] + }, + { + "port": "elixir", + "symbol": "LibTmux.Server.snapshot!/2", + "command": "list-clients", + "scope": null, + "evidence": [ + { + "at": "lib/libtmux/capture.ex:178", + "has": [ + "list(state, \"list-clients\"" + ] + }, + { + "at": "lib/libtmux/capture.ex:96", + "has": [ + "topology(state)" + ] + }, + { + "at": "lib/libtmux/capture.ex:89", + "has": [ + "attempt(state, 1)" + ] + }, + { + "at": "lib/libtmux/server.ex:78", + "has": [ + "Capture.fetch(" + ] + }, + { + "at": "lib/libtmux/server.ex:83", + "has": [ + "snapshot(server, options)" + ], + "in": "LibTmux.Server.snapshot!/2" + } + ] + }, + { + "port": "elixir", + "symbol": "LibTmux.Server.snapshot!/2", + "command": "display-message", + "scope": null, + "evidence": [ + { + "at": "lib/libtmux/capture.ex:293", + "has": [ + "read(state, \"display-message\"" + ] + }, + { + "at": "lib/libtmux/capture.ex:95", + "has": [ + "identity(state)" + ] + }, + { + "at": "lib/libtmux/capture.ex:89", + "has": [ + "attempt(state, 1)" + ] + }, + { + "at": "lib/libtmux/server.ex:78", + "has": [ + "Capture.fetch(" + ] + }, + { + "at": "lib/libtmux/server.ex:83", + "has": [ + "snapshot(server, options)" + ], + "in": "LibTmux.Server.snapshot!/2" + } + ] + }, + { + "port": "elixir", + "symbol": "LibTmux.Control.start_link/1", + "command": "attach-session", + "scope": null, + "evidence": [ + { + "at": "lib/libtmux/control/bootstrap.ex:17", + "has": [ + "\"attach-session\"" + ] + }, + { + "at": "lib/libtmux/control/start.ex:62", + "has": [ + "Bootstrap.arguments(server, session)" + ] + }, + { + "at": "lib/libtmux/control/start.ex:23", + "has": [ + "open(prepare(options)" + ] + }, + { + "at": "lib/libtmux/control.ex:74", + "has": [ + "Start.start(" + ], + "in": "LibTmux.Control.start_link/1" + } + ] + }, + { + "port": "elixir", + "symbol": "LibTmux.Control.start_link/1", + "command": "display-message", + "scope": null, + "evidence": [ + { + "at": "lib/libtmux/control/bootstrap.ex:24", + "has": [ + "\"display-message\"" + ] + }, + { + "at": "lib/libtmux/control/start.ex:62", + "has": [ + "Bootstrap.arguments(server, session)" + ] + }, + { + "at": "lib/libtmux/control/start.ex:23", + "has": [ + "open(prepare(options)" + ] + }, + { + "at": "lib/libtmux/control.ex:74", + "has": [ + "Start.start(" + ], + "in": "LibTmux.Control.start_link/1" + } + ] + }, + { + "port": "elixir", + "symbol": "LibTmux.Control.submit/3", + "command": "display-message", + "scope": null, + "when": "the request reads a field", + "evidence": [ + { + "at": "lib/libtmux/control/request.ex:51", + "has": [ + "\"display-message\"" + ] + }, + { + "at": "lib/libtmux/control/request.ex:36", + "has": [ + "encode(request, instance)" + ] + }, + { + "at": "lib/libtmux/control.ex:152", + "has": [ + "Request.prepare(request, endpoint.instance)" + ], + "in": "LibTmux.Control.submit/3" + } + ] + }, + { + "port": "elixir", + "symbol": "LibTmux.Control.submit!/3", + "command": "display-message", + "scope": null, + "when": "the request reads a field", + "evidence": [ + { + "at": "lib/libtmux/control/request.ex:51", + "has": [ + "\"display-message\"" + ] + }, + { + "at": "lib/libtmux/control/request.ex:36", + "has": [ + "encode(request, instance)" + ] + }, + { + "at": "lib/libtmux/control.ex:152", + "has": [ + "Request.prepare(request, endpoint.instance)" + ] + }, + { + "at": "lib/libtmux/control.ex:173", + "has": [ + "unwrap(submit(" + ], + "in": "LibTmux.Control.submit!/3" + } + ] + }, + { + "port": "elixir", + "symbol": "LibTmux.Control.submit/3", + "command": "set-option", + "scope": null, + "when": "the request sets a user option", + "evidence": [ + { + "at": "lib/libtmux/control/request.ex:61", + "has": [ + "\"set-option\"" + ] + }, + { + "at": "lib/libtmux/control/request.ex:36", + "has": [ + "encode(request, instance)" + ] + }, + { + "at": "lib/libtmux/control.ex:152", + "has": [ + "Request.prepare(request, endpoint.instance)" + ], + "in": "LibTmux.Control.submit/3" + } + ] + }, + { + "port": "elixir", + "symbol": "LibTmux.Control.submit!/3", + "command": "set-option", + "scope": null, + "when": "the request sets a user option", + "evidence": [ + { + "at": "lib/libtmux/control/request.ex:61", + "has": [ + "\"set-option\"" + ] + }, + { + "at": "lib/libtmux/control/request.ex:36", + "has": [ + "encode(request, instance)" + ] + }, + { + "at": "lib/libtmux/control.ex:152", + "has": [ + "Request.prepare(request, endpoint.instance)" + ] + }, + { + "at": "lib/libtmux/control.ex:173", + "has": [ + "unwrap(submit(" + ], + "in": "LibTmux.Control.submit!/3" + } + ] + }, + { + "port": "elixir", + "symbol": "LibTmux.Control.reconnect/2", + "command": "attach-session", + "scope": null, + "when": "the connection is closed", + "evidence": [ + { + "at": "lib/libtmux/control/bootstrap.ex:17", + "has": [ + "\"attach-session\"" + ] + }, + { + "at": "lib/libtmux/control/start.ex:62", + "has": [ + "Bootstrap.arguments(server, session)" + ] + }, + { + "at": "lib/libtmux/control/guardian.ex:95", + "has": [ + "Protocol.open_frame(Keyword.fetch!(options, :payload)" + ] + }, + { + "at": "lib/libtmux/control/manager.ex:244", + "has": [ + "payload: state.payload" + ] + }, + { + "at": "lib/libtmux/control/manager.ex:613", + "has": [ + "state.phase == :closed" + ] + }, + { + "at": "lib/libtmux/control/manager.ex:614", + "has": [ + "begin_start(" + ] + }, + { + "at": "lib/libtmux/control/manager.ex:573", + "has": [ + "reconnect(state, ticket)" + ] + }, + { + "at": "lib/libtmux/control.ex:290", + "has": [ + "Exchange.call(endpoint.inbox, endpoint.epoch, deadline, {:reconnect, nil})" + ], + "in": "LibTmux.Control.reconnect/2" + } + ] + }, + { + "port": "elixir", + "symbol": "LibTmux.Control.reconnect!/2", + "command": "attach-session", + "scope": null, + "when": "the connection is closed", + "evidence": [ + { + "at": "lib/libtmux/control/bootstrap.ex:17", + "has": [ + "\"attach-session\"" + ] + }, + { + "at": "lib/libtmux/control/start.ex:62", + "has": [ + "Bootstrap.arguments(server, session)" + ] + }, + { + "at": "lib/libtmux/control/guardian.ex:95", + "has": [ + "Protocol.open_frame(Keyword.fetch!(options, :payload)" + ] + }, + { + "at": "lib/libtmux/control/manager.ex:244", + "has": [ + "payload: state.payload" + ] + }, + { + "at": "lib/libtmux/control/manager.ex:613", + "has": [ + "state.phase == :closed" + ] + }, + { + "at": "lib/libtmux/control/manager.ex:614", + "has": [ + "begin_start(" + ] + }, + { + "at": "lib/libtmux/control/manager.ex:573", + "has": [ + "reconnect(state, ticket)" + ] + }, + { + "at": "lib/libtmux/control.ex:290", + "has": [ + "Exchange.call(endpoint.inbox, endpoint.epoch, deadline, {:reconnect, nil})" + ] + }, + { + "at": "lib/libtmux/control.ex:299", + "has": [ + "unwrap(reconnect(" + ], + "in": "LibTmux.Control.reconnect!/2" + } + ] + }, + { + "port": "elixir", + "symbol": "LibTmux.Control.reconnect/2", + "command": "display-message", + "scope": null, + "when": "the connection is closed", + "evidence": [ + { + "at": "lib/libtmux/control/bootstrap.ex:24", + "has": [ + "\"display-message\"" + ] + }, + { + "at": "lib/libtmux/control/start.ex:62", + "has": [ + "Bootstrap.arguments(server, session)" + ] + }, + { + "at": "lib/libtmux/control/guardian.ex:95", + "has": [ + "Protocol.open_frame(Keyword.fetch!(options, :payload)" + ] + }, + { + "at": "lib/libtmux/control/manager.ex:244", + "has": [ + "payload: state.payload" + ] + }, + { + "at": "lib/libtmux/control/manager.ex:613", + "has": [ + "state.phase == :closed" + ] + }, + { + "at": "lib/libtmux/control/manager.ex:614", + "has": [ + "begin_start(" + ] + }, + { + "at": "lib/libtmux/control/manager.ex:573", + "has": [ + "reconnect(state, ticket)" + ] + }, + { + "at": "lib/libtmux/control.ex:290", + "has": [ + "Exchange.call(endpoint.inbox, endpoint.epoch, deadline, {:reconnect, nil})" + ], + "in": "LibTmux.Control.reconnect/2" + } + ] + }, + { + "port": "elixir", + "symbol": "LibTmux.Control.reconnect!/2", + "command": "display-message", + "scope": null, + "when": "the connection is closed", + "evidence": [ + { + "at": "lib/libtmux/control/bootstrap.ex:24", + "has": [ + "\"display-message\"" + ] + }, + { + "at": "lib/libtmux/control/start.ex:62", + "has": [ + "Bootstrap.arguments(server, session)" + ] + }, + { + "at": "lib/libtmux/control/guardian.ex:95", + "has": [ + "Protocol.open_frame(Keyword.fetch!(options, :payload)" + ] + }, + { + "at": "lib/libtmux/control/manager.ex:244", + "has": [ + "payload: state.payload" + ] + }, + { + "at": "lib/libtmux/control/manager.ex:613", + "has": [ + "state.phase == :closed" + ] + }, + { + "at": "lib/libtmux/control/manager.ex:614", + "has": [ + "begin_start(" + ] + }, + { + "at": "lib/libtmux/control/manager.ex:573", + "has": [ + "reconnect(state, ticket)" + ] + }, + { + "at": "lib/libtmux/control.ex:290", + "has": [ + "Exchange.call(endpoint.inbox, endpoint.epoch, deadline, {:reconnect, nil})" + ] + }, + { + "at": "lib/libtmux/control.ex:299", + "has": [ + "unwrap(reconnect(" + ], + "in": "LibTmux.Control.reconnect!/2" + } + ] + } + ] +} diff --git a/scripts/tmux-usage/conditions.json b/scripts/tmux-usage/conditions.json new file mode 100644 index 000000000..58e27456c --- /dev/null +++ b/scripts/tmux-usage/conditions.json @@ -0,0 +1,657 @@ +{ + "schemaVersion": 1, + "conditions": [ + { + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.sendKeys", + "command": "list-panes", + "scope": "window", + "when": "the pane is synchronized", + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:656", + "has": [ + "#{pane_synchronized}" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:667", + "has": [ + "server.run(" + ] + } + ] + }, + { + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.sendLiteral", + "command": "list-panes", + "scope": "window", + "when": "the pane is synchronized", + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:656", + "has": [ + "#{pane_synchronized}" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:667", + "has": [ + "server.run(" + ] + } + ] + }, + { + "port": "swift", + "symbol": "Server.newSession(named:startDirectory:windowName:width:height:)", + "command": "resize-window", + "scope": null, + "when": "the requested size differs from the created size", + "evidence": [ + { + "at": "Sources/LibTmux/Creation.swift:144", + "has": [ + "guard requestedSize" + ] + }, + { + "at": "Sources/LibTmux/Creation.swift:149", + "has": [ + "guard widthChanged || heightChanged" + ] + } + ] + }, + { + "port": "fsharp", + "symbol": "LibTmux.FSharp.Server.newSession", + "command": "list-panes", + "scope": "session", + "when": "the spec names a first window", + "evidence": [ + { + "at": "src/LibTmux.FSharp/Hierarchy.fs:85", + "has": [ + "match first with" + ] + }, + { + "at": "src/LibTmux.FSharp/Hierarchy.fs:87", + "has": [ + "session.GetPanesAsync(" + ] + } + ] + }, + { + "port": "fsharp", + "symbol": "LibTmux.FSharp.Server.newSession", + "command": "list-panes", + "scope": "window", + "when": "the spec has more than one window", + "evidence": [ + { + "at": "src/LibTmux.FSharp/Hierarchy.fs:91", + "has": [ + "for window in" + ] + }, + { + "at": "src/LibTmux.FSharp/Hierarchy.fs:109", + "has": [ + "created.GetPanesAsync(" + ] + } + ] + }, + { + "port": "fsharp", + "symbol": "LibTmux.FSharp.Server.newSession", + "command": "new-window", + "scope": null, + "when": "the spec has more than one window", + "evidence": [ + { + "at": "src/LibTmux.FSharp/Hierarchy.fs:91", + "has": [ + "for window in" + ] + }, + { + "at": "src/LibTmux.FSharp/Hierarchy.fs:99", + "has": [ + "session.CreateWindowAsync(" + ] + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.observe_output", + "command": "refresh-client", + "scope": null, + "when": "output is not yet enabled", + "evidence": [ + { + "at": "src/observation.jl:540", + "has": [ + "if !hub.output_enabled" + ] + }, + { + "at": "src/observation.jl:543", + "has": [ + "\"refresh-client\"" + ] + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.capture_bytes", + "command": "delete-buffer", + "scope": null, + "when": "on a ControlConnection", + "receiver": "ControlConnection", + "evidence": [ + { + "at": "src/control_io.jl:84", + "through": 164, + "has": [ + "function capture_bytes(" + ] + }, + { + "at": "src/control_io.jl:60", + "has": [ + "\"delete-buffer\"" + ] + }, + { + "at": "src/control_io.jl:150" + }, + { + "at": "src/pane_io.jl:64", + "through": 86, + "has": [ + "function capture_bytes(" + ] + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.load_buffer", + "command": "display-message", + "scope": null, + "when": "on a Server", + "receiver": "Server", + "evidence": [ + { + "at": "src/pane_io.jl:182", + "through": 189, + "has": [ + "function load_buffer(" + ] + }, + { + "at": "src/acquisition.jl:52", + "has": [ + "\"display-message\"" + ] + }, + { + "at": "src/pane_io.jl:185" + }, + { + "at": "src/control_buffers.jl:68", + "through": 72, + "has": [ + "function load_buffer(" + ] + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.snapshot", + "command": "display-message", + "scope": null, + "when": "on a Server", + "receiver": "Server", + "evidence": [ + { + "at": "src/acquisition.jl:218", + "through": 247, + "has": [ + "function snapshot(" + ] + }, + { + "at": "src/acquisition.jl:52", + "has": [ + "\"display-message\"" + ] + }, + { + "at": "src/acquisition.jl:227" + }, + { + "at": "src/control_io.jl:238", + "through": 266, + "has": [ + "function snapshot(" + ] + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.capture_bytes", + "command": "list-buffers", + "scope": null, + "when": "on a ControlConnection", + "receiver": "ControlConnection", + "evidence": [ + { + "at": "src/control_io.jl:84", + "through": 164, + "has": [ + "function capture_bytes(" + ] + }, + { + "at": "src/control_io.jl:35", + "has": [ + "\"list-buffers\"" + ] + }, + { + "at": "src/control_io.jl:112" + }, + { + "at": "src/pane_io.jl:64", + "through": 86, + "has": [ + "function capture_bytes(" + ] + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.save_buffer", + "command": "list-buffers", + "scope": null, + "when": "on a ControlConnection", + "receiver": "ControlConnection", + "evidence": [ + { + "at": "src/control_buffers.jl:85", + "through": 116, + "has": [ + "function save_buffer(" + ] + }, + { + "at": "src/control_io.jl:35", + "has": [ + "\"list-buffers\"" + ] + }, + { + "at": "src/control_buffers.jl:96" + }, + { + "at": "src/pane_io.jl:192", + "through": 208, + "has": [ + "function save_buffer(" + ] + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.capture_bytes", + "command": "save-buffer", + "scope": null, + "when": "on a ControlConnection", + "receiver": "ControlConnection", + "evidence": [ + { + "at": "src/control_io.jl:84", + "through": 164, + "has": [ + "function capture_bytes(" + ] + }, + { + "at": "src/control_io.jl:131", + "has": [ + "\"save-buffer\"" + ] + }, + { + "at": "src/pane_io.jl:64", + "through": 86, + "has": [ + "function capture_bytes(" + ] + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.get_environment", + "command": "show-environment", + "scope": null, + "when": "on a Server", + "receiver": "Server", + "evidence": [ + { + "at": "src/configuration.jl:343", + "through": 359, + "has": [ + "function get_environment(" + ] + }, + { + "at": "src/configuration.jl:299", + "has": [ + "\"show-environment\"" + ] + }, + { + "at": "src/configuration.jl:353" + }, + { + "at": "src/control_options.jl:413", + "through": 429, + "has": [ + "function get_environment(" + ] + } + ] + }, + { + "port": "julia", + "symbol": "LibTmux.snapshot", + "command": "list-clients", + "scope": null, + "when": "a session exists", + "evidence": [ + { + "at": "src/acquisition.jl:128", + "has": [ + "isempty(ss)" + ] + }, + { + "at": "src/acquisition.jl:129", + "has": [ + "\"list-clients\"" + ] + }, + { + "at": "src/control_io.jl:225", + "has": [ + "isempty(ss)", + "\"list-clients\"" + ] + } + ] + }, + { + "port": "swift", + "symbol": "Server.resize(_:width:height:)", + "command": "resize-pane", + "scope": null, + "when": "a width or height is given", + "evidence": [ + { + "at": "Sources/LibTmux/Mutations.swift:70", + "has": [ + "guard arguments.count > 2 else { return }" + ] + }, + { + "at": "Sources/LibTmux/Mutations.swift:71", + "has": [ + "expectSuccess(" + ] + } + ] + }, + { + "port": "java", + "symbol": "io.github.libtmux.Shell.Shell.capturing", + "command": "run-shell", + "scope": null, + "when": "except from tmux 3.3 until 3.5", + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Shell.java:22", + "has": [ + "OUTPUT_LOST", + "new TmuxVersion(3, 3" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Shell.java:24", + "has": [ + "OUTPUT_FOUND", + "new TmuxVersion(3, 5" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Shell.java:50", + "has": [ + "running.atLeast(OUTPUT_LOST)", + "!running.atLeast(OUTPUT_FOUND)" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Shell.java:51", + "has": [ + "throw new UnsupportedFeatureException(" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Shell.java:55", + "has": [ + "\"run-shell\"" + ] + } + ] + }, + { + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.paste", + "command": "load-buffer", + "scope": null, + "when": "except before tmux 3.4", + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:962", + "has": [ + "running.atLeast(Buffers.EXACT_NAMED_DELETE)" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:963", + "has": [ + "throw new UnsupportedFeatureException(" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Buffers.java:36", + "has": [ + "EXACT_NAMED_DELETE", + "new TmuxVersion(3, 4" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:971", + "has": [ + "server.runTogether(" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:1015", + "has": [ + "running.atLeast(Buffers.EXACT_NAMED_DELETE)" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:1016", + "has": [ + "throw new UnsupportedFeatureException(" + ] + } + ] + }, + { + "port": "java", + "symbol": "io.github.libtmux.Pane.Pane.paste", + "command": "paste-buffer", + "scope": null, + "when": "except before tmux 3.4", + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:962", + "has": [ + "running.atLeast(Buffers.EXACT_NAMED_DELETE)" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:963", + "has": [ + "throw new UnsupportedFeatureException(" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Buffers.java:36", + "has": [ + "EXACT_NAMED_DELETE", + "new TmuxVersion(3, 4" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:971", + "has": [ + "server.runTogether(" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:1015", + "has": [ + "running.atLeast(Buffers.EXACT_NAMED_DELETE)" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:1016", + "has": [ + "throw new UnsupportedFeatureException(" + ] + } + ] + }, + { + "port": "java", + "symbol": "io.github.libtmux.Buffers.Buffers.delete", + "command": "delete-buffer", + "scope": null, + "when": "except before tmux 3.4", + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Buffers.java:108", + "has": [ + "running.atLeast(EXACT_NAMED_DELETE)" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Buffers.java:109", + "has": [ + "throw new UnsupportedFeatureException(" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Buffers.java:36", + "has": [ + "EXACT_NAMED_DELETE", + "new TmuxVersion(3, 4" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Buffers.java:111", + "has": [ + "\"delete-buffer\"" + ] + } + ] + }, + { + "port": "ts", + "symbol": "session.Session.selectWindow", + "command": "select-window", + "scope": null, + "when": "the target is not last, next or previous", + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/session_nav.ts:34", + "has": [ + "target === \"last\"" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/session_nav.ts:35", + "has": [ + "target === \"next\"" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/session_nav.ts:36", + "has": [ + "target === \"previous\"" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/session_nav.ts:40", + "has": [ + "\"select-window\"" + ] + } + ] + }, + { + "port": "go", + "symbol": "tmux.Server.HasSession", + "command": "list-sessions", + "scope": null, + "when": "the request does not set Pattern", + "evidence": [ + { + "at": "tmux/session_lifecycle.go:139", + "has": [ + "!request.Pattern" + ] + }, + { + "at": "tmux/session_lifecycle.go:140", + "has": [ + "s.sessionNamed(ctx, request.Target)" + ] + }, + { + "at": "tmux/session_lifecycle.go:157", + "has": [ + "\"list-sessions\"" + ] + } + ] + } + ] +} diff --git a/scripts/tmux-usage/dispatchers.json b/scripts/tmux-usage/dispatchers.json new file mode 100644 index 000000000..a78c54ded --- /dev/null +++ b/scripts/tmux-usage/dispatchers.json @@ -0,0 +1,9281 @@ +{ + "schemaVersion": 1, + "dispatchers": [ + { + "port": "py", + "name": "check_call", + "why": "Runs the tmux binary with the argument list it is given and raises when it fails.", + "evidence": [ + { + "at": "src/libtmux/server.py:340", + "has": [ + "subprocess.check_call(" + ] + } + ] + }, + { + "port": "py", + "name": "cmd", + "why": "Runs the tmux command it is given: Server.cmd sends it to the server, and the fetch helpers send the list command they are given.", + "evidence": [ + { + "at": "src/libtmux/pane.py:315", + "has": [ + "cmd" + ], + "reaches": [ + { + "at": "src/libtmux/pane.py:349", + "has": [ + "cmd" + ], + "calls": "cmd" + }, + { + "at": "src/libtmux/server.py:418", + "has": [ + "tmux_cmd" + ], + "calls": "tmux_cmd" + }, + { + "at": "src/libtmux/common.py:331", + "has": [ + "subprocess.Popen(" + ] + } + ] + }, + { + "at": "src/libtmux/server.py:347", + "has": [ + "cmd" + ], + "reaches": [ + { + "at": "src/libtmux/server.py:418", + "has": [ + "tmux_cmd" + ], + "calls": "tmux_cmd" + }, + { + "at": "src/libtmux/common.py:331", + "has": [ + "subprocess.Popen(" + ] + } + ] + }, + { + "at": "src/libtmux/session.py:425", + "has": [ + "cmd" + ], + "reaches": [ + { + "at": "src/libtmux/session.py:468", + "has": [ + "cmd" + ], + "calls": "cmd" + }, + { + "at": "src/libtmux/server.py:418", + "has": [ + "tmux_cmd" + ], + "calls": "tmux_cmd" + }, + { + "at": "src/libtmux/common.py:331", + "has": [ + "subprocess.Popen(" + ] + } + ] + } + ] + }, + { + "port": "py", + "name": "fetch_objs", + "why": "Runs the tmux command it is given: Server.cmd sends it to the server, and the fetch helpers send the list command they are given.", + "evidence": [ + { + "at": "src/libtmux/neo.py:1039", + "has": [ + "fetch_objs" + ], + "reaches": [ + { + "at": "src/libtmux/neo.py:1133", + "has": [ + "tmux_cmd" + ], + "calls": "tmux_cmd" + }, + { + "at": "src/libtmux/common.py:331", + "has": [ + "subprocess.Popen(" + ] + } + ] + } + ] + }, + { + "port": "py", + "name": "fetch_obj", + "why": "Runs the tmux command it is given: Server.cmd sends it to the server, and the fetch helpers send the list command they are given.", + "evidence": [ + { + "at": "src/libtmux/neo.py:1275", + "has": [ + "fetch_obj" + ], + "reaches": [ + { + "at": "src/libtmux/neo.py:1345", + "has": [ + "fetch_objs" + ], + "calls": "fetch_objs" + }, + { + "at": "src/libtmux/neo.py:1133", + "has": [ + "tmux_cmd" + ], + "calls": "tmux_cmd" + }, + { + "at": "src/libtmux/common.py:331", + "has": [ + "subprocess.Popen(" + ] + } + ] + } + ] + }, + { + "port": "py", + "name": "_fetch_or_empty", + "why": "Runs the tmux command it is given: Server.cmd sends it to the server, and the fetch helpers send the list command they are given.", + "evidence": [ + { + "at": "src/libtmux/server.py:65", + "has": [ + "_fetch_or_empty" + ], + "reaches": [ + { + "at": "src/libtmux/server.py:78", + "has": [ + "fetch_objs" + ], + "calls": "fetch_objs" + }, + { + "at": "src/libtmux/neo.py:1133", + "has": [ + "tmux_cmd" + ], + "calls": "tmux_cmd" + }, + { + "at": "src/libtmux/common.py:331", + "has": [ + "subprocess.Popen(" + ] + } + ] + } + ] + }, + { + "port": "py", + "name": "_refresh", + "why": "Runs the tmux command it is given: Server.cmd sends it to the server, and the fetch helpers send the list command they are given.", + "evidence": [ + { + "at": "src/libtmux/neo.py:868", + "has": [ + "_refresh" + ], + "reaches": [ + { + "at": "src/libtmux/neo.py:895", + "has": [ + "fetch_obj" + ], + "calls": "fetch_obj" + }, + { + "at": "src/libtmux/neo.py:1345", + "has": [ + "fetch_objs" + ], + "calls": "fetch_objs" + }, + { + "at": "src/libtmux/neo.py:1133", + "has": [ + "tmux_cmd" + ], + "calls": "tmux_cmd" + }, + { + "at": "src/libtmux/common.py:331", + "has": [ + "subprocess.Popen(" + ] + } + ] + } + ] + }, + { + "port": "ruby", + "name": "execute_typed", + "why": "Sends the argument list it is given to the server.", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/server.rb:393", + "has": [ + "execute_typed" + ], + "reaches": [ + { + "at": "gems/libtmux/lib/libtmux/server.rb:394", + "has": [ + "run" + ], + "calls": "run" + }, + { + "at": "gems/libtmux/lib/libtmux/server.rb:82", + "has": [ + "@executor.run(" + ], + "calls": "run", + "on": "ProcessExecutor" + }, + { + "at": "gems/libtmux/lib/libtmux/process.rb:108", + "has": [ + "Execution.new(" + ], + "calls": "call", + "on": "Execution" + }, + { + "at": "gems/libtmux/lib/libtmux/process.rb:147", + "has": [ + "spawn" + ], + "leads": "spawn", + "why": "spawn is called by its bare name, which the Ruby scan does not read as a call" + }, + { + "at": "gems/libtmux/lib/libtmux/process.rb:189", + "has": [ + "Process.spawn(@env" + ] + } + ] + } + ] + }, + { + "port": "ruby", + "name": "catalog_read", + "why": "Sends the argument list it is given to the server.", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/capture.rb:98", + "has": [ + "catalog_read" + ], + "reaches": [ + { + "at": "gems/libtmux/lib/libtmux/capture.rb:100", + "has": [ + "read" + ], + "calls": "read" + }, + { + "at": "gems/libtmux/lib/libtmux/capture.rb:111", + "has": [ + "execute_typed" + ], + "calls": "execute_typed" + }, + { + "at": "gems/libtmux/lib/libtmux/server.rb:394", + "has": [ + "run" + ], + "calls": "run" + }, + { + "at": "gems/libtmux/lib/libtmux/server.rb:82", + "has": [ + "@executor.run(" + ], + "calls": "run", + "on": "ProcessExecutor" + }, + { + "at": "gems/libtmux/lib/libtmux/process.rb:108", + "has": [ + "Execution.new(" + ], + "calls": "call", + "on": "Execution" + }, + { + "at": "gems/libtmux/lib/libtmux/process.rb:147", + "has": [ + "spawn" + ], + "leads": "spawn", + "why": "spawn is called by its bare name, which the Ruby scan does not read as a call" + }, + { + "at": "gems/libtmux/lib/libtmux/process.rb:189", + "has": [ + "Process.spawn(@env" + ] + } + ] + } + ] + }, + { + "port": "ruby", + "name": "read", + "why": "Sends the argument list it is given to the server.", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/capture.rb:108", + "has": [ + "read" + ], + "reaches": [ + { + "at": "gems/libtmux/lib/libtmux/capture.rb:111", + "has": [ + "execute_typed" + ], + "calls": "execute_typed" + }, + { + "at": "gems/libtmux/lib/libtmux/server.rb:394", + "has": [ + "run" + ], + "calls": "run" + }, + { + "at": "gems/libtmux/lib/libtmux/server.rb:82", + "has": [ + "@executor.run(" + ], + "calls": "run", + "on": "ProcessExecutor" + }, + { + "at": "gems/libtmux/lib/libtmux/process.rb:108", + "has": [ + "Execution.new(" + ], + "calls": "call", + "on": "Execution" + }, + { + "at": "gems/libtmux/lib/libtmux/process.rb:147", + "has": [ + "spawn" + ], + "leads": "spawn", + "why": "spawn is called by its bare name, which the Ruby scan does not read as a call" + }, + { + "at": "gems/libtmux/lib/libtmux/process.rb:189", + "has": [ + "Process.spawn(@env" + ] + } + ] + } + ] + }, + { + "port": "ruby", + "name": "reposition", + "why": "Sends the argument list it is given to the server.", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/operations.rb:405", + "has": [ + "reposition" + ], + "reaches": [ + { + "at": "gems/libtmux/lib/libtmux/operations.rb:409", + "has": [ + "execute_typed" + ], + "calls": "execute_typed" + }, + { + "at": "gems/libtmux/lib/libtmux/server.rb:394", + "has": [ + "run" + ], + "calls": "run" + }, + { + "at": "gems/libtmux/lib/libtmux/server.rb:82", + "has": [ + "@executor.run(" + ], + "calls": "run", + "on": "ProcessExecutor" + }, + { + "at": "gems/libtmux/lib/libtmux/process.rb:108", + "has": [ + "Execution.new(" + ], + "calls": "call", + "on": "Execution" + }, + { + "at": "gems/libtmux/lib/libtmux/process.rb:147", + "has": [ + "spawn" + ], + "leads": "spawn", + "why": "spawn is called by its bare name, which the Ruby scan does not read as a call" + }, + { + "at": "gems/libtmux/lib/libtmux/process.rb:189", + "has": [ + "Process.spawn(@env" + ] + } + ] + } + ] + }, + { + "port": "ruby", + "name": "mutate", + "why": "Sends the argument list it is given to the server.", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/options.rb:138", + "has": [ + "mutate" + ], + "reaches": [ + { + "at": "gems/libtmux/lib/libtmux/options.rb:141", + "has": [ + "execute_typed" + ], + "calls": "execute_typed" + }, + { + "at": "gems/libtmux/lib/libtmux/server.rb:394", + "has": [ + "run" + ], + "calls": "run" + }, + { + "at": "gems/libtmux/lib/libtmux/server.rb:82", + "has": [ + "@executor.run(" + ], + "calls": "run", + "on": "ProcessExecutor" + }, + { + "at": "gems/libtmux/lib/libtmux/process.rb:108", + "has": [ + "Execution.new(" + ], + "calls": "call", + "on": "Execution" + }, + { + "at": "gems/libtmux/lib/libtmux/process.rb:147", + "has": [ + "spawn" + ], + "leads": "spawn", + "why": "spawn is called by its bare name, which the Ruby scan does not read as a call" + }, + { + "at": "gems/libtmux/lib/libtmux/process.rb:189", + "has": [ + "Process.spawn(@env" + ] + } + ] + } + ] + }, + { + "port": "ruby", + "name": "exchange_request", + "why": "Sends the argument list it is given to the server.", + "evidence": [ + { + "at": "gems/libtmux-async/lib/libtmux/async/control.rb:71", + "has": [ + "exchange_request" + ], + "reaches": [ + { + "at": "gems/libtmux-async/lib/libtmux/async/control.rb:85", + "has": [ + "admit" + ], + "calls": "admit" + }, + { + "at": "gems/libtmux/lib/libtmux/control.rb:687", + "has": [ + "@queue << request" + ], + "leads": "run", + "why": "the request is pushed onto a queue that the connection thread takes it from and writes to the control client" + }, + { + "at": "gems/libtmux/lib/libtmux/control.rb:749", + "has": [ + "@input.write_nonblock(request.wire" + ] + } + ] + }, + { + "at": "gems/libtmux/lib/libtmux/control.rb:428", + "has": [ + "exchange_request" + ], + "reaches": [ + { + "at": "gems/libtmux/lib/libtmux/control.rb:442", + "has": [ + "admit" + ], + "calls": "admit" + }, + { + "at": "gems/libtmux/lib/libtmux/control.rb:687", + "has": [ + "@queue << request" + ], + "leads": "run", + "why": "the request is pushed onto a queue that the connection thread takes it from and writes to the control client" + }, + { + "at": "gems/libtmux/lib/libtmux/control.rb:749", + "has": [ + "@input.write_nonblock(request.wire" + ] + } + ] + } + ] + }, + { + "port": "ruby", + "name": "create_entity", + "why": "Sends the argument list it is given to the server.", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/server.rb:456", + "has": [ + "create_entity" + ], + "reaches": [ + { + "at": "gems/libtmux/lib/libtmux/server.rb:457", + "has": [ + "execute_typed" + ], + "calls": "execute_typed" + }, + { + "at": "gems/libtmux/lib/libtmux/server.rb:394", + "has": [ + "run" + ], + "calls": "run" + }, + { + "at": "gems/libtmux/lib/libtmux/server.rb:82", + "has": [ + "@executor.run(" + ], + "calls": "run", + "on": "ProcessExecutor" + }, + { + "at": "gems/libtmux/lib/libtmux/process.rb:108", + "has": [ + "Execution.new(" + ], + "calls": "call", + "on": "Execution" + }, + { + "at": "gems/libtmux/lib/libtmux/process.rb:147", + "has": [ + "spawn" + ], + "leads": "spawn", + "why": "spawn is called by its bare name, which the Ruby scan does not read as a call" + }, + { + "at": "gems/libtmux/lib/libtmux/process.rb:189", + "has": [ + "Process.spawn(@env" + ] + } + ] + } + ] + }, + { + "port": "ruby", + "name": "execute_link", + "why": "Sends the argument list it is given to the server.", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/operations.rb:110", + "has": [ + "execute_link" + ], + "reaches": [ + { + "at": "gems/libtmux/lib/libtmux/operations.rb:122", + "has": [ + "execute_typed" + ], + "calls": "execute_typed" + }, + { + "at": "gems/libtmux/lib/libtmux/server.rb:394", + "has": [ + "run" + ], + "calls": "run" + }, + { + "at": "gems/libtmux/lib/libtmux/server.rb:82", + "has": [ + "@executor.run(" + ], + "calls": "run", + "on": "ProcessExecutor" + }, + { + "at": "gems/libtmux/lib/libtmux/process.rb:108", + "has": [ + "Execution.new(" + ], + "calls": "call", + "on": "Execution" + }, + { + "at": "gems/libtmux/lib/libtmux/process.rb:147", + "has": [ + "spawn" + ], + "leads": "spawn", + "why": "spawn is called by its bare name, which the Ruby scan does not read as a call" + }, + { + "at": "gems/libtmux/lib/libtmux/process.rb:189", + "has": [ + "Process.spawn(@env" + ] + } + ] + } + ] + }, + { + "port": "lua", + "name": "run", + "why": "Sends the argument list it is given to the server.", + "evidence": [ + { + "at": "lua/libtmux/_internal/buffer.lua:206", + "has": [ + "run" + ], + "reaches": [ + { + "at": "lua/libtmux/_internal/buffer.lua:239", + "has": [ + "execute" + ], + "calls": "execute" + }, + { + "at": "lua/libtmux/_internal/endpoint.lua:291", + "has": [ + "execute(assert(bindings[self]" + ], + "calls": "execute" + }, + { + "at": "lua/libtmux/_internal/endpoint.lua:270", + "has": [ + "process.execute(" + ], + "calls": "execute", + "on": "M" + }, + { + "at": "lua/libtmux/_internal/process.lua:316", + "has": [ + "pcall(uv.spawn" + ] + } + ] + }, + { + "at": "lua/libtmux/_internal/client.lua:168", + "has": [ + "run" + ], + "reaches": [ + { + "at": "lua/libtmux/_internal/client.lua:179", + "has": [ + "execute" + ], + "calls": "execute" + }, + { + "at": "lua/libtmux/_internal/endpoint.lua:291", + "has": [ + "execute(assert(bindings[self]" + ], + "calls": "execute" + }, + { + "at": "lua/libtmux/_internal/endpoint.lua:270", + "has": [ + "process.execute(" + ], + "calls": "execute", + "on": "M" + }, + { + "at": "lua/libtmux/_internal/process.lua:316", + "has": [ + "pcall(uv.spawn" + ] + } + ] + }, + { + "at": "lua/libtmux/_internal/environment.lua:398", + "has": [ + "run" + ], + "reaches": [ + { + "at": "lua/libtmux/_internal/environment.lua:404", + "has": [ + "perform" + ], + "calls": "perform" + }, + { + "at": "lua/libtmux/_internal/environment.lua:388", + "has": [ + "invoke" + ], + "calls": "invoke" + }, + { + "at": "lua/libtmux/_internal/environment.lua:212", + "has": [ + "execute" + ], + "calls": "execute" + }, + { + "at": "lua/libtmux/_internal/endpoint.lua:291", + "has": [ + "execute(assert(bindings[self]" + ], + "calls": "execute" + }, + { + "at": "lua/libtmux/_internal/endpoint.lua:270", + "has": [ + "process.execute(" + ], + "calls": "execute", + "on": "M" + }, + { + "at": "lua/libtmux/_internal/process.lua:316", + "has": [ + "pcall(uv.spawn" + ] + } + ] + } + ] + }, + { + "port": "lua", + "name": "execute", + "why": "Sends the argument list it is given to the server.", + "evidence": [ + { + "at": "lua/libtmux/_internal/command.lua:190", + "has": [ + "execute" + ], + "reaches": [ + { + "at": "lua/libtmux/_internal/command.lua:191", + "has": [ + "group" + ], + "calls": "group" + }, + { + "at": "lua/libtmux/_internal/command.lua:187", + "has": [ + "execute" + ], + "calls": "execute", + "on": "M" + }, + { + "at": "lua/libtmux/_internal/process.lua:316", + "has": [ + "pcall(uv.spawn" + ] + } + ] + }, + { + "at": "lua/libtmux/_internal/endpoint.lua:252", + "has": [ + "execute" + ], + "reaches": [ + { + "at": "lua/libtmux/_internal/endpoint.lua:270", + "has": [ + "execute" + ], + "calls": "execute", + "on": "M" + }, + { + "at": "lua/libtmux/_internal/process.lua:316", + "has": [ + "pcall(uv.spawn" + ] + } + ] + }, + { + "at": "lua/libtmux/_internal/process.lua:143", + "has": [ + "execute" + ], + "reaches": [ + { + "at": "lua/libtmux/_internal/process.lua:316", + "has": [ + "pcall(uv.spawn" + ] + } + ] + } + ] + }, + { + "port": "lua", + "name": "program", + "why": "Sends the argument list it is given to the server.", + "evidence": [ + { + "at": "lua/libtmux/_internal/topology.lua:138", + "has": [ + "program" + ] + } + ], + "kind": "builder" + }, + { + "port": "julia", + "name": "_operation_command", + "why": "Sends the argument list it is given over the control connection.", + "evidence": [ + { + "at": "src/operations.jl:59", + "has": [ + "_operation_command" + ], + "reaches": [ + { + "at": "src/operations.jl:60", + "has": [ + "run_command" + ], + "calls": "run_command", + "on": "Server" + }, + { + "at": "src/process.jl:494", + "has": [ + "_run_process(" + ], + "calls": "_run_process" + }, + { + "at": "src/process.jl:334", + "has": [ + "run(" + ] + } + ] + } + ] + }, + { + "port": "julia", + "name": "_control_create", + "why": "Sends the argument list it is given over the control connection and reads the reference of the object it creates from the reply.", + "evidence": [ + { + "at": "src/control_operations.jl:51", + "has": [ + "_control_create" + ], + "reaches": [ + { + "at": "src/control_operations.jl:52", + "has": [ + "_control_request(" + ], + "calls": "_control_request" + }, + { + "at": "src/control.jl:481", + "has": [ + "push!(connection.pending, request)" + ], + "leads": "_control_writer", + "why": "the request is put on the connection's queue, and its writer task takes it from there and writes it to the control client" + }, + { + "at": "src/control.jl:354", + "has": [ + "write(connection.input.in" + ] + } + ] + } + ] + }, + { + "port": "julia", + "name": "_control_topology_effect", + "why": "Sends the argument list it is given over the control connection.", + "evidence": [ + { + "at": "src/control_topology.jl:7", + "has": [ + "_control_topology_effect" + ], + "reaches": [ + { + "at": "src/control_topology.jl:8", + "has": [ + "_control_effect" + ], + "calls": "_control_effect" + }, + { + "at": "src/control_io.jl:23", + "has": [ + "_control_request" + ], + "calls": "_control_request" + }, + { + "at": "src/control.jl:481", + "has": [ + "push!(connection.pending, request)" + ], + "leads": "_control_writer", + "why": "the request is put on the connection's queue, and its writer task takes it from there and writes it to the control client" + }, + { + "at": "src/control.jl:354", + "has": [ + "write(connection.input.in" + ] + } + ] + } + ] + }, + { + "port": "julia", + "name": "_control_effect", + "why": "Sends the argument list it is given over the control connection.", + "evidence": [ + { + "at": "src/control_io.jl:22", + "has": [ + "_control_effect" + ], + "reaches": [ + { + "at": "src/control_io.jl:23", + "has": [ + "_control_request" + ], + "calls": "_control_request" + }, + { + "at": "src/control.jl:481", + "has": [ + "push!(connection.pending, request)" + ], + "leads": "_control_writer", + "why": "the request is put on the connection's queue, and its writer task takes it from there and writes it to the control client" + }, + { + "at": "src/control.jl:354", + "has": [ + "write(connection.input.in" + ] + } + ] + } + ] + }, + { + "port": "julia", + "name": "command", + "why": "Sends the argument list it is given over the control connection.", + "evidence": [ + { + "at": "src/control.jl:931", + "has": [ + "command" + ], + "reaches": [ + { + "at": "src/control.jl:932", + "has": [ + "_control_request" + ], + "calls": "_control_request" + }, + { + "at": "src/control.jl:481", + "has": [ + "push!(connection.pending, request)" + ], + "leads": "_control_writer", + "why": "the request is put on the connection's queue, and its writer task takes it from there and writes it to the control client" + }, + { + "at": "src/control.jl:354", + "has": [ + "write(connection.input.in" + ] + } + ] + } + ] + }, + { + "port": "julia", + "name": "_control_configuration_effect", + "why": "Sends the argument list it is given over the control connection.", + "evidence": [ + { + "at": "src/control_options.jl:217", + "has": [ + "_control_configuration_effect" + ], + "reaches": [ + { + "at": "src/control_options.jl:222", + "has": [ + "_control_effect" + ], + "calls": "_control_effect" + }, + { + "at": "src/control_io.jl:23", + "has": [ + "_control_request" + ], + "calls": "_control_request" + }, + { + "at": "src/control.jl:481", + "has": [ + "push!(connection.pending, request)" + ], + "leads": "_control_writer", + "why": "the request is put on the connection's queue, and its writer task takes it from there and writes it to the control client" + }, + { + "at": "src/control.jl:354", + "has": [ + "write(connection.input.in" + ] + } + ] + } + ] + }, + { + "port": "julia", + "name": "_snapshot_rows", + "why": "Sends the argument list it is given over the control connection.", + "evidence": [ + { + "at": "src/acquisition.jl:73", + "has": [ + "_snapshot_rows" + ], + "reaches": [ + { + "at": "src/acquisition.jl:74", + "has": [ + "run_command" + ], + "calls": "run_command", + "on": "Server" + }, + { + "at": "src/process.jl:494", + "has": [ + "_run_process(" + ], + "calls": "_run_process" + }, + { + "at": "src/process.jl:334", + "has": [ + "run(" + ] + } + ] + } + ] + }, + { + "port": "julia", + "name": "rows", + "why": "Sends the argument list it is given over the control connection.", + "evidence": [ + { + "at": "src/control_io.jl:215", + "has": [ + "rows" + ], + "reaches": [ + { + "at": "src/control_io.jl:215", + "has": [ + "_control_rows" + ], + "calls": "_control_rows" + }, + { + "at": "src/control.jl:542", + "has": [ + "_control_request" + ], + "calls": "_control_request" + }, + { + "at": "src/control.jl:481", + "has": [ + "push!(connection.pending, request)" + ], + "leads": "_control_writer", + "why": "the request is put on the connection's queue, and its writer task takes it from there and writes it to the control client" + }, + { + "at": "src/control.jl:354", + "has": [ + "write(connection.input.in" + ] + } + ] + } + ] + }, + { + "port": "julia", + "name": "run_command", + "why": "Sends the argument list it is given over the control connection.", + "evidence": [ + { + "at": "src/control.jl:572", + "has": [ + "run_command" + ], + "reaches": [ + { + "at": "src/control.jl:581", + "has": [ + "_control_request" + ], + "calls": "_control_request" + }, + { + "at": "src/control.jl:481", + "has": [ + "push!(connection.pending, request)" + ], + "leads": "_control_writer", + "why": "the request is put on the connection's queue, and its writer task takes it from there and writes it to the control client" + }, + { + "at": "src/control.jl:354", + "has": [ + "write(connection.input.in" + ] + } + ] + }, + { + "at": "src/process.jl:477", + "has": [ + "run_command" + ], + "reaches": [ + { + "at": "src/process.jl:494", + "has": [ + "_run_process" + ], + "calls": "_run_process" + }, + { + "at": "src/process.jl:334", + "has": [ + " run(" + ] + } + ] + } + ] + }, + { + "port": "julia", + "name": "_control_rows", + "why": "Sends the argument list it is given over the control connection.", + "evidence": [ + { + "at": "src/control.jl:502", + "has": [ + "_control_rows" + ], + "reaches": [ + { + "at": "src/control.jl:542", + "has": [ + "_control_request" + ], + "calls": "_control_request" + }, + { + "at": "src/control.jl:481", + "has": [ + "push!(connection.pending, request)" + ], + "leads": "_control_writer", + "why": "the request is put on the connection's queue, and its writer task takes it from there and writes it to the control client" + }, + { + "at": "src/control.jl:354", + "has": [ + "write(connection.input.in" + ] + } + ] + } + ] + }, + { + "port": "julia", + "name": "_control_request", + "why": "Sends the argument list it is given over the control connection.", + "evidence": [ + { + "at": "src/control.jl:411", + "has": [ + "_control_request" + ], + "reaches": [ + { + "at": "src/control.jl:481", + "has": [ + "push!(connection.pending, request)" + ], + "leads": "_control_writer", + "why": "the request is put on the connection's queue, and its writer task takes it from there and writes it to the control client" + }, + { + "at": "src/control.jl:354", + "has": [ + "write(connection.input.in" + ] + } + ] + } + ] + }, + { + "port": "julia", + "name": "_run_process", + "why": "Sends the argument list it is given over the control connection.", + "evidence": [ + { + "at": "src/process.jl:293", + "has": [ + "_run_process" + ], + "reaches": [ + { + "at": "src/process.jl:334", + "has": [ + " run(" + ] + } + ] + } + ] + }, + { + "port": "elixir", + "name": "read", + "why": "Runs the tmux command it is given through the one-shot transport.", + "evidence": [ + { + "at": "lib/libtmux/capture.ex:307", + "has": [ + "defp read(" + ], + "reaches": [ + { + "at": "lib/libtmux/capture.ex:317", + "has": [ + "Server.run(" + ], + "calls": "run" + }, + { + "at": "lib/libtmux/server.ex:58", + "has": [ + "OneShot.run(" + ], + "calls": "run" + }, + { + "at": "lib/libtmux/transport/oneshot.ex:86", + "has": [ + "run_worker(spec)" + ], + "calls": "run_worker" + }, + { + "at": "lib/libtmux/transport/oneshot.ex:142", + "has": [ + "execute(" + ], + "calls": "execute" + }, + { + "at": "lib/libtmux/transport/oneshot.ex:172", + "has": [ + "open(spec)" + ], + "calls": "open" + }, + { + "at": "lib/libtmux/transport/oneshot.ex:197", + "has": [ + "send_port(" + ] + } + ] + } + ] + }, + { + "port": "elixir", + "name": "rows", + "why": "Reads the rows of the command it is given, through read.", + "evidence": [ + { + "at": "lib/libtmux/capture.ex:193", + "has": [ + "defp rows(" + ], + "reaches": [ + { + "at": "lib/libtmux/capture.ex:194", + "has": [ + "read(" + ], + "calls": "read" + }, + { + "at": "lib/libtmux/capture.ex:317", + "has": [ + "Server.run(" + ], + "calls": "run" + }, + { + "at": "lib/libtmux/server.ex:58", + "has": [ + "OneShot.run(" + ], + "calls": "run" + }, + { + "at": "lib/libtmux/transport/oneshot.ex:86", + "has": [ + "run_worker(spec)" + ], + "calls": "run_worker" + }, + { + "at": "lib/libtmux/transport/oneshot.ex:142", + "has": [ + "execute(" + ], + "calls": "execute" + }, + { + "at": "lib/libtmux/transport/oneshot.ex:172", + "has": [ + "open(spec)" + ], + "calls": "open" + }, + { + "at": "lib/libtmux/transport/oneshot.ex:197", + "has": [ + "send_port(" + ] + } + ] + } + ] + }, + { + "port": "elixir", + "name": "list", + "why": "Reads the rows of the command it is given, through rows.", + "evidence": [ + { + "at": "lib/libtmux/capture.ex:185", + "has": [ + "defp list(" + ], + "reaches": [ + { + "at": "lib/libtmux/capture.ex:187", + "has": [ + "rows(" + ], + "calls": "rows" + }, + { + "at": "lib/libtmux/capture.ex:194", + "has": [ + "read(" + ], + "calls": "read" + }, + { + "at": "lib/libtmux/capture.ex:317", + "has": [ + "Server.run(" + ], + "calls": "run" + }, + { + "at": "lib/libtmux/server.ex:58", + "has": [ + "OneShot.run(" + ], + "calls": "run" + }, + { + "at": "lib/libtmux/transport/oneshot.ex:86", + "has": [ + "run_worker(spec)" + ], + "calls": "run_worker" + }, + { + "at": "lib/libtmux/transport/oneshot.ex:142", + "has": [ + "execute(" + ], + "calls": "execute" + }, + { + "at": "lib/libtmux/transport/oneshot.ex:172", + "has": [ + "open(spec)" + ], + "calls": "open" + }, + { + "at": "lib/libtmux/transport/oneshot.ex:197", + "has": [ + "send_port(" + ] + } + ] + } + ] + }, + { + "port": "ts", + "name": "runCommand", + "why": "Sends the tmux command in its argument list through the runtime's transport.", + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/command.ts:89", + "has": [ + "runCommand" + ], + "reaches": [ + { + "at": "packages/libtmux/src/_internal/operations/command.ts:94", + "has": [ + "executeCommand" + ], + "calls": "executeCommand" + }, + { + "at": "packages/libtmux/src/_internal/operations/command.ts:47", + "has": [ + "execute" + ], + "calls": "execute", + "on": "NodeSpawnTransport" + }, + { + "at": "packages/libtmux/src/_internal/transport/node_spawn_transport.ts:139", + "has": [ + "spawn(" + ] + } + ] + } + ] + }, + { + "port": "ts", + "name": "runCommands", + "why": "Sends the tmux command in its argument list through the runtime's transport.", + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/command.ts:113", + "has": [ + "runCommands" + ], + "reaches": [ + { + "at": "packages/libtmux/src/_internal/operations/command.ts:124", + "has": [ + "execute" + ], + "calls": "execute", + "on": "NodeSpawnTransport" + }, + { + "at": "packages/libtmux/src/_internal/transport/node_spawn_transport.ts:139", + "has": [ + "spawn(" + ] + } + ] + } + ] + }, + { + "port": "ts", + "name": "runCommandBytes", + "why": "Sends the tmux command in its argument list through the runtime's transport.", + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/command.ts:98", + "has": [ + "runCommandBytes" + ], + "reaches": [ + { + "at": "packages/libtmux/src/_internal/operations/command.ts:103", + "has": [ + "executeCommand" + ], + "calls": "executeCommand" + }, + { + "at": "packages/libtmux/src/_internal/operations/command.ts:47", + "has": [ + "execute" + ], + "calls": "execute", + "on": "NodeSpawnTransport" + }, + { + "at": "packages/libtmux/src/_internal/transport/node_spawn_transport.ts:139", + "has": [ + "spawn(" + ] + } + ] + } + ] + }, + { + "port": "ts", + "name": "execute", + "why": "Sends the tmux command in its argument list through the runtime's transport.", + "evidence": [ + { + "at": "packages/libtmux/src/_internal/control/observer_transport.ts:344", + "has": [ + "execute" + ], + "reaches": [ + { + "at": "packages/libtmux/src/_internal/control/observer_transport.ts:355", + "has": [ + "execute" + ], + "calls": "execute", + "on": "NodeSpawnTransport" + }, + { + "at": "packages/libtmux/src/_internal/transport/node_spawn_transport.ts:139", + "has": [ + "spawn(" + ] + } + ] + }, + { + "at": "packages/libtmux/src/_internal/transport/bounded_transport.ts:223", + "has": [ + "execute" + ], + "reaches": [ + { + "at": "packages/libtmux/src/_internal/transport/bounded_transport.ts:224", + "has": [ + "run" + ], + "calls": "run" + }, + { + "at": "packages/libtmux/src/_internal/transport/bounded_transport.ts:239", + "has": [ + "execute" + ], + "calls": "execute", + "on": "NodeSpawnTransport" + }, + { + "at": "packages/libtmux/src/_internal/transport/node_spawn_transport.ts:139", + "has": [ + "spawn(" + ] + } + ] + }, + { + "at": "packages/libtmux/src/_internal/transport/node_spawn_transport.ts:110", + "has": [ + "execute" + ], + "reaches": [ + { + "at": "packages/libtmux/src/_internal/transport/node_spawn_transport.ts:139", + "has": [ + "spawn(" + ] + } + ] + } + ] + }, + { + "port": "ts", + "name": "killTarget", + "why": "Sends the tmux command in its argument list through the runtime's transport.", + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/mutations.ts:73", + "has": [ + "killTarget" + ], + "reaches": [ + { + "at": "packages/libtmux/src/_internal/operations/mutations.ts:78", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "packages/libtmux/src/_internal/operations/command.ts:94", + "has": [ + "executeCommand" + ], + "calls": "executeCommand" + }, + { + "at": "packages/libtmux/src/_internal/operations/command.ts:47", + "has": [ + "execute" + ], + "calls": "execute", + "on": "NodeSpawnTransport" + }, + { + "at": "packages/libtmux/src/_internal/transport/node_spawn_transport.ts:139", + "has": [ + "spawn(" + ] + } + ] + } + ] + }, + { + "port": "ts", + "name": "selectTarget", + "why": "Sends the tmux command in its argument list through the runtime's transport.", + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/topology.ts:389", + "has": [ + "selectTarget" + ], + "reaches": [ + { + "at": "packages/libtmux/src/_internal/operations/topology.ts:394", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "packages/libtmux/src/_internal/operations/command.ts:94", + "has": [ + "executeCommand" + ], + "calls": "executeCommand" + }, + { + "at": "packages/libtmux/src/_internal/operations/command.ts:47", + "has": [ + "execute" + ], + "calls": "execute", + "on": "NodeSpawnTransport" + }, + { + "at": "packages/libtmux/src/_internal/transport/node_spawn_transport.ts:139", + "has": [ + "spawn(" + ] + } + ] + } + ] + }, + { + "port": "ts", + "name": "executeGuardedList", + "why": "Sends the tmux command in its argument list through the runtime's transport.", + "evidence": [ + { + "at": "packages/libtmux/src/_internal/codec/guarded_listing.ts:80", + "has": [ + "executeGuardedList" + ], + "reaches": [ + { + "at": "packages/libtmux/src/_internal/codec/guarded_listing.ts:102", + "has": [ + "execute" + ], + "calls": "execute", + "on": "NodeSpawnTransport" + }, + { + "at": "packages/libtmux/src/_internal/transport/node_spawn_transport.ts:139", + "has": [ + "spawn(" + ] + } + ] + } + ] + }, + { + "port": "ts", + "name": "cmd", + "why": "Sends the tmux command in its argument list through the runtime's transport.", + "evidence": [ + { + "at": "packages/libtmux/src/pane.ts:672", + "has": [ + "cmd" + ], + "reaches": [ + { + "at": "packages/libtmux/src/pane.ts:677", + "has": [ + "runRawCommand" + ], + "calls": "runRawCommand" + }, + { + "at": "packages/libtmux/src/_internal/operations/raw.ts:27", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "packages/libtmux/src/_internal/operations/command.ts:94", + "has": [ + "executeCommand" + ], + "calls": "executeCommand" + }, + { + "at": "packages/libtmux/src/_internal/operations/command.ts:47", + "has": [ + "execute" + ], + "calls": "execute", + "on": "NodeSpawnTransport" + }, + { + "at": "packages/libtmux/src/_internal/transport/node_spawn_transport.ts:139", + "has": [ + "spawn(" + ] + } + ] + }, + { + "at": "packages/libtmux/src/server.ts:1348", + "has": [ + "cmd" + ], + "reaches": [ + { + "at": "packages/libtmux/src/server.ts:1353", + "has": [ + "runRawCommand" + ], + "calls": "runRawCommand" + }, + { + "at": "packages/libtmux/src/_internal/operations/raw.ts:27", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "packages/libtmux/src/_internal/operations/command.ts:94", + "has": [ + "executeCommand" + ], + "calls": "executeCommand" + }, + { + "at": "packages/libtmux/src/_internal/operations/command.ts:47", + "has": [ + "execute" + ], + "calls": "execute", + "on": "NodeSpawnTransport" + }, + { + "at": "packages/libtmux/src/_internal/transport/node_spawn_transport.ts:139", + "has": [ + "spawn(" + ] + } + ] + }, + { + "at": "packages/libtmux/src/session.ts:434", + "has": [ + "cmd" + ], + "reaches": [ + { + "at": "packages/libtmux/src/session.ts:439", + "has": [ + "runRawCommand" + ], + "calls": "runRawCommand" + }, + { + "at": "packages/libtmux/src/_internal/operations/raw.ts:27", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "packages/libtmux/src/_internal/operations/command.ts:94", + "has": [ + "executeCommand" + ], + "calls": "executeCommand" + }, + { + "at": "packages/libtmux/src/_internal/operations/command.ts:47", + "has": [ + "execute" + ], + "calls": "execute", + "on": "NodeSpawnTransport" + }, + { + "at": "packages/libtmux/src/_internal/transport/node_spawn_transport.ts:139", + "has": [ + "spawn(" + ] + } + ] + } + ] + }, + { + "port": "ts", + "name": "prepareInvocationRequest", + "kind": "builder", + "why": "Builds the argument list of a command from the command it is given.", + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/request.ts:44", + "has": [ + "prepareInvocationRequest" + ] + } + ] + }, + { + "port": "ts", + "name": "prepareCommandRequest", + "kind": "builder", + "why": "Builds the argument list of a command from the command it is given.", + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/request.ts:30", + "has": [ + "prepareCommandRequest" + ] + } + ] + }, + { + "port": "ts", + "name": "snapshotInvocationRequest", + "kind": "builder", + "why": "Builds the argument list of a command from the command it is given.", + "evidence": [ + { + "at": "packages/libtmux/src/_internal/transport/types.ts:25", + "has": [ + "snapshotInvocationRequest" + ] + } + ] + }, + { + "port": "rs", + "name": "mutate", + "why": "Sends the Command it is given, or the command it is named for, to the server.", + "evidence": [ + { + "at": "crates/libtmux/src/internal/listing.rs:452", + "has": [ + "mutate" + ], + "reaches": [ + { + "at": "crates/libtmux/src/internal/listing.rs:458", + "has": [ + "execute" + ], + "calls": "execute" + }, + { + "at": "crates/libtmux/src/internal/core.rs:438", + "has": [ + "self.executor.execute(request)" + ], + "leads": "execute", + "why": "dynamic dispatch through the Executor trait; the process transport implements it as SubprocessExecutor::execute" + }, + { + "at": "crates/libtmux/src/internal/subprocess.rs:364", + "has": [ + "self.clone().run(request)" + ], + "calls": "run", + "on": "SubprocessExecutor" + }, + { + "at": "crates/libtmux/src/internal/subprocess.rs:290", + "has": [ + "process.spawn()" + ] + } + ] + } + ], + "labels": [ + { + "at": 1, + "name": "command_name" + } + ] + }, + { + "port": "rs", + "name": "run", + "why": "Sends the Command it is given, or the command it is named for, to the server.", + "evidence": [ + { + "at": "crates/libtmux/src/internal/options.rs:363", + "has": [ + "run" + ], + "reaches": [ + { + "at": "crates/libtmux/src/internal/options.rs:369", + "has": [ + "execute" + ], + "calls": "execute" + }, + { + "at": "crates/libtmux/src/internal/core.rs:438", + "has": [ + "self.executor.execute(request)" + ], + "leads": "execute", + "why": "dynamic dispatch through the Executor trait; the process transport implements it as SubprocessExecutor::execute" + }, + { + "at": "crates/libtmux/src/internal/subprocess.rs:364", + "has": [ + "self.clone().run(request)" + ], + "calls": "run", + "on": "SubprocessExecutor" + }, + { + "at": "crates/libtmux/src/internal/subprocess.rs:290", + "has": [ + "process.spawn()" + ] + } + ] + } + ], + "labels": [ + { + "at": 1, + "name": "command_name" + } + ] + }, + { + "port": "rs", + "name": "cmd", + "why": "Sends the Command it is given, or the command it is named for, to the server.", + "evidence": [ + { + "at": "crates/libtmux/src/pane.rs:801", + "has": [ + "cmd" + ], + "reaches": [ + { + "at": "crates/libtmux/src/pane.rs:803", + "has": [ + "execute" + ], + "calls": "execute" + }, + { + "at": "crates/libtmux/src/internal/core.rs:438", + "has": [ + "self.executor.execute(request)" + ], + "leads": "execute", + "why": "dynamic dispatch through the Executor trait; the process transport implements it as SubprocessExecutor::execute" + }, + { + "at": "crates/libtmux/src/internal/subprocess.rs:364", + "has": [ + "self.clone().run(request)" + ], + "calls": "run", + "on": "SubprocessExecutor" + }, + { + "at": "crates/libtmux/src/internal/subprocess.rs:290", + "has": [ + "process.spawn()" + ] + } + ] + }, + { + "at": "crates/libtmux/src/server.rs:678", + "has": [ + "cmd" + ], + "reaches": [ + { + "at": "crates/libtmux/src/server.rs:679", + "has": [ + "execute" + ], + "calls": "execute" + }, + { + "at": "crates/libtmux/src/internal/core.rs:438", + "has": [ + "self.executor.execute(request)" + ], + "leads": "execute", + "why": "dynamic dispatch through the Executor trait; the process transport implements it as SubprocessExecutor::execute" + }, + { + "at": "crates/libtmux/src/internal/subprocess.rs:364", + "has": [ + "self.clone().run(request)" + ], + "calls": "run", + "on": "SubprocessExecutor" + }, + { + "at": "crates/libtmux/src/internal/subprocess.rs:290", + "has": [ + "process.spawn()" + ] + } + ] + }, + { + "at": "crates/libtmux/src/session.rs:582", + "has": [ + "cmd" + ], + "reaches": [ + { + "at": "crates/libtmux/src/session.rs:584", + "has": [ + "execute" + ], + "calls": "execute" + }, + { + "at": "crates/libtmux/src/internal/core.rs:438", + "has": [ + "self.executor.execute(request)" + ], + "leads": "execute", + "why": "dynamic dispatch through the Executor trait; the process transport implements it as SubprocessExecutor::execute" + }, + { + "at": "crates/libtmux/src/internal/subprocess.rs:364", + "has": [ + "self.clone().run(request)" + ], + "calls": "run", + "on": "SubprocessExecutor" + }, + { + "at": "crates/libtmux/src/internal/subprocess.rs:290", + "has": [ + "process.spawn()" + ] + } + ] + } + ] + }, + { + "port": "rs", + "name": "execute", + "why": "Sends the Command it is given, or the command it is named for, to the server.", + "evidence": [ + { + "at": "crates/libtmux/src/internal/control_executor.rs:28", + "has": [ + "execute" + ], + "reaches": [ + { + "at": "crates/libtmux/src/internal/control_executor.rs:41", + "has": [ + "sender.send_line(" + ], + "calls": "send_line", + "on": "ControlSender" + }, + { + "at": "crates/libtmux/src/control.rs:771", + "has": [ + "self.dispatch_line(" + ], + "calls": "dispatch_line" + }, + { + "at": "crates/libtmux/src/control.rs:803", + "has": [ + "permit.send(Request" + ], + "leads": "serve", + "why": "the request goes into a channel that Connection::serve reads, and serve writes the line to the control client" + }, + { + "at": "crates/libtmux/src/control/actor.rs:541", + "has": [ + "write_line(" + ], + "calls": "write_line" + }, + { + "at": "crates/libtmux/src/control/protocol.rs:74", + "has": [ + ".write_all(" + ] + } + ] + }, + { + "at": "crates/libtmux/src/internal/core.rs:423", + "has": [ + "execute" + ], + "reaches": [ + { + "at": "crates/libtmux/src/internal/core.rs:438", + "has": [ + "execute" + ], + "leads": "execute", + "why": "dynamic dispatch through the Executor trait; the process transport implements it as SubprocessExecutor::execute" + }, + { + "at": "crates/libtmux/src/internal/subprocess.rs:364", + "has": [ + "self.clone().run(request)" + ], + "calls": "run", + "on": "SubprocessExecutor" + }, + { + "at": "crates/libtmux/src/internal/subprocess.rs:290", + "has": [ + "process.spawn()" + ] + } + ] + } + ] + }, + { + "port": "rs", + "name": "send", + "why": "Sends the Command it is given, or the command it is named for, to the server.", + "evidence": [ + { + "at": "crates/libtmux/src/control.rs:585", + "has": [ + "send" + ], + "reaches": [ + { + "at": "crates/libtmux/src/control.rs:586", + "has": [ + ".send(" + ], + "calls": "send", + "on": "ControlSender" + }, + { + "at": "crates/libtmux/src/control.rs:737", + "has": [ + "send_ordered(" + ], + "calls": "send_ordered" + }, + { + "at": "crates/libtmux/src/control.rs:755", + "has": [ + "dispatch_line(" + ], + "calls": "dispatch_line" + }, + { + "at": "crates/libtmux/src/control.rs:803", + "has": [ + "permit.send(Request" + ], + "leads": "serve", + "why": "the request goes into a channel that Connection::serve reads, and serve writes the line to the control client" + }, + { + "at": "crates/libtmux/src/control/actor.rs:541", + "has": [ + "write_line(" + ], + "calls": "write_line" + }, + { + "at": "crates/libtmux/src/control/protocol.rs:74", + "has": [ + ".write_all(" + ] + } + ] + } + ] + }, + { + "port": "rs", + "name": "step", + "why": "Sends the Command it is given, or the command it is named for, to the server.", + "evidence": [ + { + "at": "crates/libtmux/src/session.rs:388", + "has": [ + "step" + ], + "reaches": [ + { + "at": "crates/libtmux/src/session.rs:392", + "has": [ + "execute" + ], + "calls": "execute" + }, + { + "at": "crates/libtmux/src/internal/core.rs:438", + "has": [ + "self.executor.execute(request)" + ], + "leads": "execute", + "why": "dynamic dispatch through the Executor trait; the process transport implements it as SubprocessExecutor::execute" + }, + { + "at": "crates/libtmux/src/internal/subprocess.rs:364", + "has": [ + "self.clone().run(request)" + ], + "calls": "run", + "on": "SubprocessExecutor" + }, + { + "at": "crates/libtmux/src/internal/subprocess.rs:290", + "has": [ + "process.spawn()" + ] + } + ] + } + ] + }, + { + "port": "rs", + "name": "list", + "why": "Sends the Command it is given, or the command it is named for, to the server.", + "evidence": [ + { + "at": "crates/libtmux/src/internal/listing.rs:92", + "has": [ + "list" + ], + "reaches": [ + { + "at": "crates/libtmux/src/internal/listing.rs:106", + "has": [ + "execute" + ], + "calls": "execute" + }, + { + "at": "crates/libtmux/src/internal/core.rs:438", + "has": [ + "self.executor.execute(request)" + ], + "leads": "execute", + "why": "dynamic dispatch through the Executor trait; the process transport implements it as SubprocessExecutor::execute" + }, + { + "at": "crates/libtmux/src/internal/subprocess.rs:364", + "has": [ + "self.clone().run(request)" + ], + "calls": "run", + "on": "SubprocessExecutor" + }, + { + "at": "crates/libtmux/src/internal/subprocess.rs:290", + "has": [ + "process.spawn()" + ] + } + ] + } + ] + }, + { + "port": "rs", + "name": "send_ordered", + "why": "Sends the Command it is given, or the command it is named for, to the server.", + "evidence": [ + { + "at": "crates/libtmux/src/control.rs:746", + "has": [ + "send_ordered" + ], + "reaches": [ + { + "at": "crates/libtmux/src/control.rs:755", + "has": [ + "dispatch_line" + ], + "calls": "dispatch_line" + }, + { + "at": "crates/libtmux/src/control.rs:803", + "has": [ + "permit.send(Request" + ], + "leads": "serve", + "why": "the request goes into a channel that Connection::serve reads, and serve writes the line to the control client" + }, + { + "at": "crates/libtmux/src/control/actor.rs:541", + "has": [ + "write_line(" + ], + "calls": "write_line" + }, + { + "at": "crates/libtmux/src/control/protocol.rs:74", + "has": [ + ".write_all(" + ] + } + ] + } + ] + }, + { + "port": "rs", + "name": "execute_chain", + "why": "Sends the Command it is given, or the command it is named for, to the server.", + "evidence": [ + { + "at": "crates/libtmux/src/internal/core.rs:483", + "has": [ + "execute_chain" + ], + "reaches": [ + { + "at": "crates/libtmux/src/internal/core.rs:496", + "has": [ + "execute" + ], + "leads": "execute", + "why": "dynamic dispatch through the Executor trait; the process transport implements it as SubprocessExecutor::execute" + }, + { + "at": "crates/libtmux/src/internal/subprocess.rs:364", + "has": [ + "self.clone().run(request)" + ], + "calls": "run", + "on": "SubprocessExecutor" + }, + { + "at": "crates/libtmux/src/internal/subprocess.rs:290", + "has": [ + "process.spawn()" + ] + } + ] + } + ] + }, + { + "port": "rs", + "name": "chain", + "why": "Sends the CommandChain it is given, one tmux invocation, to the server.", + "evidence": [ + { + "at": "crates/libtmux/src/server.rs:753", + "has": [ + "chain" + ], + "reaches": [ + { + "at": "crates/libtmux/src/server.rs:754", + "has": [ + "execute_chain" + ], + "calls": "execute_chain" + }, + { + "at": "crates/libtmux/src/internal/core.rs:496", + "has": [ + "execute" + ], + "leads": "execute", + "why": "dynamic dispatch through the Executor trait; the process transport implements it as SubprocessExecutor::execute" + }, + { + "at": "crates/libtmux/src/internal/subprocess.rs:364", + "has": [ + "self.clone().run(request)" + ], + "calls": "run", + "on": "SubprocessExecutor" + }, + { + "at": "crates/libtmux/src/internal/subprocess.rs:290", + "has": [ + "process.spawn()" + ] + } + ] + } + ] + }, + { + "port": "rs", + "name": "dispatch", + "why": "Sends the rendered commands of one plan step to the server, as one chain when the step carries several.", + "evidence": [ + { + "at": "crates/libtmux/src/plan/run.rs:443", + "has": [ + "dispatch" + ], + "reaches": [ + { + "at": "crates/libtmux/src/plan/run.rs:461", + "has": [ + "server.cmd(" + ], + "calls": "cmd" + }, + { + "at": "crates/libtmux/src/server.rs:679", + "has": [ + "execute(" + ], + "calls": "execute" + }, + { + "at": "crates/libtmux/src/internal/core.rs:438", + "has": [ + "self.executor.execute(request)" + ], + "leads": "execute", + "why": "dynamic dispatch through the Executor trait; the process transport implements it as SubprocessExecutor::execute" + }, + { + "at": "crates/libtmux/src/internal/subprocess.rs:364", + "has": [ + "self.clone().run(request)" + ], + "calls": "run", + "on": "SubprocessExecutor" + }, + { + "at": "crates/libtmux/src/internal/subprocess.rs:290", + "has": [ + "process.spawn()" + ] + } + ] + } + ] + }, + { + "port": "rs", + "name": "sensitive_arg", + "kind": "builder", + "why": "Adds one argument, kept out of logs, to the Command it is called on and returns the Command.", + "evidence": [ + { + "at": "crates/libtmux/src/command.rs:208", + "has": [ + "sensitive_arg" + ] + } + ] + }, + { + "port": "go", + "name": "literalCmd", + "why": "Sends the tmux arguments or the command it is given to the server.", + "evidence": [ + { + "at": "tmux/scoped_command.go:26", + "has": [ + "literalCmd" + ], + "reaches": [ + { + "at": "tmux/scoped_command.go:27", + "has": [ + "literalScopedCommand" + ], + "calls": "literalScopedCommand" + }, + { + "at": "tmux/scoped_command.go:85", + "has": [ + "literalCmd" + ], + "calls": "literalCmd" + }, + { + "at": "tmux/server.go:292", + "has": [ + "literalCmdWithRaw" + ], + "calls": "literalCmdWithRaw" + }, + { + "at": "tmux/server.go:317", + "has": [ + "dispatch" + ], + "calls": "dispatch" + }, + { + "at": "tmux/server.go:327", + "has": [ + "dispatchAs" + ], + "calls": "dispatchAs" + }, + { + "at": "tmux/server.go:336", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", + "has": [ + "Run" + ], + "calls": "Run", + "on": "Runner" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:99", + "has": [ + "exec.CommandContext(" + ] + } + ] + }, + { + "at": "tmux/server.go:291", + "has": [ + "literalCmd" + ], + "reaches": [ + { + "at": "tmux/server.go:292", + "has": [ + "literalCmdWithRaw" + ], + "calls": "literalCmdWithRaw" + }, + { + "at": "tmux/server.go:317", + "has": [ + "dispatch" + ], + "calls": "dispatch" + }, + { + "at": "tmux/server.go:327", + "has": [ + "dispatchAs" + ], + "calls": "dispatchAs" + }, + { + "at": "tmux/server.go:336", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", + "has": [ + "Run" + ], + "calls": "Run", + "on": "Runner" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:99", + "has": [ + "exec.CommandContext(" + ] + } + ] + } + ] + }, + { + "port": "go", + "name": "Cmd", + "why": "Sends the tmux arguments or the command it is given to the server.", + "evidence": [ + { + "at": "tmux/control_request.go:102", + "has": [ + "Cmd" + ], + "reaches": [ + { + "at": "tmux/control_request.go:106", + "has": [ + "Call" + ], + "calls": "Call" + }, + { + "at": "tmux/control_request.go:129", + "has": [ + "cmd" + ], + "calls": "cmd" + }, + { + "at": "tmux/control_request.go:148", + "has": [ + "cmdUnobserved" + ], + "calls": "cmdUnobserved" + }, + { + "at": "tmux/control_request.go:156", + "has": [ + "cmdWith" + ], + "calls": "cmdWith" + }, + { + "at": "tmux/control_request.go:195", + "has": [ + "submitControlRequest" + ], + "calls": "submitControlRequest" + }, + { + "at": "tmux/control_request.go:216", + "has": [ + "c.requests <- request" + ], + "leads": "runRequests", + "why": "the request is sent on a channel that runRequests receives from, and it writes the command to the control client" + }, + { + "at": "tmux/control_request.go:272", + "has": [ + "executeControlRequest(" + ], + "calls": "executeControlRequest" + }, + { + "at": "tmux/control_request.go:306", + "has": [ + "io.WriteString(c.stdin" + ] + } + ] + }, + { + "at": "tmux/scoped_command.go:12", + "has": [ + "Cmd" + ], + "reaches": [ + { + "at": "tmux/scoped_command.go:13", + "has": [ + "scopedCommand" + ], + "calls": "scopedCommand" + }, + { + "at": "tmux/scoped_command.go:54", + "has": [ + "Cmd" + ], + "calls": "Cmd" + }, + { + "at": "tmux/server.go:287", + "has": [ + "dispatch" + ], + "calls": "dispatch" + }, + { + "at": "tmux/server.go:327", + "has": [ + "dispatchAs" + ], + "calls": "dispatchAs" + }, + { + "at": "tmux/server.go:336", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", + "has": [ + "Run" + ], + "calls": "Run", + "on": "Runner" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:99", + "has": [ + "exec.CommandContext(" + ] + } + ] + } + ] + }, + { + "port": "go", + "name": "cmd", + "why": "Sends the tmux arguments or the command it is given to the server.", + "evidence": [ + { + "at": "tmux/control_request.go:136", + "has": [ + "cmd" + ], + "reaches": [ + { + "at": "tmux/control_request.go:148", + "has": [ + "cmdUnobserved" + ], + "calls": "cmdUnobserved" + }, + { + "at": "tmux/control_request.go:156", + "has": [ + "cmdWith" + ], + "calls": "cmdWith" + }, + { + "at": "tmux/control_request.go:195", + "has": [ + "submitControlRequest" + ], + "calls": "submitControlRequest" + }, + { + "at": "tmux/control_request.go:216", + "has": [ + "c.requests <- request" + ], + "leads": "runRequests", + "why": "the request is sent on a channel that runRequests receives from, and it writes the command to the control client" + }, + { + "at": "tmux/control_request.go:272", + "has": [ + "executeControlRequest(" + ], + "calls": "executeControlRequest" + }, + { + "at": "tmux/control_request.go:306", + "has": [ + "io.WriteString(c.stdin" + ] + } + ] + } + ] + }, + { + "port": "go", + "name": "runExactArgv", + "why": "Sends the tmux arguments or the command it is given to the server.", + "evidence": [ + { + "at": "tmux/transport.go:237", + "has": [ + "runExactArgv" + ], + "reaches": [ + { + "at": "tmux/transport.go:254", + "has": [ + "Run" + ], + "calls": "Run", + "on": "Runner" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:99", + "has": [ + "exec.CommandContext(" + ] + } + ] + } + ] + }, + { + "port": "go", + "name": "runClientCommand", + "why": "Sends the tmux arguments or the command it is given to the server.", + "evidence": [ + { + "at": "tmux/server_clients.go:353", + "has": [ + "runClientCommand" + ], + "reaches": [ + { + "at": "tmux/server_clients.go:359", + "has": [ + "literalCmd" + ], + "calls": "literalCmd" + }, + { + "at": "tmux/server.go:292", + "has": [ + "literalCmdWithRaw" + ], + "calls": "literalCmdWithRaw" + }, + { + "at": "tmux/server.go:317", + "has": [ + "dispatch" + ], + "calls": "dispatch" + }, + { + "at": "tmux/server.go:327", + "has": [ + "dispatchAs" + ], + "calls": "dispatchAs" + }, + { + "at": "tmux/server.go:336", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", + "has": [ + "Run" + ], + "calls": "Run", + "on": "Runner" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:99", + "has": [ + "exec.CommandContext(" + ] + } + ] + } + ], + "labels": [ + { + "at": 2, + "name": "subcommand" + } + ] + }, + { + "port": "go", + "name": "runWindowLayoutCommand", + "why": "Sends the tmux arguments or the command it is given to the server.", + "evidence": [ + { + "at": "tmux/window_layout.go:354", + "has": [ + "runWindowLayoutCommand" + ], + "reaches": [ + { + "at": "tmux/window_layout.go:360", + "has": [ + "literalCmd" + ], + "calls": "literalCmd" + }, + { + "at": "tmux/server.go:292", + "has": [ + "literalCmdWithRaw" + ], + "calls": "literalCmdWithRaw" + }, + { + "at": "tmux/server.go:317", + "has": [ + "dispatch" + ], + "calls": "dispatch" + }, + { + "at": "tmux/server.go:327", + "has": [ + "dispatchAs" + ], + "calls": "dispatchAs" + }, + { + "at": "tmux/server.go:336", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", + "has": [ + "Run" + ], + "calls": "Run", + "on": "Runner" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:99", + "has": [ + "exec.CommandContext(" + ] + } + ] + } + ], + "labels": [ + { + "at": 2, + "name": "subcommand" + } + ] + }, + { + "port": "go", + "name": "runRedactedPaneModeCommand", + "why": "Sends the tmux arguments or the command it is given to the server.", + "evidence": [ + { + "at": "tmux/pane_modes.go:325", + "has": [ + "runRedactedPaneModeCommand" + ], + "reaches": [ + { + "at": "tmux/pane_modes.go:331", + "has": [ + "literalCmd" + ], + "calls": "literalCmd" + }, + { + "at": "tmux/server.go:292", + "has": [ + "literalCmdWithRaw" + ], + "calls": "literalCmdWithRaw" + }, + { + "at": "tmux/server.go:317", + "has": [ + "dispatch" + ], + "calls": "dispatch" + }, + { + "at": "tmux/server.go:327", + "has": [ + "dispatchAs" + ], + "calls": "dispatchAs" + }, + { + "at": "tmux/server.go:336", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", + "has": [ + "Run" + ], + "calls": "Run", + "on": "Runner" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:99", + "has": [ + "exec.CommandContext(" + ] + } + ] + } + ], + "labels": [ + { + "at": 2, + "name": "subcommand" + } + ] + }, + { + "port": "go", + "name": "runServerKeyCommand", + "why": "Sends the tmux arguments or the command it is given to the server.", + "evidence": [ + { + "at": "tmux/server_keys.go:250", + "has": [ + "runServerKeyCommand" + ], + "reaches": [ + { + "at": "tmux/server_keys.go:256", + "has": [ + "literalCmd" + ], + "calls": "literalCmd" + }, + { + "at": "tmux/server.go:292", + "has": [ + "literalCmdWithRaw" + ], + "calls": "literalCmdWithRaw" + }, + { + "at": "tmux/server.go:317", + "has": [ + "dispatch" + ], + "calls": "dispatch" + }, + { + "at": "tmux/server.go:327", + "has": [ + "dispatchAs" + ], + "calls": "dispatchAs" + }, + { + "at": "tmux/server.go:336", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", + "has": [ + "Run" + ], + "calls": "Run", + "on": "Runner" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:99", + "has": [ + "exec.CommandContext(" + ] + } + ] + } + ], + "labels": [ + { + "at": 2, + "name": "subcommand" + } + ] + }, + { + "port": "go", + "name": "runServerListCommand", + "why": "Sends the tmux arguments or the command it is given to the server.", + "evidence": [ + { + "at": "tmux/server_buffers.go:342", + "has": [ + "runServerListCommand" + ], + "reaches": [ + { + "at": "tmux/server_buffers.go:347", + "has": [ + "runServerListCommandWithError" + ], + "calls": "runServerListCommandWithError" + }, + { + "at": "tmux/server_buffers.go:364", + "has": [ + "literalCmd" + ], + "calls": "literalCmd" + }, + { + "at": "tmux/server.go:292", + "has": [ + "literalCmdWithRaw" + ], + "calls": "literalCmdWithRaw" + }, + { + "at": "tmux/server.go:317", + "has": [ + "dispatch" + ], + "calls": "dispatch" + }, + { + "at": "tmux/server.go:327", + "has": [ + "dispatchAs" + ], + "calls": "dispatchAs" + }, + { + "at": "tmux/server.go:336", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", + "has": [ + "Run" + ], + "calls": "Run", + "on": "Runner" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:99", + "has": [ + "exec.CommandContext(" + ] + } + ] + } + ] + }, + { + "port": "go", + "name": "runSimplePaneMode", + "why": "Sends the tmux arguments or the command it is given to the server.", + "evidence": [ + { + "at": "tmux/pane_modes.go:309", + "has": [ + "runSimplePaneMode" + ], + "reaches": [ + { + "at": "tmux/pane_modes.go:314", + "has": [ + "runRedactedPaneModeCommand" + ], + "calls": "runRedactedPaneModeCommand" + }, + { + "at": "tmux/pane_modes.go:331", + "has": [ + "literalCmd" + ], + "calls": "literalCmd" + }, + { + "at": "tmux/server.go:292", + "has": [ + "literalCmdWithRaw" + ], + "calls": "literalCmdWithRaw" + }, + { + "at": "tmux/server.go:317", + "has": [ + "dispatch" + ], + "calls": "dispatch" + }, + { + "at": "tmux/server.go:327", + "has": [ + "dispatchAs" + ], + "calls": "dispatchAs" + }, + { + "at": "tmux/server.go:336", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", + "has": [ + "Run" + ], + "calls": "Run", + "on": "Runner" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:99", + "has": [ + "exec.CommandContext(" + ] + } + ] + } + ] + }, + { + "port": "go", + "name": "navigateWindow", + "why": "Sends the tmux arguments or the command it is given to the server.", + "evidence": [ + { + "at": "tmux/session_navigation.go:106", + "has": [ + "navigateWindow" + ], + "reaches": [ + { + "at": "tmux/session_navigation.go:116", + "has": [ + "literalCmd" + ], + "calls": "literalCmd" + }, + { + "at": "tmux/server.go:292", + "has": [ + "literalCmdWithRaw" + ], + "calls": "literalCmdWithRaw" + }, + { + "at": "tmux/server.go:317", + "has": [ + "dispatch" + ], + "calls": "dispatch" + }, + { + "at": "tmux/server.go:327", + "has": [ + "dispatchAs" + ], + "calls": "dispatchAs" + }, + { + "at": "tmux/server.go:336", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", + "has": [ + "Run" + ], + "calls": "Run", + "on": "Runner" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:99", + "has": [ + "exec.CommandContext(" + ] + } + ] + } + ] + }, + { + "port": "go", + "name": "relocate", + "why": "Sends the tmux arguments or the command it is given to the server.", + "evidence": [ + { + "at": "tmux/pane_relocate.go:205", + "has": [ + "relocate" + ], + "reaches": [ + { + "at": "tmux/pane_relocate.go:271", + "has": [ + "literalCmd" + ], + "calls": "literalCmd" + }, + { + "at": "tmux/server.go:292", + "has": [ + "literalCmdWithRaw" + ], + "calls": "literalCmdWithRaw" + }, + { + "at": "tmux/server.go:317", + "has": [ + "dispatch" + ], + "calls": "dispatch" + }, + { + "at": "tmux/server.go:327", + "has": [ + "dispatchAs" + ], + "calls": "dispatchAs" + }, + { + "at": "tmux/server.go:336", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", + "has": [ + "Run" + ], + "calls": "Run", + "on": "Runner" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:99", + "has": [ + "exec.CommandContext(" + ] + } + ] + } + ] + }, + { + "port": "go", + "name": "searchSnapshot", + "why": "Sends the tmux arguments or the command it is given to the server.", + "evidence": [ + { + "at": "tmux/search.go:167", + "has": [ + "searchSnapshot" + ], + "reaches": [ + { + "at": "tmux/search.go:175", + "has": [ + "s.searchSnapshotProjected(" + ], + "calls": "searchSnapshotProjected" + }, + { + "at": "tmux/search.go:214", + "has": [ + "s.snapshotListing(" + ], + "calls": "snapshotListing" + }, + { + "at": "tmux/snapshot_capture.go:123", + "has": [ + "s.literalCmdWithRaw(" + ], + "calls": "literalCmdWithRaw" + }, + { + "at": "tmux/server.go:317", + "has": [ + "dispatch" + ], + "calls": "dispatch" + }, + { + "at": "tmux/server.go:327", + "has": [ + "dispatchAs" + ], + "calls": "dispatchAs" + }, + { + "at": "tmux/server.go:336", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", + "has": [ + "Run" + ], + "calls": "Run", + "on": "Runner" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:99", + "has": [ + "exec.CommandContext(" + ] + } + ] + } + ] + }, + { + "port": "go", + "name": "searchSnapshotProjected", + "why": "Sends the tmux arguments or the command it is given to the server.", + "evidence": [ + { + "at": "tmux/search.go:180", + "has": [ + "searchSnapshotProjected" + ], + "reaches": [ + { + "at": "tmux/search.go:214", + "has": [ + "s.snapshotListing(" + ], + "calls": "snapshotListing" + }, + { + "at": "tmux/snapshot_capture.go:123", + "has": [ + "s.literalCmdWithRaw(" + ], + "calls": "literalCmdWithRaw" + }, + { + "at": "tmux/server.go:317", + "has": [ + "dispatch" + ], + "calls": "dispatch" + }, + { + "at": "tmux/server.go:327", + "has": [ + "dispatchAs" + ], + "calls": "dispatchAs" + }, + { + "at": "tmux/server.go:336", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", + "has": [ + "Run" + ], + "calls": "Run", + "on": "Runner" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:99", + "has": [ + "exec.CommandContext(" + ] + } + ] + } + ] + }, + { + "port": "go", + "name": "livePoint", + "why": "Sends the tmux arguments or the command it is given to the server.", + "evidence": [ + { + "at": "tmux/lookup.go:131", + "has": [ + "livePoint" + ], + "reaches": [ + { + "at": "tmux/lookup.go:139", + "has": [ + "s.livePointWithTargetValidation(" + ], + "calls": "livePointWithTargetValidation" + }, + { + "at": "tmux/lookup.go:198", + "has": [ + "s.snapshotListing(" + ], + "calls": "snapshotListing" + }, + { + "at": "tmux/snapshot_capture.go:123", + "has": [ + "s.literalCmdWithRaw(" + ], + "calls": "literalCmdWithRaw" + }, + { + "at": "tmux/server.go:317", + "has": [ + "dispatch" + ], + "calls": "dispatch" + }, + { + "at": "tmux/server.go:327", + "has": [ + "dispatchAs" + ], + "calls": "dispatchAs" + }, + { + "at": "tmux/server.go:336", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", + "has": [ + "Run" + ], + "calls": "Run", + "on": "Runner" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:99", + "has": [ + "exec.CommandContext(" + ] + } + ] + } + ] + }, + { + "port": "go", + "name": "livePointWithTargetValidation", + "why": "Sends the tmux arguments or the command it is given to the server.", + "evidence": [ + { + "at": "tmux/lookup.go:165", + "has": [ + "livePointWithTargetValidation" + ], + "reaches": [ + { + "at": "tmux/lookup.go:198", + "has": [ + "s.snapshotListing(" + ], + "calls": "snapshotListing" + }, + { + "at": "tmux/snapshot_capture.go:123", + "has": [ + "s.literalCmdWithRaw(" + ], + "calls": "literalCmdWithRaw" + }, + { + "at": "tmux/server.go:317", + "has": [ + "dispatch" + ], + "calls": "dispatch" + }, + { + "at": "tmux/server.go:327", + "has": [ + "dispatchAs" + ], + "calls": "dispatchAs" + }, + { + "at": "tmux/server.go:336", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", + "has": [ + "Run" + ], + "calls": "Run", + "on": "Runner" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:99", + "has": [ + "exec.CommandContext(" + ] + } + ] + } + ] + }, + { + "port": "go", + "name": "literalCmdWithRaw", + "why": "Sends the tmux arguments or the command it is given to the server.", + "evidence": [ + { + "at": "tmux/server.go:310", + "has": [ + "literalCmdWithRaw" + ], + "reaches": [ + { + "at": "tmux/server.go:317", + "has": [ + "dispatch" + ], + "calls": "dispatch" + }, + { + "at": "tmux/server.go:327", + "has": [ + "dispatchAs" + ], + "calls": "dispatchAs" + }, + { + "at": "tmux/server.go:336", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", + "has": [ + "Run" + ], + "calls": "Run", + "on": "Runner" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:99", + "has": [ + "exec.CommandContext(" + ] + } + ] + } + ] + }, + { + "port": "go", + "name": "literalCmdAs", + "why": "Sends the tmux arguments to the server on the lane its command kind names.", + "evidence": [ + { + "at": "tmux/server.go:298", + "has": [ + "literalCmdAs" + ], + "reaches": [ + { + "at": "tmux/server.go:306", + "has": [ + "dispatchAs" + ], + "calls": "dispatchAs" + }, + { + "at": "tmux/server.go:336", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", + "has": [ + "Run" + ], + "calls": "Run", + "on": "Runner" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:99", + "has": [ + "exec.CommandContext(" + ] + } + ] + } + ] + }, + { + "port": "go", + "name": "runEnvironmentMutation", + "why": "Sends the tmux arguments or the command it is given to the server.", + "evidence": [ + { + "at": "tmux/environment.go:240", + "has": [ + "runEnvironmentMutation" + ], + "reaches": [ + { + "at": "tmux/environment.go:241", + "has": [ + "literalCmd" + ], + "calls": "literalCmd" + }, + { + "at": "tmux/server.go:292", + "has": [ + "literalCmdWithRaw" + ], + "calls": "literalCmdWithRaw" + }, + { + "at": "tmux/server.go:317", + "has": [ + "dispatch" + ], + "calls": "dispatch" + }, + { + "at": "tmux/server.go:327", + "has": [ + "dispatchAs" + ], + "calls": "dispatchAs" + }, + { + "at": "tmux/server.go:336", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", + "has": [ + "Run" + ], + "calls": "Run", + "on": "Runner" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:99", + "has": [ + "exec.CommandContext(" + ] + } + ] + } + ] + }, + { + "port": "go", + "name": "runOptionMutation", + "why": "Sends the tmux arguments or the command it is given to the server.", + "evidence": [ + { + "at": "tmux/option_mutation.go:465", + "has": [ + "runOptionMutation" + ], + "reaches": [ + { + "at": "tmux/option_mutation.go:472", + "has": [ + "literalCmd" + ], + "calls": "literalCmd" + }, + { + "at": "tmux/server.go:292", + "has": [ + "literalCmdWithRaw" + ], + "calls": "literalCmdWithRaw" + }, + { + "at": "tmux/server.go:317", + "has": [ + "dispatch" + ], + "calls": "dispatch" + }, + { + "at": "tmux/server.go:327", + "has": [ + "dispatchAs" + ], + "calls": "dispatchAs" + }, + { + "at": "tmux/server.go:336", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", + "has": [ + "Run" + ], + "calls": "Run", + "on": "Runner" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:99", + "has": [ + "exec.CommandContext(" + ] + } + ] + } + ] + }, + { + "port": "go", + "name": "literalPaneCommand", + "why": "Sends the tmux arguments or the command it is given to the server.", + "evidence": [ + { + "at": "tmux/exact_target.go:63", + "has": [ + "literalPaneCommand" + ], + "reaches": [ + { + "at": "tmux/exact_target.go:72", + "has": [ + "literalCmd" + ], + "calls": "literalCmd" + }, + { + "at": "tmux/server.go:292", + "has": [ + "literalCmdWithRaw" + ], + "calls": "literalCmdWithRaw" + }, + { + "at": "tmux/server.go:317", + "has": [ + "dispatch" + ], + "calls": "dispatch" + }, + { + "at": "tmux/server.go:327", + "has": [ + "dispatchAs" + ], + "calls": "dispatchAs" + }, + { + "at": "tmux/server.go:336", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", + "has": [ + "Run" + ], + "calls": "Run", + "on": "Runner" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:99", + "has": [ + "exec.CommandContext(" + ] + } + ] + } + ] + }, + { + "port": "go", + "name": "literalScopedCommand", + "why": "Sends the tmux arguments or the command it is given to the server.", + "evidence": [ + { + "at": "tmux/scoped_command.go:57", + "has": [ + "literalScopedCommand" + ], + "reaches": [ + { + "at": "tmux/scoped_command.go:85", + "has": [ + "literalCmd" + ], + "calls": "literalCmd" + }, + { + "at": "tmux/server.go:292", + "has": [ + "literalCmdWithRaw" + ], + "calls": "literalCmdWithRaw" + }, + { + "at": "tmux/server.go:317", + "has": [ + "dispatch" + ], + "calls": "dispatch" + }, + { + "at": "tmux/server.go:327", + "has": [ + "dispatchAs" + ], + "calls": "dispatchAs" + }, + { + "at": "tmux/server.go:336", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", + "has": [ + "Run" + ], + "calls": "Run", + "on": "Runner" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:99", + "has": [ + "exec.CommandContext(" + ] + } + ] + } + ] + }, + { + "port": "go", + "name": "runServerListCommandWithError", + "why": "Sends the tmux arguments or the command it is given to the server.", + "evidence": [ + { + "at": "tmux/server_buffers.go:358", + "has": [ + "runServerListCommandWithError" + ], + "reaches": [ + { + "at": "tmux/server_buffers.go:364", + "has": [ + "literalCmd" + ], + "calls": "literalCmd" + }, + { + "at": "tmux/server.go:292", + "has": [ + "literalCmdWithRaw" + ], + "calls": "literalCmdWithRaw" + }, + { + "at": "tmux/server.go:317", + "has": [ + "dispatch" + ], + "calls": "dispatch" + }, + { + "at": "tmux/server.go:327", + "has": [ + "dispatchAs" + ], + "calls": "dispatchAs" + }, + { + "at": "tmux/server.go:336", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", + "has": [ + "Run" + ], + "calls": "Run", + "on": "Runner" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:99", + "has": [ + "exec.CommandContext(" + ] + } + ] + } + ] + }, + { + "port": "go", + "name": "runRedactedServerListCommand", + "why": "Sends the tmux arguments or the command it is given to the server.", + "evidence": [ + { + "at": "tmux/server_buffers.go:350", + "has": [ + "runRedactedServerListCommand" + ], + "reaches": [ + { + "at": "tmux/server_buffers.go:355", + "has": [ + "runServerListCommandWithError" + ], + "calls": "runServerListCommandWithError" + }, + { + "at": "tmux/server_buffers.go:364", + "has": [ + "literalCmd" + ], + "calls": "literalCmd" + }, + { + "at": "tmux/server.go:292", + "has": [ + "literalCmdWithRaw" + ], + "calls": "literalCmdWithRaw" + }, + { + "at": "tmux/server.go:317", + "has": [ + "dispatch" + ], + "calls": "dispatch" + }, + { + "at": "tmux/server.go:327", + "has": [ + "dispatchAs" + ], + "calls": "dispatchAs" + }, + { + "at": "tmux/server.go:336", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", + "has": [ + "Run" + ], + "calls": "Run", + "on": "Runner" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:99", + "has": [ + "exec.CommandContext(" + ] + } + ] + } + ] + }, + { + "port": "go", + "name": "newPane", + "why": "Sends the tmux arguments or the command it is given to the server.", + "evidence": [ + { + "at": "tmux/pane_create.go:145", + "has": [ + "newPane" + ], + "reaches": [ + { + "at": "tmux/pane_create.go:217", + "has": [ + "literalCmd" + ], + "calls": "literalCmd" + }, + { + "at": "tmux/server.go:292", + "has": [ + "literalCmdWithRaw" + ], + "calls": "literalCmdWithRaw" + }, + { + "at": "tmux/server.go:317", + "has": [ + "dispatch" + ], + "calls": "dispatch" + }, + { + "at": "tmux/server.go:327", + "has": [ + "dispatchAs" + ], + "calls": "dispatchAs" + }, + { + "at": "tmux/server.go:336", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", + "has": [ + "Run" + ], + "calls": "Run", + "on": "Runner" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:99", + "has": [ + "exec.CommandContext(" + ] + } + ] + } + ] + }, + { + "port": "go", + "name": "splitPane", + "why": "Sends the tmux arguments or the command it is given to the server.", + "evidence": [ + { + "at": "tmux/pane_create.go:334", + "has": [ + "splitPane" + ], + "reaches": [ + { + "at": "tmux/pane_create.go:358", + "has": [ + "literalCmd" + ], + "calls": "literalCmd" + }, + { + "at": "tmux/server.go:292", + "has": [ + "literalCmdWithRaw" + ], + "calls": "literalCmdWithRaw" + }, + { + "at": "tmux/server.go:317", + "has": [ + "dispatch" + ], + "calls": "dispatch" + }, + { + "at": "tmux/server.go:327", + "has": [ + "dispatchAs" + ], + "calls": "dispatchAs" + }, + { + "at": "tmux/server.go:336", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", + "has": [ + "Run" + ], + "calls": "Run", + "on": "Runner" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:99", + "has": [ + "exec.CommandContext(" + ] + } + ] + } + ] + }, + { + "port": "go", + "name": "newWindow", + "why": "Sends the tmux arguments or the command it is given to the server.", + "evidence": [ + { + "at": "tmux/window_lifecycle.go:191", + "has": [ + "newWindow" + ], + "reaches": [ + { + "at": "tmux/window_lifecycle.go:226", + "has": [ + "literalCmd" + ], + "calls": "literalCmd" + }, + { + "at": "tmux/server.go:292", + "has": [ + "literalCmdWithRaw" + ], + "calls": "literalCmdWithRaw" + }, + { + "at": "tmux/server.go:317", + "has": [ + "dispatch" + ], + "calls": "dispatch" + }, + { + "at": "tmux/server.go:327", + "has": [ + "dispatchAs" + ], + "calls": "dispatchAs" + }, + { + "at": "tmux/server.go:336", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", + "has": [ + "Run" + ], + "calls": "Run", + "on": "Runner" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:99", + "has": [ + "exec.CommandContext(" + ] + } + ] + } + ] + }, + { + "port": "go", + "name": "capturePane", + "why": "Sends the tmux arguments or the command it is given to the server.", + "evidence": [ + { + "at": "tmux/pane_capture.go:216", + "has": [ + "capturePane" + ], + "reaches": [ + { + "at": "tmux/pane_capture.go:232", + "has": [ + "literalCmd" + ], + "calls": "literalCmd" + }, + { + "at": "tmux/scoped_command.go:35", + "has": [ + "literalPaneCommand(ctx, p, args)" + ], + "calls": "literalPaneCommand" + }, + { + "at": "tmux/exact_target.go:72", + "has": [ + "pane.server.literalCmd(" + ], + "calls": "literalCmd", + "on": "Server" + }, + { + "at": "tmux/server.go:292", + "has": [ + "literalCmdWithRaw" + ], + "calls": "literalCmdWithRaw" + }, + { + "at": "tmux/server.go:317", + "has": [ + "dispatch" + ], + "calls": "dispatch" + }, + { + "at": "tmux/server.go:327", + "has": [ + "dispatchAs" + ], + "calls": "dispatchAs" + }, + { + "at": "tmux/server.go:336", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", + "has": [ + "Run" + ], + "calls": "Run", + "on": "Runner" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:99", + "has": [ + "exec.CommandContext(" + ] + } + ] + } + ] + }, + { + "port": "go", + "name": "showBuffer", + "why": "Sends the tmux arguments or the command it is given to the server.", + "evidence": [ + { + "at": "tmux/server_buffers.go:138", + "has": [ + "showBuffer" + ], + "reaches": [ + { + "at": "tmux/server_buffers.go:148", + "has": [ + "literalCmd" + ], + "calls": "literalCmd", + "on": "Server" + }, + { + "at": "tmux/server.go:292", + "has": [ + "literalCmdWithRaw" + ], + "calls": "literalCmdWithRaw" + }, + { + "at": "tmux/server.go:317", + "has": [ + "dispatch" + ], + "calls": "dispatch" + }, + { + "at": "tmux/server.go:327", + "has": [ + "dispatchAs" + ], + "calls": "dispatchAs" + }, + { + "at": "tmux/server.go:336", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", + "has": [ + "Run" + ], + "calls": "Run", + "on": "Runner" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:99", + "has": [ + "exec.CommandContext(" + ] + } + ] + } + ] + }, + { + "port": "go", + "name": "snapshotListing", + "why": "Sends the tmux arguments or the command it is given to the server.", + "evidence": [ + { + "at": "tmux/snapshot_capture.go:109", + "has": [ + "snapshotListing" + ], + "reaches": [ + { + "at": "tmux/snapshot_capture.go:123", + "has": [ + "literalCmdWithRaw" + ], + "calls": "literalCmdWithRaw" + }, + { + "at": "tmux/server.go:317", + "has": [ + "dispatch" + ], + "calls": "dispatch" + }, + { + "at": "tmux/server.go:327", + "has": [ + "dispatchAs" + ], + "calls": "dispatchAs" + }, + { + "at": "tmux/server.go:336", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", + "has": [ + "Run" + ], + "calls": "Run", + "on": "Runner" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:99", + "has": [ + "exec.CommandContext(" + ] + } + ] + } + ] + }, + { + "port": "go", + "name": "runDisplayMessage", + "why": "Sends the tmux arguments or the command it is given to the server.", + "evidence": [ + { + "at": "tmux/display_message.go:182", + "has": [ + "runDisplayMessage" + ], + "reaches": [ + { + "at": "tmux/display_message.go:254", + "has": [ + "literalCmd" + ], + "calls": "literalCmd" + }, + { + "at": "tmux/server.go:292", + "has": [ + "literalCmdWithRaw" + ], + "calls": "literalCmdWithRaw" + }, + { + "at": "tmux/server.go:317", + "has": [ + "dispatch" + ], + "calls": "dispatch" + }, + { + "at": "tmux/server.go:327", + "has": [ + "dispatchAs" + ], + "calls": "dispatchAs" + }, + { + "at": "tmux/server.go:336", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", + "has": [ + "Run" + ], + "calls": "Run", + "on": "Runner" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:99", + "has": [ + "exec.CommandContext(" + ] + } + ] + } + ] + }, + { + "port": "go", + "name": "runCommand", + "why": "Sends the tmux arguments or the command it is given to the server.", + "evidence": [ + { + "at": "tmux/tmuxtest/harness.go:538", + "has": [ + "runCommand" + ], + "reaches": [ + { + "at": "tmux/tmuxtest/harness.go:539", + "has": [ + "Cmd" + ], + "calls": "Cmd" + }, + { + "at": "tmux/server.go:287", + "has": [ + "dispatch" + ], + "calls": "dispatch" + }, + { + "at": "tmux/server.go:327", + "has": [ + "dispatchAs" + ], + "calls": "dispatchAs" + }, + { + "at": "tmux/server.go:336", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", + "has": [ + "Run" + ], + "calls": "Run", + "on": "Runner" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:99", + "has": [ + "exec.CommandContext(" + ] + } + ] + }, + { + "at": "tmux/transport.go:53", + "has": [ + "runCommand" + ], + "reaches": [ + { + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", + "has": [ + "Run" + ], + "calls": "Run", + "on": "Runner" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:99", + "has": [ + "exec.CommandContext(" + ] + } + ] + } + ] + }, + { + "port": "go", + "name": "streamingLiteralCmd", + "why": "Sends the tmux arguments or the command it is given to the server.", + "evidence": [ + { + "at": "tmux/server_attach.go:153", + "has": [ + "streamingLiteralCmd" + ], + "reaches": [ + { + "at": "tmux/server_attach.go:161", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", + "has": [ + "Run" + ], + "calls": "Run", + "on": "Runner" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:99", + "has": [ + "exec.CommandContext(" + ] + } + ] + } + ] + }, + { + "port": "go", + "name": "streamOut", + "why": "Sends the tmux arguments or the command it is given to the server.", + "evidence": [ + { + "at": "tmux/pipe_stream.go:57", + "has": [ + "streamOut" + ], + "reaches": [ + { + "at": "tmux/pipe_stream.go:74", + "has": [ + "runPipeStreamCommand" + ], + "calls": "runPipeStreamCommand" + }, + { + "at": "tmux/pipe_stream.go:153", + "has": [ + "streamingLiteralCmd" + ], + "calls": "streamingLiteralCmd" + }, + { + "at": "tmux/server_attach.go:161", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", + "has": [ + "Run" + ], + "calls": "Run", + "on": "Runner" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:99", + "has": [ + "exec.CommandContext(" + ] + } + ] + } + ] + }, + { + "port": "go", + "name": "streamIn", + "why": "Sends the tmux arguments or the command it is given to the server.", + "evidence": [ + { + "at": "tmux/pipe_stream.go:19", + "has": [ + "streamIn" + ], + "reaches": [ + { + "at": "tmux/pipe_stream.go:37", + "has": [ + "runPipeStreamCommand" + ], + "calls": "runPipeStreamCommand" + }, + { + "at": "tmux/pipe_stream.go:153", + "has": [ + "streamingLiteralCmd" + ], + "calls": "streamingLiteralCmd" + }, + { + "at": "tmux/server_attach.go:161", + "has": [ + "runCommand" + ], + "calls": "runCommand" + }, + { + "at": "tmux/transport.go:78", + "has": [ + "runCheckedCommand" + ], + "calls": "runCheckedCommand" + }, + { + "at": "tmux/transport.go:166", + "has": [ + "Run" + ], + "calls": "Run", + "on": "Runner" + }, + { + "at": "tmux/internal/tmuxcmd/runner.go:99", + "has": [ + "exec.CommandContext(" + ] + } + ] + } + ] + }, + { + "port": "go", + "name": "targetedArguments", + "kind": "builder", + "why": "Builds the argument list of a command from the command it is given.", + "evidence": [ + { + "at": "tmux/plan.go:216", + "has": [ + "targetedArguments" + ] + } + ] + }, + { + "port": "go", + "name": "untargetedArguments", + "kind": "builder", + "why": "Builds the argument list of a command from the command it is given.", + "evidence": [ + { + "at": "tmux/plan.go:234", + "has": [ + "untargetedArguments" + ] + } + ] + }, + { + "port": "go", + "name": "respawnArguments", + "kind": "builder", + "why": "Builds the argument list of a command from the command it is given.", + "evidence": [ + { + "at": "tmux/pane_process.go:109", + "has": [ + "respawnArguments" + ] + } + ] + }, + { + "port": "go", + "name": "joinPaneArguments", + "kind": "builder", + "why": "Builds the argument list of a command from the command it is given.", + "evidence": [ + { + "at": "tmux/plan_pane.go:241", + "has": [ + "joinPaneArguments" + ] + } + ] + }, + { + "port": "go", + "name": "exactPaneCommandArguments", + "kind": "builder", + "why": "Builds the argument list of a command from the command it is given.", + "evidence": [ + { + "at": "tmux/pane_modes.go:317", + "has": [ + "exactPaneCommandArguments" + ] + } + ] + }, + { + "port": "go", + "name": "respawnRequestArguments", + "kind": "builder", + "why": "Builds the argument list of a command from the command it is given.", + "evidence": [ + { + "at": "tmux/window_respawn.go:65", + "has": [ + "respawnRequestArguments" + ] + } + ] + }, + { + "port": "go", + "name": "appendPopupStyleArguments", + "kind": "builder", + "why": "Appends the style, border and environment flags to the display-popup argument list it is given and returns the list.", + "evidence": [ + { + "at": "tmux/pane_popup.go:326", + "has": [ + "func appendPopupStyleArguments(" + ] + } + ] + }, + { + "port": "go", + "name": "appendPopupVersion36Arguments", + "kind": "builder", + "why": "Appends the flags a newer tmux accepts to the display-popup argument list it is given and returns the list.", + "evidence": [ + { + "at": "tmux/pane_popup.go:349", + "has": [ + "func appendPopupVersion36Arguments(" + ] + } + ] + }, + { + "port": "java", + "name": "cmd", + "why": "Sends the argument list it is given to the server.", + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Environment.java:368", + "has": [ + "cmd" + ], + "reaches": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Environment.java:369", + "has": [ + "server.cmd(argv)" + ], + "calls": "cmd" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:772", + "has": [ + "cmd(argv, config.defaultTimeout())" + ], + "calls": "cmd" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:778", + "has": [ + "cmd(argv, timeout, \"\")" + ], + "calls": "cmd" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:783", + "has": [ + "transport.execute(" + ], + "calls": "execute", + "on": "ProcessTransport" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:181", + "has": [ + "execute(request, false)" + ], + "calls": "execute" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:205", + "has": [ + "dispatch(asked, waiting, span)" + ], + "calls": "dispatch" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:307", + "has": [ + "launch(request, deadline)" + ], + "calls": "launch" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:507", + "has": [ + "starter.start(" + ] + } + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Options.java:373", + "has": [ + "cmd" + ], + "reaches": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Options.java:374", + "has": [ + "server.cmd(argv)" + ], + "calls": "cmd" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:772", + "has": [ + "cmd(argv, config.defaultTimeout())" + ], + "calls": "cmd" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:778", + "has": [ + "cmd(argv, timeout, \"\")" + ], + "calls": "cmd" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:783", + "has": [ + "transport.execute(" + ], + "calls": "execute", + "on": "ProcessTransport" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:181", + "has": [ + "execute(request, false)" + ], + "calls": "execute" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:205", + "has": [ + "dispatch(asked, waiting, span)" + ], + "calls": "dispatch" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:307", + "has": [ + "launch(request, deadline)" + ], + "calls": "launch" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:507", + "has": [ + "starter.start(" + ] + } + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:765", + "has": [ + "cmd" + ], + "reaches": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:766", + "has": [ + "cmd(List.of(argv)" + ], + "calls": "cmd" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:778", + "has": [ + "cmd(argv, timeout, \"\")" + ], + "calls": "cmd" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:783", + "has": [ + "transport.execute(" + ], + "calls": "execute", + "on": "ProcessTransport" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:181", + "has": [ + "execute(request, false)" + ], + "calls": "execute" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:205", + "has": [ + "dispatch(asked, waiting, span)" + ], + "calls": "dispatch" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:307", + "has": [ + "launch(request, deadline)" + ], + "calls": "launch" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:507", + "has": [ + "starter.start(" + ] + } + ] + } + ] + }, + { + "port": "java", + "name": "send", + "why": "Sends the argument list it is given to the server.", + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/control/ControlClient.java:312", + "has": [ + "send" + ], + "reaches": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/control/ControlClient.java:313", + "has": [ + "send" + ], + "calls": "send" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/control/ControlClient.java:346", + "has": [ + "exchange" + ], + "calls": "exchange", + "on": "ControlWriter" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java:84", + "has": [ + "waiting.offer(" + ], + "leads": "run", + "why": "the request is put on a queue that the writer thread takes it from, and that thread writes the line to the control client" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java:237", + "has": [ + "output.write(request.line)" + ] + } + ] + } + ] + }, + { + "port": "java", + "name": "runTogether", + "why": "Sends the argument list it is given to the server.", + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:1265", + "has": [ + "runTogether" + ], + "reaches": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:1266", + "has": [ + "runTogether(snapshot, \"\", commands)" + ], + "calls": "runTogether" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:1271", + "has": [ + "fence.guarded(snapshot, CommandStrings.group(commands), input)" + ], + "calls": "guarded", + "on": "IncarnationFence" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/IncarnationFence.java:71", + "has": [ + "guarded(pid, incarnation(" + ], + "calls": "guarded" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/IncarnationFence.java:76", + "has": [ + "server.cmd(" + ], + "calls": "cmd" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:783", + "has": [ + "transport.execute(" + ], + "calls": "execute", + "on": "ProcessTransport" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:181", + "has": [ + "execute(request, false)" + ], + "calls": "execute" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:205", + "has": [ + "dispatch(asked, waiting, span)" + ], + "calls": "dispatch" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:307", + "has": [ + "launch(request, deadline)" + ], + "calls": "launch" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:507", + "has": [ + "starter.start(" + ] + } + ] + } + ] + }, + { + "port": "java", + "name": "withoutStartingServer", + "why": "Sends the argument list it is given to the server.", + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:471", + "has": [ + "withoutStartingServer" + ], + "reaches": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:475", + "has": [ + "transport.execute(" + ], + "calls": "execute", + "on": "ProcessTransport" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:181", + "has": [ + "execute(request, false)" + ], + "calls": "execute" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:205", + "has": [ + "dispatch(asked, waiting, span)" + ], + "calls": "dispatch" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:307", + "has": [ + "launch(request, deadline)" + ], + "calls": "launch" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:507", + "has": [ + "starter.start(" + ] + } + ] + } + ] + }, + { + "port": "java", + "name": "withVersion", + "why": "Sends the argument list it is given to the server.", + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Options.java:194", + "has": [ + "withVersion" + ], + "reaches": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Options.java:198", + "has": [ + "batch.run()" + ], + "calls": "run" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/batch/Batch.java:85", + "has": [ + "dispatch.apply(" + ], + "leads": "batch", + "why": "a Batch runs the function the Server gave it when it made the batch, and Server.batch made it from a lambda that calls the fence" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:1235", + "has": [ + "fence.guarded(snapshot, CommandStrings.group(commands), \"\")" + ], + "calls": "guarded", + "on": "IncarnationFence" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/IncarnationFence.java:71", + "has": [ + "guarded(pid, incarnation(" + ], + "calls": "guarded" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/IncarnationFence.java:76", + "has": [ + "server.cmd(" + ], + "calls": "cmd" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:783", + "has": [ + "transport.execute(" + ], + "calls": "execute", + "on": "ProcessTransport" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:181", + "has": [ + "execute(request, false)" + ], + "calls": "execute" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:205", + "has": [ + "dispatch(asked, waiting, span)" + ], + "calls": "dispatch" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:307", + "has": [ + "launch(request, deadline)" + ], + "calls": "launch" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:507", + "has": [ + "starter.start(" + ] + } + ] + } + ] + }, + { + "port": "java", + "name": "captured", + "why": "Sends the argument list it is given to the server.", + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:884", + "has": [ + "captured" + ], + "reaches": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:886", + "has": [ + "capture.sessionsWhere(" + ], + "calls": "sessionsWhere", + "on": "SnapshotCapture" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:276", + "has": [ + "hydrate(process, holding" + ], + "calls": "hydrate" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:293", + "has": [ + "batch.run()" + ], + "calls": "run" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/batch/Batch.java:85", + "has": [ + "dispatch.apply(" + ], + "leads": "batch", + "why": "a Batch runs the function the Server gave it when it made the batch, and Server.batch made it from a lambda that calls the fence" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:1247", + "has": [ + "fence.guarded(pid, condition, CommandStrings.group(commands), \"\")" + ], + "calls": "guarded", + "on": "IncarnationFence" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/IncarnationFence.java:76", + "has": [ + "server.cmd(" + ], + "calls": "cmd" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:783", + "has": [ + "transport.execute(" + ], + "calls": "execute", + "on": "ProcessTransport" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:181", + "has": [ + "execute(request, false)" + ], + "calls": "execute" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:205", + "has": [ + "dispatch(asked, waiting, span)" + ], + "calls": "dispatch" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:307", + "has": [ + "launch(request, deadline)" + ], + "calls": "launch" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:507", + "has": [ + "starter.start(" + ] + } + ] + } + ] + }, + { + "port": "java", + "name": "execute", + "why": "Sends the argument list it is given to the server.", + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:180", + "has": [ + "execute" + ], + "reaches": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:181", + "has": [ + "execute" + ], + "calls": "execute" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:205", + "has": [ + "dispatch" + ], + "calls": "dispatch" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:307", + "has": [ + "launch" + ], + "calls": "launch" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:507", + "has": [ + "starter.start(" + ] + } + ] + } + ] + }, + { + "port": "java", + "name": "argv", + "kind": "builder", + "why": "Builds the argument list of a command from the command it is given.", + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Environment.java:352", + "has": [ + "argv" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Hooks.java:146", + "has": [ + "argv" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Options.java:381", + "has": [ + "argv" + ] + } + ] + }, + { + "port": "java", + "name": "command", + "kind": "builder", + "why": "Builds the argument list of a command from the command it is given.", + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Environment.java:360", + "has": [ + "command" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/PaneStart.java:41", + "has": [ + "command" + ] + } + ] + }, + { + "port": "java", + "name": "listing", + "kind": "builder", + "why": "Builds the argument list of a command from the command it is given.", + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:424", + "has": [ + "listing" + ] + } + ] + }, + { + "port": "java", + "name": "request", + "kind": "builder", + "why": "Builds the argument list of a command from the command it is given.", + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:786", + "has": [ + "request" + ] + } + ] + }, + { + "port": "java", + "name": "run", + "why": "Sends the argument list it is given to the server, and fails on a nonzero exit.", + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:1221", + "has": [ + "run" + ], + "reaches": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:1222", + "has": [ + "cmd(argv)" + ], + "calls": "cmd" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:772", + "has": [ + "cmd(argv, config.defaultTimeout())" + ], + "calls": "cmd" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:778", + "has": [ + "cmd(argv, timeout, \"\")" + ], + "calls": "cmd" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:783", + "has": [ + "transport.execute(" + ], + "calls": "execute", + "on": "ProcessTransport" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:181", + "has": [ + "execute(request, false)" + ], + "calls": "execute" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:205", + "has": [ + "dispatch(asked, waiting, span)" + ], + "calls": "dispatch" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:307", + "has": [ + "launch(request, deadline)" + ], + "calls": "launch" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:507", + "has": [ + "starter.start(" + ] + } + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:1250", + "has": [ + "run" + ], + "reaches": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:1251", + "has": [ + "cmd(snapshot, argv)" + ], + "calls": "cmd" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:1230", + "has": [ + "fence.guarded(snapshot, CommandStrings.stringify(argv))" + ], + "calls": "guarded", + "on": "IncarnationFence" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/IncarnationFence.java:65", + "has": [ + "guarded(snapshot, command, \"\")" + ], + "calls": "guarded" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/IncarnationFence.java:71", + "has": [ + "guarded(pid, incarnation(" + ], + "calls": "guarded" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/IncarnationFence.java:76", + "has": [ + "server.cmd(" + ], + "calls": "cmd" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:783", + "has": [ + "transport.execute(" + ], + "calls": "execute", + "on": "ProcessTransport" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:181", + "has": [ + "execute(request, false)" + ], + "calls": "execute" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:205", + "has": [ + "dispatch(asked, waiting, span)" + ], + "calls": "dispatch" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:307", + "has": [ + "launch(request, deadline)" + ], + "calls": "launch" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:507", + "has": [ + "starter.start(" + ] + } + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:1280", + "has": [ + "run" + ], + "reaches": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:1281", + "has": [ + "fence.run(snapshot, expected, argv)" + ], + "calls": "run", + "on": "IncarnationFence" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/IncarnationFence.java:95", + "has": [ + "server.cmd(List.of(\"if-shell\"" + ], + "calls": "cmd" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:772", + "has": [ + "cmd(argv, config.defaultTimeout())" + ], + "calls": "cmd" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:778", + "has": [ + "cmd(argv, timeout, \"\")" + ], + "calls": "cmd" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:783", + "has": [ + "transport.execute(" + ], + "calls": "execute", + "on": "ProcessTransport" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:181", + "has": [ + "execute(request, false)" + ], + "calls": "execute" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:205", + "has": [ + "dispatch(asked, waiting, span)" + ], + "calls": "dispatch" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:307", + "has": [ + "launch(request, deadline)" + ], + "calls": "launch" + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java:507", + "has": [ + "starter.start(" + ] + } + ] + } + ] + }, + { + "port": "csharp", + "name": "RunAsync", + "why": "Sends the tmux arguments it is given, or the list command it is named for, to the server.", + "evidence": [ + { + "at": "src/LibTmux/Environment/TmuxEnvironmentOperations.cs:243", + "has": [ + "RunAsync" + ], + "reaches": [ + { + "at": "src/LibTmux/Environment/TmuxEnvironmentOperations.cs:246", + "has": [ + "_dispatcher.ExecuteAsync(arguments, cancellationToken)" + ], + "calls": "ExecuteAsync", + "on": "TmuxCommandDispatcher" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:122", + "has": [ + "ExecuteWithinAsync(arguments, _context?.CommandTimeout" + ], + "calls": "ExecuteWithinAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:149", + "has": [ + "_execute(copy, deadline.Token)" + ], + "leads": "ExecuteAsync", + "why": "a delegate: the dispatcher made over a process transport binds it to that transport's ExecuteAsync in its constructor (line 24)" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:73", + "has": [ + "ExecuteAsync(TmuxCommandRequest.Single(arguments)" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", + "has": [ + "_launcher.Start(startInfo)" + ], + "calls": "Start", + "on": "SystemProcessLauncher" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", + "has": [ + "process.Start()" + ] + } + ] + }, + { + "at": "src/LibTmux/Hooks/TmuxHooks.cs:310", + "has": [ + "RunAsync" + ], + "reaches": [ + { + "at": "src/LibTmux/Hooks/TmuxHooks.cs:313", + "has": [ + "DispatchAsync(BuildRunArguments(request)" + ], + "calls": "DispatchAsync" + }, + { + "at": "src/LibTmux/Hooks/TmuxHooks.cs:432", + "has": [ + ".ExecuteAsync(arguments, cancellationToken)" + ], + "calls": "ExecuteAsync", + "on": "TmuxCommandDispatcher" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:122", + "has": [ + "ExecuteWithinAsync(arguments, _context?.CommandTimeout" + ], + "calls": "ExecuteWithinAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:149", + "has": [ + "_execute(copy, deadline.Token)" + ], + "leads": "ExecuteAsync", + "why": "a delegate: the dispatcher made over a process transport binds it to that transport's ExecuteAsync in its constructor (line 24)" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:73", + "has": [ + "ExecuteAsync(TmuxCommandRequest.Single(arguments)" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", + "has": [ + "_launcher.Start(startInfo)" + ], + "calls": "Start", + "on": "SystemProcessLauncher" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", + "has": [ + "process.Start()" + ] + } + ] + } + ] + }, + { + "port": "csharp", + "name": "Dispatch", + "why": "Sends the tmux arguments it is given, or the list command it is named for, to the server.", + "evidence": [ + { + "at": "src/LibTmux/Server.Lifecycle.cs:454", + "has": [ + "Dispatch" + ], + "reaches": [ + { + "at": "src/LibTmux/Server.Lifecycle.cs:462", + "has": [ + ".ExecuteAsync(arguments, cancellationToken)" + ], + "calls": "ExecuteAsync", + "on": "TmuxCommandDispatcher" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:122", + "has": [ + "ExecuteWithinAsync(arguments, _context?.CommandTimeout" + ], + "calls": "ExecuteWithinAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:149", + "has": [ + "_execute(copy, deadline.Token)" + ], + "leads": "ExecuteAsync", + "why": "a delegate: the dispatcher made over a process transport binds it to that transport's ExecuteAsync in its constructor (line 24)" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:73", + "has": [ + "ExecuteAsync(TmuxCommandRequest.Single(arguments)" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", + "has": [ + "_launcher.Start(startInfo)" + ], + "calls": "Start", + "on": "SystemProcessLauncher" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", + "has": [ + "process.Start()" + ] + } + ] + } + ] + }, + { + "port": "csharp", + "name": "ExecuteAsync", + "why": "Sends the tmux arguments it is given, or the list command it is named for, to the server.", + "evidence": [ + { + "at": "src/LibTmux/Chaining/TmuxChaining.Hooks.cs:56", + "has": [ + "ExecuteAsync" + ], + "reaches": [ + { + "at": "src/LibTmux/Chaining/TmuxChaining.Hooks.cs:63", + "has": [ + ".ExecuteAsync(cancellationToken)" + ], + "calls": "ExecuteAsync", + "on": "TmuxChain" + }, + { + "at": "src/LibTmux/Chaining/TmuxChain.cs:139", + "has": [ + "_dispatcher.ExecuteGroupAsync(arguments, cancellationToken)" + ], + "calls": "ExecuteGroupAsync", + "on": "TmuxCommandDispatcher" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:56", + "has": [ + "ExecuteGroupAsync(commands, _executeGroup, cancellationToken)" + ], + "calls": "ExecuteGroupAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:91", + "has": [ + "executeGroup(commands, deadline.Token)" + ], + "leads": "TmuxCommandDispatcher", + "why": "a delegate: the dispatcher made over a process transport binds it, in its constructor, to a lambda that calls that transport (line 25)" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:25", + "has": [ + "transport.ExecuteAsync(" + ], + "calls": "ExecuteAsync", + "on": "TmuxProcessTransport" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", + "has": [ + "_launcher.Start(startInfo)" + ], + "calls": "Start", + "on": "SystemProcessLauncher" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", + "has": [ + "process.Start()" + ] + } + ] + }, + { + "at": "src/LibTmux/Chaining/TmuxChaining.cs:23", + "has": [ + "ExecuteAsync" + ], + "reaches": [ + { + "at": "src/LibTmux/Chaining/TmuxChaining.cs:30", + "has": [ + ".ExecuteAsync(cancellationToken)" + ], + "calls": "ExecuteAsync", + "on": "TmuxChain" + }, + { + "at": "src/LibTmux/Chaining/TmuxChain.cs:139", + "has": [ + "_dispatcher.ExecuteGroupAsync(arguments, cancellationToken)" + ], + "calls": "ExecuteGroupAsync", + "on": "TmuxCommandDispatcher" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:56", + "has": [ + "ExecuteGroupAsync(commands, _executeGroup, cancellationToken)" + ], + "calls": "ExecuteGroupAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:91", + "has": [ + "executeGroup(commands, deadline.Token)" + ], + "leads": "TmuxCommandDispatcher", + "why": "a delegate: the dispatcher made over a process transport binds it, in its constructor, to a lambda that calls that transport (line 25)" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:25", + "has": [ + "transport.ExecuteAsync(" + ], + "calls": "ExecuteAsync", + "on": "TmuxProcessTransport" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", + "has": [ + "_launcher.Start(startInfo)" + ], + "calls": "Start", + "on": "SystemProcessLauncher" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", + "has": [ + "process.Start()" + ] + } + ] + } + ] + }, + { + "port": "csharp", + "name": "ListAsync", + "why": "Sends the tmux arguments it is given, or the list command it is named for, to the server.", + "evidence": [ + { + "at": "src/LibTmux/ControlMode/PaneObservation.cs:332", + "has": [ + "ListAsync" + ], + "reaches": [ + { + "at": "src/LibTmux/ControlMode/PaneObservation.cs:337", + "has": [ + "SendAsync" + ], + "calls": "SendAsync", + "on": "ControlModeSession" + }, + { + "at": "src/LibTmux/ControlMode/ControlModeSession.cs:294", + "has": [ + "SendCoreAsync" + ], + "calls": "SendCoreAsync" + }, + { + "at": "src/LibTmux/ControlMode/ControlModeSession.cs:410", + "has": [ + "SendAdmittedAsync" + ], + "calls": "SendAdmittedAsync" + }, + { + "at": "src/LibTmux/ControlMode/ControlModeSession.cs:455", + "has": [ + "DispatchAndWaitAsync" + ], + "calls": "DispatchAndWaitAsync" + }, + { + "at": "src/LibTmux/ControlMode/ControlModeSession.cs:509", + "has": [ + "WriteRequestAsync" + ], + "calls": "WriteRequestAsync" + }, + { + "at": "src/LibTmux/ControlMode/ControlModeSession.cs:557", + "has": [ + "WriteLineAsync" + ], + "calls": "WriteLineAsync", + "on": "SystemControlModeProcess" + }, + { + "at": "src/LibTmux/ControlMode/SystemControlModeProcess.cs:69", + "has": [ + "StandardInput.WriteLineAsync" + ] + } + ] + }, + { + "at": "src/LibTmux/Materialization/RelationReader.cs:13", + "has": [ + "ListAsync" + ], + "reaches": [ + { + "at": "src/LibTmux/Materialization/RelationReader.cs:21", + "has": [ + "FetchAsync" + ], + "calls": "FetchAsync" + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:45", + "has": [ + "ExecuteAsync(listCommand, arguments, cancellationToken)" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:214", + "has": [ + "ExecuteAsync(CreateProjection(listCommand)" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:231", + "has": [ + ".ExecuteAsync(arguments, cancellationToken)" + ], + "calls": "ExecuteAsync", + "on": "TmuxCommandDispatcher" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:122", + "has": [ + "ExecuteWithinAsync(arguments, _context?.CommandTimeout" + ], + "calls": "ExecuteWithinAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:149", + "has": [ + "_execute(copy, deadline.Token)" + ], + "leads": "ExecuteAsync", + "why": "a delegate: the dispatcher made over a process transport binds it to that transport's ExecuteAsync in its constructor (line 24)" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:73", + "has": [ + "ExecuteAsync(TmuxCommandRequest.Single(arguments)" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", + "has": [ + "_launcher.Start(startInfo)" + ], + "calls": "Start", + "on": "SystemProcessLauncher" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", + "has": [ + "process.Start()" + ] + } + ] + }, + { + "at": "src/LibTmux/Server.Collections.cs:81", + "has": [ + "ListAsync" + ], + "reaches": [ + { + "at": "src/LibTmux/Server.Collections.cs:89", + "has": [ + "ListAsync" + ], + "calls": "ListAsync" + }, + { + "at": "src/LibTmux/Materialization/RelationReader.cs:21", + "has": [ + "FetchAsync" + ], + "calls": "FetchAsync" + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:45", + "has": [ + "ExecuteAsync(listCommand, arguments, cancellationToken)" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:214", + "has": [ + "ExecuteAsync(CreateProjection(listCommand)" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:231", + "has": [ + ".ExecuteAsync(arguments, cancellationToken)" + ], + "calls": "ExecuteAsync", + "on": "TmuxCommandDispatcher" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:122", + "has": [ + "ExecuteWithinAsync(arguments, _context?.CommandTimeout" + ], + "calls": "ExecuteWithinAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:149", + "has": [ + "_execute(copy, deadline.Token)" + ], + "leads": "ExecuteAsync", + "why": "a delegate: the dispatcher made over a process transport binds it to that transport's ExecuteAsync in its constructor (line 24)" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:73", + "has": [ + "ExecuteAsync(TmuxCommandRequest.Single(arguments)" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", + "has": [ + "_launcher.Start(startInfo)" + ], + "calls": "Start", + "on": "SystemProcessLauncher" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", + "has": [ + "process.Start()" + ] + } + ] + } + ] + }, + { + "port": "csharp", + "name": "FetchAsync", + "why": "Sends the tmux arguments it is given, or the list command it is named for, to the server.", + "evidence": [ + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:30", + "has": [ + "FetchAsync" + ], + "reaches": [ + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:45", + "has": [ + "ExecuteAsync(listCommand, arguments, cancellationToken)" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:214", + "has": [ + "ExecuteAsync(CreateProjection(listCommand)" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:231", + "has": [ + ".ExecuteAsync(arguments, cancellationToken)" + ], + "calls": "ExecuteAsync", + "on": "TmuxCommandDispatcher" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:122", + "has": [ + "ExecuteWithinAsync(arguments, _context?.CommandTimeout" + ], + "calls": "ExecuteWithinAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:149", + "has": [ + "_execute(copy, deadline.Token)" + ], + "leads": "ExecuteAsync", + "why": "a delegate: the dispatcher made over a process transport binds it to that transport's ExecuteAsync in its constructor (line 24)" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:73", + "has": [ + "ExecuteAsync(TmuxCommandRequest.Single(arguments)" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", + "has": [ + "_launcher.Start(startInfo)" + ], + "calls": "Start", + "on": "SystemProcessLauncher" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", + "has": [ + "process.Start()" + ] + } + ] + } + ] + }, + { + "port": "csharp", + "name": "SearchAsync", + "why": "Sends the tmux arguments it is given, or the list command it is named for, to the server.", + "evidence": [ + { + "at": "src/LibTmux/Query/NativeFilterSearch.cs:73", + "has": [ + "SearchAsync" + ], + "reaches": [ + { + "at": "src/LibTmux/Query/NativeFilterSearch.cs:82", + "has": [ + "ListAsync" + ], + "calls": "ListAsync" + }, + { + "at": "src/LibTmux/Materialization/RelationReader.cs:21", + "has": [ + "FetchAsync" + ], + "calls": "FetchAsync" + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:45", + "has": [ + "ExecuteAsync(listCommand, arguments, cancellationToken)" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:214", + "has": [ + "ExecuteAsync(CreateProjection(listCommand)" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:231", + "has": [ + ".ExecuteAsync(arguments, cancellationToken)" + ], + "calls": "ExecuteAsync", + "on": "TmuxCommandDispatcher" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:122", + "has": [ + "ExecuteWithinAsync(arguments, _context?.CommandTimeout" + ], + "calls": "ExecuteWithinAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:149", + "has": [ + "_execute(copy, deadline.Token)" + ], + "leads": "ExecuteAsync", + "why": "a delegate: the dispatcher made over a process transport binds it to that transport's ExecuteAsync in its constructor (line 24)" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:73", + "has": [ + "ExecuteAsync(TmuxCommandRequest.Single(arguments)" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", + "has": [ + "_launcher.Start(startInfo)" + ], + "calls": "Start", + "on": "SystemProcessLauncher" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", + "has": [ + "process.Start()" + ] + } + ] + } + ] + }, + { + "port": "csharp", + "name": "SendAsync", + "why": "Sends the tmux arguments it is given, or the list command it is named for, to the server.", + "evidence": [ + { + "at": "src/LibTmux/ControlMode/ControlModeSession.cs:281", + "has": [ + "SendAsync" + ], + "reaches": [ + { + "at": "src/LibTmux/ControlMode/ControlModeSession.cs:294", + "has": [ + "SendCoreAsync" + ], + "calls": "SendCoreAsync" + }, + { + "at": "src/LibTmux/ControlMode/ControlModeSession.cs:410", + "has": [ + "SendAdmittedAsync" + ], + "calls": "SendAdmittedAsync" + }, + { + "at": "src/LibTmux/ControlMode/ControlModeSession.cs:455", + "has": [ + "DispatchAndWaitAsync" + ], + "calls": "DispatchAndWaitAsync" + }, + { + "at": "src/LibTmux/ControlMode/ControlModeSession.cs:509", + "has": [ + "WriteRequestAsync" + ], + "calls": "WriteRequestAsync" + }, + { + "at": "src/LibTmux/ControlMode/ControlModeSession.cs:557", + "has": [ + "WriteLineAsync" + ], + "calls": "WriteLineAsync", + "on": "SystemControlModeProcess" + }, + { + "at": "src/LibTmux/ControlMode/SystemControlModeProcess.cs:69", + "has": [ + "StandardInput.WriteLineAsync" + ] + } + ] + } + ] + }, + { + "port": "csharp", + "name": "SendRawAsync", + "why": "Sends the tmux arguments it is given, or the list command it is named for, to the server.", + "evidence": [ + { + "at": "src/LibTmux/ControlMode/ControlModeSession.cs:306", + "has": [ + "SendRawAsync" + ], + "reaches": [ + { + "at": "src/LibTmux/ControlMode/ControlModeSession.cs:327", + "has": [ + "SendAdmittedAsync" + ], + "calls": "SendAdmittedAsync" + }, + { + "at": "src/LibTmux/ControlMode/ControlModeSession.cs:455", + "has": [ + "DispatchAndWaitAsync" + ], + "calls": "DispatchAndWaitAsync" + }, + { + "at": "src/LibTmux/ControlMode/ControlModeSession.cs:509", + "has": [ + "WriteRequestAsync" + ], + "calls": "WriteRequestAsync" + }, + { + "at": "src/LibTmux/ControlMode/ControlModeSession.cs:557", + "has": [ + "WriteLineAsync" + ], + "calls": "WriteLineAsync", + "on": "SystemControlModeProcess" + }, + { + "at": "src/LibTmux/ControlMode/SystemControlModeProcess.cs:69", + "has": [ + "StandardInput.WriteLineAsync" + ] + } + ] + } + ] + }, + { + "port": "csharp", + "name": "RunUtilityAsync", + "why": "Sends the tmux arguments it is given, or the list command it is named for, to the server.", + "evidence": [ + { + "at": "src/LibTmux/Server.Utilities.cs:112", + "has": [ + "RunUtilityAsync" + ], + "reaches": [ + { + "at": "src/LibTmux/Server.Utilities.cs:117", + "has": [ + ".ExecuteAsync(arguments, cancellationToken)" + ], + "calls": "ExecuteAsync", + "on": "TmuxCommandDispatcher" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:122", + "has": [ + "ExecuteWithinAsync(arguments, _context?.CommandTimeout" + ], + "calls": "ExecuteWithinAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:149", + "has": [ + "_execute(copy, deadline.Token)" + ], + "leads": "ExecuteAsync", + "why": "a delegate: the dispatcher made over a process transport binds it to that transport's ExecuteAsync in its constructor (line 24)" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:73", + "has": [ + "ExecuteAsync(TmuxCommandRequest.Single(arguments)" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", + "has": [ + "_launcher.Start(startInfo)" + ], + "calls": "Start", + "on": "SystemProcessLauncher" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", + "has": [ + "process.Start()" + ] + } + ] + } + ] + }, + { + "port": "csharp", + "name": "RunClientAsync", + "why": "Sends the tmux arguments it is given, or the list command it is named for, to the server.", + "evidence": [ + { + "at": "src/LibTmux/Server.Clients.cs:194", + "has": [ + "RunClientAsync" + ], + "reaches": [ + { + "at": "src/LibTmux/Server.Clients.cs:201", + "has": [ + "RunAsync(arguments, cancellationToken)" + ], + "calls": "RunAsync" + }, + { + "at": "src/LibTmux/Server.Clients.cs:209", + "has": [ + ".ExecuteAsync(arguments, cancellationToken)" + ], + "calls": "ExecuteAsync", + "on": "TmuxCommandDispatcher" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:122", + "has": [ + "ExecuteWithinAsync(arguments, _context?.CommandTimeout" + ], + "calls": "ExecuteWithinAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:149", + "has": [ + "_execute(copy, deadline.Token)" + ], + "leads": "ExecuteAsync", + "why": "a delegate: the dispatcher made over a process transport binds it to that transport's ExecuteAsync in its constructor (line 24)" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:73", + "has": [ + "ExecuteAsync(TmuxCommandRequest.Single(arguments)" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", + "has": [ + "_launcher.Start(startInfo)" + ], + "calls": "Start", + "on": "SystemProcessLauncher" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", + "has": [ + "process.Start()" + ] + } + ] + } + ] + }, + { + "port": "csharp", + "name": "TryThroughControlAsync", + "why": "Sends the tmux arguments it is given, or the list command it is named for, to the server.", + "evidence": [ + { + "at": "src/LibTmux/Streaming/PaneReader.cs:438", + "has": [ + "TryThroughControlAsync" + ], + "reaches": [ + { + "at": "src/LibTmux/Streaming/PaneReader.cs:455", + "has": [ + "SendAsync" + ], + "calls": "SendAsync", + "on": "ControlModeSession" + }, + { + "at": "src/LibTmux/ControlMode/ControlModeSession.cs:294", + "has": [ + "SendCoreAsync" + ], + "calls": "SendCoreAsync" + }, + { + "at": "src/LibTmux/ControlMode/ControlModeSession.cs:410", + "has": [ + "SendAdmittedAsync" + ], + "calls": "SendAdmittedAsync" + }, + { + "at": "src/LibTmux/ControlMode/ControlModeSession.cs:455", + "has": [ + "DispatchAndWaitAsync" + ], + "calls": "DispatchAndWaitAsync" + }, + { + "at": "src/LibTmux/ControlMode/ControlModeSession.cs:509", + "has": [ + "WriteRequestAsync" + ], + "calls": "WriteRequestAsync" + }, + { + "at": "src/LibTmux/ControlMode/ControlModeSession.cs:557", + "has": [ + "WriteLineAsync" + ], + "calls": "WriteLineAsync", + "on": "SystemControlModeProcess" + }, + { + "at": "src/LibTmux/ControlMode/SystemControlModeProcess.cs:69", + "has": [ + "StandardInput.WriteLineAsync" + ] + } + ] + } + ] + }, + { + "port": "csharp", + "name": "Fetch", + "why": "Sends the tmux arguments it is given, or the list command it is named for, to the server.", + "evidence": [ + { + "at": "src/LibTmux/Snapshots/ServerSnapshot.cs:125", + "has": [ + "Fetch" + ], + "reaches": [ + { + "at": "src/LibTmux/Snapshots/ServerSnapshot.cs:130", + "has": [ + "FetchMarkedAsync(" + ], + "calls": "FetchMarkedAsync" + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:61", + "has": [ + "ExecuteAsync(projection, arguments, cancellationToken)" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:231", + "has": [ + ".ExecuteAsync(arguments, cancellationToken)" + ], + "calls": "ExecuteAsync", + "on": "TmuxCommandDispatcher" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:122", + "has": [ + "ExecuteWithinAsync(arguments, _context?.CommandTimeout" + ], + "calls": "ExecuteWithinAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:149", + "has": [ + "_execute(copy, deadline.Token)" + ], + "leads": "ExecuteAsync", + "why": "a delegate: the dispatcher made over a process transport binds it to that transport's ExecuteAsync in its constructor (line 24)" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:73", + "has": [ + "ExecuteAsync(TmuxCommandRequest.Single(arguments)" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", + "has": [ + "_launcher.Start(startInfo)" + ], + "calls": "Start", + "on": "SystemProcessLauncher" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", + "has": [ + "process.Start()" + ] + } + ] + } + ] + }, + { + "port": "csharp", + "name": "ReadUtilityAsync", + "why": "Sends the tmux arguments it is given, or the list command it is named for, to the server.", + "evidence": [ + { + "at": "src/LibTmux/Server.Utilities.cs:123", + "has": [ + "ReadUtilityAsync" + ], + "reaches": [ + { + "at": "src/LibTmux/Server.Utilities.cs:128", + "has": [ + ".ExecuteAsync(arguments, cancellationToken)" + ], + "calls": "ExecuteAsync", + "on": "TmuxCommandDispatcher" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:122", + "has": [ + "ExecuteWithinAsync(arguments, _context?.CommandTimeout" + ], + "calls": "ExecuteWithinAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:149", + "has": [ + "_execute(copy, deadline.Token)" + ], + "leads": "ExecuteAsync", + "why": "a delegate: the dispatcher made over a process transport binds it to that transport's ExecuteAsync in its constructor (line 24)" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:73", + "has": [ + "ExecuteAsync(TmuxCommandRequest.Single(arguments)" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", + "has": [ + "_launcher.Start(startInfo)" + ], + "calls": "Start", + "on": "SystemProcessLauncher" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", + "has": [ + "process.Start()" + ] + } + ] + } + ] + }, + { + "port": "csharp", + "name": "ExecuteCommandAsync", + "why": "Sends the tmux arguments it is given, or the list command it is named for, to the server.", + "evidence": [ + { + "at": "src/LibTmux/Pane.Command.cs:22", + "has": [ + "ExecuteCommandAsync" + ], + "reaches": [ + { + "at": "src/LibTmux/Pane.Command.cs:27", + "has": [ + "TargetedCommandArguments.ExecuteAsync(" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Session.Command.cs:57", + "has": [ + "dispatcher.ExecuteAsync(targeted, cancellationToken)" + ], + "calls": "ExecuteAsync", + "on": "TmuxCommandDispatcher" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:122", + "has": [ + "ExecuteWithinAsync(arguments, _context?.CommandTimeout" + ], + "calls": "ExecuteWithinAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:149", + "has": [ + "_execute(copy, deadline.Token)" + ], + "leads": "ExecuteAsync", + "why": "a delegate: the dispatcher made over a process transport binds it to that transport's ExecuteAsync in its constructor (line 24)" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:73", + "has": [ + "ExecuteAsync(TmuxCommandRequest.Single(arguments)" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", + "has": [ + "_launcher.Start(startInfo)" + ], + "calls": "Start", + "on": "SystemProcessLauncher" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", + "has": [ + "process.Start()" + ] + } + ] + }, + { + "at": "src/LibTmux/Server.Command.cs:19", + "has": [ + "ExecuteCommandAsync" + ], + "reaches": [ + { + "at": "src/LibTmux/Server.Command.cs:22", + "has": [ + "_commandDispatcher.ExecuteAsync(arguments, cancellationToken)" + ], + "calls": "ExecuteAsync", + "on": "TmuxCommandDispatcher" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:122", + "has": [ + "ExecuteWithinAsync(arguments, _context?.CommandTimeout" + ], + "calls": "ExecuteWithinAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:149", + "has": [ + "_execute(copy, deadline.Token)" + ], + "leads": "ExecuteAsync", + "why": "a delegate: the dispatcher made over a process transport binds it to that transport's ExecuteAsync in its constructor (line 24)" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:73", + "has": [ + "ExecuteAsync(TmuxCommandRequest.Single(arguments)" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", + "has": [ + "_launcher.Start(startInfo)" + ], + "calls": "Start", + "on": "SystemProcessLauncher" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", + "has": [ + "process.Start()" + ] + } + ] + }, + { + "at": "src/LibTmux/Session.Command.cs:22", + "has": [ + "ExecuteCommandAsync" + ], + "reaches": [ + { + "at": "src/LibTmux/Session.Command.cs:27", + "has": [ + "TargetedCommandArguments.ExecuteAsync(" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Session.Command.cs:57", + "has": [ + "dispatcher.ExecuteAsync(targeted, cancellationToken)" + ], + "calls": "ExecuteAsync", + "on": "TmuxCommandDispatcher" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:122", + "has": [ + "ExecuteWithinAsync(arguments, _context?.CommandTimeout" + ], + "calls": "ExecuteWithinAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:149", + "has": [ + "_execute(copy, deadline.Token)" + ], + "leads": "ExecuteAsync", + "why": "a delegate: the dispatcher made over a process transport binds it to that transport's ExecuteAsync in its constructor (line 24)" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:73", + "has": [ + "ExecuteAsync(TmuxCommandRequest.Single(arguments)" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", + "has": [ + "_launcher.Start(startInfo)" + ], + "calls": "Start", + "on": "SystemProcessLauncher" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", + "has": [ + "process.Start()" + ] + } + ] + } + ] + }, + { + "port": "csharp", + "name": "ExecuteAttachmentAsync", + "why": "Sends the tmux arguments it is given, or the list command it is named for, to the server.", + "evidence": [ + { + "at": "src/LibTmux/Connection/TmuxDialect.cs:168", + "has": [ + "ExecuteAttachmentAsync" + ], + "reaches": [ + { + "at": "src/LibTmux/Connection/TmuxDialect.cs:175", + "has": [ + "_generationGuard.ExecuteAttachmentAsync(" + ], + "calls": "ExecuteAttachmentAsync", + "on": "TmuxGenerationGuard" + }, + { + "at": "src/LibTmux/Internal/TmuxGenerationGuard.Attachment.cs:24", + "has": [ + "ExecuteAsync(expected, [command], fence, token)" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Internal/TmuxGenerationGuard.cs:27", + "has": [ + "ExecuteRequestAsync(request, logicalArguments, cancellationToken)" + ], + "calls": "ExecuteRequestAsync" + }, + { + "at": "src/LibTmux/Internal/TmuxGenerationGuard.cs:39", + "has": [ + "execute(request, cancellationToken)" + ], + "leads": "ExecuteAsync", + "why": "a delegate: the dialect passes the transport's ExecuteAsync to the guard it makes (TmuxDialect.cs:40)" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", + "has": [ + "_launcher.Start(startInfo)" + ], + "calls": "Start", + "on": "SystemProcessLauncher" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", + "has": [ + "process.Start()" + ] + } + ] + }, + { + "at": "src/LibTmux/Internal/TmuxGenerationGuard.Attachment.cs:11", + "has": [ + "ExecuteAttachmentAsync" + ], + "reaches": [ + { + "at": "src/LibTmux/Internal/TmuxGenerationGuard.Attachment.cs:24", + "has": [ + "ExecuteAsync(expected, [command], fence, token)" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Internal/TmuxGenerationGuard.cs:27", + "has": [ + "ExecuteRequestAsync(request, logicalArguments, cancellationToken)" + ], + "calls": "ExecuteRequestAsync" + }, + { + "at": "src/LibTmux/Internal/TmuxGenerationGuard.cs:39", + "has": [ + "execute(request, cancellationToken)" + ], + "leads": "ExecuteAsync", + "why": "a delegate: the dialect passes the transport's ExecuteAsync to the guard it makes (TmuxDialect.cs:40)" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", + "has": [ + "_launcher.Start(startInfo)" + ], + "calls": "Start", + "on": "SystemProcessLauncher" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", + "has": [ + "process.Start()" + ] + } + ] + } + ] + }, + { + "port": "csharp", + "name": "ExecuteGuardedAsync", + "why": "Sends the tmux arguments it is given, or the list command it is named for, to the server.", + "evidence": [ + { + "at": "src/LibTmux/Connection/PsmuxDialect.cs:63", + "has": [ + "ExecuteGuardedAsync" + ], + "reaches": [ + { + "at": "src/LibTmux/Connection/PsmuxDialect.cs:69", + "has": [ + "_router.ExecuteGuardedAsync(" + ], + "calls": "ExecuteGuardedAsync", + "on": "PsmuxSessionRouter" + }, + { + "at": "src/LibTmux/Internal/PsmuxSessionRouter.cs:123", + "has": [ + "_executeRaw(routed, cancellationToken, command)" + ], + "leads": "ExecuteRawSingleAsync", + "why": "a delegate: PsmuxDialect makes the router with its ExecuteRawSingleAsync (PsmuxDialect.cs:25)" + }, + { + "at": "src/LibTmux/Connection/PsmuxDialect.cs:144", + "has": [ + "Execute(request, cancellationToken)" + ], + "leads": "ExecuteAsync", + "why": "Execute is the delegate the dialect was made with, which is the transport's ExecuteAsync (MultiplexerDialect.cs:22)" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", + "has": [ + "_launcher.Start(startInfo)" + ], + "calls": "Start", + "on": "SystemProcessLauncher" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", + "has": [ + "process.Start()" + ] + } + ] + }, + { + "at": "src/LibTmux/Connection/TmuxDialect.cs:158", + "has": [ + "ExecuteGuardedAsync" + ], + "reaches": [ + { + "at": "src/LibTmux/Connection/TmuxDialect.cs:164", + "has": [ + "_generationGuard.ExecuteAsync(expected, commands, fence, token)" + ], + "calls": "ExecuteAsync", + "on": "TmuxGenerationGuard" + }, + { + "at": "src/LibTmux/Internal/TmuxGenerationGuard.cs:27", + "has": [ + "ExecuteRequestAsync(request, logicalArguments, cancellationToken)" + ], + "calls": "ExecuteRequestAsync" + }, + { + "at": "src/LibTmux/Internal/TmuxGenerationGuard.cs:39", + "has": [ + "execute(request, cancellationToken)" + ], + "leads": "ExecuteAsync", + "why": "a delegate: the dialect passes the transport's ExecuteAsync to the guard it makes (TmuxDialect.cs:40)" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", + "has": [ + "_launcher.Start(startInfo)" + ], + "calls": "Start", + "on": "SystemProcessLauncher" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", + "has": [ + "process.Start()" + ] + } + ] + } + ] + }, + { + "port": "csharp", + "name": "RunPlacementAsync", + "why": "Sends the tmux arguments it is given, or the list command it is named for, to the server.", + "evidence": [ + { + "at": "src/LibTmux/Window.Links.cs:177", + "has": [ + "RunPlacementAsync" + ], + "reaches": [ + { + "at": "src/LibTmux/Window.Links.cs:178", + "has": [ + "RunPlacementAsync(BuildPlacementCommand(arguments)" + ], + "calls": "RunPlacementAsync" + }, + { + "at": "src/LibTmux/Window.Links.cs:183", + "has": [ + ".ExecuteAsync(cancellationToken)" + ], + "calls": "ExecuteAsync", + "on": "TmuxChain" + }, + { + "at": "src/LibTmux/Chaining/TmuxChain.cs:139", + "has": [ + "_dispatcher.ExecuteGroupAsync(arguments, cancellationToken)" + ], + "calls": "ExecuteGroupAsync", + "on": "TmuxCommandDispatcher" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:56", + "has": [ + "ExecuteGroupAsync(commands, _executeGroup, cancellationToken)" + ], + "calls": "ExecuteGroupAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:91", + "has": [ + "executeGroup(commands, deadline.Token)" + ], + "leads": "TmuxCommandDispatcher", + "why": "a delegate: the dispatcher made over a process transport binds it, in its constructor, to a lambda that calls that transport (line 25)" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:25", + "has": [ + "transport.ExecuteAsync(" + ], + "calls": "ExecuteAsync", + "on": "TmuxProcessTransport" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", + "has": [ + "_launcher.Start(startInfo)" + ], + "calls": "Start", + "on": "SystemProcessLauncher" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", + "has": [ + "process.Start()" + ] + } + ] + } + ] + }, + { + "port": "csharp", + "name": "DispatchAsync", + "why": "Sends the tmux arguments it is given, or the list command it is named for, to the server.", + "evidence": [ + { + "at": "src/LibTmux/Hooks/TmuxHooks.cs:426", + "has": [ + "DispatchAsync" + ], + "reaches": [ + { + "at": "src/LibTmux/Hooks/TmuxHooks.cs:432", + "has": [ + ".ExecuteAsync(arguments, cancellationToken)" + ], + "calls": "ExecuteAsync", + "on": "TmuxCommandDispatcher" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:122", + "has": [ + "ExecuteWithinAsync(arguments, _context?.CommandTimeout" + ], + "calls": "ExecuteWithinAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:149", + "has": [ + "_execute(copy, deadline.Token)" + ], + "leads": "ExecuteAsync", + "why": "a delegate: the dispatcher made over a process transport binds it to that transport's ExecuteAsync in its constructor (line 24)" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:73", + "has": [ + "ExecuteAsync(TmuxCommandRequest.Single(arguments)" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", + "has": [ + "_launcher.Start(startInfo)" + ], + "calls": "Start", + "on": "SystemProcessLauncher" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", + "has": [ + "process.Start()" + ] + } + ] + } + ] + }, + { + "port": "csharp", + "name": "ReadAsync", + "why": "Sends the tmux arguments it is given, or the list command it is named for, to the server.", + "evidence": [ + { + "at": "src/LibTmux/Hooks/TmuxHooks.cs:437", + "has": [ + "ReadAsync" + ], + "reaches": [ + { + "at": "src/LibTmux/Hooks/TmuxHooks.cs:449", + "has": [ + ".ExecuteAsync(arguments, cancellationToken)" + ], + "calls": "ExecuteAsync", + "on": "TmuxCommandDispatcher" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:122", + "has": [ + "ExecuteWithinAsync(arguments, _context?.CommandTimeout" + ], + "calls": "ExecuteWithinAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:149", + "has": [ + "_execute(copy, deadline.Token)" + ], + "leads": "ExecuteAsync", + "why": "a delegate: the dispatcher made over a process transport binds it to that transport's ExecuteAsync in its constructor (line 24)" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:73", + "has": [ + "ExecuteAsync(TmuxCommandRequest.Single(arguments)" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", + "has": [ + "_launcher.Start(startInfo)" + ], + "calls": "Start", + "on": "SystemProcessLauncher" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", + "has": [ + "process.Start()" + ] + } + ] + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:117", + "has": [ + "ReadAsync" + ], + "reaches": [ + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:128", + "has": [ + "ExecuteAsync(listCommand, arguments, cancellationToken)" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:214", + "has": [ + "ExecuteAsync(CreateProjection(listCommand)" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:231", + "has": [ + ".ExecuteAsync(arguments, cancellationToken)" + ], + "calls": "ExecuteAsync", + "on": "TmuxCommandDispatcher" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:122", + "has": [ + "ExecuteWithinAsync(arguments, _context?.CommandTimeout" + ], + "calls": "ExecuteWithinAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:149", + "has": [ + "_execute(copy, deadline.Token)" + ], + "leads": "ExecuteAsync", + "why": "a delegate: the dispatcher made over a process transport binds it to that transport's ExecuteAsync in its constructor (line 24)" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:73", + "has": [ + "ExecuteAsync(TmuxCommandRequest.Single(arguments)" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", + "has": [ + "_launcher.Start(startInfo)" + ], + "calls": "Start", + "on": "SystemProcessLauncher" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", + "has": [ + "process.Start()" + ] + } + ] + }, + { + "at": "src/LibTmux/Options/TmuxOptions.cs:305", + "has": [ + "ReadAsync" + ], + "reaches": [ + { + "at": "src/LibTmux/Options/TmuxOptions.cs:311", + "has": [ + ".ExecuteAsync(arguments, cancellationToken)" + ], + "calls": "ExecuteAsync", + "on": "TmuxCommandDispatcher" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:122", + "has": [ + "ExecuteWithinAsync(arguments, _context?.CommandTimeout" + ], + "calls": "ExecuteWithinAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:149", + "has": [ + "_execute(copy, deadline.Token)" + ], + "leads": "ExecuteAsync", + "why": "a delegate: the dispatcher made over a process transport binds it to that transport's ExecuteAsync in its constructor (line 24)" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:73", + "has": [ + "ExecuteAsync(TmuxCommandRequest.Single(arguments)" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", + "has": [ + "_launcher.Start(startInfo)" + ], + "calls": "Start", + "on": "SystemProcessLauncher" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", + "has": [ + "process.Start()" + ] + } + ] + } + ], + "labels": [ + { + "at": 1, + "name": "optionName" + } + ] + }, + { + "port": "csharp", + "name": "CreatePaneFromAsync", + "why": "Sends the tmux arguments it is given, or the list command it is named for, to the server.", + "evidence": [ + { + "at": "src/LibTmux/Pane.Topology.cs:567", + "has": [ + "CreatePaneFromAsync" + ], + "reaches": [ + { + "at": "src/LibTmux/Pane.Topology.cs:576", + "has": [ + "_commandDispatcher.ExecuteAsync(arguments, cancellationToken)" + ], + "calls": "ExecuteAsync", + "on": "TmuxCommandDispatcher" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:122", + "has": [ + "ExecuteWithinAsync(arguments, _context?.CommandTimeout" + ], + "calls": "ExecuteWithinAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxCommandDispatcher.cs:149", + "has": [ + "_execute(copy, deadline.Token)" + ], + "leads": "ExecuteAsync", + "why": "a delegate: the dispatcher made over a process transport binds it to that transport's ExecuteAsync in its constructor (line 24)" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:73", + "has": [ + "ExecuteAsync(TmuxCommandRequest.Single(arguments)" + ], + "calls": "ExecuteAsync" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:101", + "has": [ + "_launcher.Start(startInfo)" + ], + "calls": "Start", + "on": "SystemProcessLauncher" + }, + { + "at": "src/LibTmux/Transport/TmuxProcessTransport.cs:556", + "has": [ + "process.Start()" + ] + } + ] + } + ], + "labels": [ + { + "at": 1, + "name": "subcommand" + } + ] + }, + { + "port": "csharp", + "name": "Build", + "kind": "builder", + "why": "Builds the argument list of a command from the command it is given.", + "evidence": [ + { + "at": "src/LibTmux/Environment/TmuxEnvironmentOperations.cs:226", + "has": [ + "Build" + ] + }, + { + "at": "src/LibTmux/Query/TmuxFilterRenderer.cs:206", + "has": [ + "Build" + ] + }, + { + "at": "src/LibTmux/Snapshots/ServerSnapshot.cs:147", + "has": [ + "Build" + ] + } + ] + }, + { + "port": "csharp", + "name": "Create", + "kind": "builder", + "why": "Builds the argument list of a command from the command it is given.", + "evidence": [ + { + "at": "src/LibTmux/Chaining/TmuxCommand.cs:73", + "has": [ + "Create" + ] + }, + { + "at": "src/LibTmux/Internal/TmuxDispatchLedger.cs:26", + "has": [ + "Create" + ] + }, + { + "at": "src/LibTmux/Materialization/FormatProjection.cs:95", + "has": [ + "Create" + ] + } + ] + }, + { + "port": "csharp", + "name": "BuildRehomeArguments", + "kind": "builder", + "why": "Builds the argument list of a command from the command it is given.", + "evidence": [ + { + "at": "src/LibTmux/Pane.Topology.cs:533", + "has": [ + "BuildRehomeArguments" + ] + } + ] + }, + { + "port": "csharp", + "name": "BuildGuardedCommandLine", + "kind": "builder", + "why": "Builds the argument list of a command from the command it is given.", + "evidence": [ + { + "at": "src/LibTmux/Server.Command.cs:66", + "has": [ + "BuildGuardedCommandLine" + ] + } + ] + }, + { + "port": "cxx", + "name": "run", + "why": "Sends the argument list it is given to the server.", + "evidence": [ + { + "at": "src/backend.cpp:353", + "has": [ + "run" + ], + "reaches": [ + { + "at": "src/backend.cpp:356", + "has": [ + "run_scoped(command, std::nullopt, timeout, output_limit)" + ], + "calls": "run_scoped" + }, + { + "at": "src/backend.cpp:682", + "has": [ + "run_process(request)" + ], + "calls": "run_process", + "on": "process.cpp" + }, + { + "at": "src/process.cpp:173", + "has": [ + "run_process(request, {})" + ], + "calls": "run_process" + }, + { + "at": "src/process.cpp:195", + "has": [ + "PosixChild::launch(request)" + ], + "calls": "launch" + }, + { + "at": "src/posix_child.cpp:367", + "has": [ + "::posix_spawnp(" + ] + } + ] + }, + { + "at": "src/backend.hpp:90", + "has": [ + "run" + ], + "reaches": [ + { + "at": "src/backend.hpp:91", + "has": [ + "run(command, std::nullopt, std::nullopt)" + ], + "leads": "run", + "why": "a virtual call: Backend::run is pure, and SubprocessBackend::run is the override that starts the process" + }, + { + "at": "src/backend.cpp:356", + "has": [ + "run_scoped(command, std::nullopt, timeout, output_limit)" + ], + "calls": "run_scoped" + }, + { + "at": "src/backend.cpp:682", + "has": [ + "run_process(request)" + ], + "calls": "run_process", + "on": "process.cpp" + }, + { + "at": "src/process.cpp:173", + "has": [ + "run_process(request, {})" + ], + "calls": "run_process" + }, + { + "at": "src/process.cpp:195", + "has": [ + "PosixChild::launch(request)" + ], + "calls": "launch" + }, + { + "at": "src/posix_child.cpp:367", + "has": [ + "::posix_spawnp(" + ] + } + ] + }, + { + "at": "src/entities.cpp:60", + "has": [ + "run" + ], + "reaches": [ + { + "at": "src/entities.cpp:88", + "has": [ + "backend()->run(" + ], + "leads": "run", + "why": "a virtual call: Backend::run is pure, and SubprocessBackend::run is the override that starts the process" + }, + { + "at": "src/backend.cpp:356", + "has": [ + "run_scoped(command, std::nullopt, timeout, output_limit)" + ], + "calls": "run_scoped" + }, + { + "at": "src/backend.cpp:682", + "has": [ + "run_process(request)" + ], + "calls": "run_process", + "on": "process.cpp" + }, + { + "at": "src/process.cpp:173", + "has": [ + "run_process(request, {})" + ], + "calls": "run_process" + }, + { + "at": "src/process.cpp:195", + "has": [ + "PosixChild::launch(request)" + ], + "calls": "launch" + }, + { + "at": "src/posix_child.cpp:367", + "has": [ + "::posix_spawnp(" + ] + } + ] + } + ] + }, + { + "port": "cxx", + "name": "list_entities", + "why": "Sends the argument list it is given to the server.", + "evidence": [ + { + "at": "src/acquire.hpp:185", + "has": [ + "list_entities" + ], + "reaches": [ + { + "at": "src/acquire.hpp:193", + "has": [ + "Snapshot::take_in_session(" + ], + "calls": "take_in_session" + }, + { + "at": "src/snapshot.cpp:68", + "has": [ + "backend->run(request, timeout, output_limit)" + ], + "leads": "run", + "why": "a virtual call: Backend::run is pure, and SubprocessBackend::run is the override that starts the process" + }, + { + "at": "src/backend.cpp:356", + "has": [ + "run_scoped(command, std::nullopt, timeout, output_limit)" + ], + "calls": "run_scoped" + }, + { + "at": "src/backend.cpp:682", + "has": [ + "run_process(request)" + ], + "calls": "run_process", + "on": "process.cpp" + }, + { + "at": "src/process.cpp:173", + "has": [ + "run_process(request, {})" + ], + "calls": "run_process" + }, + { + "at": "src/process.cpp:195", + "has": [ + "PosixChild::launch(request)" + ], + "calls": "launch" + }, + { + "at": "src/posix_child.cpp:367", + "has": [ + "::posix_spawnp(" + ] + } + ] + } + ] + }, + { + "port": "cxx", + "name": "show", + "why": "Sends the argument list it is given to the server.", + "evidence": [ + { + "at": "src/server.cpp:1360", + "has": [ + "show" + ], + "reaches": [ + { + "at": "src/server.cpp:1365", + "has": [ + "run(request)" + ], + "calls": "run" + }, + { + "at": "src/server.cpp:574", + "has": [ + "backend_->run(" + ], + "leads": "run", + "why": "a virtual call: Backend::run is pure, and SubprocessBackend::run is the override that starts the process" + }, + { + "at": "src/backend.cpp:356", + "has": [ + "run_scoped(command, std::nullopt, timeout, output_limit)" + ], + "calls": "run_scoped" + }, + { + "at": "src/backend.cpp:682", + "has": [ + "run_process(request)" + ], + "calls": "run_process", + "on": "process.cpp" + }, + { + "at": "src/process.cpp:173", + "has": [ + "run_process(request, {})" + ], + "calls": "run_process" + }, + { + "at": "src/process.cpp:195", + "has": [ + "PosixChild::launch(request)" + ], + "calls": "launch" + }, + { + "at": "src/posix_child.cpp:367", + "has": [ + "::posix_spawnp(" + ] + } + ] + } + ] + }, + { + "port": "cxx", + "name": "run_before_deadline", + "why": "Sends the argument list it is given to the server.", + "evidence": [ + { + "at": "src/wait.cpp:102", + "has": [ + "run_before_deadline" + ], + "reaches": [ + { + "at": "src/wait.cpp:111", + "has": [ + "wait.server.run(command, *remaining)" + ], + "calls": "run" + }, + { + "at": "src/server.cpp:574", + "has": [ + "backend_->run(" + ], + "leads": "run", + "why": "a virtual call: Backend::run is pure, and SubprocessBackend::run is the override that starts the process" + }, + { + "at": "src/backend.cpp:356", + "has": [ + "run_scoped(command, std::nullopt, timeout, output_limit)" + ], + "calls": "run_scoped" + }, + { + "at": "src/backend.cpp:682", + "has": [ + "run_process(request)" + ], + "calls": "run_process", + "on": "process.cpp" + }, + { + "at": "src/process.cpp:173", + "has": [ + "run_process(request, {})" + ], + "calls": "run_process" + }, + { + "at": "src/process.cpp:195", + "has": [ + "PosixChild::launch(request)" + ], + "calls": "launch" + }, + { + "at": "src/posix_child.cpp:367", + "has": [ + "::posix_spawnp(" + ] + } + ] + } + ] + }, + { + "port": "cxx", + "name": "one_entity", + "why": "Sends the argument list it is given to the server.", + "evidence": [ + { + "at": "src/acquire.hpp:222", + "has": [ + "one_entity" + ], + "reaches": [ + { + "at": "src/acquire.hpp:231", + "has": [ + "Snapshot::take_in_session(" + ], + "calls": "take_in_session" + }, + { + "at": "src/snapshot.cpp:68", + "has": [ + "backend->run(request, timeout, output_limit)" + ], + "leads": "run", + "why": "a virtual call: Backend::run is pure, and SubprocessBackend::run is the override that starts the process" + }, + { + "at": "src/backend.cpp:356", + "has": [ + "run_scoped(command, std::nullopt, timeout, output_limit)" + ], + "calls": "run_scoped" + }, + { + "at": "src/backend.cpp:682", + "has": [ + "run_process(request)" + ], + "calls": "run_process", + "on": "process.cpp" + }, + { + "at": "src/process.cpp:173", + "has": [ + "run_process(request, {})" + ], + "calls": "run_process" + }, + { + "at": "src/process.cpp:195", + "has": [ + "PosixChild::launch(request)" + ], + "calls": "launch" + }, + { + "at": "src/posix_child.cpp:367", + "has": [ + "::posix_spawnp(" + ] + } + ] + } + ] + }, + { + "port": "cxx", + "name": "scoped", + "kind": "builder", + "why": "Builds the argument list of a command from the command it is given.", + "evidence": [ + { + "at": "src/entities.cpp:222", + "has": [ + "scoped" + ] + } + ] + }, + { + "port": "swift", + "name": "TmuxCommand", + "kind": "builder", + "why": "The value that names a tmux command and its arguments, which a dispatch call takes.", + "evidence": [ + { + "at": "Sources/LibTmux/TmuxCommand.swift:5", + "has": [ + "struct TmuxCommand" + ] + } + ] + }, + { + "port": "swift", + "name": "expectSuccess", + "why": "Sends the TmuxCommand it is given to the server.", + "evidence": [ + { + "at": "Sources/LibTmux/Mutations.swift:128", + "has": [ + "expectSuccess" + ], + "reaches": [ + { + "at": "Sources/LibTmux/Mutations.swift:129", + "has": [ + "run(command)" + ], + "calls": "run" + }, + { + "at": "Sources/LibTmux/Server.swift:132", + "has": [ + "run(rawArguments: command.argumentVector)" + ], + "calls": "run" + }, + { + "at": "Sources/LibTmux/Server.swift:137", + "has": [ + "runtime.run(rawArguments: rawArguments)" + ], + "calls": "run", + "on": "ServerRuntime" + }, + { + "at": "Sources/LibTmux/Server.swift:462", + "has": [ + "transport.run(" + ], + "leads": "run", + "why": "a call through the ProcessTransport protocol; SubprocessTransport is the transport the library ships" + }, + { + "at": "Sources/LibTmux/Transport.swift:72", + "has": [ + "Subprocess.run(" + ] + } + ] + }, + { + "at": "Sources/LibTmux/Mutations.swift:135", + "has": [ + "expectSuccess" + ], + "reaches": [ + { + "at": "Sources/LibTmux/Mutations.swift:139", + "has": [ + "runGuarded(command, by: values)" + ], + "calls": "runGuarded" + }, + { + "at": "Sources/LibTmux/GuardedRequest.swift:34", + "has": [ + "run(rawArguments: request.commands.argumentVector)" + ], + "calls": "run" + }, + { + "at": "Sources/LibTmux/Server.swift:137", + "has": [ + "runtime.run(rawArguments: rawArguments)" + ], + "calls": "run", + "on": "ServerRuntime" + }, + { + "at": "Sources/LibTmux/Server.swift:462", + "has": [ + "transport.run(" + ], + "leads": "run", + "why": "a call through the ProcessTransport protocol; SubprocessTransport is the transport the library ships" + }, + { + "at": "Sources/LibTmux/Transport.swift:72", + "has": [ + "Subprocess.run(" + ] + } + ] + } + ] + }, + { + "port": "swift", + "name": "run", + "why": "Sends the TmuxCommand it is given to the server.", + "evidence": [ + { + "at": "Sources/LibTmux/CommandList.swift:65", + "has": [ + "run" + ], + "reaches": [ + { + "at": "Sources/LibTmux/CommandList.swift:69", + "has": [ + "run(rawArguments: list.argumentVector)" + ], + "calls": "run" + }, + { + "at": "Sources/LibTmux/Server.swift:137", + "has": [ + "runtime.run(rawArguments: rawArguments)" + ], + "calls": "run", + "on": "ServerRuntime" + }, + { + "at": "Sources/LibTmux/Server.swift:462", + "has": [ + "transport.run(" + ], + "leads": "run", + "why": "a call through the ProcessTransport protocol; SubprocessTransport is the transport the library ships" + }, + { + "at": "Sources/LibTmux/Transport.swift:72", + "has": [ + "Subprocess.run(" + ] + } + ] + }, + { + "at": "Sources/LibTmux/Server.swift:131", + "has": [ + "run" + ], + "reaches": [ + { + "at": "Sources/LibTmux/Server.swift:132", + "has": [ + "run(rawArguments: command.argumentVector)" + ], + "calls": "run" + }, + { + "at": "Sources/LibTmux/Server.swift:137", + "has": [ + "runtime.run(rawArguments: rawArguments)" + ], + "calls": "run", + "on": "ServerRuntime" + }, + { + "at": "Sources/LibTmux/Server.swift:462", + "has": [ + "transport.run(" + ], + "leads": "run", + "why": "a call through the ProcessTransport protocol; SubprocessTransport is the transport the library ships" + }, + { + "at": "Sources/LibTmux/Transport.swift:72", + "has": [ + "Subprocess.run(" + ] + } + ] + }, + { + "at": "Sources/LibTmux/Server.swift:135", + "has": [ + "run" + ], + "reaches": [ + { + "at": "Sources/LibTmux/Server.swift:137", + "has": [ + "runtime.run(rawArguments: rawArguments)" + ], + "calls": "run", + "on": "ServerRuntime" + }, + { + "at": "Sources/LibTmux/Server.swift:462", + "has": [ + "transport.run(" + ], + "leads": "run", + "why": "a call through the ProcessTransport protocol; SubprocessTransport is the transport the library ships" + }, + { + "at": "Sources/LibTmux/Transport.swift:72", + "has": [ + "Subprocess.run(" + ] + } + ] + } + ] + }, + { + "port": "swift", + "name": "runOptionCommand", + "why": "Sends the TmuxCommand it is given to the server.", + "evidence": [ + { + "at": "Sources/LibTmux/Options.swift:289", + "has": [ + "runOptionCommand" + ], + "reaches": [ + { + "at": "Sources/LibTmux/Options.swift:294", + "has": [ + "run(command)" + ], + "calls": "run" + }, + { + "at": "Sources/LibTmux/Server.swift:132", + "has": [ + "run(rawArguments: command.argumentVector)" + ], + "calls": "run" + }, + { + "at": "Sources/LibTmux/Server.swift:137", + "has": [ + "runtime.run(rawArguments: rawArguments)" + ], + "calls": "run", + "on": "ServerRuntime" + }, + { + "at": "Sources/LibTmux/Server.swift:462", + "has": [ + "transport.run(" + ], + "leads": "run", + "why": "a call through the ProcessTransport protocol; SubprocessTransport is the transport the library ships" + }, + { + "at": "Sources/LibTmux/Transport.swift:72", + "has": [ + "Subprocess.run(" + ] + } + ] + } + ] + }, + { + "port": "swift", + "name": "list", + "why": "Sends the TmuxCommand it is given to the server.", + "evidence": [ + { + "at": "Sources/LibTmux/Server.swift:367", + "has": [ + "list" + ], + "reaches": [ + { + "at": "Sources/LibTmux/Server.swift:372", + "has": [ + "run(rawArguments: command.argumentVector)" + ], + "calls": "run" + }, + { + "at": "Sources/LibTmux/Server.swift:137", + "has": [ + "runtime.run(rawArguments: rawArguments)" + ], + "calls": "run", + "on": "ServerRuntime" + }, + { + "at": "Sources/LibTmux/Server.swift:462", + "has": [ + "transport.run(" + ], + "leads": "run", + "why": "a call through the ProcessTransport protocol; SubprocessTransport is the transport the library ships" + }, + { + "at": "Sources/LibTmux/Transport.swift:72", + "has": [ + "Subprocess.run(" + ] + } + ] + } + ] + }, + { + "port": "swift", + "name": "runInOwnProcess", + "why": "Sends the TmuxCommand it is given to the server.", + "evidence": [ + { + "at": "Sources/LibTmux/Server.swift:167", + "has": [ + "runInOwnProcess" + ], + "reaches": [ + { + "at": "Sources/LibTmux/Server.swift:168", + "has": [ + "runtime.run(rawArguments: rawArguments)" + ], + "calls": "run", + "on": "ServerRuntime" + }, + { + "at": "Sources/LibTmux/Server.swift:462", + "has": [ + "transport.run(" + ], + "leads": "run", + "why": "a call through the ProcessTransport protocol; SubprocessTransport is the transport the library ships" + }, + { + "at": "Sources/LibTmux/Transport.swift:72", + "has": [ + "Subprocess.run(" + ] + } + ] + } + ] + }, + { + "port": "swift", + "name": "runGuarded", + "why": "Sends the TmuxCommand it is given to the server.", + "evidence": [ + { + "at": "Sources/LibTmux/GuardedRequest.swift:19", + "has": [ + "runGuarded" + ], + "reaches": [ + { + "at": "Sources/LibTmux/GuardedRequest.swift:34", + "has": [ + "run(rawArguments: request.commands.argumentVector)" + ], + "calls": "run" + }, + { + "at": "Sources/LibTmux/Server.swift:137", + "has": [ + "runtime.run(rawArguments: rawArguments)" + ], + "calls": "run", + "on": "ServerRuntime" + }, + { + "at": "Sources/LibTmux/Server.swift:462", + "has": [ + "transport.run(" + ], + "leads": "run", + "why": "a call through the ProcessTransport protocol; SubprocessTransport is the transport the library ships" + }, + { + "at": "Sources/LibTmux/Transport.swift:72", + "has": [ + "Subprocess.run(" + ] + } + ] + } + ] + }, + { + "port": "swift", + "name": "send", + "why": "Sends the TmuxCommand it is given to the server.", + "evidence": [ + { + "at": "Sources/LibTmux/ControlSession.swift:168", + "has": [ + "send" + ], + "reaches": [ + { + "at": "Sources/LibTmux/ControlSession.swift:170", + "has": [ + "send(" + ], + "calls": "send" + }, + { + "at": "Sources/LibTmux/ControlSession.swift:181", + "has": [ + "enqueue(" + ], + "calls": "enqueue" + }, + { + "at": "Sources/LibTmux/ControlSession.swift:234", + "has": [ + "write(" + ], + "leads": "write", + "why": "write is a closure the session keeps from when it was made, and the connection gives it the non-blocking line writer" + }, + { + "at": "Sources/LibTmux/NonblockingLineWriter.swift:42", + "has": [ + "systemWrite(" + ], + "calls": "systemWrite" + }, + { + "at": "Sources/LibTmux/NonblockingLineWriter.swift:79", + "has": [ + "Glibc.write(" + ] + } + ] + } + ] + }, + { + "port": "swift", + "name": "runTerminatingIsolated", + "why": "Sends the TmuxCommand it is given to the server.", + "evidence": [ + { + "at": "Sources/LibTmux/Server.swift:226", + "has": [ + "runTerminatingIsolated" + ], + "reaches": [ + { + "at": "Sources/LibTmux/Server.swift:237", + "has": [ + "runtime.run(" + ], + "calls": "run", + "on": "ServerRuntime" + }, + { + "at": "Sources/LibTmux/Server.swift:462", + "has": [ + "transport.run(" + ], + "leads": "run", + "why": "a call through the ProcessTransport protocol; SubprocessTransport is the transport the library ships" + }, + { + "at": "Sources/LibTmux/Transport.swift:72", + "has": [ + "Subprocess.run(" + ] + } + ] + } + ] + }, + { + "port": "swift", + "name": "runIsolated", + "why": "Sends the TmuxCommand it is given to the server.", + "evidence": [ + { + "at": "Sources/LibTmux/Server.swift:171", + "has": [ + "runIsolated" + ], + "reaches": [ + { + "at": "Sources/LibTmux/Server.swift:175", + "has": [ + "runtime.run(" + ], + "calls": "run", + "on": "ServerRuntime" + }, + { + "at": "Sources/LibTmux/Server.swift:462", + "has": [ + "transport.run(" + ], + "leads": "run", + "why": "a call through the ProcessTransport protocol; SubprocessTransport is the transport the library ships" + }, + { + "at": "Sources/LibTmux/Transport.swift:72", + "has": [ + "Subprocess.run(" + ] + } + ] + } + ] + }, + { + "port": "swift", + "name": "windowAppearance", + "why": "Sends the TmuxCommand it is given to the server.", + "evidence": [ + { + "at": "Sources/LibTmux/Creation.swift:342", + "has": [ + "windowAppearance" + ], + "reaches": [ + { + "at": "Sources/LibTmux/Creation.swift:346", + "has": [ + "runGuarded(" + ], + "calls": "runGuarded" + }, + { + "at": "Sources/LibTmux/GuardedRequest.swift:34", + "has": [ + "run(rawArguments: request.commands.argumentVector)" + ], + "calls": "run" + }, + { + "at": "Sources/LibTmux/Server.swift:137", + "has": [ + "runtime.run(rawArguments: rawArguments)" + ], + "calls": "run", + "on": "ServerRuntime" + }, + { + "at": "Sources/LibTmux/Server.swift:462", + "has": [ + "transport.run(" + ], + "leads": "run", + "why": "a call through the ProcessTransport protocol; SubprocessTransport is the transport the library ships" + }, + { + "at": "Sources/LibTmux/Transport.swift:72", + "has": [ + "Subprocess.run(" + ] + } + ] + } + ] + }, + { + "port": "swift", + "name": "identifier", + "why": "Sends the TmuxCommand it is given to the server.", + "evidence": [ + { + "at": "Sources/LibTmux/Creation.swift:322", + "has": [ + "identifier" + ], + "reaches": [ + { + "at": "Sources/LibTmux/Creation.swift:330", + "has": [ + "run(command)" + ], + "calls": "run" + }, + { + "at": "Sources/LibTmux/Server.swift:132", + "has": [ + "run(rawArguments: command.argumentVector)" + ], + "calls": "run" + }, + { + "at": "Sources/LibTmux/Server.swift:137", + "has": [ + "runtime.run(rawArguments: rawArguments)" + ], + "calls": "run", + "on": "ServerRuntime" + }, + { + "at": "Sources/LibTmux/Server.swift:462", + "has": [ + "transport.run(" + ], + "leads": "run", + "why": "a call through the ProcessTransport protocol; SubprocessTransport is the transport the library ships" + }, + { + "at": "Sources/LibTmux/Transport.swift:72", + "has": [ + "Subprocess.run(" + ] + } + ] + } + ] + }, + { + "port": "swift", + "name": "filtered", + "why": "Sends the TmuxCommand it is given to the server.", + "evidence": [ + { + "at": "Sources/LibTmux/FilteredListings.swift:116", + "has": [ + "filtered" + ], + "reaches": [ + { + "at": "Sources/LibTmux/FilteredListings.swift:125", + "has": [ + "run(command)" + ], + "calls": "run" + }, + { + "at": "Sources/LibTmux/Server.swift:132", + "has": [ + "run(rawArguments: command.argumentVector)" + ], + "calls": "run" + }, + { + "at": "Sources/LibTmux/Server.swift:137", + "has": [ + "runtime.run(rawArguments: rawArguments)" + ], + "calls": "run", + "on": "ServerRuntime" + }, + { + "at": "Sources/LibTmux/Server.swift:462", + "has": [ + "transport.run(" + ], + "leads": "run", + "why": "a call through the ProcessTransport protocol; SubprocessTransport is the transport the library ships" + }, + { + "at": "Sources/LibTmux/Transport.swift:72", + "has": [ + "Subprocess.run(" + ] + } + ] + } + ] + } + ] +} diff --git a/scripts/tmux-usage/exclusions.json b/scripts/tmux-usage/exclusions.json new file mode 100644 index 000000000..5243b19b5 --- /dev/null +++ b/scripts/tmux-usage/exclusions.json @@ -0,0 +1,390 @@ +{ + "schemaVersion": 1, + "exclusions": [ + { + "port": "csharp", + "revision": "4f1b997b2e4aeb604c4184707e49dcd4dea44fef", + "owner": "Session", + "names": [ + "CreateWindowAsync" + ], + "commands": [ + "display-message" + ], + "why": "CreateWindowAsync asks display-message to expand a window name only when the request sets SelectExisting. The F# wrapper builds its NewWindowRequest without it, so no F# call sends display-message.", + "evidence": [ + { + "at": "src/LibTmux/Session.Lifecycle.cs:279", + "has": [ + "options.SelectExisting" + ] + }, + { + "at": "src/LibTmux/Session.Lifecycle.cs:284", + "has": [ + "ExpandWindowNameAsync(" + ] + }, + { + "at": "src/LibTmux.FSharp/Hierarchy.fs:100", + "has": [ + "NewWindowRequest(" + ] + }, + { + "at": "src/LibTmux.FSharp/Hierarchy.fs:104", + "has": [ + "Environment = environment window.Environment" + ] + } + ] + }, + { + "port": "ruby", + "owner": "Pane", + "names": [ + "capture" + ], + "commands": [ + "list-commands" + ], + "why": "capture asks list-commands whether tmux knows a flag only when trim_trailing or mode_screen is set; a default capture does not send it.", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/entity.rb:183", + "has": [ + "next unless enabled" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/entity.rb:185", + "has": [ + "require_command_flag" + ] + } + ] + }, + { + "port": "ruby", + "owner": "Pane", + "names": [ + "copy_mode" + ], + "commands": [ + "list-commands" + ], + "why": "copy_mode asks list-commands whether tmux knows a flag only when one of those flags is set; a default copy_mode does not send it.", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/operations.rb:387", + "has": [ + "next unless enabled" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:389", + "has": [ + "require_command_flag" + ] + } + ] + }, + { + "port": "rs", + "owner": "Plan", + "names": [ + "run_over_control_mode" + ], + "commands": [ + "display-message" + ], + "why": "run_over_control_mode probes the tmux version with display-message only when the plan holds a layout step whose validity differs between releases.", + "evidence": [ + { + "at": "crates/libtmux/src/plan/run.rs:785", + "has": [ + "!pending.is_empty()" + ] + }, + { + "at": "crates/libtmux/src/plan/run.rs:786", + "has": [ + "sender.send(" + ] + } + ] + }, + { + "port": "cxx", + "owner": "Window", + "names": [ + "select_layout" + ], + "commands": [ + "display-message" + ], + "why": "select_layout probes the running version with display-message only when the layout string needs it (layout_needs_version); a named layout does not.", + "evidence": [ + { + "at": "src/layout.cpp:386", + "has": [ + "if (!sensitive)" + ] + }, + { + "at": "src/layout.cpp:390", + "has": [ + "\"display-message\"" + ] + }, + { + "at": "src/entities.cpp:696", + "has": [ + "detail::validate_layouts(" + ] + } + ] + }, + { + "port": "cxx", + "owner": "Pane", + "names": [ + "wait_for_text" + ], + "commands": [ + "display-message" + ], + "why": "wait_for_text asks display-message for the session name only when the wait was not given one.", + "evidence": [ + { + "at": "src/wait.cpp:460", + "has": [ + "if (!wait.session_known)" + ] + }, + { + "at": "src/wait.cpp:462", + "has": [ + "\"display-message\"" + ] + } + ] + }, + { + "port": "go", + "owner": "Pane", + "names": [ + "BreakPane" + ], + "commands": [ + "rename-window" + ], + "why": "BreakPane renames the window afterwards only on the tmux release that ignores the name and when the request names one.", + "evidence": [ + { + "at": "tmux/pane_relocate.go:179", + "has": [ + "isBroken37 && request.Name != \"\"" + ] + }, + { + "at": "tmux/pane_relocate.go:182", + "has": [ + "\"rename-window\"" + ] + } + ] + }, + { + "port": "go", + "owner": "Server", + "names": [ + "OpenNotifications" + ], + "commands": [ + "refresh-client" + ], + "why": "OpenNotifications arms the pause hold with refresh-client only when PauseAfter is positive.", + "evidence": [ + { + "at": "tmux/notification_stream.go:121", + "has": [ + "options.PauseAfter > 0" + ] + }, + { + "at": "tmux/notification_stream.go:122", + "has": [ + "armPause(" + ] + } + ] + }, + { + "port": "julia", + "names": [ + "open_control" + ], + "commands": [ + "wait-for" + ], + "why": "The connection releases a wait-for signal from its cleanup worker, in the :release phase, and not as part of opening it.", + "evidence": [ + { + "at": "src/control.jl:965", + "has": [ + "phase === :release" + ] + }, + { + "at": "src/control.jl:966", + "has": [ + "\"wait-for\"" + ] + } + ] + }, + { + "port": "julia", + "names": [ + "select_layout" + ], + "commands": [ + "display-message" + ], + "why": "select_layout asks display-message for the version only for a mirrored layout.", + "evidence": [ + { + "at": "src/control_topology.jl:131", + "has": [ + "endswith(text, \"-mirrored\")" + ] + }, + { + "at": "src/control_topology.jl:134", + "has": [ + "\"display-message\"" + ] + } + ] + }, + { + "port": "java", + "owner": "Pane", + "names": [ + "breakOut" + ], + "commands": [ + "rename-window" + ], + "why": "breakOut renames the window afterwards only on the tmux release that ignores the name.", + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:839", + "has": [ + "BREAK_PANE_NAMING_BROKEN" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:842", + "has": [ + "\"rename-window\"" + ] + } + ] + }, + { + "port": "ts", + "owner": "Pane", + "names": [ + "exitCopyMode" + ], + "commands": [ + "copy-mode" + ], + "why": "exitCopyMode calls setCopyMode with active false, which sends send-keys -X cancel; the copy-mode branch is for entering.", + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/shell.ts:215", + "has": [ + "if (active)" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/shell.ts:216", + "has": [ + "\"copy-mode\"" + ] + }, + { + "at": "packages/libtmux/src/pane.ts:551", + "has": [ + "setCopyMode(runtimeForHandle(this), this.id, false)" + ] + } + ] + }, + { + "port": "ts", + "owner": "Pane", + "names": [ + "enterCopyMode" + ], + "commands": [ + "send-keys" + ], + "why": "enterCopyMode calls setCopyMode with active true, which returns after copy-mode; the send-keys -X cancel branch is for leaving.", + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/shell.ts:216", + "has": [ + "\"copy-mode\"" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/shell.ts:217", + "has": [ + "return;" + ] + }, + { + "at": "packages/libtmux/src/pane.ts:540", + "has": [ + "setCopyMode(runtimeForHandle(this), this.id, true)" + ] + } + ] + }, + { + "port": "ts", + "owner": "Pane", + "names": [ + "breakOut" + ], + "commands": [ + "rename-window" + ], + "why": "breakOut renames the window afterwards only when a name is given and the server is exactly tmux 3.7, the release that ignores the name.", + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/shell.ts:141", + "has": [ + "quirks.breakPane37" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/shell.ts:154", + "has": [ + "if (!renames || windowName === undefined) return;" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/shell.ts:160", + "has": [ + "\"rename-window\"" + ] + } + ] + } + ] +} diff --git a/scripts/tmux-usage/forwarders.json b/scripts/tmux-usage/forwarders.json new file mode 100644 index 000000000..742756247 --- /dev/null +++ b/scripts/tmux-usage/forwarders.json @@ -0,0 +1,28 @@ +{ + "schemaVersion": 1, + "forwarders": { + "kotlin": { + "parent": "java", + "generated": { + "under": ["libtmux-kotlin/build/generated/"], + "kinds": ["READ", "MUTATION"], + "evidence": [ + { "at": "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", "has": ["java.${operation.name}("] } + ] + } + }, + "scala": { + "parent": "java", + "generated": { + "under": ["libtmux-scala/build/generated/", "libtmux-scala-cats/build/generated/"], + "kinds": ["CAPTURED", "READ", "MUTATION"], + "evidence": [ + { "at": "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", "has": ["self.asJava.${op.name}("] }, + { "at": "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", "has": ["${op.name}(${sig.javaArgs})"] } + ] + } + }, + "fsharp": { "parent": "csharp" }, + "powershell": { "parent": "csharp" } + } +} diff --git a/scripts/tmux-usage/guards.json b/scripts/tmux-usage/guards.json new file mode 100644 index 000000000..c8346e308 --- /dev/null +++ b/scripts/tmux-usage/guards.json @@ -0,0 +1,325 @@ +{ + "schemaVersion": 1, + "guards": [ + { + "port": "ruby", + "name": "execute_link", + "purpose": "refuses a window link that was removed or replaced since the handle was read", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/operations.rb:110", + "has": [ + "def execute_link(" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:113", + "has": [ + "builtin_spellings(\"if-shell\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:119", + "has": [ + "names.fetch(\"if-shell\")" + ] + } + ] + }, + { + "port": "lua", + "name": "guard", + "purpose": "refuses an operation on a window link that was removed or replaced, or on a pane that left its window", + "conditional": true, + "when": "the operation is given a window link", + "evidence": [ + { + "at": "lua/libtmux/_internal/topology.lua:147", + "has": [ + "local function guard(ref, argv, pane_id)" + ] + }, + { + "at": "lua/libtmux/_internal/topology.lua:171", + "has": [ + "\"if-shell\"" + ] + }, + { + "at": "lua/libtmux/_internal/topology.lua:307", + "has": [ + "guard(destination, argv)" + ] + } + ] + }, + { + "port": "ts", + "name": "guardedChain", + "purpose": "refuses a command list when the tmux daemon is not the one the handle was read from", + "conditional": true, + "when": "the command carries a tmux id the runtime has seen a daemon for", + "evidence": [ + { + "at": "packages/libtmux/src/_internal/transport/daemon_guard.ts:31", + "has": [ + "function guardedChain(" + ] + }, + { + "at": "packages/libtmux/src/_internal/transport/daemon_guard.ts:36", + "has": [ + "\"if-shell\", \"-F\", daemonCondition(daemon), chain" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/command.ts:44", + "has": [ + "lastObservedDaemon(runtime)" + ] + } + ] + }, + { + "port": "go", + "name": "guardCommand", + "purpose": "refuses a command when the tmux daemon is not the one the handle was read from", + "conditional": true, + "when": "the Server carries a daemon identity or startup version", + "evidence": [ + { + "at": "tmux/identity.go:133", + "has": [ + "func (s Server) guardCommand(" + ] + }, + { + "at": "tmux/identity.go:137", + "has": [ + "(s.daemon == nil && s.startupVersion == nil) || s.boundToInstance()" + ] + }, + { + "at": "tmux/identity.go:161", + "has": [ + "\"if-shell\", \"-F\", condition, \"\", guard.failure" + ] + }, + { + "at": "tmux/control_startup.go:102", + "has": [ + "s.guardCommand(attach, false)" + ] + } + ] + }, + { + "port": "java", + "name": "guarded", + "owner": "IncarnationFence", + "purpose": "refuses a command when the tmux server is not the one the handle was made against", + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/IncarnationFence.java:74", + "has": [ + "CommandResult guarded(long pid" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/IncarnationFence.java:77", + "has": [ + "\"if-shell\", \"-F\", condition, command, stale" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:1230", + "has": [ + "fence.guarded(snapshot" + ] + } + ] + }, + { + "port": "java", + "name": "run", + "owner": "IncarnationFence", + "purpose": "refuses a command once the window it was made for has gone", + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/IncarnationFence.java:87", + "has": [ + "CommandResult run(ServerSnapshot snapshot, WindowContext expected" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/IncarnationFence.java:95", + "has": [ + "\"if-shell\", \"-F\", \"-t\", target, condition" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:1281", + "has": [ + "fence.run(snapshot, expected, argv)" + ] + } + ] + }, + { + "port": "java", + "name": "killOwnedServer", + "purpose": "refuses to kill a tmux process that replaced the one the fixture started", + "evidence": [ + { + "at": "libtmux-junit5/src/main/java/io/github/libtmux/junit5/NamedServerFixture.java:147", + "has": [ + "private void killOwnedServer()" + ] + }, + { + "at": "libtmux-junit5/src/main/java/io/github/libtmux/junit5/NamedServerFixture.java:150", + "has": [ + "\"if-shell\", \"-F\"", + "\"kill-server\"" + ] + } + ] + }, + { + "port": "csharp", + "name": "Conditional", + "purpose": "refuses a command group when the tmux server generation is not the expected one", + "conditional": true, + "when": "the handle carries a server generation", + "evidence": [ + { + "at": "src/LibTmux/Internal/TmuxGenerationGuard.cs:114", + "has": [ + "internal static IReadOnlyList Conditional(" + ] + }, + { + "at": "src/LibTmux/Internal/TmuxGenerationGuard.cs:117", + "has": [ + "\"if-shell\", \"-F\"" + ] + } + ] + }, + { + "port": "csharp", + "name": "CreateArguments", + "owner": "TmuxWindowPlacementGuard", + "purpose": "refuses a command when the window is no longer at the placement the handle was read at", + "conditional": true, + "when": "the handle carries its window placement", + "evidence": [ + { + "at": "src/LibTmux/Internal/TmuxWindowPlacementGuard.cs:34", + "has": [ + "CreateArguments(WindowEntityKey placement" + ] + }, + { + "at": "src/LibTmux/Internal/TmuxWindowPlacementGuard.cs:47", + "has": [ + "\"if-shell\", \"-F\", \"-t\"" + ] + } + ] + }, + { + "port": "csharp", + "name": "CreateTargetWindowArguments", + "owner": "TmuxWindowPlacementGuard", + "purpose": "refuses a command when the target pane moved to another window", + "conditional": true, + "when": "the command targets a pane of a known window", + "evidence": [ + { + "at": "src/LibTmux/Internal/TmuxWindowPlacementGuard.cs:16", + "has": [ + "CreateTargetWindowArguments(string target" + ] + }, + { + "at": "src/LibTmux/Internal/TmuxWindowPlacementGuard.cs:18", + "has": [ + "\"if-shell\", \"-F\", \"-t\", target" + ] + } + ] + }, + { + "port": "csharp", + "name": "Fence", + "purpose": "refuses a command when the tmux daemon does not report the version the handle was read at", + "conditional": true, + "when": "the daemon version is known", + "evidence": [ + { + "at": "src/LibTmux/Support/Versions.cs:183", + "has": [ + "Fence(TmuxVersion version" + ] + }, + { + "at": "src/LibTmux/Support/Versions.cs:184", + "has": [ + "\"if-shell\", \"-F\"" + ] + } + ] + }, + { + "port": "swift", + "name": "guardedAction", + "purpose": "runs the command together with a marker that shows it ran, inside the guards that refuse a stale target", + "evidence": [ + { + "at": "Sources/LibTmux/GuardedRequest.swift:174", + "has": [ + "private static func guardedAction(" + ] + }, + { + "at": "Sources/LibTmux/GuardedRequest.swift:179", + "has": [ + "\"if-shell\"" + ] + }, + { + "at": "Sources/LibTmux/GuardedRequest.swift:25", + "has": [ + "GuardedRequest(" + ] + } + ] + }, + { + "port": "swift", + "name": "commandGuard", + "purpose": "refuses the command when the server restarted or the target no longer matches what the value was read from", + "evidence": [ + { + "at": "Sources/LibTmux/GuardedRequest.swift:187", + "has": [ + "private static func commandGuard(" + ] + }, + { + "at": "Sources/LibTmux/GuardedRequest.swift:200", + "has": [ + "TmuxCommand(\"if-shell\", arguments)" + ] + }, + { + "at": "Sources/LibTmux/Server.swift:214", + "has": [ + "GuardedRequest(" + ] + } + ] + } + ] +} diff --git a/scripts/tmux-usage/not-senders.json b/scripts/tmux-usage/not-senders.json new file mode 100644 index 000000000..eea8371e7 --- /dev/null +++ b/scripts/tmux-usage/not-senders.json @@ -0,0 +1,4562 @@ +{ + "schemaVersion": 1, + "reviews": [ + { + "port": "csharp", + "owner": "CapturePanePosition", + "kind": "builds", + "why": "CapturePanePosition is a position inside a CapturePaneRequest; it carries no command.", + "evidence": [ + { + "at": "src/LibTmux/Requests/CapturePaneRequest.cs:14", + "has": [ + "CapturePanePosition" + ] + } + ] + }, + { + "port": "csharp", + "owner": "Client", + "names": [ + "RefreshAsync" + ], + "commands": [ + "refresh-client" + ], + "kind": "other-command", + "why": "RefreshAsync reads this client again with GetAsync; it does not send refresh-client.", + "evidence": [ + { + "at": "src/LibTmux/Client.Administration.cs:94", + "has": [ + "GetAsync(Server, Name" + ] + } + ] + }, + { + "port": "csharp", + "owner": "Pane", + "names": [ + "ClearAsync" + ], + "commands": [ + "clear-history" + ], + "kind": "other-command", + "why": "ClearAsync types reset into the pane with send-keys, and sends no clear-history.", + "evidence": [ + { + "at": "src/LibTmux/Pane.Input.cs:157", + "has": [ + "SendKeysAsync(new SendKeysRequest { Text = \"reset\" }" + ] + } + ] + }, + { + "port": "csharp", + "owner": "Pane", + "names": [ + "ClearHistoryAsync" + ], + "commands": [ + "clear-prompt-history" + ], + "kind": "other-command", + "why": "ClearHistoryAsync sends clear-history; clear-prompt-history is a different command, sent by Server.ClearPromptHistoryAsync.", + "evidence": [ + { + "at": "src/LibTmux/Pane.Input.cs:192", + "has": [ + "\"clear-history\"" + ] + } + ] + }, + { + "port": "csharp", + "owner": "Pane", + "names": [ + "FindWindowAsync" + ], + "commands": [ + "list-panes", + "list-windows" + ], + "kind": "other-command", + "why": "FindWindowAsync sends find-window, which has its own entry; it does not list panes or windows.", + "evidence": [ + { + "at": "src/LibTmux/Pane.Display.cs:135", + "has": [ + "\"find-window\"" + ] + } + ] + }, + { + "port": "csharp", + "owner": "Pane", + "names": [ + "WaitForTextAsync" + ], + "commands": [ + "wait-for" + ], + "kind": "no-send", + "why": "WaitForTextAsync waits on pane activity through PaneTextWaiter; it does not send tmux's wait-for.", + "evidence": [ + { + "at": "src/LibTmux/Pane.Waiting.cs:66", + "has": [ + "PaneTextWaiter.WaitAsync(" + ] + }, + { + "at": "src/LibTmux/Pane.Waiting.cs:67", + "has": [ + "PaneActivityHub.Shared" + ] + } + ] + }, + { + "port": "csharp", + "owner": "PsmuxPane", + "kind": "no-send", + "why": "PsmuxPane wraps the psmux multiplexer on Windows, which is not tmux; its capture goes to psmux.", + "evidence": [ + { + "at": "src/LibTmux/Psmux/PsmuxPane.cs:11", + "has": [ + "public sealed class PsmuxPane" + ] + } + ] + }, + { + "port": "csharp", + "owner": "PsmuxServer", + "kind": "no-send", + "why": "The Psmux types wrap the psmux multiplexer on Windows, which is not tmux; their reads go to psmux.", + "evidence": [ + { + "at": "src/LibTmux/Psmux/PsmuxPane.cs:11", + "has": [ + "public sealed class PsmuxPane" + ] + } + ] + }, + { + "port": "csharp", + "owner": "PsmuxSession", + "kind": "no-send", + "why": "The Psmux types wrap the psmux multiplexer on Windows, which is not tmux; their reads go to psmux.", + "evidence": [ + { + "at": "src/LibTmux/Psmux/PsmuxPane.cs:11", + "has": [ + "public sealed class PsmuxPane" + ] + } + ] + }, + { + "port": "csharp", + "owner": "PsmuxWindow", + "kind": "no-send", + "why": "The Psmux types wrap the psmux multiplexer on Windows, which is not tmux; their reads go to psmux.", + "evidence": [ + { + "at": "src/LibTmux/Psmux/PsmuxPane.cs:11", + "has": [ + "public sealed class PsmuxPane" + ] + } + ] + }, + { + "port": "csharp", + "ownerSuffix": "Request", + "kind": "builds", + "why": "A request describes the arguments of one command and turns itself into a command value; the library sends it from the method that takes it.", + "evidence": [ + { + "at": "src/LibTmux/Chaining/ITmuxRequest.cs:30", + "has": [ + "Returns this request as one tmux command" + ] + }, + { + "at": "src/LibTmux/Chaining/ITmuxRequest.cs:34", + "has": [ + "TmuxCommand ToCommand(" + ] + } + ] + }, + { + "port": "csharp", + "owner": "Server", + "names": [ + "ClearPromptHistoryAsync" + ], + "commands": [ + "clear-history" + ], + "kind": "other-command", + "why": "ClearPromptHistoryAsync sends clear-prompt-history, and not clear-history.", + "evidence": [ + { + "at": "src/LibTmux/Server.Interaction.cs:70", + "has": [ + "\"clear-prompt-history\"" + ] + } + ] + }, + { + "port": "csharp", + "owner": "Server", + "names": [ + "FindWindowAsync" + ], + "commands": [ + "find-window" + ], + "kind": "other-command", + "why": "FindWindowAsync reads one window by id with display-message -p -t; it does not send find-window.", + "evidence": [ + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:125", + "has": [ + "\"display-message\"" + ] + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:107", + "has": [ + "ReadAsync(" + ] + } + ] + }, + { + "port": "csharp", + "owner": "ServerGeneration", + "names": [ + "StartTime" + ], + "commands": [ + "start-server" + ], + "kind": "values", + "why": "StartTime is the start time of the tmux server a generation names; it does not start one.", + "evidence": [ + { + "at": "src/LibTmux/Connection/ServerGeneration.cs:27", + "has": [ + "StartTime" + ] + } + ] + }, + { + "port": "csharp", + "owner": "ServerMirror", + "names": [ + "WaitForNewerAsync" + ], + "commands": [ + "wait-for" + ], + "kind": "no-send", + "why": "WaitForNewerAsync waits for the mirror's next published epoch; it does not send wait-for.", + "evidence": [ + { + "at": "src/LibTmux/Snapshots/ServerMirror.cs:175", + "has": [ + "WaitForNewerAsync(long epoch" + ] + } + ] + }, + { + "port": "csharp", + "owner": "Session", + "names": [ + "FindWindowAsync" + ], + "commands": [ + "find-window" + ], + "kind": "other-command", + "why": "Session.FindWindowAsync lists the session's windows with list-windows -t; it does not send find-window.", + "evidence": [ + { + "at": "src/LibTmux/Session.Relations.cs:100", + "has": [ + "\"list-windows\"" + ] + }, + { + "at": "src/LibTmux/Session.Relations.cs:101", + "has": [ + "\"-t\"" + ] + } + ] + }, + { + "port": "csharp", + "owner": "Session", + "names": [ + "SelectNextWindowAsync", + "SelectPreviousWindowAsync", + "SelectLastWindowAsync" + ], + "commands": [ + "select-window" + ], + "kind": "other-command", + "why": "These send next-window, previous-window and last-window, which have their own entries, and not select-window.", + "evidence": [ + { + "at": "src/LibTmux/Session.Lifecycle.cs:169", + "has": [ + "\"next-window\"" + ] + }, + { + "at": "src/LibTmux/Session.Lifecycle.cs:182", + "has": [ + "\"previous-window\"" + ] + }, + { + "at": "src/LibTmux/Session.WindowNavigation.cs:16", + "has": [ + "\"last-window\"" + ] + } + ] + }, + { + "port": "csharp", + "owner": "TmuxBuffers", + "names": [ + "GetAsync", + "GetAllAsync", + "GetLinesAsync" + ], + "commands": [ + "list-buffers", + "show-buffer" + ], + "kind": "other-command", + "why": "GetAsync reads one buffer with show-buffer and GetAllAsync lists them with list-buffers; each sends its own, and not the other's.", + "evidence": [ + { + "at": "src/LibTmux/Server.Buffers.cs:59", + "has": [ + "show-buffer" + ] + }, + { + "at": "src/LibTmux/Server.Buffers.cs:89", + "has": [ + "list-buffers" + ] + } + ] + }, + { + "port": "csharp", + "owner": "Window", + "names": [ + "FindPaneAsync" + ], + "commands": [ + "find-window", + "list-windows" + ], + "kind": "other-command", + "why": "FindPaneAsync reads the window's panes with list-panes through GetPanesAsync; it does not send find-window or list-windows.", + "evidence": [ + { + "at": "src/LibTmux/Window.Panes.cs:112", + "has": [ + "GetPanesAsync(" + ] + }, + { + "at": "src/LibTmux/Window.Relations.cs:123", + "has": [ + "list-panes" + ] + } + ] + }, + { + "port": "csharp", + "owner": "Window", + "names": [ + "SelectNextLayoutAsync", + "SelectPreviousLayoutAsync", + "SelectLastPaneAsync" + ], + "commands": [ + "select-layout", + "select-window", + "select-pane" + ], + "kind": "other-command", + "why": "These send next-layout and previous-layout, and last-pane, and not select-layout or select-window.", + "evidence": [ + { + "at": "src/LibTmux/Window.Layout.cs:122", + "has": [ + "\"next-layout\"" + ] + }, + { + "at": "src/LibTmux/Window.Layout.cs:135", + "has": [ + "\"previous-layout\"" + ] + }, + { + "at": "src/LibTmux/Window.Panes.cs:40", + "has": [ + "\"last-pane\"" + ] + } + ] + }, + { + "port": "cxx", + "owner": "CommandOperation", + "names": [ + "wait_for" + ], + "commands": [ + "wait-for" + ], + "kind": "no-send", + "why": "These wait on a future, a deadline or the control connection's notifications; none sends tmux's wait-for.", + "evidence": [ + { + "at": "include/libtmux/async.hpp:162", + "has": [ + "wait_for(std::chrono::milliseconds timeout) const" + ] + }, + { + "at": "include/libtmux/control.hpp:296", + "has": [ + "wait_for_notifications(std::chrono::steady_clock::time_point deadline)" + ] + } + ] + }, + { + "port": "cxx", + "owner": "CommandRuntime", + "names": [ + "wait_ready_for" + ], + "commands": [ + "wait-for" + ], + "kind": "no-send", + "why": "wait_ready_for waits on the runtime's own readiness; it sends no wait-for.", + "evidence": [ + { + "at": "include/libtmux/async.hpp:110", + "has": [ + "wait_ready_for(std::chrono::milliseconds timeout)" + ] + } + ] + }, + { + "port": "cxx", + "owner": "Connection", + "names": [ + "wait_for_notifications" + ], + "commands": [ + "wait-for" + ], + "kind": "no-send", + "why": "wait_for_notifications blocks for the next control-mode notification; it sends no wait-for.", + "evidence": [ + { + "at": "include/libtmux/control.hpp:296", + "has": [ + "wait_for_notifications(std::chrono::steady_clock::time_point deadline)" + ] + }, + { + "at": "include/libtmux/notification.hpp:143", + "has": [ + "wait_for_notifications(std::chrono::steady_clock::time_point deadline)" + ] + } + ] + }, + { + "port": "cxx", + "owner": "NotificationWatch", + "names": [ + "wait_for_notifications" + ], + "commands": [ + "wait-for" + ], + "kind": "no-send", + "why": "wait_for_notifications blocks for the next control-mode notification; it sends no wait-for.", + "evidence": [ + { + "at": "include/libtmux/notification.hpp:143", + "has": [ + "wait_for_notifications(std::chrono::steady_clock::time_point deadline)" + ] + } + ] + }, + { + "port": "cxx", + "owner": "Pane", + "names": [ + "clear_history" + ], + "commands": [ + "clear-prompt-history" + ], + "kind": "other-command", + "why": "clear_history sends clear-history; clear-prompt-history is a different command.", + "evidence": [ + { + "at": "src/entities.cpp:1549", + "has": [ + "clear-history" + ] + } + ] + }, + { + "port": "cxx", + "owner": "Pane", + "names": [ + "show_message" + ], + "commands": [ + "show-messages" + ], + "kind": "other-command", + "why": "show_message shows its text with display-message, which has its own entry; it does not send show-messages.", + "evidence": [ + { + "at": "src/entities.cpp:1565", + "has": [ + "display-message" + ] + } + ] + }, + { + "port": "cxx", + "owner": "Pane", + "names": [ + "wait_for_text" + ], + "commands": [ + "wait-for" + ], + "kind": "no-send", + "why": "wait_for_text polls the pane's captured text until it matches or a deadline passes; it does not send tmux's wait-for.", + "evidence": [ + { + "at": "src/wait.cpp:131", + "has": [ + "\"capture-pane\"" + ] + } + ] + }, + { + "port": "cxx", + "owner": "Server", + "names": [ + "remove_environment" + ], + "commands": [ + "kill-server" + ], + "kind": "other-command", + "why": "remove_environment unsets a variable with set-environment, and sends no kill-server.", + "evidence": [ + { + "at": "src/server.cpp:1356", + "has": [ + "set-environment" + ] + } + ] + }, + { + "port": "cxx", + "owner": "Server", + "names": [ + "show_message" + ], + "commands": [ + "show-messages" + ], + "kind": "other-command", + "why": "show_message shows its text with display-message, which has its own entry; it does not send show-messages.", + "evidence": [ + { + "at": "src/server.cpp:1100", + "has": [ + "display-message" + ] + } + ] + }, + { + "port": "cxx", + "owner": "Server", + "names": [ + "wait_for_text" + ], + "commands": [ + "wait-for" + ], + "kind": "no-send", + "why": "wait_for_text polls the pane's captured text until it matches or a deadline passes; it does not send tmux's wait-for.", + "evidence": [ + { + "at": "src/wait.cpp:131", + "has": [ + "\"capture-pane\"" + ] + } + ] + }, + { + "port": "cxx", + "owner": "Session", + "names": [ + "attach_command" + ], + "commands": [ + "attach-session" + ], + "kind": "builds", + "why": "attach_command returns the attach command for the caller to run in a terminal; it sends nothing.", + "evidence": [ + { + "at": "include/libtmux/entities.hpp:474", + "has": [ + "expected attach_command() const" + ] + } + ] + }, + { + "port": "cxx", + "owner": "Session", + "names": [ + "select_next_window", + "select_previous_window", + "select_last_window" + ], + "commands": [ + "select-window" + ], + "kind": "other-command", + "why": "These send next-window, previous-window and last-window, which have their own entries, and not select-window.", + "evidence": [ + { + "at": "src/entities.cpp:303", + "has": [ + "next-window" + ] + }, + { + "at": "src/entities.cpp:311", + "has": [ + "previous-window" + ] + }, + { + "at": "src/entities.cpp:319", + "has": [ + "last-window" + ] + } + ] + }, + { + "port": "cxx", + "owner": "Session", + "names": [ + "show_message" + ], + "commands": [ + "show-messages" + ], + "kind": "other-command", + "why": "show_message shows its text with display-message, which has its own entry; it does not send show-messages.", + "evidence": [ + { + "at": "src/entities.cpp:444", + "has": [ + "display-message" + ] + } + ] + }, + { + "port": "cxx", + "owner": "Window", + "names": [ + "select_last_pane" + ], + "commands": [ + "last-pane", + "last-window" + ], + "kind": "other-command", + "why": "select_last_pane sends select-pane -l, which has its own entry; there is no last-pane or last-window in it.", + "evidence": [ + { + "at": "src/entities.cpp:743", + "has": [ + "select-pane" + ] + } + ] + }, + { + "port": "cxx", + "owner": "Window", + "names": [ + "show_message" + ], + "commands": [ + "show-messages" + ], + "kind": "other-command", + "why": "show_message shows its text with display-message, which has its own entry; it does not send show-messages.", + "evidence": [ + { + "at": "src/entities.cpp:669", + "has": [ + "display-message" + ] + } + ] + }, + { + "port": "fsharp", + "owner": "Chain", + "names": [ + "newWindow" + ], + "commands": [ + "new-window" + ], + "kind": "builds", + "why": "Chain.newWindow adds a new-window command to a chain; the chain sends it when it is executed.", + "evidence": [ + { + "at": "src/LibTmux.FSharp/Hierarchy.fs:226", + "has": [ + "chain.Then(" + ] + }, + { + "at": "src/LibTmux.FSharp/Hierarchy.fs:228", + "has": [ + "\"new-window\"" + ] + } + ] + }, + { + "port": "fsharp", + "owner": "Pane", + "names": [ + "findOnScreen" + ], + "commands": [ + "list-panes" + ], + "kind": "other-command", + "why": "findOnScreen asks tmux to search the pane's screen with display-message, through Pane.FindOnScreenAsync; it lists no panes.", + "evidence": [ + { + "at": "src/LibTmux.FSharp/Hierarchy.fs:168", + "has": [ + "pane.FindOnScreenAsync(" + ] + }, + { + "at": "src/LibTmux/Pane.Display.cs:307", + "has": [ + "DisplayMessageAsync(" + ] + } + ] + }, + { + "port": "fsharp", + "owner": "Pane", + "names": [ + "waitForText", + "waitFor", + "sendAndWaitFor" + ], + "commands": [ + "wait-for" + ], + "kind": "no-send", + "why": "These wait for pane text through Pane.WaitForTextAsync and SendKeysAsync, which poll the pane; they do not send tmux's wait-for.", + "evidence": [ + { + "at": "src/LibTmux.FSharp/Hierarchy.fs:173", + "has": [ + "pane.WaitForTextAsync(" + ] + }, + { + "at": "src/LibTmux.FSharp/Hierarchy.fs:176", + "has": [ + "pane.WaitForTextAsync(" + ] + }, + { + "at": "src/LibTmux.FSharp/Hierarchy.fs:193", + "has": [ + "pane.SendKeysAndWaitAsync(" + ] + } + ] + }, + { + "port": "fsharp", + "owner": "Server", + "names": [ + "tryFindWindow" + ], + "commands": [ + "find-window" + ], + "kind": "other-command", + "why": "tryFindWindow reads one window with Server.FindWindowAsync, which lists windows; it does not send find-window.", + "evidence": [ + { + "at": "src/LibTmux.FSharp/Hierarchy.fs:126", + "has": [ + "server.FindWindowAsync(" + ] + } + ] + }, + { + "port": "fsharp", + "owner": "WindowSpec", + "names": [ + "Splits" + ], + "commands": [ + "split-window" + ], + "kind": "values", + "why": "Splits is a field of a window spec, the splits the window should have; it sends nothing.", + "evidence": [ + { + "at": "src/LibTmux.FSharp/Spec.fsi:37", + "has": [ + "Splits" + ] + } + ] + }, + { + "port": "go", + "owner": "Client", + "names": [ + "Refresh" + ], + "commands": [ + "refresh-client" + ], + "kind": "other-command", + "why": "Refresh reads the client again with Server.Client; it does not send refresh-client.", + "evidence": [ + { + "at": "tmux/lookup.go:128", + "has": [ + "c.server.Client(ctx, c.clientName)" + ] + } + ] + }, + { + "port": "go", + "owner": "GlobalSessionScope", + "names": [ + "SetDestroyUnattached", + "SetDetachOnDestroy", + "SetDisplayPanesActiveColour", + "SetDisplayPanesColour", + "SetDisplayPanesTime", + "SetLockAfterTime", + "SetLockCommand", + "SetPromptCommandCursorStyle", + "SetUpdateEnvironment" + ], + "commands": [ + "command-prompt", + "display-panes", + "kill-session", + "lock-session", + "set-environment" + ], + "kind": "other-command", + "why": "The typed setters of GlobalSessionScope write one option with set-option through setTypedOption and changeOption; they send no command that shares the option's name.", + "evidence": [ + { + "at": "tmux/option_generated.go:5060", + "has": [ + "func (" + ] + }, + { + "at": "tmux/option_generated.go:5063", + "has": [ + "setTypedOption" + ] + }, + { + "at": "tmux/option_runtime.go:65", + "has": [ + "return changeOption(" + ] + }, + { + "at": "tmux/option_mutation.go:406", + "has": [ + "append(arguments, \"set-option\")" + ] + } + ] + }, + { + "port": "go", + "owner": "GlobalWindowScope", + "names": [ + "SetAggressiveResize", + "SetAllowRename", + "SetAutomaticRename", + "SetAutomaticRenameFormat", + "SetClockModeColour", + "SetClockModeStyle", + "SetCopyModeCurrentLineNumberStyle", + "SetCopyModeCurrentMatchStyle", + "SetCopyModeLineNumberStyle", + "SetCopyModeLineNumbers", + "SetCopyModeMarkStyle", + "SetCopyModeMatchStyle", + "SetCopyModePositionFormat", + "SetCopyModePositionStyle", + "SetCopyModeSelectionStyle", + "SetWindowStatusLastStyle", + "SetWrapSearch" + ], + "commands": [ + "clock-mode", + "copy-mode", + "last-window", + "list-windows", + "rename-window", + "resize-window" + ], + "kind": "other-command", + "why": "The typed setters of GlobalWindowScope write one option with set-option through setTypedOption and changeOption; they send no command that shares the option's name.", + "evidence": [ + { + "at": "tmux/option_generated.go:4474", + "has": [ + "func (" + ] + }, + { + "at": "tmux/option_generated.go:4477", + "has": [ + "setTypedOption" + ] + }, + { + "at": "tmux/option_runtime.go:65", + "has": [ + "return changeOption(" + ] + }, + { + "at": "tmux/option_mutation.go:406", + "has": [ + "append(arguments, \"set-option\")" + ] + } + ] + }, + { + "port": "go", + "owner": "OptionValue", + "names": [ + "Get" + ], + "commands": [ + "show-options" + ], + "kind": "values", + "why": "OptionValue holds one option the way a reply reported it; Get returns it.", + "evidence": [ + { + "at": "tmux/option_value.go:31", + "has": [ + "type OptionValue[T any] struct" + ] + } + ] + }, + { + "port": "go", + "owner": "Pane", + "names": [ + "Clear" + ], + "commands": [ + "clear-history" + ], + "kind": "other-command", + "why": "Clear types reset into the pane through SendKeys; it sends no clear-history.", + "evidence": [ + { + "at": "tmux/pane_input.go:459", + "has": [ + "command := \"reset\"" + ] + }, + { + "at": "tmux/pane_input.go:460", + "has": [ + "p.SendKeys(ctx, SendKeysRequest{Command: &command})" + ] + } + ] + }, + { + "port": "go", + "owner": "Pane", + "names": [ + "ClearHistory" + ], + "commands": [ + "clear-prompt-history" + ], + "kind": "other-command", + "why": "ClearHistory sends clear-history; clear-prompt-history is a different command.", + "evidence": [ + { + "at": "tmux/pane_input.go:436", + "has": [ + "clear-history" + ] + } + ] + }, + { + "port": "go", + "owner": "Pane", + "names": [ + "FindWindow" + ], + "commands": [ + "list-panes", + "list-windows" + ], + "kind": "other-command", + "why": "FindWindow sends find-window, which has its own entry; it lists no panes or windows.", + "evidence": [ + { + "at": "tmux/pane_modes.go:256", + "has": [ + "find-window" + ] + } + ] + }, + { + "port": "go", + "owner": "Pane", + "names": [ + "Last", + "PipePID", + "SearchString", + "StartCommandList" + ], + "commands": [ + "last-pane", + "list-commands", + "list-panes", + "pipe-pane" + ], + "kind": "values", + "why": "These accessors of Pane read a field of the projection the handle holds; they send no command.", + "evidence": [ + { + "at": "tmux/format_generated.go:1232", + "has": [ + "func (" + ] + }, + { + "at": "tmux/format.go:97", + "has": [ + "type FormatValues struct" + ] + } + ] + }, + { + "port": "go", + "owner": "Pane", + "names": [ + "SetCopyModePositionFormat", + "SetScrollOnClear" + ], + "commands": [ + "clear-history", + "copy-mode" + ], + "kind": "other-command", + "why": "The typed setters of Pane write one option with set-option through setTypedOption and changeOption; they send no command that shares the option's name.", + "evidence": [ + { + "at": "tmux/option_generated.go:4878", + "has": [ + "func (" + ] + }, + { + "at": "tmux/option_generated.go:4883", + "has": [ + "setTypedOption" + ] + }, + { + "at": "tmux/option_runtime.go:65", + "has": [ + "return changeOption(" + ] + }, + { + "at": "tmux/option_mutation.go:406", + "has": [ + "append(arguments, \"set-option\")" + ] + } + ] + }, + { + "port": "go", + "owner": "PaneObservation", + "names": [ + "Close", + "CloseContext" + ], + "commands": [ + "kill-pane" + ], + "kind": "no-send", + "why": "Close and CloseContext close the control client the observation reads from; neither sends kill-pane.", + "evidence": [ + { + "at": "tmux/control_observation.go:275", + "has": [ + "o.client.Close()" + ] + }, + { + "at": "tmux/control_observation.go:283", + "has": [ + "o.client.CloseContext(ctx)" + ] + } + ] + }, + { + "port": "go", + "owner": "PaneObservation", + "names": [ + "WaitFor" + ], + "commands": [ + "wait-for" + ], + "kind": "no-send", + "why": "WaitFor reads pane output notifications from the control client until match is satisfied; it does not send tmux's wait-for.", + "evidence": [ + { + "at": "tmux/pane_wait.go:51", + "has": [ + "o.state.acquireReadToken(ctx)" + ] + }, + { + "at": "tmux/pane_wait.go:74", + "has": [ + "o.read(ctx, block)" + ] + } + ] + }, + { + "port": "go", + "owner": "Server", + "names": [ + "ClearPromptHistory" + ], + "commands": [ + "clear-history" + ], + "kind": "other-command", + "why": "ClearPromptHistory sends clear-prompt-history, and not clear-history.", + "evidence": [ + { + "at": "tmux/prompt_history.go:58", + "has": [ + "clear-prompt-history" + ] + } + ] + }, + { + "port": "go", + "owner": "Server", + "names": [ + "DeleteBuffer" + ], + "commands": [ + "kill-server" + ], + "kind": "other-command", + "why": "DeleteBuffer sends delete-buffer, and not kill-server.", + "evidence": [ + { + "at": "tmux/server_buffers.go:161", + "has": [ + "delete-buffer" + ] + } + ] + }, + { + "port": "go", + "owner": "Server", + "names": [ + "RemoveEnvironment" + ], + "commands": [ + "kill-server" + ], + "kind": "other-command", + "why": "RemoveEnvironment unsets a variable with set-environment, and sends no kill-server.", + "evidence": [ + { + "at": "tmux/environment.go:234", + "has": [ + "set-environment" + ] + } + ] + }, + { + "port": "go", + "owner": "Server", + "names": [ + "SetBufferLimit", + "SetInputBufferSize" + ], + "commands": [ + "set-buffer" + ], + "kind": "other-command", + "why": "The typed setters of Server write one option with set-option through setTypedOption and changeOption; they send no command that shares the option's name.", + "evidence": [ + { + "at": "tmux/option_generated.go:4700", + "has": [ + "func (" + ] + }, + { + "at": "tmux/option_generated.go:4703", + "has": [ + "setTypedOption" + ] + }, + { + "at": "tmux/option_runtime.go:65", + "has": [ + "return changeOption(" + ] + }, + { + "at": "tmux/option_mutation.go:406", + "has": [ + "append(arguments, \"set-option\")" + ] + } + ] + }, + { + "port": "go", + "owner": "Server", + "names": [ + "ShowMessages" + ], + "commands": [ + "display-message" + ], + "kind": "other-command", + "why": "ShowMessages sends show-messages; display-message is a different command.", + "evidence": [ + { + "at": "tmux/server_keys.go:237", + "has": [ + "show-messages" + ] + } + ] + }, + { + "port": "go", + "owner": "Session", + "names": [ + "AttachedList", + "GroupAttachedList", + "GroupList", + "LastWindowIndex" + ], + "commands": [ + "last-window", + "list-sessions" + ], + "kind": "values", + "why": "These accessors of Session read a field of the projection the handle holds; they send no command.", + "evidence": [ + { + "at": "tmux/format_generated.go:910", + "has": [ + "func (" + ] + }, + { + "at": "tmux/format.go:97", + "has": [ + "type FormatValues struct" + ] + } + ] + }, + { + "port": "go", + "owner": "Session", + "names": [ + "GetEnvironment" + ], + "commands": [ + "list-sessions" + ], + "kind": "other-command", + "why": "GetEnvironment reads a variable with show-environment; it lists no sessions.", + "evidence": [ + { + "at": "tmux/environment.go:279", + "has": [ + "show-environment" + ] + } + ] + }, + { + "port": "go", + "owner": "Session", + "names": [ + "RemoveEnvironment" + ], + "commands": [ + "kill-session" + ], + "kind": "other-command", + "why": "RemoveEnvironment unsets a variable with set-environment, and sends no kill-session.", + "evidence": [ + { + "at": "tmux/environment.go:234", + "has": [ + "set-environment" + ] + } + ] + }, + { + "port": "go", + "owner": "Session", + "names": [ + "SetDestroyUnattached", + "SetDetachOnDestroy", + "SetDisplayPanesActiveColour", + "SetDisplayPanesColour", + "SetDisplayPanesTime", + "SetLockAfterTime", + "SetLockCommand", + "SetPromptCommandCursorStyle", + "SetUpdateEnvironment" + ], + "commands": [ + "command-prompt", + "display-panes", + "kill-session", + "lock-session", + "set-environment" + ], + "kind": "other-command", + "why": "The typed setters of Session write one option with set-option through setTypedOption and changeOption; they send no command that shares the option's name.", + "evidence": [ + { + "at": "tmux/option_generated.go:5050", + "has": [ + "func (" + ] + }, + { + "at": "tmux/option_generated.go:5055", + "has": [ + "setTypedOption" + ] + }, + { + "at": "tmux/option_runtime.go:65", + "has": [ + "return changeOption(" + ] + }, + { + "at": "tmux/option_mutation.go:406", + "has": [ + "append(arguments, \"set-option\")" + ] + } + ] + }, + { + "port": "go", + "ownerSuffix": "Values", + "kind": "values", + "why": "A Values type is the struct one show-options or format reply decodes into; its members are fields, not commands.", + "evidence": [ + { + "at": "tmux/option_generated.go:1814", + "has": [ + "type ServerOptionValues struct" + ] + }, + { + "at": "tmux/option_generated.go:3201", + "has": [ + "type ServerHookValues struct" + ] + }, + { + "at": "tmux/format.go:97", + "has": [ + "type FormatValues struct" + ] + } + ] + }, + { + "port": "go", + "owner": "Window", + "names": [ + "ActiveClientsList", + "ActiveSessionsList", + "LastFlag", + "LinkedSessionsList" + ], + "commands": [ + "last-window", + "list-clients", + "list-sessions", + "list-windows" + ], + "kind": "values", + "why": "These accessors of Window read a field of the projection the handle holds; they send no command.", + "evidence": [ + { + "at": "tmux/format_generated.go:977", + "has": [ + "func (" + ] + }, + { + "at": "tmux/format.go:97", + "has": [ + "type FormatValues struct" + ] + } + ] + }, + { + "port": "go", + "owner": "Window", + "names": [ + "SetAggressiveResize", + "SetAllowRename", + "SetAutomaticRename", + "SetAutomaticRenameFormat", + "SetClockModeColour", + "SetClockModeStyle", + "SetCopyModeCurrentLineNumberStyle", + "SetCopyModeCurrentMatchStyle", + "SetCopyModeLineNumberStyle", + "SetCopyModeLineNumbers", + "SetCopyModeMarkStyle", + "SetCopyModeMatchStyle", + "SetCopyModePositionFormat", + "SetCopyModePositionStyle", + "SetCopyModeSelectionStyle", + "SetWindowStatusLastStyle", + "SetWrapSearch" + ], + "commands": [ + "clock-mode", + "copy-mode", + "last-window", + "list-windows", + "rename-window", + "resize-window" + ], + "kind": "other-command", + "why": "The typed setters of Window write one option with set-option through setTypedOption and changeOption; they send no command that shares the option's name.", + "evidence": [ + { + "at": "tmux/option_generated.go:4464", + "has": [ + "func (" + ] + }, + { + "at": "tmux/option_generated.go:4469", + "has": [ + "setTypedOption" + ] + }, + { + "at": "tmux/option_runtime.go:65", + "has": [ + "return changeOption(" + ] + }, + { + "at": "tmux/option_mutation.go:406", + "has": [ + "append(arguments, \"set-option\")" + ] + } + ] + }, + { + "port": "java", + "names": [ + "serverStartTime", + "startTime" + ], + "commands": [ + "start-server" + ], + "in": "libtmux/src/", + "kind": "values", + "why": "These accessors return the start time of the tmux process a capture came from; they do not start a server.", + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/snapshot/ServerSnapshot.java:248", + "has": [ + "public OptionalLong serverStartTime()" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:455", + "has": [ + "long startTime" + ] + } + ] + }, + { + "port": "java", + "owner": "Client", + "names": [ + "refresh" + ], + "commands": [ + "refresh-client" + ], + "kind": "other-command", + "why": "Client.refresh re-reads this client from a fresh listing; redraw is the method that sends refresh-client.", + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Client.java:137", + "has": [ + "server.refresh(snapshot)" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Client.java:80", + "has": [ + "\"refresh-client\"" + ] + } + ] + }, + { + "port": "java", + "owner": "Pane", + "names": [ + "clearHistory" + ], + "commands": [ + "clear-prompt-history" + ], + "kind": "other-command", + "why": "clearHistory sends clear-history, which has its own entry; clear-prompt-history is a different command.", + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:1052", + "has": [ + "\"clear-history\"" + ] + } + ] + }, + { + "port": "java", + "owner": "Server", + "names": [ + "close" + ], + "commands": [ + "kill-server" + ], + "kind": "no-send", + "why": "close releases the transport this server owns; it does not send kill-server.", + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:1302", + "has": [ + "public void close()" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:1307", + "has": [ + "transport.close()" + ] + } + ] + }, + { + "port": "java", + "owner": "ServerMirror", + "names": [ + "close" + ], + "commands": [ + "kill-server" + ], + "kind": "no-send", + "why": "close stops the mirror's listener and detaches its control client; it does not kill the server.", + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/snapshot/ServerMirror.java:218", + "has": [ + "public void close()" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/snapshot/ServerMirror.java:220", + "has": [ + "listener.interrupt()" + ] + } + ] + }, + { + "port": "julia", + "names": [ + "get_hook" + ], + "commands": [ + "show-hooks" + ], + "kind": "other-command", + "why": "get_hook reads a hook's command array with show-options -H, and sends no show-hooks.", + "evidence": [ + { + "at": "src/configuration.jl:159", + "has": [ + "[\"show-options\", \"-A\", \"-H\"" + ] + }, + { + "at": "src/configuration.jl:439", + "has": [ + "_configuration_hook_rows(" + ] + } + ] + }, + { + "port": "kotlin", + "owner": "Client", + "names": [ + "refresh" + ], + "commands": [ + "refresh-client" + ], + "kind": "other-command", + "why": "refresh re-reads the client from a fresh listing; redraw sends refresh-client.", + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Client.java:137", + "has": [ + "server.refresh(snapshot)" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Client.java:80", + "has": [ + "\"refresh-client\"" + ] + } + ] + }, + { + "port": "kotlin", + "owner": "CommandChain", + "kind": "builds", + "why": "A CommandChain method records a step on the Java chain; the chain sends them when it is run.", + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/CommandChain.java:83", + "has": [ + "public CommandChain then(String... argv)" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/CommandChain.java:84", + "has": [ + "batch.add(argv)" + ] + } + ] + }, + { + "port": "kotlin", + "owner": "Pane", + "names": [ + "clearHistory" + ], + "commands": [ + "clear-prompt-history" + ], + "kind": "other-command", + "why": "clearHistory sends clear-history; clear-prompt-history is a different command.", + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:1052", + "has": [ + "\"clear-history\"" + ] + } + ] + }, + { + "port": "kotlin", + "owner": "Server", + "names": [ + "close" + ], + "commands": [ + "kill-server" + ], + "kind": "no-send", + "why": "close releases the Java server's transport, as Server.close does; it does not send kill-server.", + "evidence": [ + { + "at": "libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt:164", + "has": [ + "java.close()" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Server.java:1307", + "has": [ + "transport.close()" + ] + } + ] + }, + { + "port": "kotlin", + "owner": "WindowBuilder", + "names": [ + "split" + ], + "commands": [ + "split-window" + ], + "kind": "builds", + "why": "WindowBuilder.split records a split on the window spec being built, which sends nothing until the window is created.", + "evidence": [ + { + "at": "libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt:124", + "has": [ + "public fun split(" + ] + }, + { + "at": "libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt:125", + "has": [ + "splits += configure" + ] + } + ] + }, + { + "port": "lua", + "owner": "Configurable", + "kind": "no-send", + "why": "Configurable declares the shared option and hook methods as fields of a type; the handles that implement them are the symbols that send.", + "evidence": [ + { + "at": "lua/libtmux/_internal/entity.lua:390", + "has": [ + "---@class libtmux.Configurable" + ] + } + ] + }, + { + "port": "lua", + "owner": "Pane", + "names": [ + "clear_history" + ], + "commands": [ + "clear-prompt-history" + ], + "kind": "other-command", + "why": "clear_history sends clear-history; clear-prompt-history is a different command.", + "evidence": [ + { + "at": "lua/libtmux/_internal/pane.lua:12", + "has": [ + "clear-history" + ] + } + ] + }, + { + "port": "lua", + "owner": "Pane", + "names": [ + "copy_command" + ], + "commands": [ + "copy-mode" + ], + "kind": "other-command", + "why": "copy_command sends send-keys -X to the pane's copy mode; it does not send copy-mode.", + "evidence": [ + { + "at": "lua/libtmux/_internal/pane.lua:16", + "has": [ + "send-keys" + ] + } + ] + }, + { + "port": "lua", + "owner": "Pane", + "names": [ + "get_hook" + ], + "commands": [ + "list-panes", + "show-hooks" + ], + "kind": "other-command", + "why": "get_hook reads hooks and options with show-options, which has its own entry, and sends neither show-hooks nor a pane, session or window listing.", + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:177", + "has": [ + "show-options" + ] + } + ] + }, + { + "port": "lua", + "owner": "Pane", + "names": [ + "get_option", + "list_options", + "list_hooks" + ], + "commands": [ + "list-panes" + ], + "kind": "other-command", + "why": "These read options and hooks with show-options, which has its own entry; they send no list-panes.", + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:177", + "has": [ + "show-options" + ] + } + ] + }, + { + "port": "lua", + "owner": "Pane", + "names": [ + "move_to" + ], + "commands": [ + "move-pane" + ], + "kind": "other-command", + "why": "move_to moves a pane with join-pane, which has its own entry; it does not send move-pane.", + "evidence": [ + { + "at": "lua/libtmux/_internal/topology.lua:395", + "has": [ + "join-pane" + ] + } + ] + }, + { + "port": "lua", + "owner": "Server", + "names": [ + "close" + ], + "commands": [ + "kill-server" + ], + "kind": "no-send", + "why": "close releases the connections the server handle owns; the tmux daemon keeps running and no kill-server is sent.", + "evidence": [ + { + "at": "lua/libtmux/_internal/server.lua:510", + "has": [ + "function Server:close()" + ] + }, + { + "at": "lua/libtmux/_internal/server.lua:513", + "has": [ + "state.bound:close()" + ] + } + ] + }, + { + "port": "lua", + "owner": "Server", + "names": [ + "delete_buffer" + ], + "commands": [ + "kill-server" + ], + "kind": "other-command", + "why": "delete_buffer sends delete-buffer, and not kill-server.", + "evidence": [ + { + "at": "lua/libtmux/_internal/buffer.lua:9", + "has": [ + "delete-buffer" + ] + } + ] + }, + { + "port": "lua", + "owner": "Server", + "names": [ + "get_hook" + ], + "commands": [ + "show-hooks" + ], + "kind": "other-command", + "why": "get_hook reads hooks and options with show-options, which has its own entry, and sends neither show-hooks nor a pane, session or window listing.", + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:177", + "has": [ + "show-options" + ] + } + ] + }, + { + "port": "lua", + "owner": "Server", + "names": [ + "remove_environment" + ], + "commands": [ + "kill-server" + ], + "kind": "other-command", + "why": "remove_environment unsets a variable with set-environment, and not kill-server or kill-session.", + "evidence": [ + { + "at": "lua/libtmux/_internal/environment.lua:31", + "has": [ + "set-environment" + ] + } + ] + }, + { + "port": "lua", + "owner": "Server", + "names": [ + "set_buffer" + ], + "commands": [ + "set-buffer" + ], + "kind": "other-command", + "why": "set_buffer stores text with load-buffer, which has its own entry; it does not send set-buffer.", + "evidence": [ + { + "at": "lua/libtmux/_internal/buffer.lua:9", + "has": [ + "load-buffer" + ] + } + ] + }, + { + "port": "lua", + "owner": "Session", + "names": [ + "attach" + ], + "commands": [ + "attach-session" + ], + "kind": "no-send", + "why": "attach is refused: interactive attachment is not supported, and the operation is recorded as not sent.", + "evidence": [ + { + "at": "lua/libtmux/_internal/client.lua:246", + "has": [ + "interactive attachment requires a Session" + ] + }, + { + "at": "lua/libtmux/_internal/client.lua:254", + "has": [ + "effect = \"not_sent\"" + ] + } + ] + }, + { + "port": "lua", + "owner": "Session", + "names": [ + "get_environment", + "list_environment" + ], + "commands": [ + "list-sessions" + ], + "kind": "other-command", + "why": "get_environment and list_environment read with show-environment, which has its own entry; they send no list-sessions.", + "evidence": [ + { + "at": "lua/libtmux/_internal/environment.lua:31", + "has": [ + "show-environment" + ] + } + ] + }, + { + "port": "lua", + "owner": "Session", + "names": [ + "get_hook" + ], + "commands": [ + "list-sessions", + "show-hooks" + ], + "kind": "other-command", + "why": "get_hook reads hooks and options with show-options, which has its own entry, and sends neither show-hooks nor a pane, session or window listing.", + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:177", + "has": [ + "show-options" + ] + } + ] + }, + { + "port": "lua", + "owner": "Session", + "names": [ + "get_option", + "list_options", + "list_hooks" + ], + "commands": [ + "list-sessions" + ], + "kind": "other-command", + "why": "These read options and hooks with show-options, which has its own entry; they send no list-sessions.", + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:177", + "has": [ + "show-options" + ] + } + ] + }, + { + "port": "lua", + "owner": "Session", + "names": [ + "remove_environment" + ], + "commands": [ + "kill-session" + ], + "kind": "other-command", + "why": "remove_environment unsets a variable with set-environment, and not kill-server or kill-session.", + "evidence": [ + { + "at": "lua/libtmux/_internal/environment.lua:31", + "has": [ + "set-environment" + ] + } + ] + }, + { + "port": "lua", + "owner": "Window", + "names": [ + "get_hook" + ], + "commands": [ + "list-windows", + "show-hooks" + ], + "kind": "other-command", + "why": "get_hook reads hooks and options with show-options, which has its own entry, and sends neither show-hooks nor a pane, session or window listing.", + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:177", + "has": [ + "show-options" + ] + } + ] + }, + { + "port": "lua", + "owner": "Window", + "names": [ + "get_option", + "list_options", + "list_hooks" + ], + "commands": [ + "list-windows" + ], + "kind": "other-command", + "why": "These read options and hooks with show-options, which has its own entry; they send no list-windows.", + "evidence": [ + { + "at": "lua/libtmux/_internal/settings.lua:177", + "has": [ + "show-options" + ] + } + ] + }, + { + "port": "powershell", + "owner": "LibTmux", + "names": [ + "Get-TmuxPaneContent" + ], + "commands": [ + "list-panes" + ], + "kind": "other-command", + "why": "Get-TmuxPaneContent captures the pane's text with capture-pane through Pane.CaptureAsync; it lists no panes.", + "evidence": [ + { + "at": "src/LibTmux.PowerShell/GetTmuxPaneContentCommand.cs:119", + "has": [ + "Pane.CaptureAsync(" + ] + } + ] + }, + { + "port": "powershell", + "owner": "LibTmux", + "names": [ + "New-TmuxWindowLink" + ], + "commands": [ + "new-window" + ], + "kind": "other-command", + "why": "New-TmuxWindowLink links an existing window into another session with link-window; it creates no window.", + "evidence": [ + { + "at": "src/LibTmux.PowerShell/NewTmuxWindowLinkCommand.cs:65", + "has": [ + "Window.LinkAsync(" + ] + } + ] + }, + { + "port": "powershell", + "owner": "LibTmux", + "names": [ + "Remove-TmuxWindowLink" + ], + "commands": [ + "kill-window", + "link-window" + ], + "kind": "other-command", + "why": "Remove-TmuxWindowLink removes a window's placement with unlink-window; it does not kill the window or link one.", + "evidence": [ + { + "at": "src/LibTmux.PowerShell/RemoveTmuxWindowLinkCommand.cs:28", + "has": [ + "Window.UnlinkAsync(" + ] + } + ] + }, + { + "port": "powershell", + "owner": "LibTmux", + "names": [ + "Select-TmuxPane", + "Select-TmuxWindow" + ], + "commands": [ + "select-pane", + "select-window" + ], + "kind": "no-send", + "why": "Select-TmuxPane and Select-TmuxWindow pick objects from the pipeline with a query, as Select-Object does; they send no select-pane or select-window.", + "evidence": [ + { + "at": "src/LibTmux.PowerShell/SelectTmuxPaneCommand.cs:12", + "has": [ + "QuerySelection" + ] + }, + { + "at": "src/LibTmux.PowerShell/SelectTmuxPaneCommand.cs:42", + "has": [ + "selection.Process(" + ] + }, + { + "at": "src/LibTmux.PowerShell/SelectTmuxWindowCommand.cs:12", + "has": [ + "QuerySelection" + ] + } + ] + }, + { + "port": "py", + "owner": "Client", + "names": [ + "refresh", + "_refresh" + ], + "commands": [ + "refresh-client" + ], + "kind": "other-command", + "why": "refresh reads the client again with list-clients; it does not send refresh-client.", + "evidence": [ + { + "at": "src/libtmux/client.py:119", + "has": [ + "list_cmd=\"list-clients\"" + ] + } + ] + }, + { + "port": "py", + "owner": "Pane", + "names": [ + "_show_options_raw", + "_show_options_dict", + "_show_options", + "show_options", + "_show_option_raw", + "_show_option", + "show_option", + "show_hooks", + "_show_hook", + "show_hook" + ], + "commands": [ + "display-panes" + ], + "kind": "other-command", + "why": "The Pane option and hook readers are the mixins' methods, which send show-options and show-hooks; none sends display-panes.", + "evidence": [ + { + "at": "src/libtmux/options.py:886", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "src/libtmux/hooks.py:364", + "has": [ + "\"show-hooks\"" + ] + } + ] + }, + { + "port": "py", + "owner": "Pane", + "names": [ + "clear" + ], + "commands": [ + "clear-history" + ], + "kind": "other-command", + "why": "clear types reset into the pane with send_keys; it sends no clear-history.", + "evidence": [ + { + "at": "src/libtmux/pane.py:2613", + "has": [ + "self.send_keys(\"reset\")" + ] + } + ] + }, + { + "port": "py", + "owner": "Pane", + "names": [ + "clear_history" + ], + "commands": [ + "clear-prompt-history" + ], + "kind": "other-command", + "why": "clear_history sends clear-history; clear-prompt-history is a different command.", + "evidence": [ + { + "at": "src/libtmux/pane.py:2607", + "has": [ + "clear-history" + ] + } + ] + }, + { + "port": "py", + "owner": "Pane", + "names": [ + "find_window" + ], + "commands": [ + "list-panes", + "list-windows" + ], + "kind": "other-command", + "why": "find_window sends find-window, which has its own entry; it lists no panes or windows.", + "evidence": [ + { + "at": "src/libtmux/pane.py:2233", + "has": [ + "find-window" + ] + } + ] + }, + { + "port": "py", + "owner": "Pane", + "names": [ + "get", + "resize_pane", + "select_pane", + "split_window" + ], + "commands": [ + "list-panes", + "resize-pane", + "select-pane", + "split-window" + ], + "in": "src/libtmux/pane.py", + "kind": "no-send", + "why": "These methods are deprecated stubs that raise DeprecatedError and name their replacement; they send nothing.", + "evidence": [ + { + "at": "src/libtmux/pane.py:1206", + "has": [ + "raise exc.DeprecatedError(" + ] + }, + { + "at": "src/libtmux/pane.py:2800", + "has": [ + "raise exc.DeprecatedError(" + ] + }, + { + "at": "src/libtmux/pane.py:2815", + "has": [ + "raise exc.DeprecatedError(" + ] + }, + { + "at": "src/libtmux/pane.py:2857", + "has": [ + "raise exc.DeprecatedError(" + ] + } + ] + }, + { + "port": "py", + "owner": "Server", + "names": [ + "_list_panes", + "_list_sessions", + "_list_windows", + "kill_server", + "list_sessions" + ], + "commands": [ + "kill-server", + "list-panes", + "list-sessions", + "list-windows" + ], + "in": "src/libtmux/server.py", + "kind": "no-send", + "why": "These methods are deprecated stubs that raise DeprecatedError and name their replacement; they send nothing.", + "evidence": [ + { + "at": "src/libtmux/server.py:2717", + "has": [ + "raise exc.DeprecatedError(" + ] + }, + { + "at": "src/libtmux/server.py:2736", + "has": [ + "raise exc.DeprecatedError(" + ] + }, + { + "at": "src/libtmux/server.py:2814", + "has": [ + "raise exc.DeprecatedError(" + ] + }, + { + "at": "src/libtmux/server.py:2856", + "has": [ + "raise exc.DeprecatedError(" + ] + }, + { + "at": "src/libtmux/server.py:2873", + "has": [ + "raise exc.DeprecatedError(" + ] + } + ] + }, + { + "port": "py", + "owner": "Server", + "names": [ + "clear_prompt_history" + ], + "commands": [ + "clear-history" + ], + "kind": "other-command", + "why": "clear_prompt_history sends clear-prompt-history, and not clear-history.", + "evidence": [ + { + "at": "src/libtmux/server.py:1811", + "has": [ + "clear-prompt-history" + ] + } + ] + }, + { + "port": "py", + "owner": "Server", + "names": [ + "delete_buffer" + ], + "commands": [ + "kill-server" + ], + "kind": "other-command", + "why": "delete_buffer sends delete-buffer, and not kill-server.", + "evidence": [ + { + "at": "src/libtmux/server.py:1902", + "has": [ + "delete-buffer" + ] + } + ] + }, + { + "port": "py", + "owner": "Server", + "names": [ + "remove_environment" + ], + "commands": [ + "kill-server" + ], + "kind": "other-command", + "why": "remove_environment unsets a variable with set-environment -r, and sends no kill-server.", + "evidence": [ + { + "at": "src/libtmux/common.py:159", + "has": [ + "set-environment" + ] + } + ] + }, + { + "port": "py", + "owner": "Server", + "names": [ + "show_messages" + ], + "commands": [ + "display-message" + ], + "kind": "other-command", + "why": "show_messages sends show-messages; display-message is a different command.", + "evidence": [ + { + "at": "src/libtmux/server.py:1559", + "has": [ + "show-messages" + ] + } + ] + }, + { + "port": "py", + "owner": "Session", + "names": [ + "_list_windows", + "attach_session", + "find_where", + "get", + "get_by_id", + "kill_session", + "list_windows" + ], + "commands": [ + "attach-session", + "kill-session", + "list-sessions", + "list-windows" + ], + "in": "src/libtmux/session.py", + "kind": "no-send", + "why": "These methods are deprecated stubs that raise DeprecatedError and name their replacement; they send nothing.", + "evidence": [ + { + "at": "src/libtmux/session.py:1088", + "has": [ + "raise exc.DeprecatedError(" + ] + }, + { + "at": "src/libtmux/session.py:1103", + "has": [ + "raise exc.DeprecatedError(" + ] + }, + { + "at": "src/libtmux/session.py:1118", + "has": [ + "raise exc.DeprecatedError(" + ] + }, + { + "at": "src/libtmux/session.py:1147", + "has": [ + "raise exc.DeprecatedError(" + ] + }, + { + "at": "src/libtmux/session.py:1175", + "has": [ + "raise exc.DeprecatedError(" + ] + }, + { + "at": "src/libtmux/session.py:1189", + "has": [ + "raise exc.DeprecatedError(" + ] + }, + { + "at": "src/libtmux/session.py:1218", + "has": [ + "raise exc.DeprecatedError(" + ] + } + ] + }, + { + "port": "py", + "owner": "Session", + "names": [ + "remove_environment" + ], + "commands": [ + "kill-session" + ], + "kind": "other-command", + "why": "remove_environment unsets a variable with set-environment -r, and sends no kill-session.", + "evidence": [ + { + "at": "src/libtmux/common.py:159", + "has": [ + "set-environment" + ] + } + ] + }, + { + "port": "py", + "owner": "Window", + "names": [ + "_list_panes", + "find_where", + "get", + "get_by_id", + "kill_window", + "list_panes", + "select_window", + "split_window" + ], + "commands": [ + "find-window", + "kill-window", + "list-panes", + "list-windows", + "select-window", + "split-window" + ], + "in": "src/libtmux/window.py", + "kind": "no-send", + "why": "These methods are deprecated stubs that raise DeprecatedError and name their replacement; they send nothing.", + "evidence": [ + { + "at": "src/libtmux/window.py:1764", + "has": [ + "raise exc.DeprecatedError(" + ] + }, + { + "at": "src/libtmux/window.py:1795", + "has": [ + "raise exc.DeprecatedError(" + ] + }, + { + "at": "src/libtmux/window.py:1810", + "has": [ + "raise exc.DeprecatedError(" + ] + }, + { + "at": "src/libtmux/window.py:1886", + "has": [ + "raise exc.DeprecatedError(" + ] + }, + { + "at": "src/libtmux/window.py:1915", + "has": [ + "raise exc.DeprecatedError(" + ] + }, + { + "at": "src/libtmux/window.py:1943", + "has": [ + "raise exc.DeprecatedError(" + ] + }, + { + "at": "src/libtmux/window.py:1957", + "has": [ + "raise exc.DeprecatedError(" + ] + }, + { + "at": "src/libtmux/window.py:1986", + "has": [ + "raise exc.DeprecatedError(" + ] + } + ] + }, + { + "port": "rs", + "names": [ + "get" + ], + "commands": [ + "list-clients", + "list-panes", + "list-sessions", + "list-windows" + ], + "in": "crates/libtmux/src/", + "kind": "values", + "why": "get reads a field of the projection the handle already holds; it sends nothing.", + "evidence": [ + { + "at": "crates/libtmux/src/client.rs:537", + "has": [ + "pub fn get>" + ] + }, + { + "at": "crates/libtmux/src/pane.rs:1308", + "has": [ + "pub fn get>" + ] + }, + { + "at": "crates/libtmux/src/session.rs:905", + "has": [ + "pub fn get>" + ] + }, + { + "at": "crates/libtmux/src/window.rs:1192", + "has": [ + "pub fn get>" + ] + } + ] + }, + { + "port": "rs", + "owner": "CapturePane", + "names": [ + "new" + ], + "commands": [ + "new-pane" + ], + "kind": "builds", + "why": "CapturePane::new builds a planned step; a plan sends its steps when it is run, and this sends nothing.", + "evidence": [ + { + "at": "crates/libtmux/src/plan/ops/panes.rs:516", + "has": [ + "pub fn new(" + ] + } + ] + }, + { + "port": "rs", + "owner": "Client", + "names": [ + "refresh" + ], + "commands": [ + "refresh-client" + ], + "kind": "other-command", + "why": "refresh reads the client again from list-clients; it does not send refresh-client.", + "evidence": [ + { + "at": "crates/libtmux/src/client.rs:165", + "has": [ + "listing::clients(&self.core, None)" + ] + } + ] + }, + { + "port": "rs", + "owner": "KillPane", + "names": [ + "new" + ], + "commands": [ + "new-pane" + ], + "kind": "builds", + "why": "KillPane::new builds a planned step; a plan sends its steps when it is run, and this sends nothing.", + "evidence": [ + { + "at": "crates/libtmux/src/plan/ops/panes.rs:566", + "has": [ + "pub fn new(" + ] + } + ] + }, + { + "port": "rs", + "owner": "KillWindow", + "names": [ + "new" + ], + "commands": [ + "new-window" + ], + "kind": "builds", + "why": "KillWindow::new builds a planned step; a plan sends its steps when it is run, and this sends nothing.", + "evidence": [ + { + "at": "crates/libtmux/src/plan/ops/windows.rs:303", + "has": [ + "pub fn new(" + ] + } + ] + }, + { + "port": "rs", + "owner": "NewSession", + "names": [ + "new" + ], + "commands": [ + "new-session" + ], + "kind": "builds", + "why": "NewSession::new builds a planned step; a plan sends its steps when it is run, and this sends nothing.", + "evidence": [ + { + "at": "crates/libtmux/src/plan/ops/sessions.rs:66", + "has": [ + "pub fn new(" + ] + } + ] + }, + { + "port": "rs", + "owner": "NewSessionOptions", + "names": [ + "new" + ], + "commands": [ + "new-session" + ], + "kind": "values", + "why": "NewSessionOptions::new and NewWindowOptions::new build the options of a creation, and select sets one; they send nothing.", + "evidence": [ + { + "at": "crates/libtmux/src/server.rs:2223", + "has": [ + "pub fn new(name: impl Into)" + ] + } + ] + }, + { + "port": "rs", + "owner": "NewWindow", + "names": [ + "new" + ], + "commands": [ + "new-window" + ], + "kind": "builds", + "why": "NewWindow::new builds a planned step; a plan sends its steps when it is run, and this sends nothing.", + "evidence": [ + { + "at": "crates/libtmux/src/plan/ops/windows.rs:76", + "has": [ + "pub fn new(" + ] + } + ] + }, + { + "port": "rs", + "owner": "NewWindowOptions", + "names": [ + "new", + "select" + ], + "commands": [ + "new-window", + "select-window" + ], + "kind": "values", + "why": "NewSessionOptions::new and NewWindowOptions::new build the options of a creation, and select sets one; they send nothing.", + "evidence": [ + { + "at": "crates/libtmux/src/session.rs:1067", + "has": [ + "pub fn new(name: impl Into)" + ] + }, + { + "at": "crates/libtmux/src/session.rs:1126", + "has": [ + "pub const fn select(mut self) -> Self" + ] + } + ] + }, + { + "port": "rs", + "owner": "Pane", + "names": [ + "clear_history" + ], + "commands": [ + "clear-prompt-history" + ], + "kind": "other-command", + "why": "clear_history sends clear-history; clear-prompt-history is a different command.", + "evidence": [ + { + "at": "crates/libtmux/src/pane.rs:924", + "has": [ + "clear-history" + ] + } + ] + }, + { + "port": "rs", + "owner": "Pane", + "names": [ + "display" + ], + "commands": [ + "display-panes" + ], + "kind": "other-command", + "why": "display shows a message with display-message; it sends no display-panes.", + "evidence": [ + { + "at": "crates/libtmux/src/pane.rs:877", + "has": [ + "display-message" + ] + } + ] + }, + { + "port": "rs", + "owner": "Pane", + "names": [ + "wait_for_text", + "wait_for_quiet" + ], + "commands": [ + "wait-for" + ], + "kind": "no-send", + "why": "wait_for_text and wait_for_quiet poll the pane's captured text until a condition holds; they do not send tmux's wait-for.", + "evidence": [ + { + "at": "crates/libtmux/src/pane/observe.rs:315", + "has": [ + "self.look_until(within" + ] + } + ] + }, + { + "port": "rs", + "owner": "RenameWindow", + "names": [ + "new" + ], + "commands": [ + "new-window" + ], + "kind": "builds", + "why": "RenameWindow::new builds a planned step; a plan sends its steps when it is run, and this sends nothing.", + "evidence": [ + { + "at": "crates/libtmux/src/plan/ops/windows.rs:262", + "has": [ + "pub fn new(" + ] + } + ] + }, + { + "port": "rs", + "owner": "SelectPane", + "names": [ + "new" + ], + "commands": [ + "new-pane" + ], + "kind": "builds", + "why": "SelectPane::new builds a planned step; a plan sends its steps when it is run, and this sends nothing.", + "evidence": [ + { + "at": "crates/libtmux/src/plan/ops/panes.rs:473", + "has": [ + "pub fn new(" + ] + } + ] + }, + { + "port": "rs", + "owner": "SelectWindow", + "names": [ + "new" + ], + "commands": [ + "new-window" + ], + "kind": "builds", + "why": "SelectWindow::new builds a planned step; a plan sends its steps when it is run, and this sends nothing.", + "evidence": [ + { + "at": "crates/libtmux/src/plan/ops/windows.rs:215", + "has": [ + "pub fn new(" + ] + } + ] + }, + { + "port": "rs", + "owner": "Server", + "names": [ + "clear_prompt_history" + ], + "commands": [ + "clear-history" + ], + "kind": "other-command", + "why": "clear_prompt_history sends clear-prompt-history, and not clear-history.", + "evidence": [ + { + "at": "crates/libtmux/src/server.rs:1364", + "has": [ + "clear-prompt-history" + ] + } + ] + }, + { + "port": "rs", + "owner": "Server", + "names": [ + "delete_buffer" + ], + "commands": [ + "kill-server" + ], + "kind": "other-command", + "why": "delete_buffer sends delete-buffer, and not kill-server.", + "evidence": [ + { + "at": "crates/libtmux/src/server.rs:1106", + "has": [ + "delete-buffer" + ] + } + ] + }, + { + "port": "rs", + "owner": "Server", + "names": [ + "find_window" + ], + "commands": [ + "list-windows" + ], + "kind": "other-command", + "why": "find_window sends find-window; it lists no windows.", + "evidence": [ + { + "at": "crates/libtmux/src/server/interactive.rs:164", + "has": [ + "find-window" + ] + } + ] + }, + { + "port": "rs", + "owner": "Server", + "names": [ + "lock_channel", + "with_channel_lock" + ], + "commands": [ + "lock-server" + ], + "kind": "other-command", + "why": "lock_channel and with_channel_lock take a channel lock with wait-for -L, and unlock_channel releases it with -U; they send no lock-server.", + "evidence": [ + { + "at": "crates/libtmux/src/internal/wait_for.rs:262", + "has": [ + "channel_command(Some(\"-L\"), channel)" + ] + }, + { + "at": "crates/libtmux/src/internal/wait_for.rs:341", + "has": [ + "channel_command(Some(\"-U\"), channel)" + ] + } + ] + }, + { + "port": "rs", + "owner": "ServerGeneration", + "names": [ + "start_time" + ], + "commands": [ + "start-server" + ], + "kind": "values", + "why": "start_time is the start time of the tmux server a generation names; it does not start one.", + "evidence": [ + { + "at": "crates/libtmux/src/target.rs:303", + "has": [ + "pub fn start_time(self) -> SystemTime" + ] + } + ] + }, + { + "port": "rs", + "owner": "SessionName", + "names": [ + "new" + ], + "commands": [ + "new-session" + ], + "kind": "values", + "why": "SessionName::new checks and wraps a session name; it sends nothing.", + "evidence": [ + { + "at": "crates/libtmux/src/target.rs:695", + "has": [ + "pub fn new(name: impl Into)" + ] + } + ] + }, + { + "port": "rs", + "owner": "SplitWindow", + "names": [ + "new" + ], + "commands": [ + "new-window" + ], + "kind": "builds", + "why": "SplitWindow::new builds a planned step; a plan sends its steps when it is run, and this sends nothing.", + "evidence": [ + { + "at": "crates/libtmux/src/plan/ops/panes.rs:146", + "has": [ + "pub fn new(" + ] + } + ] + }, + { + "port": "rs", + "owner": "TestServerBuilder", + "names": [ + "start" + ], + "commands": [ + "start-server" + ], + "kind": "no-send", + "why": "TestServerBuilder starts a tmux process with -D for a test, as a process; it sends no start-server command.", + "evidence": [ + { + "at": "crates/libtmux/src/test.rs:492", + "has": [ + "ProcessCommand::new(&self.executable)" + ] + }, + { + "at": "crates/libtmux/src/test.rs:494", + "has": [ + ".arg(\"-D\")" + ] + } + ] + }, + { + "port": "rs", + "owner": "Window", + "names": [ + "last_activity" + ], + "commands": [ + "last-window" + ], + "kind": "values", + "why": "last_activity is the time tmux last saw activity in the window, read from the projection the handle holds.", + "evidence": [ + { + "at": "crates/libtmux/src/window.rs:294", + "has": [ + "pub fn last_activity(&self) -> SystemTime" + ] + } + ] + }, + { + "port": "rs", + "owner": "Window", + "names": [ + "next_layout", + "previous_layout" + ], + "commands": [ + "next-layout", + "next-window", + "previous-layout", + "previous-window" + ], + "kind": "other-command", + "why": "next_layout and previous_layout send select-layout with -n and -p, which has its own entry; they send neither next-layout, next-window nor previous-window.", + "evidence": [ + { + "at": "crates/libtmux/src/window.rs:597", + "has": [ + "self.step_layout(\"-n\")" + ] + }, + { + "at": "crates/libtmux/src/window.rs:614", + "has": [ + "Command::new(\"select-layout\")" + ] + } + ] + }, + { + "port": "ruby", + "owner": "Pane", + "names": [ + "copy_command" + ], + "commands": [ + "copy-mode" + ], + "kind": "other-command", + "why": "copy_command sends send-keys -X to the pane's copy mode; it does not send copy-mode.", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/operations.rb:400", + "has": [ + "\"send-keys\", \"-X\"" + ] + } + ] + }, + { + "port": "ruby", + "owner": "Pane", + "names": [ + "display" + ], + "commands": [ + "display-panes" + ], + "kind": "other-command", + "why": "display formats text with display-message, through Server#display; it sends no display-panes.", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/operations.rb:248", + "has": [ + "server.display(format, target: ref" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:21", + "has": [ + "\"display-message\"" + ] + } + ] + }, + { + "port": "ruby", + "owner": "PaneSnapshot", + "names": [ + "capture_id" + ], + "commands": [ + "capture-pane" + ], + "kind": "values", + "why": "A captured record answers from the capture it holds, and the capture id and window links are values of it; it sends nothing.", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/snapshot.rb:15", + "has": [ + "@capture_id = graph.capture_id" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/snapshot.rb:219", + "has": [ + "def window_links" + ] + } + ] + }, + { + "port": "ruby", + "owner": "Server", + "names": [ + "close" + ], + "commands": [ + "kill-server" + ], + "kind": "no-send", + "why": "close shuts the server handle's requests and controls, and in an Async scope closes the scope; it does not send kill-server.", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/server.rb:87", + "has": [ + "def close" + ] + }, + { + "at": "gems/libtmux-async/lib/libtmux/async/server.rb:24", + "has": [ + "@scope.close" + ] + } + ] + }, + { + "port": "ruby", + "owner": "Server", + "names": [ + "delete_buffer" + ], + "commands": [ + "kill-server" + ], + "kind": "other-command", + "why": "delete_buffer sends delete-buffer, and not kill-server.", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/operations.rb:63", + "has": [ + "\"delete-buffer\"" + ] + } + ] + }, + { + "port": "ruby", + "owner": "Server", + "names": [ + "list_window_links" + ], + "commands": [ + "link-window" + ], + "kind": "other-command", + "why": "list_window_links lists windows with list-windows and reads their links; it does not send link-window.", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/operations.rb:207", + "has": [ + "\"list-windows\"" + ] + } + ] + }, + { + "port": "ruby", + "owner": "Server", + "names": [ + "read_buffer" + ], + "commands": [ + "show-buffer" + ], + "kind": "other-command", + "why": "read_buffer reads a buffer with save-buffer to standard output; it sends no show-buffer.", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/operations.rb:59", + "has": [ + "\"save-buffer\"" + ] + } + ] + }, + { + "port": "ruby", + "owner": "Server", + "names": [ + "start" + ], + "commands": [ + "start-server" + ], + "kind": "no-send", + "why": "Server.start spawns an owned tmux daemon as a process with -D; it sends no start-server command.", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/owned.rb:58", + "has": [ + "Process.spawn(" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/owned.rb:59", + "has": [ + "\"-u\", \"-D\"" + ] + } + ] + }, + { + "port": "ruby", + "owner": "Server", + "names": [ + "window_link" + ], + "commands": [ + "link-window" + ], + "kind": "no-send", + "why": "window_link resolves a window-link reference to a handle; it sends nothing.", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/operations.rb:78", + "has": [ + "resolve(ref, :window_link)" + ] + } + ] + }, + { + "port": "ruby", + "owner": "Session", + "names": [ + "list_window_links" + ], + "commands": [ + "link-window", + "list-sessions" + ], + "kind": "other-command", + "why": "list_window_links lists a session's windows with list-windows -t and reads their links; it lists no sessions and sends no link-window.", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/operations.rb:207", + "has": [ + "\"list-windows\"" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/operations.rb:265", + "has": [ + ":acquire_links, [\"-t\", target]" + ] + } + ] + }, + { + "port": "ruby", + "owner": "SessionSnapshot", + "names": [ + "window_links" + ], + "commands": [ + "link-window" + ], + "kind": "values", + "why": "window_links reads the window links of a capture from the capture; it sends nothing.", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/snapshot.rb:219", + "has": [ + "def window_links" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/snapshot.rb:220", + "has": [ + "collection(:window_link)" + ] + } + ] + }, + { + "port": "ruby", + "owner": "Snapshot", + "names": [ + "window_links" + ], + "commands": [ + "link-window" + ], + "kind": "values", + "why": "window_links reads the window links of a capture from the capture; it sends nothing.", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/snapshot.rb:219", + "has": [ + "def window_links" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/snapshot.rb:220", + "has": [ + "collection(:window_link)" + ] + } + ] + }, + { + "port": "ruby", + "owner": "WindowSnapshot", + "names": [ + "window_links" + ], + "commands": [ + "link-window" + ], + "kind": "values", + "why": "window_links reads the window links of a capture from the capture; it sends nothing.", + "evidence": [ + { + "at": "gems/libtmux/lib/libtmux/snapshot.rb:219", + "has": [ + "def window_links" + ] + }, + { + "at": "gems/libtmux/lib/libtmux/snapshot.rb:220", + "has": [ + "collection(:window_link)" + ] + } + ] + }, + { + "port": "scala", + "owner": "Client", + "names": [ + "refresh" + ], + "commands": [ + "refresh-client" + ], + "kind": "other-command", + "why": "refresh re-reads the client from a fresh listing; redraw sends refresh-client.", + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Client.java:137", + "has": [ + "server.refresh(snapshot)" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/Client.java:80", + "has": [ + "\"refresh-client\"" + ] + } + ] + }, + { + "port": "scala", + "owner": "CommandChain", + "kind": "builds", + "why": "A CommandChain method adds a step to the chain, which runs them when run is called.", + "evidence": [ + { + "at": "libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/CommandChain.scala:17", + "has": [ + "private def append(" + ] + }, + { + "at": "libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/CommandChain.scala:19", + "has": [ + "steps :+ step" + ] + } + ] + }, + { + "port": "scala", + "owner": "Pane", + "names": [ + "clearHistory" + ], + "commands": [ + "clear-prompt-history" + ], + "kind": "other-command", + "why": "clearHistory sends clear-history; clear-prompt-history is a different command.", + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/Pane.java:1052", + "has": [ + "\"clear-history\"" + ] + } + ] + }, + { + "port": "swift", + "owner": "Server", + "names": [ + "clearHistory" + ], + "commands": [ + "clear-prompt-history" + ], + "kind": "other-command", + "why": "clearHistory sends clear-history; clear-prompt-history is a different command.", + "evidence": [ + { + "at": "Sources/LibTmux/Navigation.swift:213", + "has": [ + "\"clear-history\"" + ] + } + ] + }, + { + "port": "swift", + "owner": "Server", + "names": [ + "deleteBuffer" + ], + "commands": [ + "kill-server" + ], + "kind": "other-command", + "why": "deleteBuffer sends delete-buffer, and not kill-server.", + "evidence": [ + { + "at": "Sources/LibTmux/Buffers.swift:61", + "has": [ + "\"delete-buffer\"" + ] + } + ] + }, + { + "port": "swift", + "owner": "Server", + "names": [ + "kill" + ], + "commands": [ + "kill-server" + ], + "kind": "other-command", + "why": "kill removes a session, window or pane with kill-session, kill-window and kill-pane; killServer is the one that sends kill-server.", + "evidence": [ + { + "at": "Sources/LibTmux/Mutations.swift:109", + "has": [ + "\"kill-session\"" + ] + }, + { + "at": "Sources/LibTmux/Mutations.swift:116", + "has": [ + "\"kill-window\"" + ] + }, + { + "at": "Sources/LibTmux/Mutations.swift:123", + "has": [ + "\"kill-pane\"" + ] + } + ] + }, + { + "port": "swift", + "owner": "Server", + "names": [ + "removeEnvironment" + ], + "commands": [ + "kill-server" + ], + "kind": "other-command", + "why": "removeEnvironment unsets a variable with set-environment -r, and sends no kill-server.", + "evidence": [ + { + "at": "Sources/LibTmux/Environment.swift:135", + "has": [ + "\"set-environment\"" + ] + } + ] + }, + { + "port": "swift", + "owner": "Server", + "names": [ + "selectLastPane" + ], + "commands": [ + "select-pane" + ], + "kind": "other-command", + "why": "selectLastPane sends last-pane, and not select-pane.", + "evidence": [ + { + "at": "Sources/LibTmux/Navigation.swift:55", + "has": [ + "\"last-pane\"" + ] + } + ] + }, + { + "port": "swift", + "owner": "Server", + "names": [ + "selectNextWindow", + "selectPreviousWindow", + "selectLastWindow" + ], + "commands": [ + "select-window" + ], + "kind": "other-command", + "why": "These send next-window, previous-window and last-window, which have their own entries, and not select-window.", + "evidence": [ + { + "at": "Sources/LibTmux/Navigation.swift:28", + "has": [ + "\"next-window\"" + ] + }, + { + "at": "Sources/LibTmux/Navigation.swift:35", + "has": [ + "\"previous-window\"" + ] + }, + { + "at": "Sources/LibTmux/Navigation.swift:43", + "has": [ + "\"last-window\"" + ] + } + ] + }, + { + "port": "swift", + "owner": "Server", + "names": [ + "waitForOutput" + ], + "commands": [ + "wait-for" + ], + "kind": "no-send", + "why": "waitForOutput polls the pane's captured output in an OutputWaitSession; it does not send tmux's wait-for.", + "evidence": [ + { + "at": "Sources/LibTmux/WaitForOutput.swift:157", + "has": [ + "OutputWaitSession(" + ] + } + ] + }, + { + "port": "swift", + "owner": "Server", + "names": [ + "windowLinks" + ], + "commands": [ + "link-window" + ], + "kind": "other-command", + "why": "windowLinks lists the windows with list-windows -a and reads their links; it does not send link-window.", + "evidence": [ + { + "at": "Sources/LibTmux/Server.swift:274", + "has": [ + "\"list-windows\"" + ] + } + ] + }, + { + "port": "swift", + "owner": "Snapshot", + "names": [ + "windowLinks", + "init" + ], + "commands": [ + "link-window" + ], + "kind": "values", + "why": "A Snapshot holds the window links of one capture and answers from them; it sends nothing.", + "evidence": [ + { + "at": "Sources/LibTmux/Snapshot.swift:60", + "has": [ + "public func windowLinks(of session: Session)" + ] + }, + { + "at": "Sources/LibTmux/Snapshot.swift:62", + "has": [ + "fromIncarnation(windowLinks)" + ] + } + ] + }, + { + "port": "swift", + "owner": "WindowAppearance", + "names": [ + "link" + ], + "commands": [ + "link-window" + ], + "kind": "values", + "why": "link is the window link one list-windows row describes; it is a value, not a command.", + "evidence": [ + { + "at": "Sources/LibTmux/Window.swift:63", + "has": [ + "public let link: WindowLink" + ] + } + ] + }, + { + "port": "ts", + "owner": "ConnectedServer", + "names": [ + "close", + "waitFor" + ], + "commands": [ + "kill-server", + "wait-for" + ], + "kind": "no-send", + "why": "ConnectedServer is the interface of a server with a live control connection; its close ends the connection and its waitFor waits on the observed state, and neither sends kill-server or wait-for.", + "evidence": [ + { + "at": "packages/libtmux/src/types.ts:1038", + "has": [ + "export interface ConnectedServer extends Server" + ] + }, + { + "at": "packages/libtmux/src/types.ts:1040", + "has": [ + "close(): Promise" + ] + }, + { + "at": "packages/libtmux/src/types.ts:1089", + "has": [ + "waitFor(" + ] + } + ] + }, + { + "port": "ts", + "owner": "Pane", + "names": [ + "clearHistory" + ], + "commands": [ + "clear-prompt-history" + ], + "kind": "other-command", + "why": "clearHistory sends clear-history; clear-prompt-history is a different command.", + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/pane_io.ts:65", + "has": [ + "clear-history" + ] + } + ] + }, + { + "port": "ts", + "owner": "Pane", + "names": [ + "findWindow" + ], + "commands": [ + "list-panes", + "list-windows" + ], + "kind": "other-command", + "why": "findWindow sends find-window, which has its own entry; it lists no panes or windows.", + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/interactive.ts:94", + "has": [ + "find-window" + ] + } + ] + }, + { + "port": "ts", + "owner": "Pane", + "names": [ + "killIfWindowUnshared" + ], + "commands": [ + "kill-window" + ], + "kind": "other-command", + "why": "killIfWindowUnshared kills a pane with kill-pane, only while its window is not linked elsewhere; it does not kill a window.", + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/plans.ts:195", + "has": [ + "[\"kill-pane\", \"-t\", target]" + ] + } + ] + }, + { + "port": "ts", + "owner": "Pane", + "names": [ + "showHooks" + ], + "commands": [ + "display-panes" + ], + "kind": "other-command", + "why": "showHooks reads hooks with show-hooks; it does not send display-panes.", + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/hooks.ts:31", + "has": [ + "show-hooks" + ] + } + ] + }, + { + "port": "ts", + "owner": "Pane", + "names": [ + "showOptions", + "showResolvedOptions" + ], + "commands": [ + "display-panes" + ], + "kind": "other-command", + "why": "showOptions and showResolvedOptions read options with show-options; they do not send display-panes.", + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/options.ts:114", + "has": [ + "\"show-options\"" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/options.ts:150", + "has": [ + "\"show-options\"" + ] + } + ] + }, + { + "port": "ts", + "owner": "PanePlans", + "kind": "builds", + "why": "The plan getters return planned operations for Server.batch to run; they send nothing themselves.", + "evidence": [ + { + "at": "packages/libtmux/src/pane.ts:269", + "has": [ + "get plan(): PanePlans" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/plans.ts:162", + "has": [ + "export function planKill(" + ] + } + ] + }, + { + "port": "ts", + "owner": "PaneWhere", + "kind": "values", + "why": "A Where type names the fields a selection may test; its members are field names, not commands.", + "evidence": [ + { + "at": "packages/libtmux/src/selection.ts:252", + "has": [ + "export interface PaneWhere" + ] + }, + { + "at": "packages/libtmux/src/selection.ts:318", + "has": [ + "readonly searchString?: ScalarCriteria" + ] + } + ] + }, + { + "port": "ts", + "owner": "SaveBufferOptions", + "names": [ + "append" + ], + "kind": "values", + "why": "append is a flag in an options object, not a command.", + "evidence": [ + { + "at": "packages/libtmux/src/types.ts:412", + "has": [ + "export interface SaveBufferOptions" + ] + }, + { + "at": "packages/libtmux/src/types.ts:414", + "has": [ + "readonly append?: boolean" + ] + } + ] + }, + { + "port": "ts", + "owner": "Server", + "names": [ + "deleteBuffer" + ], + "commands": [ + "kill-server" + ], + "kind": "other-command", + "why": "deleteBuffer sends delete-buffer, and not kill-server.", + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/server_utils.ts:116", + "has": [ + "delete-buffer" + ] + } + ] + }, + { + "port": "ts", + "owner": "Server", + "names": [ + "removeEnvironment" + ], + "commands": [ + "kill-server" + ], + "kind": "other-command", + "why": "removeEnvironment unsets a variable with set-environment, and sends no kill-server.", + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/environment.ts:147", + "has": [ + "set-environment" + ] + } + ] + }, + { + "port": "ts", + "owner": "Session", + "names": [ + "getEnvironment", + "removeEnvironment" + ], + "commands": [ + "list-sessions", + "kill-session" + ], + "kind": "other-command", + "why": "getEnvironment reads a variable with show-environment, and removeEnvironment unsets it with set-environment; neither lists or kills a session.", + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/environment.ts:71", + "has": [ + "show-environment" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/environment.ts:147", + "has": [ + "set-environment" + ] + } + ] + }, + { + "port": "ts", + "owner": "SessionPlans", + "kind": "builds", + "why": "The plan getters return planned operations for Server.batch to run; they send nothing themselves.", + "evidence": [ + { + "at": "packages/libtmux/src/session.ts:324", + "has": [ + "get plan(): SessionPlans" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/plans.ts:162", + "has": [ + "export function planKill(" + ] + } + ] + }, + { + "port": "ts", + "owner": "SessionWhere", + "kind": "values", + "why": "A Where type names the fields a selection may test; its members are field names, not commands.", + "evidence": [ + { + "at": "packages/libtmux/src/selection.ts:154", + "has": [ + "export interface SessionWhere" + ] + }, + { + "at": "packages/libtmux/src/selection.ts:165", + "has": [ + "readonly attachedList?: ScalarCriteria" + ] + } + ] + }, + { + "port": "ts", + "owner": "SetHookOptions", + "names": [ + "append" + ], + "kind": "values", + "why": "append is a flag in an options object, not a command.", + "evidence": [ + { + "at": "packages/libtmux/src/types.ts:418", + "has": [ + "export interface SetHookOptions" + ] + }, + { + "at": "packages/libtmux/src/types.ts:426", + "has": [ + "readonly append?: boolean" + ] + } + ] + }, + { + "port": "ts", + "owner": "SetOptionOptions", + "names": [ + "append" + ], + "kind": "values", + "why": "append is a flag in an options object, not a command.", + "evidence": [ + { + "at": "packages/libtmux/src/types.ts:369", + "has": [ + "export interface SetOptionOptions" + ] + }, + { + "at": "packages/libtmux/src/types.ts:371", + "has": [ + "readonly append?: boolean" + ] + } + ] + }, + { + "port": "ts", + "owner": "Window", + "names": [ + "removePlacement" + ], + "commands": [ + "kill-window" + ], + "kind": "other-command", + "why": "removePlacement removes one link of a window with unlink-window -k, and does not kill the window.", + "evidence": [ + { + "at": "packages/libtmux/src/_internal/operations/plans.ts:208", + "has": [ + "[\"unlink-window\", \"-k\", \"-t\", target]" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/topology.ts:79", + "has": [ + "planRemoveWindowPlacement(" + ] + } + ] + }, + { + "port": "ts", + "owner": "WindowPlans", + "kind": "builds", + "why": "The plan getters return planned operations for Server.batch to run; they send nothing themselves.", + "evidence": [ + { + "at": "packages/libtmux/src/window.ts:299", + "has": [ + "get plan(): WindowPlans" + ] + }, + { + "at": "packages/libtmux/src/_internal/operations/plans.ts:162", + "has": [ + "export function planKill(" + ] + } + ] + }, + { + "port": "ts", + "owner": "WindowWhere", + "kind": "values", + "why": "A Where type names the fields a selection may test; its members are field names, not commands.", + "evidence": [ + { + "at": "packages/libtmux/src/selection.ts:200", + "has": [ + "export interface WindowWhere" + ] + }, + { + "at": "packages/libtmux/src/selection.ts:221", + "has": [ + "readonly lastFlag?" + ] + } + ] + }, + { + "port": "fsharp", + "owner": "Server", + "names": [ + "tryFindSession", + "tryFindWindow", + "tryFindPane" + ], + "commands": [ + "list-sessions", + "list-windows", + "list-panes" + ], + "kind": "version-gated", + "why": "The lookups call FindSessionAsync, FindWindowAsync and FindPaneAsync, which list with -a below tmux 3.3 and send display-message from 3.3. This revision supports 3.2a, so neither command holds on every supported release.", + "evidence": [ + { + "at": "src/LibTmux.FSharp/Hierarchy.fs:120", + "has": [ + "server.FindSessionAsync(" + ] + }, + { + "at": "src/LibTmux.FSharp/Hierarchy.fs:126", + "has": [ + "server.FindWindowAsync(" + ] + }, + { + "at": "src/LibTmux.FSharp/Hierarchy.fs:132", + "has": [ + "server.FindPaneAsync(" + ] + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:77", + "has": [ + "!TmuxCapabilities.IsSupported(" + ] + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:81", + "has": [ + "ReadFromListingAsync(" + ] + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:179", + "has": [ + "\"display-message\"" + ] + }, + { + "at": "src/LibTmux/Constants/TmuxConstants.cs:6", + "has": [ + "Parse(\"3.2a\")" + ] + } + ] + }, + { + "port": "go", + "owner": "Plan", + "in": "tmux/plan_", + "kind": "builds", + "why": "A Plan records each step; Plan.Run is what sends them.", + "evidence": [ + { + "at": "tmux/plan.go:158", + "has": [ + "func (p *Plan) add(op Op) Ref" + ] + }, + { + "at": "tmux/plan.go:159", + "has": [ + "p.ops = append(p.ops, op)" + ] + } + ] + }, + { + "port": "cxx", + "owner": "Chain", + "in": "include/libtmux/chain.hpp", + "kind": "builds", + "why": "A Chain adds each command to a batch that a later call sends.", + "evidence": [ + { + "at": "include/libtmux/chain.hpp:89", + "has": [ + "Chain& add(std::vector command)" + ] + }, + { + "at": "include/libtmux/chain.hpp:90", + "has": [ + "batch_.add(" + ] + } + ] + }, + { + "port": "java", + "owner": "CommandChain", + "kind": "builds", + "why": "A CommandChain queues each step on its batch; run() is what sends them.", + "evidence": [ + { + "at": "libtmux/src/main/java/io/github/libtmux/CommandChain.java:83", + "has": [ + "public CommandChain then(String... argv)" + ] + }, + { + "at": "libtmux/src/main/java/io/github/libtmux/CommandChain.java:84", + "has": [ + "batch.add(argv)" + ] + } + ] + }, + { + "port": "csharp", + "names": [ + "ToCommand", + "ToCommands" + ], + "in": "src/LibTmux/", + "kind": "builds", + "why": "A request turns itself into a command value for a chain to run; it sends nothing.", + "evidence": [ + { + "at": "src/LibTmux/Chaining/ITmuxRequest.cs:30", + "has": [ + "Returns this request as one tmux command" + ] + }, + { + "at": "src/LibTmux/Chaining/ITmuxRequest.cs:34", + "has": [ + "TmuxCommand ToCommand(" + ] + }, + { + "at": "src/LibTmux/Chaining/TmuxChaining.Hooks.cs:77", + "has": [ + "IReadOnlyList ToCommands(" + ] + } + ] + }, + { + "port": "csharp", + "owner": "Server", + "names": [ + "FindSessionAsync", + "GetSessionAsync", + "FindWindowAsync", + "GetWindowAsync", + "FindPaneAsync", + "GetPaneAsync", + "CreateSessionWithReceiptAsync" + ], + "commands": [ + "list-sessions", + "list-windows", + "list-panes" + ], + "kind": "other-command", + "why": "A lookup by id passes the name of a list command only to pick the format of the row it reads; it sends display-message -p -t, and the fallback that listed with -a below tmux 3.3 is gone with the 3.3a floor.", + "evidence": [ + { + "at": "src/LibTmux/Server.Identity.cs:231", + "has": [ + "\"list-sessions\"" + ] + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:124", + "has": [ + "CreateProjection(listCommand)" + ] + }, + { + "at": "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:125", + "has": [ + "\"display-message\"" + ] + } + ] + } + ] +} diff --git a/scripts/tmux-usage/preflights.json b/scripts/tmux-usage/preflights.json new file mode 100644 index 000000000..97280fed3 --- /dev/null +++ b/scripts/tmux-usage/preflights.json @@ -0,0 +1,42 @@ +{ + "schemaVersion": 1, + "preflights": [ + { + "port": "go", + "command": "run-shell", + "why": "A Server with no daemon identity probes the daemon with run-shell -C before every ordinary command and remembers the answer, so the check is the library's own and not a send of the method that triggers it. No method is credited with it for that reason; a method that probes as a step of its own (a lookup or a snapshot) carries an incidental claim that says when.", + "evidence": [ + { + "at": "tmux/transport.go:71", + "has": [ + "s.checkForDispatch(" + ] + }, + { + "at": "tmux/transport.go:106", + "has": [ + "s.checkCore(" + ] + }, + { + "at": "tmux/version_check.go:96", + "has": [ + "s.checkCoreVersion(" + ] + }, + { + "at": "tmux/version_check.go:147", + "has": [ + "s.probeServerIdentity(" + ] + }, + { + "at": "tmux/identity.go:339", + "has": [ + "\"run-shell\"" + ] + } + ] + } + ] +} diff --git a/site/scripts/check-badge-centring.mjs b/site/scripts/check-badge-centring.mjs index a4fc6f0ba..3bafdb38e 100644 --- a/site/scripts/check-badge-centring.mjs +++ b/site/scripts/check-badge-centring.mjs @@ -231,7 +231,7 @@ export function judgeChipGrowth(chips) { const slack = 0.51 const problems = [] for (const chip of chips) { - const { text, box, mark, lines, border, line, rail } = chip + const { text, box, mark, lines, border, line, rail, where = 'Related APIs column' } = chip if (!lines.length) { problems.push(`${text}: the name has no line to measure`); continue } const top = box.top + border const bottom = box.bottom - border @@ -245,7 +245,7 @@ export function judgeChipGrowth(chips) { if (Math.abs(mark.top - top) > slack) problems.push(`${text}: the mark left the top of the chip`) const offset = (lines[0].top + lines[0].bottom) / 2 - (mark.top + mark.bottom) / 2 if (Math.abs(offset) > 1) problems.push(`${text}: the first line of the name is ${Math.abs(offset).toFixed(1)}px ${offset < 0 ? 'above' : 'below'} the centre of the mark`) - if (box.left < rail.left - slack || box.right > rail.right + slack) problems.push(`${text}: the chip runs out of the Related APIs column`) + if (box.left < rail.left - slack || box.right > rail.right + slack) problems.push(`${text}: the chip runs out of the ${where}`) } for (let i = 0; i < chips.length; i++) for (let j = i + 1; j < chips.length; j++) { const a = chips[i].box @@ -257,11 +257,17 @@ export function judgeChipGrowth(chips) { return problems } -/** The boxes and lines of every Related APIs chip on the page, judged by `judgeChipGrowth`. */ -export async function chipGrowthProblems(page) { - const chips = await page.evaluate(() => { +/** + * The boxes and lines of every chip of one list on the page, judged by `judgeChipGrowth`. The list is the Related APIs + * rail unless `scope` names another: the `.tmux-usage` table of senders on a tmux command page. A line is the box of its + * text, or with `ink` the box of its letters, from the cap height to the baseline that `text-box` trims the name to: the + * usage table sets its names in a semibold face whose text box is taller than the chip's letters and not centred on them, + * so the box of the text would put every name a little above its chip. + */ +export async function chipGrowthProblems(page, scope = { list: 'nav.api-related', where: 'Related APIs column' }) { + const chips = await page.evaluate(({ list, where, ink }) => { const plain = (r) => ({ top: r.top, bottom: r.bottom, left: r.left, right: r.right }) - return [...document.querySelectorAll('nav.api-related a:has(> .api-nav__kind)')].filter((a) => a.offsetParent).map((a) => { + return [...document.querySelectorAll(`${list} a:has(> .api-nav__kind)`)].filter((a) => a.offsetParent).map((a) => { const name = a.querySelector(':scope > .api-nav__kind + code') const range = document.createRange() range.selectNodeContents(name) @@ -271,18 +277,64 @@ export async function chipGrowthProblems(page) { const last = lines.at(-1) if (last && r.top - last.top <= 3) { last.bottom = Math.max(last.bottom, r.bottom); last.right = Math.max(last.right, r.right) } else lines.push({ top: r.top, bottom: r.bottom, right: r.right }) } + if (ink) { + // The trimmed name spans the cap height of its first line to the baseline of its last, so it is one cap height and a line pitch for each line after the first. + const trimmed = name.getBoundingClientRect() + const pitch = lines.length > 1 ? (lines.at(-1).top - lines[0].top) / (lines.length - 1) : 0 + const cap = trimmed.height - pitch * (lines.length - 1) + lines.forEach((line, index) => { line.top = trimmed.top + index * pitch; line.bottom = line.top + cap }) + } const style = getComputedStyle(a) const box = a.getBoundingClientRect() return { text: name.textContent.trim(), box: plain(box), mark: plain(a.querySelector(':scope > .api-nav__kind').getBoundingClientRect()), lines, - border: parseFloat(style.borderTopWidth) || 0, line: parseFloat(style.minHeight) || box.height, rail: plain(a.closest('nav.api-related').getBoundingClientRect()), + border: parseFloat(style.borderTopWidth) || 0, line: parseFloat(style.minHeight) || box.height, rail: plain(a.closest(list).getBoundingClientRect()), where, clipped: a.scrollHeight > a.clientHeight + 1 || a.scrollWidth > a.clientWidth + 1, } }) - }) + }, scope) return { chips: chips.length, wrapped: chips.filter((chip) => chip.lines.length > 1).length, problems: judgeChipGrowth(chips) } } +/** + * A qualifier ("the spec names a first window") sits beside its chip or under it, and the chip keeps the width its name needs + * unless the cell is narrower than that: a chip that shrank to make room for its qualifier wrapped a name of ten characters in + * a cell with room to spare. The width a chip needs is read from a copy of it in a box too wide to wrap anything, not by + * hiding the qualifier, which would let the table lay its columns out again and move the cell being measured. + */ +export async function qualifierProblems(page) { + return page.evaluate(() => { + const problems = [] + let asked = 0 + const wide = document.createElement('div') + wide.className = 'tmux-usage' + wide.style.cssText = 'position:fixed;top:0;left:0;visibility:hidden;pointer-events:none;inline-size:4000px' + document.body.append(wide) + for (const item of document.querySelectorAll('.tmux-usage__item')) { + const chip = item.querySelector(':scope > a') + const when = item.querySelector(':scope > .tmux-usage__when') + if (!chip || !when || !item.offsetParent) continue + asked++ + const name = chip.textContent.trim() + // The copy is set in the type the chip is set in, since every length of a chip is in em. + const type = getComputedStyle(item) + Object.assign(wide.style, { fontSize: type.fontSize, fontFamily: type.fontFamily, fontWeight: type.fontWeight, letterSpacing: type.letterSpacing }) + const copy = chip.cloneNode(true) + wide.replaceChildren(copy) + const needs = copy.getBoundingClientRect().width + const box = chip.getBoundingClientRect() + const room = item.getBoundingClientRect().width + if (box.width < Math.min(needs, room) - 1) problems.push(`${name}: it is ${box.width.toFixed(1)}px wide in ${room.toFixed(1)}px of room and its name needs ${needs.toFixed(1)}px`) + const qualifier = when.getBoundingClientRect() + const across = Math.min(qualifier.right, box.right) - Math.max(qualifier.left, box.left) + const down = Math.min(qualifier.bottom, box.bottom) - Math.max(qualifier.top, box.top) + if (across > 1 && down > 1) problems.push(`${name}: its qualifier is over it by ${down.toFixed(1)}px`) + } + wide.remove() + return { asked, problems } + }) +} + /** * A group heading is one line: the title, the count and the permalink share a baseline. * Each is probed with a zero-size inline box, which sits on the baseline of the line it is in. @@ -647,6 +699,95 @@ export async function checkChipGrowth(browser, base) { } finally { await context.close() } } +const USAGE = { list: '.tmux-usage', where: 'usage table', ink: true } + +/** + * The chips of the usage table on the page the maintainer saw them wrap on, `list-panes` at 1134px, and in a container narrow + * enough to wrap a name onto three lines, each judged as the Related APIs chips are. A chip with a qualifier keeps the width its + * name needs. Each control breaks one thing and the check must name it: a chip pinned to one line's height, a name below its chip, + * a chip squeezed by its qualifier and one chip moved onto another. + */ +export async function checkUsageChips(browser, base) { + const context = await browser.newContext({ viewport: { width: 1134, height: 900 } }) + const page = await context.newPage() + page.setDefaultNavigationTimeout(60000) + const ready = () => page.waitForFunction(() => document.documentElement.dataset.pageReadiness === 'ready', null, { timeout: 30000 }).catch(() => {}) + const measure = () => chipGrowthProblems(page, USAGE) + try { + await page.goto(`${base}/tmux/latest/manual/list-panes/`, { waitUntil: 'load' }) + await ready() + const real = await measure() + assert(real.wrapped > 0, 'No chip wrapped its name at 1134px, so growth was not measured on the page that showed it') + assert.deepEqual(real.problems, [], `A chip of the usage table on the list-panes manual page:\n${real.problems.join('\n')}`) + // Each chip with a qualifier keeps the width its name needs, and its qualifier is beside it or under it. + const qualified = await qualifierProblems(page) + assert(qualified.asked > 0, 'No chip with a qualifier on the list-panes manual page, so none was measured') + assert.deepEqual(qualified.problems, [], `A qualifier took room from its chip:\n${qualified.problems.join('\n')}`) + // A narrow container with a name that fits, one that wraps twice and one that wraps three times. + await page.evaluate(() => { + const model = document.querySelector('.tmux-usage a:has(> .api-nav__kind)') + const box = document.createElement('div') + box.className = 'tmux-usage' + box.dataset.control = 'narrow' + box.style.cssText = 'display:flex;flex-direction:column;align-items:flex-start;gap:6px;inline-size:8.5rem;margin:1rem 0' + for (const name of ['Window#panes', 'Async::Server#list_panes', 'LibTmux::Server#search_panes_with_options']) { + const chip = model.cloneNode(true) + chip.querySelector(':scope > .api-nav__kind + code').innerHTML = name.replace(/(::|(?=[#_]))/g, '$1') + box.append(chip) + } + model.closest('main, article, body').append(box) + }) + const narrow = await measure() + assert(narrow.wrapped >= real.wrapped + 2, 'The narrow container did not wrap the long names') + assert.deepEqual(narrow.problems, [], `A wrapped chip in a narrow container:\n${narrow.problems.join('\n')}`) + // A qualified chip in a cell too narrow to hold it and its qualifier side by side: the qualifier goes under the chip, which keeps its size. + const addQualified = () => page.evaluate(() => { + const item = [...document.querySelectorAll('.tmux-usage__item')].find((entry) => entry.querySelector(':scope > .tmux-usage__when')) + const links = item.parentElement.cloneNode(false) + links.dataset.control = 'qualified' + links.style.cssText = 'inline-size:11rem;margin:1rem 0' + links.append(item.cloneNode(true)) + item.closest('.tmux-usage').append(links) + }) + await addQualified() + const narrowQualified = await qualifierProblems(page) + assert(narrowQualified.asked === qualified.asked + 1, 'The qualified chip in a narrow cell was not measured') + assert.deepEqual(narrowQualified.problems, [], `A qualifier took room from its chip in a narrow cell:\n${narrowQualified.problems.join('\n')}`) + const fresh = async () => { + await page.reload({ waitUntil: 'load' }) + await ready() + } + const CHIP = '.tmux-usage a:has(> .api-nav__kind)' + // Control 1: a chip held to one line's height cannot hold a name of two lines, so the name spills out of it. + await fresh() + await page.addStyleTag({ content: `${CHIP} { height: var(--sp-h) !important; min-height: 0 !important; }` }) + const pinned = await measure() + assert(pinned.problems.some((problem) => /the chip is still one line tall/.test(problem)), 'The check did not notice a chip too short for its name') + assert(pinned.problems.some((problem) => /the name starts .* above the chip's top edge/.test(problem)), 'The check did not notice a name spilling out of the top of its chip') + // Control 2: a name that ends below its chip's bottom edge. + await fresh() + await page.addStyleTag({ content: `${CHIP} > .api-nav__kind + code { margin-bottom: -8px !important; }` }) + const below = await measure() + assert(below.problems.some((problem) => /runs .* past the chip's bottom edge/.test(problem)), 'The check did not notice a name running past its chip') + // Control 3: the layout this replaced, in which the chip shrinks beside a qualifier that cannot wrap, so its name wraps with room to spare. + await fresh() + await addQualified() + await page.addStyleTag({ content: '.tmux-usage__item { flex-wrap: nowrap !important; white-space: nowrap !important; } .tmux-usage__item > a { flex: 0 1 auto !important; } .tmux-usage__when { white-space: nowrap !important; }' }) + const squeezed = await qualifierProblems(page) + assert(squeezed.problems.some((problem) => /px wide in .*px of room and its name needs/.test(problem)), 'The check did not notice a chip that shrank for its qualifier') + // Control 4: a chip moved onto the one above it overlaps. + await fresh() + await page.evaluate(() => { + const items = [...document.querySelectorAll('.tmux-usage__item a:has(> .api-nav__kind)')] + const second = items.find((chip, index) => items[index - 1] && chip.parentElement === items[index - 1].parentElement) ?? items[1] + second.style.transform = 'translateY(-12px)' + }) + const moved = await measure() + assert(moved.problems.some((problem) => /overlaps/.test(problem)), 'The check did not notice a chip on top of the one above') + console.log(`Usage chips: ${real.chips} chips on the list-panes manual page (${real.wrapped} wrapped) and 3 in an 8.5rem container, each tall enough for its name, level with its mark and clear of the next, and ${qualified.asked + 1} qualified chips at the width their names need; controls caught a pinned height (${pinned.problems.length} problems), a name below its chip (${below.problems.length}), a chip squeezed by its qualifier (${squeezed.problems.length}) and an overlap (${moved.problems.length}) PASS`) + } finally { await context.close() } +} + if (import.meta.url === `file://${process.argv[1]}`) { const url = process.argv.find((arg) => arg.startsWith('--url='))?.slice(6) ?? 'http://localhost:47392/en' const browser = await chromium.launch() @@ -654,5 +795,6 @@ if (import.meta.url === `file://${process.argv[1]}`) { await checkBadgeCentring(browser, url, { sample: process.argv.includes('--sample') }) await checkMentionDensity(browser, url) await checkChipGrowth(browser, url) + await checkUsageChips(browser, url) } finally { await browser.close() } } diff --git a/site/scripts/check-dev.mjs b/site/scripts/check-dev.mjs index 5225c285d..7b785ec30 100644 --- a/site/scripts/check-dev.mjs +++ b/site/scripts/check-dev.mjs @@ -5,7 +5,8 @@ import { join } from 'node:path' import { fileURLToPath } from 'node:url' import { dev } from 'astro' import { chromium, firefox, webkit } from 'playwright' -import { API_MODEL_PORTS, PORTS, productAvailable } from '../src/lib/ports.ts' +import { API_MODEL_PORTS, PORTS, productAvailable, referenceSegment } from '../src/lib/ports.ts' +import { buildTarget } from '../src/lib/versions.ts' import { checkClipboard, checkCompleteApiExamples } from './check-clipboard.mjs' import { checkApiAnchorArrival, checkApiExampleOwnership, checkApiNavigation, checkApiStickyHeadings, checkApiStickyHeadingsFail, checkDocumentationNavigation, checkNavigation } from './check-navigation.mjs' import { checkReferencePreferences, checkGlobalHeader, checkHeaderLinksFail } from './check-reference-preferences.mjs' @@ -17,8 +18,8 @@ import { checkColorScheme } from './check-color-scheme.mjs' import { checkHomeExampleOptions } from './check-home-example-options.mjs' import { checkDevSample, checkRowPermalinks } from './check-dev-sample.mjs' import { checkDeclarationControlAlignment, checkDeclarationControlsLevel, checkMemberBodyInsets, checkNativeSignatureGeometry, checkNativeSignatureLinks } from './check-native-layout.mjs' -import { checkBadgeCentring, checkChipGrowth, checkMentionDensity } from './check-badge-centring.mjs' -import { checkBlockLinksUndecorated, checkKindBadgeLinks, checkRequiredAppearance, checkWebAnalytics, checkWebAnalyticsTransitions } from './check-page-readiness.mjs' +import { checkBadgeCentring, checkChipGrowth, checkMentionDensity, checkUsageChips } from './check-badge-centring.mjs' +import { checkBlockLinksUndecorated, checkKindBadgeLinks, checkRequiredAppearance, checkTmuxReferencePreviews, checkWebAnalytics, checkWebAnalyticsTransitions } from './check-page-readiness.mjs' import { checkTypeParameters } from './check-type-parameters.mjs' import { checkTmuxKeys, TMUX_KEY_PAGES } from './check-tmux-keys.mjs' @@ -37,6 +38,7 @@ const globalHeaderOnly = process.argv.includes('--global-header') const headerMenuSectionsOnly = process.argv.includes('--header-menu-sections') const statusBadgesOnly = process.argv.includes('--status-badges') const badgeCentringOnly = process.argv.includes('--badge-centring') +const referencePreviewsOnly = process.argv.includes('--reference-previews') const homeLauncherOnly = process.argv.includes('--home-launcher') const homeControlsOnly = process.argv.includes('--home-controls') const sampleOnly = process.argv.includes('--sample') @@ -55,6 +57,10 @@ Object.assign(process.env, { LIBTMUX_DOCS_LOCALES_ROOT: '', LIBTMUX_DOCS_LOCALE: 'en', LIBTMUX_DOCS_PORT: '', LIBTMUX_DOCS_VERSION: 'latest', LIBTMUX_DOCS_PORT_DEFAULTS: '{"py":"stable"}', }) +// The one version of each port's reference this build serves: its own target, as the site's build target says it. A port's core +// reference is a tree of its own, so a link to another version of it (the Python reference that the other ports link to at its +// default, `stable`) names a tree this build does not contain. The routes below and the checks that ask what is served read it here. +const MIRRORED_VERSION = buildTarget(process.env).version // Astro always writes root/.astro, so a separate cacheDir alone cannot isolate it. const source = fileURLToPath(new URL('../', import.meta.url)) // Astro resolves external component styles against the nearest shared path. @@ -182,7 +188,7 @@ for (const { port, symbol } of entries) { `) for (const { slug: port } of PORTS) { - const directory = join(root, `src/pages/${port}/latest/reference`) + const directory = join(root, `src/pages/${port}/${MIRRORED_VERSION}/reference`) mkdirSync(directory, { recursive: true }) writeFileSync(join(directory, '[...slug].astro'), `--- import Reference from '../../../reference/[...slug].astro' @@ -224,10 +230,10 @@ import { coreApiSymbols } from '../../../../lib/product-api' export { GET } from '../../../[...slug].preview.json' export function getStaticPaths() { const model = API_MODELS.${port} - const glossary = referenceUrl(PORT_BY_SLUG.${port}, 'latest') + 'glossary/' + const glossary = referenceUrl(PORT_BY_SLUG.${port}, '${MIRRORED_VERSION}') + 'glossary/' return [{ params: { slug: 'glossary' }, props: { preview: glossaryPreview(glossary) } }, ...coreApiSymbols(model).map((owner) => ({ params: { slug: owner.slug }, - props: { preview: symbolPreview(model, owner, 'latest') } }))] + props: { preview: symbolPreview(model, owner, '${MIRRORED_VERSION}') } }))] } `) writeFileSync(join(directory, 'tree.json.ts'), ` @@ -236,12 +242,14 @@ export const GET = () => new Response(JSON.stringify(referenceTree('${port}')), headers: { 'Content-Type': 'application/json' }, }) `) - writeFileSync(join(root, `src/pages/${port}/latest/index.astro`), `--- + writeFileSync(join(root, `src/pages/${port}/${MIRRORED_VERSION}/index.astro`), `--- import Home from '../../index.astro' --- `) } +/** What this build serves, for a check that asks whether a link's destination is in it. */ +const servedBuild = (base) => ({ root: new URL(base).pathname.replace(/\/$/, ''), ports: PORTS, version: MIRRORED_VERSION, segment: referenceSegment('core') }) let server, browser const terminate = async () => { await browser?.close() @@ -746,10 +754,11 @@ try { : keywordHelpOnly ? '/kotlin/latest/reference/io-github-libtmux-kotlin-withserver/' : apiStickyOnly ? '/swift/latest/reference/server/' : badgeCentringOnly ? '/py/stable/guides/attaching-to-tmux/' + : referencePreviewsOnly ? '/cxx/latest/reference/libtmux-server-panes/' : documentationNavigationOnly || headerMenuSectionsOnly || statusBadgesOnly ? '/py/latest/' : apiSignaturesOnly ? '/api-signature-probe/' : apiNavigationOnly ? '/lua/latest/reference/libtmux-server/' : typeParametersOnly ? '/ts/latest/reference/selection-selection-where/' : '/tmux/concepts/server-session-window-pane/' - const fullRun = ![homeLauncherOnly, homeControlsOnly, keywordHelpOnly, apiSignaturesOnly, referenceLayoutOnly, globalHeaderOnly, headerMenuSectionsOnly, statusBadgesOnly, badgeCentringOnly, + const fullRun = ![homeLauncherOnly, homeControlsOnly, keywordHelpOnly, apiSignaturesOnly, referenceLayoutOnly, globalHeaderOnly, headerMenuSectionsOnly, statusBadgesOnly, badgeCentringOnly, referencePreviewsOnly, referencePreferencesOnly, documentationNavigationOnly, apiNavigationOnly, apiAnchorsOnly, typeParametersOnly].some(Boolean) const setupPages = sampleOnly ? [firstPage, '/demo/widgets/pickers/', ...TMUX_KEY_PAGES] : [firstPage, ...(fullRun ? TMUX_KEY_PAGES : [])] @@ -800,6 +809,9 @@ try { await retryReload(() => checkBadgeCentring(browser, base)) await checkMentionDensity(browser, base) await checkChipGrowth(browser, base) + await checkUsageChips(browser, base) + } else if (referencePreviewsOnly) { + await retryReload(() => checkTmuxReferencePreviews(browser, base, { served: servedBuild(base) })) } else if (referencePreferencesOnly) { await retryReload(() => checkReferencePreferences(browser, base)) await retryReload(() => checkGlobalHeader(browser, base)) @@ -875,8 +887,10 @@ try { const kindBadges = schedule(() => retryReload(() => checkKindBadgeLinks(browser, base))) const badgeCentring = schedule(() => retryReload(() => checkBadgeCentring(browser, base, { sample: sampleOnly })) .then(() => checkMentionDensity(browser, base)) - .then(() => checkChipGrowth(browser, base))) + .then(() => checkChipGrowth(browser, base)) + .then(() => checkUsageChips(browser, base))) const blockLinks = schedule(() => retryReload(() => checkBlockLinksUndecorated(browser, base))) + const referencePreviews = schedule(() => retryReload(() => checkTmuxReferencePreviews(browser, base, { served: servedBuild(base) }))) await apiAnchors const apiSticky = schedule(() => retryReload(() => checkApiStickyHeadings(browser, base)) .then(() => checkApiStickyHeadingsFail(browser, base))) @@ -1177,7 +1191,7 @@ try { await page.close() const failures = (await Promise.all([ navigation, apiExamples, reference, preferences, globalHeader, headerMenuSections, statusBadges, apiNavigation, - clipboard, documentationNavigation, homeLauncher, apiAnchors, apiSticky, typeParameters, kindBadges, badgeCentring, blockLinks, + clipboard, documentationNavigation, homeLauncher, apiAnchors, apiSticky, typeParameters, kindBadges, badgeCentring, blockLinks, referencePreviews, ])).filter(Boolean) if (failures.length) throw new AggregateError(failures, 'Browser checks failed') } diff --git a/site/scripts/check-page-readiness.mjs b/site/scripts/check-page-readiness.mjs index 3d14612aa..74f649e88 100644 --- a/site/scripts/check-page-readiness.mjs +++ b/site/scripts/check-page-readiness.mjs @@ -530,3 +530,144 @@ export async function checkBlockLinksUndecorated(browser, base, { sample = false await context.close() } } + +/** + * The port and version a link's destination is a core reference of, if it is one. + * + * A port's core reference is a tree of its own, built for one version of the port. `ports`, `segment` (the part of the path + * that makes a page a core reference) and `root` are the site's own: `PORTS`, `referenceSegment` and the mount of the build. + * + * @param {string} pathname the path of the link, root included + * @param {{ root: string, ports: readonly { slug: string, versionedDocs: boolean }[], segment: string }} build + */ +function coreReference(pathname, { root, ports, segment }) { + const rest = pathname.startsWith(`${root}/`) ? pathname.slice(root.length + 1) : pathname.replace(/^\//, '') + const parts = rest.split('/') + const port = ports.find((entry) => entry.slug === parts[0]) + if (!port) return undefined + const at = port.versionedDocs ? 2 : 1 + if (parts.slice(at, at + segment.split('/').length).join('/') !== segment) return undefined + return { port, version: port.versionedDocs ? parts[1] : undefined } +} + +/** + * Whether the build under test contains the destination of a link, as far as a preview payload is concerned. + * + * The build under test serves one version of each port's core reference: `version`, the one its own target names. A link + * to another version of a port's reference leaves for a tree this build does not contain, such as the Python reference that + * the other ports' pages link to at its default, `stable`. That tree exists in the assembly, where the port's own shell build + * renders it at `///reference/` with its payloads; `reference-previews.test.ts` checks them there. + * Everything else is served at whatever version a link names: tmux's pages, a product's pages, the glossary. + * + * @param {string} pathname the path of the link, root included + * @param {{ root: string, ports: readonly { slug: string, versionedDocs: boolean }[], version: string, segment: string }} build + */ +export function servedByBuild(pathname, build) { + const target = coreReference(pathname, build) + return !target || target.version === undefined || target.version === build.version +} + +/** + * Whether a destination is a core reference of a port whose publisher owns its version tree (`publishesOwnTree`), at a + * version this build does not serve: the one kind of destination the check leaves out, so that what it leaves out is + * bounded by what the site says and not by what the check finds convenient. + * + * @param {string} pathname the path of the link, root included + * @param {{ root: string, ports: readonly { slug: string, versionedDocs: boolean, publishesOwnTree?: boolean }[], version: string, segment: string }} build + */ +export function ownTreeElsewhere(pathname, build) { + const target = coreReference(pathname, build) + return Boolean(target?.port.publishesOwnTree) && target?.version !== undefined && target.version !== build.version +} + +/** + * The links of `hrefs` that the build serves and that have no payload, and the ones it does not serve, which are not asked. + * A payload is at the path of the page with `.preview.json`, as the preview policy computes it. + */ +export async function payloadGaps(request, origin, hrefs, served) { + const missing = [] + const skipped = [] + for (const href of hrefs) { + if (served && !served(href)) { skipped.push(href); continue } + const response = await request.get(`${origin}${href.slice(0, -1)}.preview.json`) + if (!response.ok()) missing.push(`${href} answers ${response.status()}`) + } + return { missing, skipped } +} + +/** + * A link marked for a preview card has a card to show. A C function a method links to carried `data-link-preview` and + * opened nothing, because no preview payload was served at its address. Hovering the link is what asks for the card, + * so hover it and read the card, then ask the same of every marked link on the pages whose destination the build + * serves (`served`, from `servedByBuild`; without it every destination is asked), and of one that has no payload. + */ +export async function checkTmuxReferencePreviews(browser, base, { served: build } = {}) { + const context = await browser.newContext({ reducedMotion: 'reduce', viewport: { width: 1440, height: 1000 } }) + const page = await context.newPage() + page.setDefaultTimeout(process.env.CI ? 20000 : 10000) + const opened = () => page.evaluate(() => document.getElementById('reference-link-preview')?.matches(':popover-open') ?? false) + const origin = new URL(base).origin + const served = build ? (href) => servedByBuild(href, build) : undefined + try { + await page.goto(`${base}/cxx/latest/reference/libtmux-server-panes/`, { waitUntil: 'load' }) + await page.waitForFunction(() => document.documentElement.dataset.pageReadiness === 'ready') + const link = page.locator('p.gp-sphinx-api-mentions .tmux-send a[data-link-preview]').first() + assert.equal(await link.count(), 1, 'The method page has no C function link marked for a preview') + assert.equal(await link.textContent(), 'cmd_list_panes_server') + await link.hover() + // The first request for a declaration's card compiles its route in the dev server. + await page.waitForFunction(() => document.getElementById('reference-link-preview')?.matches(':popover-open'), null, { timeout: 60000 }) + assert.equal(await page.locator('#reference-link-preview [data-preview-title]').textContent(), 'cmd_list_panes_server') + assert.match(await page.locator('#reference-link-preview [data-preview-signature]').textContent(), /^static void cmd_list_panes_server\(struct cmd \*, struct cmdq_item \*\)$/) + assert.match(await page.locator('#reference-link-preview [data-preview-open]').getAttribute('href'), /\/tmux\/latest\/reference\/c-function-cmd-list-panes-c-cmd_list_panes_server\/$/) + // Every link a page marks for a card, whose destination the build serves, has a payload at the address the card asks for. + const missing = [] + const skipped = new Set() + const questioned = new Set() + let asked = 0 + for (const path of ['/cxx/latest/reference/libtmux-server-panes/', '/tmux/latest/manual/list-panes/', '/tmux/latest/reference/c-function-cmd-list-panes-c-cmd_list_panes_server/', '/tmux/latest/reference/c-struct-window_pane/']) { + await page.goto(`${base}${path}`, { waitUntil: 'load' }) + await page.waitForFunction(() => document.documentElement.dataset.pageReadiness === 'ready') + const hrefs = await page.evaluate(() => [...new Set([...document.querySelectorAll('a[data-link-preview]')].map((anchor) => new URL(anchor.href).pathname))]) + const gaps = await payloadGaps(page.request, origin, hrefs, served) + asked += hrefs.length - gaps.skipped.length + for (const href of gaps.skipped) skipped.add(href) + for (const href of hrefs) if (!gaps.skipped.includes(href)) questioned.add(href) + missing.push(...gaps.missing.map((gap) => `${path}: ${gap}`)) + } + assert(asked > 3, `Only ${asked} links were asked for a payload, so the pages were not measured`) + assert.deepEqual(missing, [], `A link marked for a card that has none:\n${missing.join('\n')}`) + // What was left out is bounded by what the site says: only reference trees that a port's publisher owns, at versions this build does not serve. + if (build) { + assert.deepEqual([...skipped].filter((href) => !ownTreeElsewhere(href, build)), [], 'A destination was left out of the payload check that is not another version of a port tree') + assert.deepEqual([...questioned].filter((href) => ownTreeElsewhere(href, build)), [], 'A destination in another version of a port tree was asked for a payload') + } + // The controls. A payload missing on a destination the build serves is reported, and a destination it does not serve is + // left out and not reported, so the sweep cannot go green by skipping what it should have asked. + if (served) { + const kept = `${build.root}/${build.ports[0].slug}/${build.version}/${build.segment}/no-such-declaration/` + const elsewhere = build.version === 'stable' ? 'latest' : 'stable' + const away = `${build.root}/${build.ports.find((port) => port.versionedDocs).slug}/${elsewhere}/${build.segment}/no-such-declaration/` + const control = await payloadGaps(page.request, origin, [kept, away], served) + assert.deepEqual(control.missing, [`${kept} answers 404`], 'A payload missing on a served port was not reported') + assert.deepEqual(control.skipped, [away], 'A destination the build does not serve was asked for a payload') + } + // A link marked for a card whose payload does not exist opens nothing. + await page.goto(`${base}/tmux/latest/manual/list-panes/`, { waitUntil: 'load' }) + await page.waitForFunction(() => document.documentElement.dataset.pageReadiness === 'ready') + await page.evaluate(() => { + const anchor = document.createElement('a') + anchor.id = 'no-card' + anchor.href = '/en/tmux/latest/reference/c-function-no-such-declaration/' + anchor.textContent = 'no_such_declaration' + document.querySelector('main').prepend(anchor) + }) + const absent = await page.request.get(`${origin}/en/tmux/latest/reference/c-function-no-such-declaration.preview.json`) + assert.equal(absent.status(), 404, 'The control address answered, so the sweep cannot show a missing payload') + // The pointer arrives as the browser delivers it, to the link itself, so a sticky header over the top of the page cannot take it. + await page.evaluate(() => document.getElementById('no-card').dispatchEvent(new PointerEvent('pointerover', { pointerType: 'mouse', bubbles: true }))) + await page.waitForTimeout(700) + assert.equal(await opened(), false, 'A link with no payload opened a card') + console.log(`Tmux reference previews: the C function link of a method page opens its card with its signature; ${asked} marked links on four pages each have a payload (${skipped.size} to trees this build does not serve were not asked); a payload missing on a served port is reported, and a link with none opens nothing PASS`) + } finally { await context.close() } +} diff --git a/site/src/components/PagePortSwitcher.astro b/site/src/components/PagePortSwitcher.astro index c67e6c9f1..8a1bdc597 100644 --- a/site/src/components/PagePortSwitcher.astro +++ b/site/src/components/PagePortSwitcher.astro @@ -1,6 +1,7 @@ --- import type { PagePortLink } from '../lib/page-port-links' import { PORT_BY_SLUG } from '../lib/ports' +import { portFamilies } from '../lib/port-families' import { branding } from '../lib/branding' import { withRoot, withPortRoot } from '../lib/site-root' import TmuxLogo from './tmux/Logo.astro' @@ -20,14 +21,7 @@ const { entries, portSlug, label, tmux = false, homeLanguageIcons = false, reser const current = entries.find((entry) => entry.port === portSlug) const name = tmux ? 'tmux CLI' : current?.name ?? PORT_BY_SLUG[portSlug ?? '']?.name ?? 'In other ports' const shortName = tmux ? 'tmux' : PORT_BY_SLUG[portSlug ?? '']?.shortName ?? name -const families = [ - { label: 'Scripting & web', ports: ['py', 'ruby', 'lua', 'julia', 'elixir', 'ts'] }, - { label: 'Compiled & native', ports: ['rs', 'go', 'cxx', 'swift'] }, - { label: 'JVM', ports: ['java', 'kotlin', 'scala'] }, - { label: '.NET', ports: ['csharp', 'fsharp', 'powershell'] }, -] -const known = new Set(families.flatMap((family) => family.ports)) -families.push({ label: 'Other languages', ports: entries.filter((entry) => !known.has(entry.port)).map((entry) => entry.port) }) +const families = portFamilies(entries.map((entry) => entry.port)) ---
diff --git a/site/src/components/api/ApiEntry.astro b/site/src/components/api/ApiEntry.astro index 9f9c4acf1..6e2049df3 100644 --- a/site/src/components/api/ApiEntry.astro +++ b/site/src/components/api/ApiEntry.astro @@ -15,6 +15,7 @@ import ApiType from './ApiType.astro' import { asideFor } from '../../lib/aside' import { apiCommandFacts, apiCommandRelatedLinks, apiEntryFields, apiMethodDetails, anonymousDeclarationLabel, nativeSignatureText as unformattedNativeSignatureText, parameterBindingText, usesNativeSignatures } from '../../lib/api-sections' import { tmuxCommandsFor, tmuxManualUrl } from '../../lib/tmux-manual-data' +import { tmuxCommandItems, tmuxCommandRows, tmuxCommandSeparator, tmuxSymbolSends } from '../../lib/tmux-reference' import { CATALOG_KINDS, tmuxCatalogKindsForSymbol, tmuxCatalogUrl } from '../../lib/tmux-catalog' import ApiFieldOverloads from './ApiFieldOverloads.astro' import ApiCommandParameters from './ApiCommandParameters.astro' @@ -180,7 +181,11 @@ const references = symbol.doc?.references ?? [] * "explained in a concept" and "used in an example" are different offers. */ const mentions = port ? mentionsOf(port, symbol.id) : [] +// A command the symbol sends comes with its scope and C function; one it only has an equivalent for is a plain link. const tmuxCommands = manualLinks ?? (port ? tmuxCommandsFor(port, anchor).map((command) => ({ ...command, href: tmuxManualUrl('latest', command.name) })) : []) +const commandRows = tmuxCommandRows(port && !manualLinks ? tmuxSymbolSends(port, anchor) : [], tmuxCommands) +const commandItems = tmuxCommandItems(commandRows) +const commandSeparator = tmuxCommandSeparator(commandItems) // Members that wrap options or hooks lead to the catalog of what they take. const catalogEntries = catalogLinks ?? (port && !manualLinks ? tmuxCatalogKindsForSymbol(port, symbol).map((kind) => ({ name: CATALOG_KINDS[kind].label, href: tmuxCatalogUrl('latest', kind) })) : []) const mentionSections = [...new Set(mentions.map((m) => m.section ?? 'docs'))].sort() @@ -275,7 +280,7 @@ const hasBody = Boolean(symbol.command) || methods.length > 0 || hasFields || - tmuxCommands.length > 0 || + commandRows.length > 0 || catalogEntries.length > 0 || elsewhere.length > 0 --- @@ -672,12 +677,12 @@ const hasBody = ) } - {tmuxCommands.length > 0 &&

+ {commandItems.length > 0 &&

tmux command - {tmuxCommands.map((command, i) => <> - {i > 0 && ', '} - {command.name} - )} + {/* No whitespace between an item and the separator that follows it, so a comma or semicolon never trails a space; a condition is in parentheses, as it is in the Markdown. */} + {commandItems.map((item, i) => <>{i > 0 ? commandSeparator : ' '}{item.command}{item.scope + ? {item.scope.flag || item.scope.target ? <>{' '}-{item.scope.flag || item.scope.target} : null}{item.function ? <>{', '}{item.function.name} : <>{' '}{item.scope.label}}{item.when && <>{' ('}{item.when}{')'}} + : item.when && <>{' ('}{item.when}{')'}})}

} {catalogEntries.length > 0 &&

tmux catalog diff --git a/site/src/components/api/ApiPageContents.astro b/site/src/components/api/ApiPageContents.astro index 7d1508b8f..4d09d4884 100644 --- a/site/src/components/api/ApiPageContents.astro +++ b/site/src/components/api/ApiPageContents.astro @@ -1,10 +1,11 @@ --- import type { ApiSection } from '../../lib/api-sections' import ApiBadge from './ApiBadge.astro' +import SymbolName from './SymbolName.astro' interface Props { sections: ApiSection[] - related: { name: string; identity: string; kind: string; href: string }[] + related: { name: string; qualified?: boolean; identity: string; kind: string; href: string }[] } const { sections, related } = Astro.props as Props --- @@ -22,7 +23,7 @@ const { sections, related } = Astro.props as Props

Related APIs

} diff --git a/site/src/components/api/ApiReference.astro b/site/src/components/api/ApiReference.astro index 7ed2c1548..9f7f3f3ef 100644 --- a/site/src/components/api/ApiReference.astro +++ b/site/src/components/api/ApiReference.astro @@ -12,7 +12,7 @@ import { apiGlossary, apiGlossaryHeadings, API_GLOSSARY_TITLE, apiGlossaryHref } import ApiQualifiedName from '../../components/api/ApiQualifiedName.astro' import ApiType from '../../components/api/ApiType.astro' import ApiPageContents from '../../components/api/ApiPageContents.astro' -import { apiEntryFields, apiEntrySections, apiMemberGroups, hasScalarMembers, relatedApiTypes, type ApiSection } from '../../lib/api-sections' +import { apiEntryFields, apiEntrySections, apiMemberGroups, hasScalarMembers, relatedTypeLinks, type ApiSection } from '../../lib/api-sections' import PageToolbar from '../../components/PageToolbar.astro' import PagePortSwitcher from '../../components/PagePortSwitcher.astro' import DocumentationContext from '../../components/docs/DocumentationContext.astro' @@ -37,6 +37,8 @@ import SymbolName from '../../components/api/SymbolName.astro' import '../../styles/api.css' import '../../styles/vendor/gp-sphinx-api.css' import { tmuxManualUrl } from '../../lib/tmux-manual-data' +import type { ResolvedUsage } from '../../lib/tmux-reference' +import TmuxUsage from '../tmux/TmuxUsage.astro' /** Source projects supply identity and navigation to the same API renderer. */ export interface SourceReferenceContext { @@ -53,6 +55,7 @@ export interface SourceReferenceContext { index: SymbolIndex pagePorts: PagePortLink[] manualLinks?: { name: string; href: string }[] + usage?: ResolvedUsage[] catalogLinks?: { name: string; href: string }[] paths?: ApiRelationshipPath[] } @@ -362,11 +365,11 @@ const paths = (source?.paths ?? []).filter((path) => !owner || path.symbols.some if (relationshipSections.some((section) => ['api-calls', 'api-called-by'].includes(section.id))) pageSections.push({ id: 'api-call-network', label: 'Call neighborhood' }) if (paths.length) pageSections.push({ id: 'api-source-paths', label: 'Paths through the source', count: paths.length }) pageSections.push(...relationshipSections.map((section) => ({ id: section.id, label: section.label, count: section.items.length }))) -const related = owner ? relatedApiTypes(owner, members, index, declaringType, { includeInternal: Boolean(source) }).map((symbol) => ({ - name: ownerNames.get(symbol.name)! > 1 ? `${symbol.name} (${moduleOf(symbol)})` : symbol.name, - identity: qualifiedNameOf(symbol), kind: symbol.kind, href: hrefFor(symbol), symbol, -})) : [] +const related = owner && model ? relatedTypeLinks(model, owner, members, index, hrefFor, { language, repeated: ownerNames, includeInternal: Boolean(source) }) : [] if (related.length) pageSections.push({ id: 'api-related-types', label: 'Related types', count: related.length }) +// The methods that send the command are what a reader of the C needs last, after the code around it. +const usage = source?.usage ?? [] +if (owner && usage.length) pageSections.push({ id: 'api-tmux-usage', label: 'In libtmux' }) const title = glossary ? API_GLOSSARY_TITLE : owner ? qualifiedNameOf(owner) : model @@ -833,12 +836,19 @@ const bases = owner && 'extends' in owner ? owner.extends ?? [] : [] {related.map((item) => )} } + {usage.length > 0 &&
+

In libtmux#

+ {usage.map((entry) => <> +

These methods send {entry.command}.

+ + )} +
} ) } diff --git a/site/src/components/tmux/TmuxUsage.astro b/site/src/components/tmux/TmuxUsage.astro new file mode 100644 index 000000000..343c94ff4 --- /dev/null +++ b/site/src/components/tmux/TmuxUsage.astro @@ -0,0 +1,99 @@ +--- +/** + * The library methods that send one tmux command, by scope and language. + * + * Scopes are columns because tmux scopes one command by flag: `list-panes -a` + * lists the server, `-s` a session, and a target the window. Each column + * names the C function that lists at that scope, so a reader can go from a + * method to the code it ends in and back. A language with no method that + * sends the command at a scope leaves the cell empty. + */ +import ApiBadge from '../api/ApiBadge.astro' +import SymbolName from '../api/SymbolName.astro' +import { PORTS } from '../../lib/ports' +import type { ResolvedUsage } from '../../lib/tmux-reference' + +interface Props { + usage: ResolvedUsage +} +const { usage } = Astro.props +const flagOf = (scope: { flag: string; target?: string }) => scope.flag || scope.target ? `-${scope.flag || scope.target}` : '' +const present = new Set(usage.groups.flatMap((group) => group.ports.map((entry) => entry.port))) +const rows = PORTS.filter((port) => present.has(port.slug)).map((port) => ({ + slug: port.slug, name: port.name, + cells: usage.groups.map((group) => group.ports.find((entry) => entry.port === port.slug)?.links ?? []), +})) +// A page for one scope can leave out languages that send the command at another. +const single = usage.groups.length === 1 && usage.groups[0].scope !== undefined +const absent = PORTS.filter((port) => !present.has(port.slug)).map((port) => port.name) +const headingOf = (group: (typeof usage.groups)[number]) => group.scope ? group.scope.label : 'Methods' +--- +
+ + + + + + {usage.groups.map((group) => )} + + + + {rows.map((row) => + + {row.cells.map((links, index) => )} + )} + +
Library methods that send tmux {usage.command}, by scope
Language + {headingOf(group)}{group.scope && flagOf(group.scope) && <>{' '}{flagOf(group.scope)}} + {group.function && {group.function.name}} +
{row.name} + {links.map((link) => + + + + + {link.when && {link.when}} + )} +
+ {absent.length > 0 &&

No method in {new Intl.ListFormat('en', { type: 'disjunction' }).format(absent)} sends this command{single ? ' at this scope' : ''} itself.

} +
+ diff --git a/site/src/content/_workspace-shared/workspace/cli/load.md b/site/src/content/_workspace-shared/workspace/cli/load.md index 19528fe54..d38a023c0 100644 --- a/site/src/content/_workspace-shared/workspace/cli/load.md +++ b/site/src/content/_workspace-shared/workspace/cli/load.md @@ -66,7 +66,7 @@ settings](../../configuration/environment/) for environment bindings and | `-d` | flag; False | load the session without attaching it | | `-a`, `--append` | flag; False | load workspace, appending windows to the current session | | `-2` | flag; None | force tmux to assume the terminal supports 256 colours. | -| `-8` | flag; None | legacy 88-colour flag; unsupported by tmux 3.2a+ | +| `-8` | flag; None | legacy 88-colour flag; unsupported since tmux 3.2a | | `--log-file` | value; None | file to log errors/output to | | `--progress-format` | value; None | Spinner line format: preset name (default, minimal, window, pane, verbose) or a format string with tokens {session}, {window}, {progress}, {window_progress}, {pane_progress}, etc. Env: TMUXP_PROGRESS_FORMAT | | `--progress-lines` | value; None | Number of script-output lines shown in the spinner panel (default: 3). 0 hides the panel entirely (script output goes to stdout). -1 shows unlimited lines (capped to terminal height). Env: TMUXP_PROGRESS_LINES | diff --git a/site/src/content/_workspace-shared/workspace/guides/installation.md b/site/src/content/_workspace-shared/workspace/guides/installation.md index f5eb92b4a..2d0c0017c 100644 --- a/site/src/content/_workspace-shared/workspace/guides/installation.md +++ b/site/src/content/_workspace-shared/workspace/guides/installation.md @@ -10,9 +10,9 @@ title: Install and load a workspace --- -The runnable terminal loader is the separate Python application tmuxp. Its -documented prerequisites are Python 3.10 or newer and tmux 3.2 or newer. Install -it in an isolated tool environment with uv: +The runnable terminal loader is the separate Python application tmuxp. It +needs Python 3.10 or newer and, through its libtmux dependency, tmux 3.2a or +newer. Install it in an isolated tool environment with uv: ```console $ uv tool install tmuxp ``` @@ -69,13 +69,7 @@ $ tmux -L workspace-guide kill-session -t '=workspace-guide' Build the documented `tmux-workspace` revision, then load a small session on a -private socket. - -Use a Unix shell with tmux 3.3a or newer on `PATH`. - - -Use a Unix shell with tmux 3.2a or newer on `PATH`. - +private socket. Use a Unix shell with tmux 3.3a or newer on `PATH`. ## Build the command diff --git a/site/src/content/docs/concepts/queries.md b/site/src/content/docs/concepts/queries.md index 27dd44dad..b4a2aa2fb 100644 --- a/site/src/content/docs/concepts/queries.md +++ b/site/src/content/docs/concepts/queries.md @@ -18,7 +18,7 @@ rows; an empty listing is a successful command. ## Match names and choose fields -Save this complete script as `queries.sh`. It requires tmux 3.2a or newer and +Save this complete script as `queries.sh`. It requires tmux 3.3a or newer and a POSIX shell. It creates a private server, runs the queries, and stops that server on exit. diff --git a/site/src/content/docs/concepts/server-session-window-pane.md b/site/src/content/docs/concepts/server-session-window-pane.md index 4644cf13b..0ea4f550e 100644 --- a/site/src/content/docs/concepts/server-session-window-pane.md +++ b/site/src/content/docs/concepts/server-session-window-pane.md @@ -47,7 +47,7 @@ one server lifetime: another server using the same socket path can reuse IDs. The [target syntax](/tmux/latest/manual/full/#COMMANDS) describes how commands resolve IDs, names, and indexes. -Save this complete script as `hierarchy.sh`. It requires tmux 3.2a or newer +Save this complete script as `hierarchy.sh`. It requires tmux 3.3a or newer and a POSIX shell. It renames a session and a window, checks their IDs, and links the window into another session on its private server. diff --git a/site/src/content/docs/concepts/transports.md b/site/src/content/docs/concepts/transports.md index 8872412e9..89844052f 100644 --- a/site/src/content/docs/concepts/transports.md +++ b/site/src/content/docs/concepts/transports.md @@ -22,7 +22,7 @@ reports replies and events on standard output. ## Group commands and open control mode -Save this complete script as `transports.sh`. It requires tmux 3.2a or newer +Save this complete script as `transports.sh`. It requires tmux 3.3a or newer and a POSIX shell. It creates a private server with a command group, sends commands through a control client, and cleans up the server. diff --git a/site/src/content/docs/concepts/workspaces.md b/site/src/content/docs/concepts/workspaces.md index b08d0ecf3..976c69582 100644 --- a/site/src/content/docs/concepts/workspaces.md +++ b/site/src/content/docs/concepts/workspaces.md @@ -19,7 +19,7 @@ programs running. ## Build a pane layout -Save this complete script as `layout.sh`. It requires tmux 3.2a or newer and +Save this complete script as `layout.sh`. It requires tmux 3.3a or newer and a POSIX shell. It creates a three-pane editor window and a one-pane logs window on a private server, then stops that server on exit. diff --git a/site/src/content/docs/examples/attach-and-send-keys.md b/site/src/content/docs/examples/attach-and-send-keys.md index 033af8148..83e55ea09 100644 --- a/site/src/content/docs/examples/attach-and-send-keys.md +++ b/site/src/content/docs/examples/attach-and-send-keys.md @@ -13,7 +13,7 @@ A script can drive a shell it never shows. It starts a detached session, types into the pane with `send-keys`, and reads the screen back with `capture-pane`. The steps below add one command each. Every block is a range of lines from the finished `send-command.sh`, so each step shows code that runs. [The complete -script](#the-complete-script) follows the last step. It needs tmux 3.2a or +script](#the-complete-script) follows the last step. It needs tmux 3.3a or newer and a POSIX shell. ## 1. Choose a private socket diff --git a/site/src/content/docs/examples/capture-pane-output.md b/site/src/content/docs/examples/capture-pane-output.md index f129593bb..a56c0d0c3 100644 --- a/site/src/content/docs/examples/capture-pane-output.md +++ b/site/src/content/docs/examples/capture-pane-output.md @@ -14,7 +14,7 @@ its result are separate operations: the pane's shell may still be processing input when the first capture runs. The steps below build `capture.sh` around that gap. It sends a command, captures the screen until one complete line appears, and removes its server. [The complete script](#the-complete-script) -follows the last step. It requires tmux 3.2 or newer and `sleep` with +follows the last step. It requires tmux 3.3a or newer and `sleep` with fractional seconds. ## 1. Choose a private socket diff --git a/site/src/content/docs/examples/workspace-from-file.md b/site/src/content/docs/examples/workspace-from-file.md index a6ed71bd7..7223535f1 100644 --- a/site/src/content/docs/examples/workspace-from-file.md +++ b/site/src/content/docs/examples/workspace-from-file.md @@ -12,7 +12,7 @@ tableOfContents: true A tmux command file can create a session, arrange its windows, and split its panes. This example builds two windows with three panes, prints their names and pane counts, then removes its private server. The first four steps write -the command file, and the last four load and inspect it. It requires tmux 3.2 +the command file, and the last four load and inspect it. It requires tmux 3.3a or newer and a POSIX shell. ## 1. Create a detached session diff --git a/site/src/content/docs/guides/attaching-to-tmux.md b/site/src/content/docs/guides/attaching-to-tmux.md index 3af1aac06..b3732e87b 100644 --- a/site/src/content/docs/guides/attaching-to-tmux.md +++ b/site/src/content/docs/guides/attaching-to-tmux.md @@ -69,7 +69,7 @@ its name. Each command stays in the calling shell; no terminal is attached. It stops its own server on success or failure. Save it as `connect.sh` and run `sh connect.sh`, or paste the whole block into -a POSIX shell. It requires tmux 3.2a or newer. +a POSIX shell. It requires tmux 3.3a or newer. ```sh title="connect.sh" ( diff --git a/site/src/content/docs/guides/capturing-output.md b/site/src/content/docs/guides/capturing-output.md index a2718162c..cb101df0f 100644 --- a/site/src/content/docs/guides/capturing-output.md +++ b/site/src/content/docs/guides/capturing-output.md @@ -19,7 +19,7 @@ This example forces output into scrollback: it prints 40 numbered lines in a pane with 10 rows. A normal capture shows the last screenful. Adding `-S -` also retrieves earlier lines, including `row-1`. -Save the script as `history.sh`. It needs tmux 3.2a or newer, a POSIX shell and +Save the script as `history.sh`. It needs tmux 3.3a or newer, a POSIX shell and fractional `sleep` support. ```sh title="history.sh" diff --git a/site/src/content/docs/guides/getting-started.md b/site/src/content/docs/guides/getting-started.md index 0b74a5115..58c41f170 100644 --- a/site/src/content/docs/guides/getting-started.md +++ b/site/src/content/docs/guides/getting-started.md @@ -15,7 +15,7 @@ same tmux objects that the language libraries control. ## Install tmux Install tmux with your platform's package manager. These examples require tmux -3.2a or newer and a POSIX shell. Confirm the installed version: +3.3a or newer and a POSIX shell. Confirm the installed version: ```console $ tmux -V diff --git a/site/src/content/docs/guides/index.md b/site/src/content/docs/guides/index.md index f9b4351f4..b0c677a71 100644 --- a/site/src/content/docs/guides/index.md +++ b/site/src/content/docs/guides/index.md @@ -33,6 +33,9 @@ cards: - label: Testing href: testing-with-libtmux/ body: Use isolated tmux servers and manage test cleanup. + - label: tmux support + href: tmux-support/ + body: Find the tmux release every port requires and how an older daemon is refused. --- Use these guides to run tmux tasks from a terminal or a shell script. Start diff --git a/site/src/content/docs/guides/querying-and-filtering.md b/site/src/content/docs/guides/querying-and-filtering.md index b1fa6c319..2498a5dec 100644 --- a/site/src/content/docs/guides/querying-and-filtering.md +++ b/site/src/content/docs/guides/querying-and-filtering.md @@ -21,7 +21,7 @@ Prefix a session target with `=` to require an exact name. `has-session` reports whether it exists; it does not return a pane. This script selects panes in `work` and rejects both zero matches and multiple matches before using an ID. -Save the complete script as `query.sh`. It requires tmux 3.2a or newer and a +Save the complete script as `query.sh`. It requires tmux 3.3a or newer and a POSIX shell. It creates and cleans up its own server. ```sh title="query.sh" diff --git a/site/src/content/docs/guides/sending-keys.md b/site/src/content/docs/guides/sending-keys.md index 4e1c7704d..0b98c6bbf 100644 --- a/site/src/content/docs/guides/sending-keys.md +++ b/site/src/content/docs/guides/sending-keys.md @@ -17,7 +17,7 @@ separate operations. This complete script types the word `Enter` into a pane running `cat`, then presses the Enter key. Neither command starts an interactive tmux client. -Save it as `send.sh` and run it in a POSIX shell with tmux 3.2a or newer and +Save it as `send.sh` and run it in a POSIX shell with tmux 3.3a or newer and fractional `sleep` support. ```sh title="send.sh" diff --git a/site/src/content/docs/guides/testing-with-libtmux.md b/site/src/content/docs/guides/testing-with-libtmux.md index c281d43d9..1b3b03684 100644 --- a/site/src/content/docs/guides/testing-with-libtmux.md +++ b/site/src/content/docs/guides/testing-with-libtmux.md @@ -16,7 +16,7 @@ a test run separate from your interactive sessions. ## Run an isolated test This complete shell test creates a session and a window, checks their names, -and prints `tmux fixture passed` on success. It requires tmux 3.2a or newer and +and prints `tmux fixture passed` on success. It requires tmux 3.3a or newer and a POSIX shell. Save it as `test-tmux.sh`. ```sh title="test-tmux.sh" diff --git a/site/src/content/docs/guides/tmux-support.md b/site/src/content/docs/guides/tmux-support.md new file mode 100644 index 000000000..3bab2ad72 --- /dev/null +++ b/site/src/content/docs/guides/tmux-support.md @@ -0,0 +1,63 @@ +--- +supportedPorts: [] +title: tmux support +description: The tmux release every libtmux port requires and how a library refuses an older daemon. +sidebar: + label: tmux support + group: Guides + order: 8 +tableOfContents: true +--- + +No libtmux port requires a tmux newer than 3.3a. The ports, the MCP servers +and the workspace builders support tmux 3.3a and newer, except Python and +Elixir, which state an earlier floor. A port that enforces its minimum +refuses an older daemon before the requested operation has any effect. + +## Minimum by port + +- Python (`libtmux`) and `libtmux-mcp`: tmux 3.2a. +- tmuxp: tmux 3.2a, the floor of the `libtmux` release it depends on. Its own + README and quickstart say 3.2. +- Elixir: tmux 3.3. +- Every other port, with its MCP server and workspace builder: tmux 3.3a. + +## The core minimum + +The minimum for ordinary reads, writes, batches, raw commands, workspace +loading and MCP tools is the port's own, tmux 3.3a for most ports. Releases +compare in full, including patch letters, so 3.3 is below a 3.3a minimum and +3.3a is the first supported release. A development build such as `next-3.9` +ranks below the release it precedes, and a release candidate ranks below its +release. A version the library cannot read is refused, not assumed to be new +enough. + +Libraries judge the daemon that answers on the selected socket, not the `tmux` +executable that sends the command. The two can differ, for example when a +newer client binary talks to a server started by an older one. The rules are: + +- An existing server is checked by the version it reports. A newer client + binary does not authorize an older daemon. +- With no server on the socket, the library validates the executable that + would start one. +- A server that restarts on the same socket is checked again before ordinary + operations use it. +- Typed methods, raw commands, command batches, workspace loading and MCP + tools all pass the same check. A lenient listing call reports the refusal + instead of returning an empty list. +- The refusal raises the port's version error and happens before the command + runs, so a refused call leaves no session, window, option or buffer behind. + +The Python library does not refuse an older tmux by itself. Its +`has_minimum_version` helper compares the version that the `tmux` executable +reports with 3.2a, and no library operation calls it. The Elixir port declares +its floor and tests it, and has no runtime refusal. + +Running `tmux -V` or `tmux -h` on an older executable still works; see the +[command reference](/tmux/latest/manual/full/#COMMANDS). Their output does not +authorize later operations. + +The check assumes tmux's built-in commands keep their meaning. A +[`command-alias`](/tmux/latest/manual/full/#OPTIONS) that redefines a built-in command the library uses to +identify or guard the daemon is outside this guarantee, as are the contents +of user-written aliases and shell programs a library only forwards. diff --git a/site/src/content/docs/ports/csharp/workspace/reference/compatibility.md b/site/src/content/docs/ports/csharp/workspace/reference/compatibility.md index 39993b7aa..f15329f99 100644 --- a/site/src/content/docs/ports/csharp/workspace/reference/compatibility.md +++ b/site/src/content/docs/ports/csharp/workspace/reference/compatibility.md @@ -13,7 +13,7 @@ tableOfContents: true `tmux-workspace` is the .NET command for loading and capturing tmux workspaces. The [installation guide](../../guides/installation/) builds the documented source revision and runs a session on a private socket. The -walkthroughs require tmux 3.3a or newer. +walkthroughs require tmux 3.3a or newer. A daemon older than 3.3a is refused before any effect; see [tmux support](../../../../../tmux/guides/tmux-support/). ## Runtime and execution diff --git a/site/src/content/docs/ports/cxx/workspace/reference/compatibility.md b/site/src/content/docs/ports/cxx/workspace/reference/compatibility.md index 8772061c9..07be32990 100644 --- a/site/src/content/docs/ports/cxx/workspace/reference/compatibility.md +++ b/site/src/content/docs/ports/cxx/workspace/reference/compatibility.md @@ -13,7 +13,7 @@ tableOfContents: true `tmux-workspace` is the C++ command for loading and capturing tmux workspaces. The [installation guide](../../guides/installation/) builds the documented source revision and runs a session on a private socket. The -walkthroughs require tmux 3.3a or newer. +walkthroughs require tmux 3.3a or newer. A daemon older than 3.3a is refused before any effect; see [tmux support](../../../../../tmux/guides/tmux-support/). ## Runtime and execution diff --git a/site/src/content/docs/ports/go/mcp/index.md b/site/src/content/docs/ports/go/mcp/index.md index b4669ed1b..cfd2ce0bf 100644 --- a/site/src/content/docs/ports/go/mcp/index.md +++ b/site/src/content/docs/ports/go/mcp/index.md @@ -26,7 +26,7 @@ is a separate Go module that exposes tmux through MCP. Its executable is `libtmux-mcp`. Installing the core tmux module does not install this server or its protocol dependencies. -The server requires Go 1.26 or newer to build and tmux 3.3a or newer to run. +The server requires Go 1.26 or newer to build and tmux 3.3a or newer to run. A daemon older than 3.3a is refused before any effect; see [tmux support](../../../tmux/guides/tmux-support/). The MCP client launches `libtmux-mcp` and exchanges messages over stdin and stdout. The server selects one tmux endpoint and its offered tools at startup. Reconnect after changing that configuration. diff --git a/site/src/content/docs/ports/go/workspace/reference/compatibility.md b/site/src/content/docs/ports/go/workspace/reference/compatibility.md index 3375bb96b..8a1cda596 100644 --- a/site/src/content/docs/ports/go/workspace/reference/compatibility.md +++ b/site/src/content/docs/ports/go/workspace/reference/compatibility.md @@ -13,7 +13,7 @@ tableOfContents: true `tmux-workspace` is the Go command for loading and capturing tmux workspaces. The [installation guide](../../guides/installation/) builds the documented source revision and runs a session on a private socket. The -walkthroughs require tmux 3.3a or newer. +walkthroughs require tmux 3.3a or newer. A daemon older than 3.3a is refused before any effect; see [tmux support](../../../../../tmux/guides/tmux-support/). ## Runtime and execution diff --git a/site/src/content/docs/ports/java/guides/attaching-to-tmux.md b/site/src/content/docs/ports/java/guides/attaching-to-tmux.md index eaf698352..3f52fa373 100644 --- a/site/src/content/docs/ports/java/guides/attaching-to-tmux.md +++ b/site/src/content/docs/ports/java/guides/attaching-to-tmux.md @@ -56,7 +56,7 @@ public final class Connect { ## Setup and run -Use an empty directory on Linux with Git and tmux 3.2a or newer installed. +Use an empty directory on Linux with Git and tmux 3.3a or newer installed. This example was checked with JDK 25.0.3, library bytecode target Java 21. diff --git a/site/src/content/docs/ports/java/mcp/examples.md b/site/src/content/docs/ports/java/mcp/examples.md index 8fd619e9f..c69fd5ce9 100644 --- a/site/src/content/docs/ports/java/mcp/examples.md +++ b/site/src/content/docs/ports/java/mcp/examples.md @@ -19,7 +19,7 @@ For a client configured to launch the server itself, use the ## Create the project -Use JDK 25, Git, tmux 3.2a or newer, and a Unix host with `env -u`. Create an +Use JDK 25, Git, tmux 3.3a or newer, and a Unix host with `env -u`. Create an empty project and fetch the source revision used by this example: ```console diff --git a/site/src/content/docs/ports/java/mcp/guides.md b/site/src/content/docs/ports/java/mcp/guides.md index 53d9708ec..2b6ecb55d 100644 --- a/site/src/content/docs/ports/java/mcp/guides.md +++ b/site/src/content/docs/ports/java/mcp/guides.md @@ -15,7 +15,7 @@ private server when the MCP process exits. ## Build the launcher -Use JDK 25, Git, and tmux 3.2a or newer on a Unix host. Create an empty directory: +Use JDK 25, Git, and tmux 3.3a or newer on a Unix host. Create an empty directory: ```console $ mkdir java-mcp-client && cd java-mcp-client diff --git a/site/src/content/docs/ports/java/workspace/reference/compatibility.md b/site/src/content/docs/ports/java/workspace/reference/compatibility.md index cb3958bb7..6dea7e6a2 100644 --- a/site/src/content/docs/ports/java/workspace/reference/compatibility.md +++ b/site/src/content/docs/ports/java/workspace/reference/compatibility.md @@ -13,7 +13,7 @@ tableOfContents: true `tmux-workspace` is the Java command for loading and capturing tmux workspaces. The [installation guide](../../guides/installation/) builds the documented source revision and runs a session on a private socket. The -walkthroughs require tmux 3.2a or newer. +walkthroughs require tmux 3.3a or newer. A daemon older than 3.3a is refused before any effect; see [tmux support](../../../../../tmux/guides/tmux-support/). ## Runtime and execution diff --git a/site/src/content/docs/ports/kotlin/concepts/queries.md b/site/src/content/docs/ports/kotlin/concepts/queries.md index 12cdb13e1..f08f9de67 100644 --- a/site/src/content/docs/ports/kotlin/concepts/queries.md +++ b/site/src/content/docs/ports/kotlin/concepts/queries.md @@ -16,7 +16,7 @@ Filter captured objects in Kotlin, handle result counts explicitly, and match se ## Setup and run -Use an empty directory on Linux with Git, tmux 3.2a or newer, and JDK 25. Save the project files and launcher below, then save any complete program on this page. Each program has its own imports and entry point. +Use an empty directory on Linux with Git, tmux 3.3a or newer, and JDK 25. Save the project files and launcher below, then save any complete program on this page. Each program has its own imports and entry point. The pinned source checkout supplies the Gradle wrapper and the library dependency. diff --git a/site/src/content/docs/ports/kotlin/concepts/server-session-window-pane.md b/site/src/content/docs/ports/kotlin/concepts/server-session-window-pane.md index c310a42c9..bafdad26e 100644 --- a/site/src/content/docs/ports/kotlin/concepts/server-session-window-pane.md +++ b/site/src/content/docs/ports/kotlin/concepts/server-session-window-pane.md @@ -18,7 +18,7 @@ A session holds window placements; a window holds panes. A linked window can app ## Setup and run -Use an empty directory on Linux with Git, tmux 3.2a or newer, and JDK 25. Save the project files and launcher below, then save any complete program on this page. Each program has its own imports and entry point. +Use an empty directory on Linux with Git, tmux 3.3a or newer, and JDK 25. Save the project files and launcher below, then save any complete program on this page. Each program has its own imports and entry point. The pinned source checkout supplies the Gradle wrapper and the library dependency. diff --git a/site/src/content/docs/ports/kotlin/concepts/transports.md b/site/src/content/docs/ports/kotlin/concepts/transports.md index 665791ab0..8f3cef7a3 100644 --- a/site/src/content/docs/ports/kotlin/concepts/transports.md +++ b/site/src/content/docs/ports/kotlin/concepts/transports.md @@ -16,7 +16,7 @@ Choose command calls for bounded operations and a control connection when you ne ## Setup and run -Use an empty directory on Linux with Git, tmux 3.2a or newer, and JDK 25. Save the project files and launcher below, then save any complete program on this page. Each program has its own imports and entry point. +Use an empty directory on Linux with Git, tmux 3.3a or newer, and JDK 25. Save the project files and launcher below, then save any complete program on this page. Each program has its own imports and entry point. The pinned source checkout supplies the Gradle wrapper and the library dependency. diff --git a/site/src/content/docs/ports/kotlin/concepts/workspaces.md b/site/src/content/docs/ports/kotlin/concepts/workspaces.md index c272442b2..37697a1ed 100644 --- a/site/src/content/docs/ports/kotlin/concepts/workspaces.md +++ b/site/src/content/docs/ports/kotlin/concepts/workspaces.md @@ -14,7 +14,7 @@ Build a tmux layout from Kotlin by creating a window, splitting a pane and selec ## Setup and run -Use an empty directory on Linux with Git, tmux 3.2a or newer, and JDK 25. Save the project files and launcher below, then save any complete program on this page. Each program has its own imports and entry point. +Use an empty directory on Linux with Git, tmux 3.3a or newer, and JDK 25. Save the project files and launcher below, then save any complete program on this page. Each program has its own imports and entry point. The pinned source checkout supplies the Gradle wrapper and the library dependency. diff --git a/site/src/content/docs/ports/kotlin/guides/attaching-to-tmux.md b/site/src/content/docs/ports/kotlin/guides/attaching-to-tmux.md index a0dfc8686..2b1b0aa5f 100644 --- a/site/src/content/docs/ports/kotlin/guides/attaching-to-tmux.md +++ b/site/src/content/docs/ports/kotlin/guides/attaching-to-tmux.md @@ -52,7 +52,7 @@ fun main() = runBlocking { ## Setup and run -Use an empty directory on Linux with Git and tmux 3.2a or newer installed. +Use an empty directory on Linux with Git and tmux 3.3a or newer installed. This example was checked with JDK 25.0.3, Kotlin 2.4.10. diff --git a/site/src/content/docs/ports/py/concepts/queries.md b/site/src/content/docs/ports/py/concepts/queries.md index 27598bf25..b2c096437 100644 --- a/site/src/content/docs/ports/py/concepts/queries.md +++ b/site/src/content/docs/ports/py/concepts/queries.md @@ -56,8 +56,8 @@ to the server instead, so libtmux builds objects only for the matches: >>> server.search_sessions(filter='#{==:#{session_name},alpha-1}') ``` -Python-side lookups work with the library's supported tmux versions. The tmux -filter grammar requires tmux 3.2 or newer. An unknown format token expands to an +Python-side lookups work with the library's supported tmux versions, and the +tmux filter grammar is available on all of them. An unknown format token expands to an empty value, so a malformed filter can look like a valid filter with no matches. If `search_*()` unexpectedly returns no results, try `#{m:*,#{session_name}}` to check that the session data is available. diff --git a/site/src/content/docs/ports/py/mcp/index.md b/site/src/content/docs/ports/py/mcp/index.md index 7c724af94..cd7ec11c0 100644 --- a/site/src/content/docs/ports/py/mcp/index.md +++ b/site/src/content/docs/ports/py/mcp/index.md @@ -13,7 +13,7 @@ run commands, and wait for their results. The distribution and executable are `libtmux-mcp`; Python imports use `libtmux_mcp`. The server runs over standard input and output. It requires Python 3.10 or -newer and tmux 3.2a or newer. Its default toolsets are `inspect`, `manage`, +newer and tmux 3.2a or newer; see [tmux support](../../../tmux/guides/tmux-support/). Its default toolsets are `inspect`, `manage`, and `execute`; deletion tools require an explicit selection. ## Start here diff --git a/site/src/content/docs/ports/py/workspace/guides.md b/site/src/content/docs/ports/py/workspace/guides.md index 0eab3f88e..b705f5abd 100644 --- a/site/src/content/docs/ports/py/workspace/guides.md +++ b/site/src/content/docs/ports/py/workspace/guides.md @@ -9,7 +9,7 @@ sidebar: tableOfContents: true --- -Install tmuxp as a Python tool, with Python 3.10 or newer and tmux 3.2 or newer +Install tmuxp as a Python tool, with Python 3.10 or newer and tmux 3.2a or newer available on the host: ```console diff --git a/site/src/content/docs/ports/py/workspace/reference/compatibility.md b/site/src/content/docs/ports/py/workspace/reference/compatibility.md index fa6b4a74f..f193a557e 100644 --- a/site/src/content/docs/ports/py/workspace/reference/compatibility.md +++ b/site/src/content/docs/ports/py/workspace/reference/compatibility.md @@ -13,7 +13,7 @@ tableOfContents: true These pages document tmuxp 1.74.0 at the source revision linked below. Install tmuxp in its own Python environment and let its dependency resolver select a compatible libtmux release. The walkthroughs use Python 3.10 or newer and -tmux 3.2a or newer. +tmux 3.2a or newer; see [tmux support](../../../../../tmux/guides/tmux-support/). ## Configuration and extensions diff --git a/site/src/content/docs/ports/rs/mcp/index.md b/site/src/content/docs/ports/rs/mcp/index.md index d5e8a13fe..be7a05d69 100644 --- a/site/src/content/docs/ports/rs/mcp/index.md +++ b/site/src/content/docs/ports/rs/mcp/index.md @@ -12,7 +12,7 @@ sidebar: terminal capture, command execution, bounded waits, and a static capability resource. -Building requires Rust 1.88 or newer. Running requires tmux 3.3a or newer. +Building requires Rust 1.88 or newer. Running requires tmux 3.3a or newer. A daemon older than 3.3a is refused before any effect; see [tmux support](../../../tmux/guides/tmux-support/). Toolsets select inspection, management, execution, and teardown. Read `tmux://capabilities` for the effective startup selection. diff --git a/site/src/content/docs/ports/rs/workspace/reference/compatibility.md b/site/src/content/docs/ports/rs/workspace/reference/compatibility.md index c04c8b6d2..9370a113d 100644 --- a/site/src/content/docs/ports/rs/workspace/reference/compatibility.md +++ b/site/src/content/docs/ports/rs/workspace/reference/compatibility.md @@ -13,7 +13,7 @@ tableOfContents: true `tmux-workspace` is the Rust command for loading and capturing tmux workspaces. The [installation guide](../../guides/installation/) builds the documented source revision and runs a session on a private socket. The -walkthroughs require tmux 3.3a or newer. +walkthroughs require tmux 3.3a or newer. A daemon older than 3.3a is refused before any effect; see [tmux support](../../../../../tmux/guides/tmux-support/). ## Runtime and execution diff --git a/site/src/content/docs/ports/ruby/mcp/guides.md b/site/src/content/docs/ports/ruby/mcp/guides.md index bcc7b376d..ce04ea07a 100644 --- a/site/src/content/docs/ports/ruby/mcp/guides.md +++ b/site/src/content/docs/ports/ruby/mcp/guides.md @@ -39,7 +39,7 @@ When launching the installed `libtmux-mcp` executable directly, pass `--enable-tool tmux_capture` or `--enable-tool tmux_wait` as command arguments. `tmux_wait` can observe screen text or a process exit. Strong process tracking -requires tmux 3.3 or newer and a supported native identity backend. A refusal +requires tmux 3.3a or newer and a supported native identity backend. A refusal means the required evidence is unavailable; it is not a successful wait. See the [tool reference](../tools/) for arguments and results. diff --git a/site/src/content/docs/ports/ruby/mcp/index.md b/site/src/content/docs/ports/ruby/mcp/index.md index 3a531c9c0..111a384c0 100644 --- a/site/src/content/docs/ports/ruby/mcp/index.md +++ b/site/src/content/docs/ports/ruby/mcp/index.md @@ -27,6 +27,6 @@ calling an undisclosed name. - [Language API](./reference/) documents the Ruby embedding surface. The server requires Ruby 3.3 or newer. Strong process tracking for waits and -authored runs requires tmux 3.3 or newer plus native process identity support. +authored runs requires tmux 3.3a or newer plus native process identity support. The [MCP server guide](./source-guide/) is staged from the same revision as the generated reference. diff --git a/site/src/content/docs/ports/scala/concepts/queries.md b/site/src/content/docs/ports/scala/concepts/queries.md index f9d7b4678..595cf5ec1 100644 --- a/site/src/content/docs/ports/scala/concepts/queries.md +++ b/site/src/content/docs/ports/scala/concepts/queries.md @@ -16,7 +16,7 @@ Filter captured objects in Scala, handle result counts explicitly, and match ses ## Setup and run -Use an empty directory on Linux with Git, tmux 3.2a or newer, and JDK 25. Save the project files and launcher below, then save any complete program on this page. Each program has its own imports and entry point. +Use an empty directory on Linux with Git, tmux 3.3a or newer, and JDK 25. Save the project files and launcher below, then save any complete program on this page. Each program has its own imports and entry point. The pinned source checkout supplies the Gradle wrapper and the library dependency. diff --git a/site/src/content/docs/ports/scala/concepts/server-session-window-pane.md b/site/src/content/docs/ports/scala/concepts/server-session-window-pane.md index 59ab9d550..508bcecea 100644 --- a/site/src/content/docs/ports/scala/concepts/server-session-window-pane.md +++ b/site/src/content/docs/ports/scala/concepts/server-session-window-pane.md @@ -18,7 +18,7 @@ A session holds window placements; a window holds panes. A linked window can app ## Setup and run -Use an empty directory on Linux with Git, tmux 3.2a or newer, and JDK 25. Save the project files and launcher below, then save any complete program on this page. Each program has its own imports and entry point. +Use an empty directory on Linux with Git, tmux 3.3a or newer, and JDK 25. Save the project files and launcher below, then save any complete program on this page. Each program has its own imports and entry point. The pinned source checkout supplies the Gradle wrapper and the library dependency. diff --git a/site/src/content/docs/ports/scala/concepts/transports.md b/site/src/content/docs/ports/scala/concepts/transports.md index 1e1b6ec89..a85027ad9 100644 --- a/site/src/content/docs/ports/scala/concepts/transports.md +++ b/site/src/content/docs/ports/scala/concepts/transports.md @@ -16,7 +16,7 @@ The direct [`Server`](../../reference/io-github-libtmux-scaladsl-server/) API bl ## Setup and run -Use an empty directory on Linux with Git, tmux 3.2a or newer, and JDK 25. Save the project files and launcher below, then save any complete program on this page. Each program has its own imports and entry point. +Use an empty directory on Linux with Git, tmux 3.3a or newer, and JDK 25. Save the project files and launcher below, then save any complete program on this page. Each program has its own imports and entry point. The pinned source checkout supplies the Gradle wrapper and the library dependency. diff --git a/site/src/content/docs/ports/scala/concepts/workspaces.md b/site/src/content/docs/ports/scala/concepts/workspaces.md index 5b4fe5825..72900c360 100644 --- a/site/src/content/docs/ports/scala/concepts/workspaces.md +++ b/site/src/content/docs/ports/scala/concepts/workspaces.md @@ -14,7 +14,7 @@ Build a tmux layout from Scala by creating a window, splitting a pane and select ## Setup and run -Use an empty directory on Linux with Git, tmux 3.2a or newer, and JDK 25. Save the project files and launcher below, then save any complete program on this page. Each program has its own imports and entry point. +Use an empty directory on Linux with Git, tmux 3.3a or newer, and JDK 25. Save the project files and launcher below, then save any complete program on this page. Each program has its own imports and entry point. The pinned source checkout supplies the Gradle wrapper and the library dependency. diff --git a/site/src/content/docs/ports/scala/guides/attaching-to-tmux.md b/site/src/content/docs/ports/scala/guides/attaching-to-tmux.md index c22bb1017..b8403244b 100644 --- a/site/src/content/docs/ports/scala/guides/attaching-to-tmux.md +++ b/site/src/content/docs/ports/scala/guides/attaching-to-tmux.md @@ -52,7 +52,7 @@ object Connect { ## Setup and run -Use an empty directory on Linux with Git and tmux 3.2a or newer installed. +Use an empty directory on Linux with Git and tmux 3.3a or newer installed. This example was checked with JDK 25.0.3, Scala 3.9.0. diff --git a/site/src/content/docs/ports/swift/workspace/reference/compatibility.md b/site/src/content/docs/ports/swift/workspace/reference/compatibility.md index cfe1f09b8..32d608cf0 100644 --- a/site/src/content/docs/ports/swift/workspace/reference/compatibility.md +++ b/site/src/content/docs/ports/swift/workspace/reference/compatibility.md @@ -13,7 +13,7 @@ tableOfContents: true `tmux-workspace` is the Swift command for loading and capturing tmux workspaces. The [installation guide](../../guides/installation/) builds the documented source revision and runs a session on a private socket. The -walkthroughs require tmux 3.3a or newer. +walkthroughs require tmux 3.3a or newer. A daemon older than 3.3a is refused before any effect; see [tmux support](../../../../../tmux/guides/tmux-support/). ## Runtime and execution diff --git a/site/src/content/docs/ports/ts/workspace/reference/compatibility.md b/site/src/content/docs/ports/ts/workspace/reference/compatibility.md index cc4f09989..4d13beb11 100644 --- a/site/src/content/docs/ports/ts/workspace/reference/compatibility.md +++ b/site/src/content/docs/ports/ts/workspace/reference/compatibility.md @@ -13,7 +13,7 @@ tableOfContents: true `tmux-workspace` is the TypeScript command for loading and capturing tmux workspaces. The [installation guide](../../guides/installation/) builds the documented source revision and runs a session on a private socket. The -walkthroughs require tmux 3.3a or newer. +walkthroughs require tmux 3.3a or newer. A daemon older than 3.3a is refused before any effect; see [tmux support](../../../../../tmux/guides/tmux-support/). ## Runtime and execution diff --git a/site/src/content/docs/topics/architecture.md b/site/src/content/docs/topics/architecture.md index 5b21d0024..d052c2fcb 100644 --- a/site/src/content/docs/topics/architecture.md +++ b/site/src/content/docs/topics/architecture.md @@ -16,7 +16,7 @@ server. A command client can exit while the server and pane programs continue. ## Observe the server across client commands -Save this complete script as `architecture.sh`. It requires tmux 3.2a or +Save this complete script as `architecture.sh`. It requires tmux 3.3a or newer and a POSIX shell. It starts a private server, reads it through separate clients, and verifies that its session survives with no attached clients. diff --git a/site/src/content/docs/topics/context-managers.md b/site/src/content/docs/topics/context-managers.md index 3d1a49edd..5536acfc6 100644 --- a/site/src/content/docs/topics/context-managers.md +++ b/site/src/content/docs/topics/context-managers.md @@ -22,7 +22,7 @@ panes, and every session link to that window. [`kill-session`](/tmux/latest/manual/kill-session/) destroys the session and its window links. A window linked to another surviving session can remain. -Save this complete script as `cleanup.sh`. It requires tmux 3.2a or newer and +Save this complete script as `cleanup.sh`. It requires tmux 3.3a or newer and a POSIX shell. It removes a temporary pane, window, and session while keeping an independent session on the same private server. diff --git a/site/src/content/docs/topics/environment.md b/site/src/content/docs/topics/environment.md index a08f457d0..276edf8b5 100644 --- a/site/src/content/docs/topics/environment.md +++ b/site/src/content/docs/topics/environment.md @@ -16,7 +16,7 @@ processes. It does not change the environment of processes already running. ## Set defaults and a one-pane override -Save this complete script as `environment.sh`. It requires tmux 3.2a or newer +Save this complete script as `environment.sh`. It requires tmux 3.3a or newer and a POSIX shell. It inspects global and session values, launches new panes, and checks the environment each process receives on a private server. diff --git a/site/src/content/docs/topics/errors-and-exceptions.md b/site/src/content/docs/topics/errors-and-exceptions.md index 6c91d8831..2c6dd4c9e 100644 --- a/site/src/content/docs/topics/errors-and-exceptions.md +++ b/site/src/content/docs/topics/errors-and-exceptions.md @@ -16,7 +16,7 @@ can be handled as a branch in a shell script. ## Check absence and partial work -Save this complete script as `failures.sh`. It requires tmux 3.2a or newer +Save this complete script as `failures.sh`. It requires tmux 3.3a or newer and a POSIX shell. It checks a missing session, deliberately fails a grouped command, and inspects what remains on its private server. diff --git a/site/src/content/docs/topics/format-tokens.md b/site/src/content/docs/topics/format-tokens.md index 3b3d12b30..fd45b46fc 100644 --- a/site/src/content/docs/topics/format-tokens.md +++ b/site/src/content/docs/topics/format-tokens.md @@ -16,7 +16,7 @@ expansion and listing commands' `-F` flag to choose fields for each row. ## Read fields from a pane -Save this complete script as `formats.sh`. It requires tmux 3.2a or newer and +Save this complete script as `formats.sh`. It requires tmux 3.3a or newer and a POSIX shell. It reads the context of a private pane, evaluates a conditional, and checks the format inventory before cleaning up. diff --git a/site/src/content/docs/topics/options-and-hooks.md b/site/src/content/docs/topics/options-and-hooks.md index 12c987424..050023c7e 100644 --- a/site/src/content/docs/topics/options-and-hooks.md +++ b/site/src/content/docs/topics/options-and-hooks.md @@ -16,7 +16,7 @@ different effects. ## Set options and observe an event -Save this complete script as `options.sh`. It requires tmux 3.2a or newer and +Save this complete script as `options.sh`. It requires tmux 3.3a or newer and a POSIX shell. It checks a global default and local overrides, then registers and removes a session hook on its private server. diff --git a/site/src/content/docs/topics/pane-interaction.md b/site/src/content/docs/topics/pane-interaction.md index 44d1631d9..5c8bc2d1c 100644 --- a/site/src/content/docs/topics/pane-interaction.md +++ b/site/src/content/docs/topics/pane-interaction.md @@ -16,7 +16,7 @@ and observing its result as separate operations. ## Send a command and capture its result -Save this complete script as `pane-io.sh`. It requires tmux 3.2a or newer and +Save this complete script as `pane-io.sh`. It requires tmux 3.3a or newer and a POSIX shell. It starts a shell with an empty prompt, sends a command, polls for both result lines, and cleans up its private server. diff --git a/site/src/content/docs/topics/socket-and-servers.md b/site/src/content/docs/topics/socket-and-servers.md index 345dc7e8b..00838a677 100644 --- a/site/src/content/docs/topics/socket-and-servers.md +++ b/site/src/content/docs/topics/socket-and-servers.md @@ -20,7 +20,7 @@ an explicit socket path; when supplied, it takes precedence over `-L`. Without an explicit selection, a client inside tmux can use the server recorded in `TMUX`; an outside client uses the default socket. -Save this complete script as `sockets.sh`. It requires tmux 3.2a or newer and +Save this complete script as `sockets.sh`. It requires tmux 3.3a or newer and a POSIX shell. It starts two private servers with the same session name, changes one, and verifies that the other is unaffected. diff --git a/site/src/content/docs/topics/traversal.md b/site/src/content/docs/topics/traversal.md index 432d5d509..4822bea8e 100644 --- a/site/src/content/docs/topics/traversal.md +++ b/site/src/content/docs/topics/traversal.md @@ -16,7 +16,7 @@ address those objects. ## Read a hierarchy with a shared window -Save this complete script as `traversal.sh`. It requires tmux 3.2a or newer +Save this complete script as `traversal.sh`. It requires tmux 3.3a or newer and a POSIX shell. It creates a shared window on a private server and checks both listing-row counts and unique pane counts. diff --git a/site/src/content/docs/topics/waiting-and-retry.md b/site/src/content/docs/topics/waiting-and-retry.md index 76037055d..48aac41fb 100644 --- a/site/src/content/docs/topics/waiting-and-retry.md +++ b/site/src/content/docs/topics/waiting-and-retry.md @@ -16,7 +16,7 @@ cooperate, or poll an observable condition with a deadline. ## Signal completion and bound the wait -Save this complete script as `waiting.sh`. It requires tmux 3.2a or newer, +Save this complete script as `waiting.sh`. It requires tmux 3.3a or newer, a POSIX shell, and the GNU coreutils `timeout` command. It starts a producer on a private server, waits for its signal, checks a deadline, and releases a cooperative lock before cleanup. diff --git a/site/src/data/api/java.json b/site/src/data/api/java.json index bd1539af5..d378fd8fa 100644 --- a/site/src/data/api/java.json +++ b/site/src/data/api/java.json @@ -1 +1 @@ -{"port":"java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractor":"@libtmux/api-model@0.0.1","symbols":[{"id":"io.github.libtmux.batch.Batch.Batch","name":"Batch","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Several tmux commands in one invocation, each with an outcome of its own.","body":"tmux runs a group until a command fails and then discards the rest, so the number of replies\ncannot say which command failed: an error in the first position and an error in the last both\ncome back as one nonzero exit. Counting replies is wrong in every position but one.\n\nA marker is therefore interleaved after each operation. Markers are discarded along with\neverything else after a failure, so the last marker seen is exactly the last operation tmux ran,\nand the operations either side of that boundary are known rather than guessed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/Batch.java","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.Batch","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.Batch.Batch","product":"core","slug":"io-github-libtmux-batch-batch-batch"},{"id":"io.github.libtmux.batch.Batch.Batch.Batch","name":"Batch","kind":"method","modifiers":[],"parent":"io.github.libtmux.batch.Batch.Batch","signatures":[{"raw":"public Batch(Function>, CommandResult> dispatch)","params":[{"name":"dispatch","type":"Function>, CommandResult>","doc":"runs the assembled commands in one invocation and returns tmux's raw reply"}],"typeScopeBoundary":false}],"doc":{"summary":"Collects operations to run together."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/Batch.java","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.Batch.Batch","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.Batch.Batch.Batch","product":"core","slug":"io-github-libtmux-batch-batch-batch-batch"},{"id":"io.github.libtmux.batch.Batch.Batch.add","name":"add","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.batch.Batch.Batch","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Batch add(String... argv)","params":[{"name":"argv","type":"String","variadic":"positional"}],"returns":"Batch","typeScopeBoundary":false},{"raw":"@Operation(Kind.CAPTURED)\n public Batch add(List argv)","params":[{"name":"argv","type":"List"}],"returns":"Batch","typeScopeBoundary":false}],"doc":{"summary":"Adds one tmux command, its arguments already separate elements."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/Batch.java","line":41,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.Batch.add","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.Batch.Batch.add","product":"core","slug":"io-github-libtmux-batch-batch-batch-add"},{"id":"io.github.libtmux.batch.Batch.Batch.size","name":"size","kind":"method","modifiers":[],"parent":"io.github.libtmux.batch.Batch.Batch","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public int size()","params":[],"returns":"int","typeScopeBoundary":false}],"doc":{"summary":"How many operations have been collected."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/Batch.java","line":57,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.Batch.size","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.Batch.Batch.size","product":"core","slug":"io-github-libtmux-batch-batch-batch-size"},{"id":"io.github.libtmux.batch.Batch.Batch.length","name":"length","kind":"method","modifiers":[],"parent":"io.github.libtmux.batch.Batch.Batch","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public int length()","params":[],"returns":"int","typeScopeBoundary":false}],"doc":{"summary":"How many bytes the collected operations come to as the one command tmux parses.","body":"tmux packs a command into MAX_IMSGSIZE, 16384 bytes, and refuses a longer one with\n{@code command too long}; measured, it takes about 16300 of them. A batch taken from a handle\ntravels as this one string plus the guard that fences it, so it costs this and a little more.\nOne dispatched as separate arguments costs less, since nothing there is quoted."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/Batch.java","line":70,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.Batch.length","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.Batch.Batch.length","product":"core","slug":"io-github-libtmux-batch-batch-batch-length"},{"id":"io.github.libtmux.batch.Batch.Batch.run","name":"run","kind":"method","modifiers":[],"parent":"io.github.libtmux.batch.Batch.Batch","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public BatchResult run()","params":[],"returns":"BatchResult","typeScopeBoundary":false,"returnsDoc":"one result per operation, in submission order"}],"doc":{"summary":"Runs every collected operation in one tmux invocation."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/Batch.java","line":80,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.Batch.run","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.Batch.Batch.run","product":"core","slug":"io-github-libtmux-batch-batch-batch-run"},{"id":"io.github.libtmux.batch.BatchResult.BatchResult","name":"BatchResult","kind":"class","modifiers":[],"signatures":[{"raw":"public record BatchResult(@ReadOnly List operations)","params":[{"name":"operations","type":"List","doc":"one result per submitted operation, in submission order"}]}],"typeScopeBoundary":false,"doc":{"summary":"What became of every operation in one batch."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/BatchResult.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.BatchResult","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.BatchResult.BatchResult","product":"core","slug":"io-github-libtmux-batch-batchresult-batchresult"},{"id":"io.github.libtmux.batch.BatchResult.BatchResult.succeeded","name":"succeeded","kind":"method","modifiers":[],"parent":"io.github.libtmux.batch.BatchResult.BatchResult","signatures":[{"raw":"public boolean succeeded()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether tmux ran every operation and all of them succeeded."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/BatchResult.java","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.BatchResult.succeeded","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.BatchResult.BatchResult.succeeded","product":"core","slug":"io-github-libtmux-batch-batchresult-batchresult-succeeded"},{"id":"io.github.libtmux.batch.BatchResult.BatchResult.failure","name":"failure","kind":"method","modifiers":[],"parent":"io.github.libtmux.batch.BatchResult.BatchResult","signatures":[{"raw":"public Optional failure()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The operation that failed, if one did. Everything after it was discarded by tmux."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/BatchResult.java","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.BatchResult.failure","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.BatchResult.BatchResult.failure","product":"core","slug":"io-github-libtmux-batch-batchresult-batchresult-failure"},{"id":"io.github.libtmux.batch.BatchResult.BatchResult.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.batch.BatchResult.BatchResult","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/BatchResult.java","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.BatchResult.toString","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.BatchResult.BatchResult.toString","product":"core","slug":"io-github-libtmux-batch-batchresult-batchresult-tostring"},{"id":"io.github.libtmux.batch.BatchResult.BatchResult.operations","name":"operations","kind":"method","parent":"io.github.libtmux.batch.BatchResult.BatchResult","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"doc":{"summary":"one result per submitted operation, in submission order"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/BatchResult.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.BatchResult.operations","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.BatchResult.BatchResult.operations","product":"core","slug":"io-github-libtmux-batch-batchresult-batchresult-operations"},{"id":"io.github.libtmux.batch.OperationOutcome.OperationOutcome","name":"OperationOutcome","kind":"enum","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"What became of one operation in a batch."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/OperationOutcome.java","line":4,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.OperationOutcome","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.OperationOutcome.OperationOutcome","product":"core","slug":"io-github-libtmux-batch-operationoutcome-operationoutcome"},{"id":"io.github.libtmux.batch.OperationOutcome.OperationOutcome.COMPLETE","name":"COMPLETE","kind":"constant","modifiers":[],"parent":"io.github.libtmux.batch.OperationOutcome.OperationOutcome","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"tmux ran it and it succeeded."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/OperationOutcome.java","line":6,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.OperationOutcome.COMPLETE","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.OperationOutcome.OperationOutcome.COMPLETE","product":"core","slug":"io-github-libtmux-batch-operationoutcome-operationoutcome-complete"},{"id":"io.github.libtmux.batch.OperationOutcome.OperationOutcome.FAILED","name":"FAILED","kind":"constant","modifiers":[],"parent":"io.github.libtmux.batch.OperationOutcome.OperationOutcome","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"tmux ran it and it failed. Everything after it was discarded."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/OperationOutcome.java","line":8,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.OperationOutcome.FAILED","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.OperationOutcome.OperationOutcome.FAILED","product":"core","slug":"io-github-libtmux-batch-operationoutcome-operationoutcome-failed"},{"id":"io.github.libtmux.batch.OperationOutcome.OperationOutcome.SKIPPED","name":"SKIPPED","kind":"constant","modifiers":[],"parent":"io.github.libtmux.batch.OperationOutcome.OperationOutcome","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"tmux never reached it, because an earlier operation failed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/OperationOutcome.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.OperationOutcome.SKIPPED","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.OperationOutcome.OperationOutcome.SKIPPED","product":"core","slug":"io-github-libtmux-batch-operationoutcome-operationoutcome-skipped"},{"id":"io.github.libtmux.batch.OperationOutcome.OperationOutcome.UNKNOWN","name":"UNKNOWN","kind":"constant","modifiers":[],"parent":"io.github.libtmux.batch.OperationOutcome.OperationOutcome","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Whether tmux applied it cannot be determined."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/OperationOutcome.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.OperationOutcome.UNKNOWN","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.OperationOutcome.OperationOutcome.UNKNOWN","product":"core","slug":"io-github-libtmux-batch-operationoutcome-operationoutcome-unknown"},{"id":"io.github.libtmux.batch.OperationResult.OperationResult","name":"OperationResult","kind":"class","modifiers":[],"signatures":[{"raw":"public record OperationResult(\n @ReadOnly List argv,\n OperationOutcome outcome,\n @ReadOnly List stdout,\n @ReadOnly List stderr)","params":[{"name":"argv","type":"List","doc":"the operation as it was submitted"},{"name":"outcome","type":"OperationOutcome","doc":"what became of it"},{"name":"stdout","type":"List","doc":"the lines this operation produced, separated from its neighbours'"},{"name":"stderr","type":"List","doc":"the error text, which tmux emits without saying which operation produced it, so it is attached to the one that failed"}]}],"typeScopeBoundary":false,"doc":{"summary":"One operation's own result within a batch."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/OperationResult.java","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.OperationResult","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.OperationResult.OperationResult","product":"core","slug":"io-github-libtmux-batch-operationresult-operationresult"},{"id":"io.github.libtmux.batch.OperationResult.OperationResult.succeeded","name":"succeeded","kind":"method","modifiers":[],"parent":"io.github.libtmux.batch.OperationResult.OperationResult","signatures":[{"raw":"public boolean succeeded()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether tmux ran this operation and it succeeded."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/OperationResult.java","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.OperationResult.succeeded","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.OperationResult.OperationResult.succeeded","product":"core","slug":"io-github-libtmux-batch-operationresult-operationresult-succeeded"},{"id":"io.github.libtmux.batch.OperationResult.OperationResult.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.batch.OperationResult.OperationResult","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"Counts only: argv and output carry pane content and socket paths."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/OperationResult.java","line":33,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.OperationResult.toString","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.OperationResult.OperationResult.toString","product":"core","slug":"io-github-libtmux-batch-operationresult-operationresult-tostring"},{"id":"io.github.libtmux.batch.OperationResult.OperationResult.argv","name":"argv","kind":"method","parent":"io.github.libtmux.batch.OperationResult.OperationResult","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"doc":{"summary":"the operation as it was submitted"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/OperationResult.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.OperationResult.argv","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.OperationResult.OperationResult.argv","product":"core","slug":"io-github-libtmux-batch-operationresult-operationresult-argv"},{"id":"io.github.libtmux.batch.OperationResult.OperationResult.outcome","name":"outcome","kind":"method","parent":"io.github.libtmux.batch.OperationResult.OperationResult","modifiers":[],"signatures":[{"params":[],"returns":"OperationOutcome"}],"doc":{"summary":"what became of it"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/OperationResult.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.OperationResult.outcome","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.OperationResult.OperationResult.outcome","product":"core","slug":"io-github-libtmux-batch-operationresult-operationresult-outcome"},{"id":"io.github.libtmux.batch.OperationResult.OperationResult.stdout","name":"stdout","kind":"method","parent":"io.github.libtmux.batch.OperationResult.OperationResult","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"doc":{"summary":"the lines this operation produced, separated from its neighbours'"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/OperationResult.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.OperationResult.stdout","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.OperationResult.OperationResult.stdout","product":"core","slug":"io-github-libtmux-batch-operationresult-operationresult-stdout"},{"id":"io.github.libtmux.batch.OperationResult.OperationResult.stderr","name":"stderr","kind":"method","parent":"io.github.libtmux.batch.OperationResult.OperationResult","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"doc":{"summary":"the error text, which tmux emits without saying which operation produced it, so it is attached to the one that failed"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/OperationResult.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.OperationResult.stderr","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.OperationResult.OperationResult.stderr","product":"core","slug":"io-github-libtmux-batch-operationresult-operationresult-stderr"},{"id":"io.github.libtmux.BufferInfo.BufferInfo","name":"BufferInfo","kind":"class","modifiers":[],"signatures":[{"raw":"public record BufferInfo(String name, int size)","params":[{"name":"name","type":"String","doc":"the buffer name, which is how every other buffer command addresses it"},{"name":"size","type":"int","doc":"how many bytes it holds"}]}],"typeScopeBoundary":false,"doc":{"summary":"One tmux paste buffer, as a listing described it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/BufferInfo.java","line":9,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.BufferInfo","namespace":"io.github.libtmux","publicId":"io.github.libtmux.BufferInfo.BufferInfo","product":"core","slug":"io-github-libtmux-bufferinfo-bufferinfo"},{"id":"io.github.libtmux.BufferInfo.BufferInfo.name","name":"name","kind":"method","parent":"io.github.libtmux.BufferInfo.BufferInfo","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"the buffer name, which is how every other buffer command addresses it"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/BufferInfo.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.BufferInfo.name","namespace":"io.github.libtmux","publicId":"io.github.libtmux.BufferInfo.BufferInfo.name","product":"core","slug":"io-github-libtmux-bufferinfo-bufferinfo-name"},{"id":"io.github.libtmux.BufferInfo.BufferInfo.size","name":"size","kind":"method","parent":"io.github.libtmux.BufferInfo.BufferInfo","modifiers":[],"signatures":[{"params":[],"returns":"int"}],"doc":{"summary":"how many bytes it holds"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/BufferInfo.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.BufferInfo.size","namespace":"io.github.libtmux","publicId":"io.github.libtmux.BufferInfo.BufferInfo.size","product":"core","slug":"io-github-libtmux-bufferinfo-bufferinfo-size"},{"id":"io.github.libtmux.Buffers.Buffers","name":"Buffers","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The tmux server's paste buffers.","body":"Buffers are the server's, not a session's: anything copied in one session can be pasted into\nanother. They are addressed by name rather than by the stack position tmux also accepts, because\na position moves whenever anything else is copied."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Buffers.java","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Buffers","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Buffers.Buffers","product":"core","slug":"io-github-libtmux-buffers-buffers"},{"id":"io.github.libtmux.Buffers.Buffers.EXACT_NAMED_DELETE","name":"EXACT_NAMED_DELETE","kind":"attribute","modifiers":["static","readonly"],"parent":"io.github.libtmux.Buffers.Buffers","signatures":[],"typeScopeBoundary":true,"type":"TmuxVersion","value":"new TmuxVersion(3, 4, \"\")","doc":{"summary":"tmux's own history dates the fix to {@code 0f6227f4} (\"When deleting or renaming a buffer and a buffer name is specified, complain if the buffer doesn't exist instead of silently deleting or renaming the most recent buffer\", GitHub issue 3205); {@code git tag --contains} places it on {@code 3.4} and nothing earlier, so 3.3 and 3.3a both have the bug. Confirmed on the matrix: {@code set-buffer -b a x; set-buffer -b b y; delete-buffer -b nope} answers {@code unknown buffer: nope} on 3.4 and leaves both buffers, but on 3.3a it exits 0 and takes {@code b}, the one {@code delete-buffer} was never told to touch."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Buffers.java","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Buffers.EXACT_NAMED_DELETE","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Buffers.Buffers.EXACT_NAMED_DELETE","product":"core","slug":"io-github-libtmux-buffers-buffers-exact_named_delete"},{"id":"io.github.libtmux.Buffers.Buffers.Buffers","name":"Buffers","kind":"method","modifiers":[],"parent":"io.github.libtmux.Buffers.Buffers","signatures":[{"raw":"Buffers(Server server)","params":[{"name":"server","type":"Server"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Buffers.java","line":40,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Buffers.Buffers","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Buffers.Buffers.Buffers","product":"core","slug":"io-github-libtmux-buffers-buffers-buffers"},{"id":"io.github.libtmux.Buffers.Buffers.list","name":"list","kind":"method","modifiers":[],"parent":"io.github.libtmux.Buffers.Buffers","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public List list()","params":[],"returns":"List","typeScopeBoundary":false,"returnsDoc":"an immutable list, empty if the live server holds no buffers","raises":[{"type":"LibTmuxException","doc":"if the listing fails, including when no daemon is running"}]}],"doc":{"summary":"Captures every buffer the server holds, in tmux's order."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Buffers.java","line":50,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Buffers.list","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Buffers.Buffers.list","product":"core","slug":"io-github-libtmux-buffers-buffers-list"},{"id":"io.github.libtmux.Buffers.Buffers.set","name":"set","kind":"method","modifiers":[],"parent":"io.github.libtmux.Buffers.Buffers","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void set(String name, String contents)","params":[{"name":"name","type":"String"},{"name":"contents","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Puts text in a named buffer, replacing whatever was there.","body":"The contents end the options, because they are the one argument here tmux would otherwise\nread as flags: {@code set(\"clip\", \"-nfoo\")} used to rename the buffer to {@code foo} and write\nnothing, and report success."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Buffers.java","line":69,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Buffers.set","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Buffers.Buffers.set","product":"core","slug":"io-github-libtmux-buffers-buffers-set"},{"id":"io.github.libtmux.Buffers.Buffers.show","name":"show","kind":"method","modifiers":[],"parent":"io.github.libtmux.Buffers.Buffers","signatures":[{"raw":"@Operation(Kind.READ)\n public String show(String name)","params":[{"name":"name","type":"String"}],"returns":"String","typeScopeBoundary":false,"raises":[{"type":"TargetGoneException","doc":"if the server has no buffer by that name"},{"type":"ServerUnavailableException","doc":"if no daemon is running"}]}],"doc":{"summary":"What a buffer holds, without any line breaks it ends with.","body":"tmux prints a buffer as it is, and the transport drops trailing blank lines, so {@code \"a\"}\nand {@code \"a\\n\"} read the same. A marker printed after it cannot keep them: tmux writes a\nbuffer through its file stream, which a second command in the same invocation interrupts.\n{@link #save} writes the exact bytes."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Buffers.java","line":85,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Buffers.show","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Buffers.Buffers.show","product":"core","slug":"io-github-libtmux-buffers-buffers-show"},{"id":"io.github.libtmux.Buffers.Buffers.delete","name":"delete","kind":"method","modifiers":[],"parent":"io.github.libtmux.Buffers.Buffers","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void delete(String name)","params":[{"name":"name","type":"String"}],"returns":"void","typeScopeBoundary":false,"raises":[{"type":"TargetGoneException","doc":"if the server has no buffer by that name"},{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"UnsupportedFeatureException","doc":"before tmux 3.4, whose named deletion silently removes the top buffer when the name is absent"}]}],"doc":{"summary":"Removes a buffer by its exact name."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Buffers.java","line":105,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Buffers.delete","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Buffers.Buffers.delete","product":"core","slug":"io-github-libtmux-buffers-buffers-delete"},{"id":"io.github.libtmux.Buffers.Buffers.save","name":"save","kind":"method","modifiers":[],"parent":"io.github.libtmux.Buffers.Buffers","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void save(String name, Path file)","params":[{"name":"name","type":"String"},{"name":"file","type":"Path"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Writes a buffer's contents to a file."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Buffers.java","line":121,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Buffers.save","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Buffers.Buffers.save","product":"core","slug":"io-github-libtmux-buffers-buffers-save"},{"id":"io.github.libtmux.Buffers.Buffers.load","name":"load","kind":"method","modifiers":[],"parent":"io.github.libtmux.Buffers.Buffers","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void load(String name, Path file)","params":[{"name":"name","type":"String"},{"name":"file","type":"Path"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Reads a file into a named buffer."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Buffers.java","line":127,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Buffers.load","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Buffers.Buffers.load","product":"core","slug":"io-github-libtmux-buffers-buffers-load"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec","name":"CaptureSpec","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"What part of a pane to read, and how.","body":"The shape {@link SplitSpec} uses. A plain {@link Pane#capture()} reads what is on screen; this\nis how to reach the scrollback above it, or to keep what tmux otherwise strips.\n\nLines are numbered from the top of the visible area, so {@code 0} is the first row on screen\nand negatives climb into the history. {@code fromStartOfHistory()} is the whole of what tmux\nkept.","examples":[{"lang":"java","code":"List everything = pane.capture(c -> c.fromStartOfHistory());\nList lastTen = pane.capture(c -> c.from(-10));"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec","product":"core","slug":"io-github-libtmux-capturespec-capturespec"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.builder","name":"builder","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec","signatures":[{"raw":"public static Builder builder()","params":[],"returns":"Builder","typeScopeBoundary":true}],"doc":{"summary":"A builder that reads what is on screen and nothing else."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":69,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.builder","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.builder","product":"core","slug":"io-github-libtmux-capturespec-capturespec-builder-17ql"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.argv","name":"argv","kind":"method","modifiers":[],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec","signatures":[{"raw":"List argv(String target, TmuxVersion running)","params":[{"name":"target","type":"String"},{"name":"running","type":"TmuxVersion"}],"returns":"List","typeScopeBoundary":false,"raises":[{"type":"UnsupportedFeatureException","doc":"if the spec asks for something {@code running} does not have"}]}],"doc":{"summary":"The command that reads the pane."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":78,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.argv","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.argv","product":"core","slug":"io-github-libtmux-capturespec-capturespec-argv"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder","name":"Builder","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Collects the choices, each named for what it does rather than for the flag it sets."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":123,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.Builder","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder","product":"core","slug":"io-github-libtmux-capturespec-capturespec-builder-v00t"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.from","name":"from","kind":"method","modifiers":[],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder","signatures":[{"raw":"public Builder from(int line)","params":[{"name":"line","type":"int","doc":"{@code 0} is the first row on screen; negatives climb into the scrollback"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Starts at a line, counted from the top of the visible area."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":145,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.Builder.from","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.from","product":"core","slug":"io-github-libtmux-capturespec-capturespec-builder-from"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.fromStartOfHistory","name":"fromStartOfHistory","kind":"method","modifiers":[],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder","signatures":[{"raw":"public Builder fromStartOfHistory()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Starts at the oldest line tmux still has."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":151,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.Builder.fromStartOfHistory","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.fromStartOfHistory","product":"core","slug":"io-github-libtmux-capturespec-capturespec-builder-fromstartofhistory"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.to","name":"to","kind":"method","modifiers":[],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder","signatures":[{"raw":"public Builder to(int line)","params":[{"name":"line","type":"int"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Ends at a line, counted the same way as {@link #from}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":157,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.Builder.to","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.to","product":"core","slug":"io-github-libtmux-capturespec-capturespec-builder-to"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.toEndOfHistory","name":"toEndOfHistory","kind":"method","modifiers":[],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder","signatures":[{"raw":"public Builder toEndOfHistory()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Ends at the newest line, including anything below the visible area."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":163,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.Builder.toEndOfHistory","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.toEndOfHistory","product":"core","slug":"io-github-libtmux-capturespec-capturespec-builder-toendofhistory"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.withEscapeSequences","name":"withEscapeSequences","kind":"method","modifiers":[],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder","signatures":[{"raw":"public Builder withEscapeSequences()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Keeps the escape sequences that colour and position the text."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":169,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.Builder.withEscapeSequences","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.withEscapeSequences","product":"core","slug":"io-github-libtmux-capturespec-capturespec-builder-withescapesequences"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.escapingNonPrintable","name":"escapingNonPrintable","kind":"method","modifiers":[],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder","signatures":[{"raw":"public Builder escapingNonPrintable()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Writes anything unprintable as an octal escape rather than dropping it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":175,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.Builder.escapingNonPrintable","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.escapingNonPrintable","product":"core","slug":"io-github-libtmux-capturespec-capturespec-builder-escapingnonprintable"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.joiningWrappedLines","name":"joiningWrappedLines","kind":"method","modifiers":[],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder","signatures":[{"raw":"public Builder joiningWrappedLines()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Joins a line tmux wrapped back into the one line it was."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":181,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.Builder.joiningWrappedLines","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.joiningWrappedLines","product":"core","slug":"io-github-libtmux-capturespec-capturespec-builder-joiningwrappedlines"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.preservingTrailingSpace","name":"preservingTrailingSpace","kind":"method","modifiers":[],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder","signatures":[{"raw":"public Builder preservingTrailingSpace()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Keeps the spaces at the end of a line, which tmux otherwise drops."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":187,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.Builder.preservingTrailingSpace","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.preservingTrailingSpace","product":"core","slug":"io-github-libtmux-capturespec-capturespec-builder-preservingtrailingspace"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.trimmingTrailingSpace","name":"trimmingTrailingSpace","kind":"method","modifiers":[],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder","signatures":[{"raw":"public Builder trimmingTrailingSpace()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Drops trailing space and the empty lines below the content. Requires tmux 3.4."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":193,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.Builder.trimmingTrailingSpace","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.trimmingTrailingSpace","product":"core","slug":"io-github-libtmux-capturespec-capturespec-builder-trimmingtrailingspace"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.fromAlternateScreen","name":"fromAlternateScreen","kind":"method","modifiers":[],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder","signatures":[{"raw":"public Builder fromAlternateScreen()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Reads the alternate screen, which is what a full-screen program draws on."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":199,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.Builder.fromAlternateScreen","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.fromAlternateScreen","product":"core","slug":"io-github-libtmux-capturespec-capturespec-builder-fromalternatescreen"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.pendingOnly","name":"pendingOnly","kind":"method","modifiers":[],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder","signatures":[{"raw":"public Builder pendingOnly()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Reads only output tmux has not drawn yet."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":205,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.Builder.pendingOnly","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.pendingOnly","product":"core","slug":"io-github-libtmux-capturespec-capturespec-builder-pendingonly"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.fromModeScreen","name":"fromModeScreen","kind":"method","modifiers":[],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder","signatures":[{"raw":"public Builder fromModeScreen()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Reads what a mode is showing rather than the pane beneath it. Requires tmux 3.6."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":211,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.Builder.fromModeScreen","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.fromModeScreen","product":"core","slug":"io-github-libtmux-capturespec-capturespec-builder-frommodescreen"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.withHyperlinks","name":"withHyperlinks","kind":"method","modifiers":[],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder","signatures":[{"raw":"public Builder withHyperlinks()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Keeps hyperlink markers. Requires tmux 3.7."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":217,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.Builder.withHyperlinks","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.withHyperlinks","product":"core","slug":"io-github-libtmux-capturespec-capturespec-builder-withhyperlinks"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.withLineNumbers","name":"withLineNumbers","kind":"method","modifiers":[],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder","signatures":[{"raw":"public Builder withLineNumbers()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Prefixes each line with its number. Requires tmux 3.7."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":223,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.Builder.withLineNumbers","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.withLineNumbers","product":"core","slug":"io-github-libtmux-capturespec-capturespec-builder-withlinenumbers"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.build","name":"build","kind":"method","modifiers":[],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder","signatures":[{"raw":"public CaptureSpec build()","params":[],"returns":"CaptureSpec","typeScopeBoundary":false}],"doc":{"summary":"The finished spec."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":229,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.Builder.build","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.build","product":"core","slug":"io-github-libtmux-capturespec-capturespec-builder-build"},{"id":"io.github.libtmux.catalog.Advanced.Advanced","name":"Advanced","kind":"interface","modifiers":["annotation"],"signatures":[{"raw":"@Documented\n@Retention(RUNTIME)\n@Target({TYPE, METHOD})\npublic @interface Advanced","params":[]}],"typeScopeBoundary":false,"doc":{"summary":"Public for orchestration across processes or clients, such as the MCP server's pane reservations; not part of the surface a language facade mirrors."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/catalog/Advanced.java","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.catalog.Advanced","namespace":"io.github.libtmux.catalog","publicId":"io.github.libtmux.catalog.Advanced.Advanced","product":"core","slug":"io-github-libtmux-catalog-advanced-advanced"},{"id":"io.github.libtmux.catalog.Kind.Kind","name":"Kind","kind":"enum","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"What shape a facade needs to give one operation of the core API.","body":"A Kotlin or Scala wrapper, or a generated reference page, reads this off {@link Operation}\nrather than guessing from a method's name or return type."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/catalog/Kind.java","line":9,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.catalog.Kind","namespace":"io.github.libtmux.catalog","publicId":"io.github.libtmux.catalog.Kind.Kind","product":"core","slug":"io-github-libtmux-catalog-kind-kind"},{"id":"io.github.libtmux.catalog.Kind.Kind.CAPTURED","name":"CAPTURED","kind":"constant","modifiers":[],"parent":"io.github.libtmux.catalog.Kind.Kind","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"No tmux I/O: answers from the handle's own capture, or collects a command to send later. Field accessors, navigation within one capture, and building a batch or chain."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/catalog/Kind.java","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.catalog.Kind.CAPTURED","namespace":"io.github.libtmux.catalog","publicId":"io.github.libtmux.catalog.Kind.Kind.CAPTURED","product":"core","slug":"io-github-libtmux-catalog-kind-kind-captured"},{"id":"io.github.libtmux.catalog.Kind.Kind.READ","name":"READ","kind":"constant","modifiers":[],"parent":"io.github.libtmux.catalog.Kind.Kind","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Contacts tmux and changes nothing: listings, captures, {@code show-*}, expansion, liveness, lookups."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/catalog/Kind.java","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.catalog.Kind.READ","namespace":"io.github.libtmux.catalog","publicId":"io.github.libtmux.catalog.Kind.Kind.READ","product":"core","slug":"io-github-libtmux-catalog-kind-kind-read"},{"id":"io.github.libtmux.catalog.Kind.Kind.MUTATION","name":"MUTATION","kind":"constant","modifiers":[],"parent":"io.github.libtmux.catalog.Kind.Kind","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Changes tmux state: sending keys, renaming, killing, splitting, setting options, pasting, resizing."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/catalog/Kind.java","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.catalog.Kind.MUTATION","namespace":"io.github.libtmux.catalog","publicId":"io.github.libtmux.catalog.Kind.Kind.MUTATION","product":"core","slug":"io-github-libtmux-catalog-kind-kind-mutation"},{"id":"io.github.libtmux.catalog.Kind.Kind.WAIT","name":"WAIT","kind":"constant","modifiers":[],"parent":"io.github.libtmux.catalog.Kind.Kind","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Blocks until something else happens; the waiting itself changes nothing."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/catalog/Kind.java","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.catalog.Kind.WAIT","namespace":"io.github.libtmux.catalog","publicId":"io.github.libtmux.catalog.Kind.Kind.WAIT","product":"core","slug":"io-github-libtmux-catalog-kind-kind-wait"},{"id":"io.github.libtmux.catalog.Kind.Kind.STREAM","name":"STREAM","kind":"constant","modifiers":[],"parent":"io.github.libtmux.catalog.Kind.Kind","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Returns a subscription, stream, or publisher of events."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/catalog/Kind.java","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.catalog.Kind.STREAM","namespace":"io.github.libtmux.catalog","publicId":"io.github.libtmux.catalog.Kind.Kind.STREAM","product":"core","slug":"io-github-libtmux-catalog-kind-kind-stream"},{"id":"io.github.libtmux.catalog.Kind.Kind.LIFECYCLE","name":"LIFECYCLE","kind":"constant","modifiers":[],"parent":"io.github.libtmux.catalog.Kind.Kind","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Opens, attaches, derives, or closes a resource."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/catalog/Kind.java","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.catalog.Kind.LIFECYCLE","namespace":"io.github.libtmux.catalog","publicId":"io.github.libtmux.catalog.Kind.Kind.LIFECYCLE","product":"core","slug":"io-github-libtmux-catalog-kind-kind-lifecycle"},{"id":"io.github.libtmux.catalog.Operation.Operation","name":"Operation","kind":"interface","modifiers":["annotation"],"signatures":[{"raw":"@Documented\n@Retention(RUNTIME)\n@Target(METHOD)\npublic @interface Operation","params":[]}],"typeScopeBoundary":false,"doc":{"summary":"Classifies one public method of the core API as a tmux operation of a given {@link Kind}.","body":"Every public method that performs or describes a tmux operation carries this, so a facade\nnever has to infer the shape of a call from its name or signature."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/catalog/Operation.java","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.catalog.Operation","namespace":"io.github.libtmux.catalog","publicId":"io.github.libtmux.catalog.Operation.Operation","product":"core","slug":"io-github-libtmux-catalog-operation-operation"},{"id":"io.github.libtmux.catalog.Operation.Operation.value","name":"value","kind":"method","modifiers":["annotation"],"parent":"io.github.libtmux.catalog.Operation.Operation","signatures":[{"raw":"Kind value();","params":[],"returns":"Kind","typeScopeBoundary":false}],"doc":{"summary":"What shape this operation gives a facade."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/catalog/Operation.java","line":22,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.catalog.Operation.value","namespace":"io.github.libtmux.catalog","publicId":"io.github.libtmux.catalog.Operation.Operation.value","product":"core","slug":"io-github-libtmux-catalog-operation-operation-value"},{"id":"io.github.libtmux.catalog.Operation.Operation.tmuxSince","name":"tmuxSince","kind":"method","modifiers":["annotation"],"parent":"io.github.libtmux.catalog.Operation.Operation","signatures":[{"raw":"String tmuxSince() default \"\";","params":[],"returns":"String","typeScopeBoundary":false}],"value":"\"\"","doc":{"summary":"The first tmux release that has this operation, when it is newer than the supported floor, 3.2a. Empty when the whole supported range has it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/catalog/Operation.java","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.catalog.Operation.tmuxSince","namespace":"io.github.libtmux.catalog","publicId":"io.github.libtmux.catalog.Operation.Operation.tmuxSince","product":"core","slug":"io-github-libtmux-catalog-operation-operation-tmuxsince"},{"id":"io.github.libtmux.Channel.Channel","name":"Channel","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"One of tmux's wait-for channels, named once.","body":"A channel is server-wide and shared by everything on it, including programs running in panes.\nNothing creates or destroys one: a name either has a signal remembered against it or does not.\n\ntmux's own {@code wait-for} has two traps, and this exists to close both. It exits successfully\nwhen the server dies under the waiter, which is indistinguishable from a real signal, so the\nserver is checked afterwards rather than believed. And a signal sent when nobody is waiting is\nremembered, satisfying the next wait whenever that happens — possibly in a later run of a\ndifferent program — so {@link #drain()} is how a caller starts from a known state on a channel\nwhose history is not its own."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Channel.java","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Channel","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Channel.Channel","product":"core","slug":"io-github-libtmux-channel-channel"},{"id":"io.github.libtmux.Channel.Channel.Channel","name":"Channel","kind":"method","modifiers":[],"parent":"io.github.libtmux.Channel.Channel","signatures":[{"raw":"Channel(Server server, String name)","params":[{"name":"server","type":"Server"},{"name":"name","type":"String"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Channel.java","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Channel.Channel","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Channel.Channel.Channel","product":"core","slug":"io-github-libtmux-channel-channel-channel"},{"id":"io.github.libtmux.Channel.Channel.name","name":"name","kind":"method","modifiers":[],"parent":"io.github.libtmux.Channel.Channel","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public String name()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The name this channel is known by on its server."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Channel.java","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Channel.name","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Channel.Channel.name","product":"core","slug":"io-github-libtmux-channel-channel-name"},{"id":"io.github.libtmux.Channel.Channel.signal","name":"signal","kind":"method","modifiers":[],"parent":"io.github.libtmux.Channel.Channel","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void signal()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Signals the channel, waking one waiter, or being remembered until something waits.","body":"{@code -S} takes no argument of its own — it says which of wait-for's three modes this is —\nso the name that follows is a positional and needs the options ended before it, exactly as\nthe wait does."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Channel.java","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Channel.signal","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Channel.Channel.signal","product":"core","slug":"io-github-libtmux-channel-channel-signal"},{"id":"io.github.libtmux.Channel.Channel.await","name":"await","kind":"method","modifiers":[],"parent":"io.github.libtmux.Channel.Channel","signatures":[{"raw":"@Operation(Kind.WAIT)\n public WakeReason await(Duration timeout) throws InterruptedException","params":[{"name":"timeout","type":"Duration","doc":"how long to wait"}],"returns":"WakeReason","typeScopeBoundary":false,"returnsDoc":"why the wait ended, which is never simply \"successfully\"","raises":[{"type":"InterruptedException","doc":"if the waiting thread is interrupted, which is a cancellation rather than a timeout and so is not reported as one"}]}],"doc":{"summary":"Waits for something to signal the channel."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Channel.java","line":60,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Channel.await","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Channel.Channel.await","product":"core","slug":"io-github-libtmux-channel-channel-await"},{"id":"io.github.libtmux.Channel.Channel.awaitReservingCapacity","name":"awaitReservingCapacity","kind":"method","modifiers":[],"parent":"io.github.libtmux.Channel.Channel","signatures":[{"raw":"@Operation(Kind.WAIT)\n public WakeReason awaitReservingCapacity(Duration timeout) throws InterruptedException","params":[{"name":"timeout","type":"Duration"}],"returns":"WakeReason","typeScopeBoundary":false,"raises":[{"type":"io.github.libtmux.exception.DispatchException","doc":"if the wait could not be dispatched"},{"type":"InterruptedException","doc":"if the waiting thread is interrupted, which is a cancellation rather than a timeout and so is not reported as one"}]}],"doc":{"summary":"Waits while preserving process capacity for a call through this server that signals it.","body":"Use this when the waiter and its release share a bounded transport. A wait released outside\nthat transport should use {@link #await}; reserving capacity for it only rejects useful\nconcurrency."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Channel.java","line":76,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Channel.awaitReservingCapacity","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Channel.Channel.awaitReservingCapacity","product":"core","slug":"io-github-libtmux-channel-channel-awaitreservingcapacity"},{"id":"io.github.libtmux.Channel.Channel.drain","name":"drain","kind":"method","modifiers":[],"parent":"io.github.libtmux.Channel.Channel","signatures":[{"raw":"@Operation(Kind.WAIT)\n public boolean drain() throws InterruptedException","params":[],"returns":"boolean","typeScopeBoundary":false,"returnsDoc":"whether a signal was there to consume","raises":[{"type":"InterruptedException","doc":"if the waiting thread is interrupted"}]}],"doc":{"summary":"Consumes a signal already waiting, so a stale one cannot satisfy a later wait."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Channel.java","line":87,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Channel.drain","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Channel.Channel.drain","product":"core","slug":"io-github-libtmux-channel-channel-drain"},{"id":"io.github.libtmux.Channel.Channel.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.Channel.Channel","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Channel.java","line":92,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Channel.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Channel.Channel.toString","product":"core","slug":"io-github-libtmux-channel-channel-tostring"},{"id":"io.github.libtmux.Client.Client","name":"Client","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"One attached tmux client, as one capture saw it.","body":"Identity is the server and the client name, which is how tmux addresses it. What it is\nattached to is state: a client can switch sessions without becoming a different client.\n\n{@link #name()}, {@link #session()}, and {@link #attachment()} return what the capture holds\nand do no I/O; {@link #refresh()} reads again. Every other method asks tmux now."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Client.java","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client.Client","product":"core","slug":"io-github-libtmux-client-client"},{"id":"io.github.libtmux.Client.Client.Client","name":"Client","kind":"method","modifiers":[],"parent":"io.github.libtmux.Client.Client","signatures":[{"raw":"Client(Server server, ServerSnapshot snapshot, ClientState state)","params":[{"name":"server","type":"Server"},{"name":"snapshot","type":"ServerSnapshot"},{"name":"state","type":"ClientState"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Client.java","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client.Client","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client.Client.Client","product":"core","slug":"io-github-libtmux-client-client-client"},{"id":"io.github.libtmux.Client.Client.name","name":"name","kind":"method","modifiers":[],"parent":"io.github.libtmux.Client.Client","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public String name()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The client's terminal name, which is how tmux addresses it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Client.java","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client.name","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client.Client.name","product":"core","slug":"io-github-libtmux-client-client-name"},{"id":"io.github.libtmux.Client.Client.detach","name":"detach","kind":"method","modifiers":[],"parent":"io.github.libtmux.Client.Client","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void detach()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Detaches this client, leaving whatever it was attached to running.","body":"Detaching is not killing: the session outlives the client, which is the reason tmux exists."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Client.java","line":46,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client.detach","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client.Client.detach","product":"core","slug":"io-github-libtmux-client-client-detach"},{"id":"io.github.libtmux.Client.Client.detachOthers","name":"detachOthers","kind":"method","modifiers":[],"parent":"io.github.libtmux.Client.Client","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void detachOthers()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Detaches every other client, leaving this one attached."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Client.java","line":52,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client.detachOthers","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client.Client.detachOthers","product":"core","slug":"io-github-libtmux-client-client-detachothers"},{"id":"io.github.libtmux.Client.Client.switchTo","name":"switchTo","kind":"method","modifiers":[],"parent":"io.github.libtmux.Client.Client","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void switchTo(Session session)","params":[{"name":"session","type":"Session"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Moves this client to another session.","body":"The client keeps its identity: switching is a change of what it is looking at, not a\ndetach and a fresh attach."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Client.java","line":63,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client.switchTo","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client.Client.switchTo","product":"core","slug":"io-github-libtmux-client-client-switchto"},{"id":"io.github.libtmux.Client.Client.redraw","name":"redraw","kind":"method","modifiers":[],"parent":"io.github.libtmux.Client.Client","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void redraw()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Asks tmux to redraw this client.","body":"Not {@link #refresh()}, which takes a new capture of what tmux knows. This one is tmux's\n{@code refresh-client}, and it changes the terminal rather than this handle."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Client.java","line":78,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client.redraw","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client.Client.redraw","product":"core","slug":"io-github-libtmux-client-client-redraw"},{"id":"io.github.libtmux.Client.Client.server","name":"server","kind":"method","modifiers":[],"parent":"io.github.libtmux.Client.Client","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Server server()","params":[],"returns":"Server","typeScopeBoundary":false}],"doc":{"summary":"The server this client is connected to."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Client.java","line":84,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client.server","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client.Client.server","product":"core","slug":"io-github-libtmux-client-client-server"},{"id":"io.github.libtmux.Client.Client.snapshot","name":"snapshot","kind":"method","modifiers":[],"parent":"io.github.libtmux.Client.Client","signatures":[{"raw":"ServerSnapshot snapshot()","params":[],"returns":"ServerSnapshot","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Client.java","line":89,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client.snapshot","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client.Client.snapshot","product":"core","slug":"io-github-libtmux-client-client-snapshot"},{"id":"io.github.libtmux.Client.Client.session","name":"session","kind":"method","modifiers":[],"parent":"io.github.libtmux.Client.Client","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Optional session()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The session this client was attached to when captured. A pure read of the capture."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Client.java","line":94,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client.session","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client.Client.session","product":"core","slug":"io-github-libtmux-client-client-session"},{"id":"io.github.libtmux.Client.Client.attachment","name":"attachment","kind":"method","modifiers":[],"parent":"io.github.libtmux.Client.Client","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Optional attachment()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"What this client was looking at when captured. A pure read: it issues no command.","body":"Empty when the capture shows the client attached to nothing, or shows a session whose\nactive window or pane the capture did not include."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Client.java","line":105,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client.attachment","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client.Client.attachment","product":"core","slug":"io-github-libtmux-client-client-attachment"},{"id":"io.github.libtmux.Client.Client.fetchAttachment","name":"fetchAttachment","kind":"method","modifiers":[],"parent":"io.github.libtmux.Client.Client","signatures":[{"raw":"@Operation(Kind.READ)\n public Optional fetchAttachment()","params":[],"returns":"Optional","typeScopeBoundary":false,"raises":[{"type":"TargetGoneException","doc":"if this client has detached"}]}],"doc":{"summary":"Takes a new capture and returns what this client is looking at now.","body":"Named to say it dispatches, unlike {@link #attachment()}. Every call is one live capture."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Client.java","line":120,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client.fetchAttachment","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client.Client.fetchAttachment","product":"core","slug":"io-github-libtmux-client-client-fetchattachment"},{"id":"io.github.libtmux.Client.Client.refresh","name":"refresh","kind":"method","modifiers":[],"parent":"io.github.libtmux.Client.Client","signatures":[{"raw":"@CheckReturnValue\n @Operation(Kind.READ)\n public Client refresh()","params":[],"returns":"Client","typeScopeBoundary":false,"raises":[{"type":"TargetGoneException","doc":"if this client has detached, or a different daemon answers on the endpoint"},{"type":"ServerUnavailableException","doc":"if no daemon is running"}]}],"doc":{"summary":"Takes a new capture and returns this client as it is now.","body":"This handle remains unchanged, as every handle's does."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Client.java","line":134,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client.refresh","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client.Client.refresh","product":"core","slug":"io-github-libtmux-client-client-refresh"},{"id":"io.github.libtmux.Client.Client.equals","name":"equals","kind":"method","modifiers":[],"parent":"io.github.libtmux.Client.Client","signatures":[{"raw":"@Override\n public boolean equals(Object other)","params":[{"name":"other","type":"Object"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Client.java","line":145,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client.equals","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client.Client.equals","product":"core","slug":"io-github-libtmux-client-client-equals"},{"id":"io.github.libtmux.Client.Client.hashCode","name":"hashCode","kind":"method","modifiers":[],"parent":"io.github.libtmux.Client.Client","signatures":[{"raw":"@Override\n public int hashCode()","params":[],"returns":"int","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Client.java","line":152,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client.hashCode","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client.Client.hashCode","product":"core","slug":"io-github-libtmux-client-client-hashcode"},{"id":"io.github.libtmux.Client.Client.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.Client.Client","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Client.java","line":157,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client.Client.toString","product":"core","slug":"io-github-libtmux-client-client-tostring"},{"id":"io.github.libtmux.ClientAttachment.ClientAttachment","name":"ClientAttachment","kind":"class","modifiers":[],"signatures":[{"raw":"public record ClientAttachment(Session session, Window activeWindow, Pane activePane)","params":[{"name":"session","type":"Session","doc":"the session the client is attached to"},{"name":"activeWindow","type":"Window","doc":"that session's active window"},{"name":"activePane","type":"Pane","doc":"that window's active pane, which is what the client's keystrokes reach"}]}],"typeScopeBoundary":false,"doc":{"summary":"What a client was looking at.","body":"All three are present together or not at all. A client attached to a session is looking at\nexactly one window of it and one pane of that window; an attachment holding only some of those\nwould describe a state tmux does not have."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ClientAttachment.java","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ClientAttachment","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ClientAttachment.ClientAttachment","product":"core","slug":"io-github-libtmux-clientattachment-clientattachment"},{"id":"io.github.libtmux.ClientAttachment.ClientAttachment.session","name":"session","kind":"method","parent":"io.github.libtmux.ClientAttachment.ClientAttachment","modifiers":[],"signatures":[{"params":[],"returns":"Session"}],"doc":{"summary":"the session the client is attached to"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ClientAttachment.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ClientAttachment.session","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ClientAttachment.ClientAttachment.session","product":"core","slug":"io-github-libtmux-clientattachment-clientattachment-session"},{"id":"io.github.libtmux.ClientAttachment.ClientAttachment.activeWindow","name":"activeWindow","kind":"method","parent":"io.github.libtmux.ClientAttachment.ClientAttachment","modifiers":[],"signatures":[{"params":[],"returns":"Window"}],"doc":{"summary":"that session's active window"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ClientAttachment.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ClientAttachment.activeWindow","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ClientAttachment.ClientAttachment.activeWindow","product":"core","slug":"io-github-libtmux-clientattachment-clientattachment-activewindow"},{"id":"io.github.libtmux.ClientAttachment.ClientAttachment.activePane","name":"activePane","kind":"method","parent":"io.github.libtmux.ClientAttachment.ClientAttachment","modifiers":[],"signatures":[{"params":[],"returns":"Pane"}],"doc":{"summary":"that window's active pane, which is what the client's keystrokes reach"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ClientAttachment.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ClientAttachment.activePane","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ClientAttachment.ClientAttachment.activePane","product":"core","slug":"io-github-libtmux-clientattachment-clientattachment-activepane"},{"id":"io.github.libtmux.CommandChain.CommandChain","name":"CommandChain","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"A sequence of tmux commands where each one acts on what the last one made.","body":"tmux moves its own current target as a group runs: a {@code new-window} makes the new window\ncurrent, a following {@code split-window} splits that window, and a following {@code send-keys}\ntypes into the pane that split produced. None of these steps names a target, and that is the\npoint — the alternative is a round trip per step to learn the id of the thing just created.\n\nThe whole chain is one tmux invocation, and every step is attributed individually, so a chain\nthat fails halfway says which step failed and which never ran."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CommandChain.java","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CommandChain","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CommandChain.CommandChain","product":"core","slug":"io-github-libtmux-commandchain-commandchain"},{"id":"io.github.libtmux.CommandChain.CommandChain.CommandChain","name":"CommandChain","kind":"method","modifiers":[],"parent":"io.github.libtmux.CommandChain.CommandChain","signatures":[{"raw":"CommandChain(Batch batch, Supplier running)","params":[{"name":"batch","type":"Batch"},{"name":"running","type":"Supplier"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/CommandChain.java","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CommandChain.CommandChain","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CommandChain.CommandChain.CommandChain","product":"core","slug":"io-github-libtmux-commandchain-commandchain-commandchain"},{"id":"io.github.libtmux.CommandChain.CommandChain.newWindow","name":"newWindow","kind":"method","modifiers":[],"parent":"io.github.libtmux.CommandChain.CommandChain","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public CommandChain newWindow(String name)","params":[{"name":"name","type":"String"}],"returns":"CommandChain","typeScopeBoundary":false}],"doc":{"summary":"Creates a window and makes it the one following steps act on."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CommandChain.java","line":34,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CommandChain.newWindow","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CommandChain.CommandChain.newWindow","product":"core","slug":"io-github-libtmux-commandchain-commandchain-newwindow"},{"id":"io.github.libtmux.CommandChain.CommandChain.renameWindow","name":"renameWindow","kind":"method","modifiers":[],"parent":"io.github.libtmux.CommandChain.CommandChain","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public CommandChain renameWindow(String name)","params":[{"name":"name","type":"String"}],"returns":"CommandChain","typeScopeBoundary":false}],"doc":{"summary":"Renames the current window."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CommandChain.java","line":40,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CommandChain.renameWindow","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CommandChain.CommandChain.renameWindow","product":"core","slug":"io-github-libtmux-commandchain-commandchain-renamewindow"},{"id":"io.github.libtmux.CommandChain.CommandChain.splitLeftRight","name":"splitLeftRight","kind":"method","modifiers":[],"parent":"io.github.libtmux.CommandChain.CommandChain","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public CommandChain splitLeftRight()","params":[],"returns":"CommandChain","typeScopeBoundary":false}],"doc":{"summary":"Splits the current pane into a left and a right one.","body":"Named for what it produces rather than for tmux's {@code -h}, which reads as though it\ndescribed the divider."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CommandChain.java","line":51,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CommandChain.splitLeftRight","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CommandChain.CommandChain.splitLeftRight","product":"core","slug":"io-github-libtmux-commandchain-commandchain-splitleftright"},{"id":"io.github.libtmux.CommandChain.CommandChain.splitTopBottom","name":"splitTopBottom","kind":"method","modifiers":[],"parent":"io.github.libtmux.CommandChain.CommandChain","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public CommandChain splitTopBottom()","params":[],"returns":"CommandChain","typeScopeBoundary":false}],"doc":{"summary":"Splits the current pane into a top and a bottom one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CommandChain.java","line":57,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CommandChain.splitTopBottom","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CommandChain.CommandChain.splitTopBottom","product":"core","slug":"io-github-libtmux-commandchain-commandchain-splittopbottom"},{"id":"io.github.libtmux.CommandChain.CommandChain.sendLine","name":"sendLine","kind":"method","modifiers":[],"parent":"io.github.libtmux.CommandChain.CommandChain","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public CommandChain sendLine(String command)","params":[{"name":"command","type":"String"}],"returns":"CommandChain","typeScopeBoundary":false}],"doc":{"summary":"Types a line into the current pane and presses Enter, which is how a command gets run."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CommandChain.java","line":63,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CommandChain.sendLine","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CommandChain.CommandChain.sendLine","product":"core","slug":"io-github-libtmux-commandchain-commandchain-sendline"},{"id":"io.github.libtmux.CommandChain.CommandChain.arrange","name":"arrange","kind":"method","modifiers":[],"parent":"io.github.libtmux.CommandChain.CommandChain","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public CommandChain arrange(String layout)","params":[{"name":"layout","type":"String"}],"returns":"CommandChain","typeScopeBoundary":false,"raises":[{"type":"IllegalArgumentException","doc":"if tmux would not recognise the layout, which on some versions ends the whole server rather than the command"},{"type":"UnsupportedFeatureException","doc":"if the layout name arrived after this release, which tmux cannot tell from any other name it does not know"}]}],"doc":{"summary":"Arranges the current window."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CommandChain.java","line":76,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CommandChain.arrange","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CommandChain.CommandChain.arrange","product":"core","slug":"io-github-libtmux-commandchain-commandchain-arrange"},{"id":"io.github.libtmux.CommandChain.CommandChain.then","name":"then","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.CommandChain.CommandChain","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public CommandChain then(String... argv)","params":[{"name":"argv","type":"String","variadic":"positional"}],"returns":"CommandChain","typeScopeBoundary":false},{"raw":"@Operation(Kind.CAPTURED)\n public CommandChain then(List argv)","params":[{"name":"argv","type":"List"}],"returns":"CommandChain","typeScopeBoundary":false}],"doc":{"summary":"Adds any tmux command, for whatever this class does not name."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CommandChain.java","line":82,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CommandChain.then","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CommandChain.CommandChain.then","product":"core","slug":"io-github-libtmux-commandchain-commandchain-then"},{"id":"io.github.libtmux.CommandChain.CommandChain.run","name":"run","kind":"method","modifiers":[],"parent":"io.github.libtmux.CommandChain.CommandChain","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public BatchResult run()","params":[],"returns":"BatchResult","typeScopeBoundary":false}],"doc":{"summary":"Runs the whole chain in one tmux invocation, attributing each step."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CommandChain.java","line":96,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CommandChain.run","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CommandChain.CommandChain.run","product":"core","slug":"io-github-libtmux-commandchain-commandchain-run"},{"id":"io.github.libtmux.Commands.Commands","name":"Commands","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The commands this tmux knows, read without starting a server to answer."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Commands.java","line":9,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Commands","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Commands.Commands","product":"core","slug":"io-github-libtmux-commands-commands"},{"id":"io.github.libtmux.Commands.Commands.Commands","name":"Commands","kind":"method","modifiers":[],"parent":"io.github.libtmux.Commands.Commands","signatures":[{"raw":"Commands(Server server)","params":[{"name":"server","type":"Server"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Commands.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Commands.Commands","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Commands.Commands.Commands","product":"core","slug":"io-github-libtmux-commands-commands-commands"},{"id":"io.github.libtmux.Commands.Commands.list","name":"list","kind":"method","modifiers":[],"parent":"io.github.libtmux.Commands.Commands","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public List list()","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"Every command, as tmux prints it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Commands.java","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Commands.list","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Commands.Commands.list","product":"core","slug":"io-github-libtmux-commands-commands-list"},{"id":"io.github.libtmux.control.ControlClient.ControlClient","name":"ControlClient","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"A tmux client that stays attached and answers one command at a time.","body":"This is what a semicolon group cannot be. tmux discards a group after its first failure, so a\nclient has to infer which command failed; here each request is independent, so a failure\ndiscards nothing behind it.\n\nReplies arrive in request order, so the writer sends one request at a time and matches its\nreply by position. A reply is the first block tmux writes for the request: an acknowledgement,\nwhich work the command deferred may outlive. What that command queued, as {@code if-shell}\nqueues its branch, and what a hook ran, arrive as blocks of their own, and none of them is taken\nfor the next request's reply. A deadline before the writer picks a request writes nothing; a\ndeadline after that point ends the client because the next reply could no longer be attributed\nsafely.\n\nThe reader and writer are platform threads. A library does not own the virtual-thread\nscheduler: a caller's CPU-bound task that never blocks keeps its carrier, and either thread\nunable to run stops the client from making progress. The reader only\nresolves replies and fills bounded subscription buffers; subscriber code runs on the thread that\npulls a value.\n\n**Threads.** {@link #send} may be called from several threads at once: requests\nqueue in the order they arrive and each caller gets its own reply. A subscription is read by one\nthread at a time.\n\n**Close it.** The client holds an attached tmux client, which is what makes tmux\npush output to it, and closing is what detaches that client and stops its threads. A client that\nis forgotten does not hold the JVM open — its threads are daemons — and the attached tmux client\nexits once the JVM does, because it reads its commands from a pipe that closes with it. Until then\nit is listed among the session's clients like any other."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlClient.java","line":69,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlClient","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlClient.ControlClient","product":"core","slug":"io-github-libtmux-control-controlclient-controlclient"},{"id":"io.github.libtmux.control.ControlClient.ControlClient.attachUnfenced","name":"attachUnfenced","kind":"method","modifiers":["static","overload"],"parent":"io.github.libtmux.control.ControlClient.ControlClient","signatures":[{"raw":"@Operation(Kind.LIFECYCLE)\n public static ControlClient attachUnfenced(ServerConfig config, SessionId session)","params":[{"name":"config","type":"ServerConfig","doc":"which tmux and which server"},{"name":"session","type":"SessionId","doc":"the session to attach to"}],"returns":"ControlClient","typeScopeBoundary":true},{"raw":"@Operation(Kind.LIFECYCLE)\n public static ControlClient attachUnfenced(ServerConfig config, SessionId session, Duration timeout)","params":[{"name":"config","type":"ServerConfig","doc":"which tmux and which server"},{"name":"session","type":"SessionId","doc":"the session to attach to"},{"name":"timeout","type":"Duration","doc":"how long to wait for the client to become ready"}],"returns":"ControlClient","typeScopeBoundary":true}],"doc":{"summary":"Attaches a control client to whatever server now answers this endpoint.","body":"Attaching is what makes tmux push {@code %output}: a control client that never attaches is\ntold about command replies and nothing else.\n\nThis does not check which tmux process answered. A socket can be taken over by a new\nserver that reuses the same session id. {@link io.github.libtmux.Server#control} attaches to\nthe process a capture already named; prefer it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlClient.java","line":141,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlClient.attachUnfenced","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlClient.ControlClient.attachUnfenced","product":"core","slug":"io-github-libtmux-control-controlclient-controlclient-attachunfenced"},{"id":"io.github.libtmux.control.ControlClient.ControlClient.attach","name":"attach","kind":"method","modifiers":["static","overload"],"parent":"io.github.libtmux.control.ControlClient.ControlClient","signatures":[{"raw":"@Operation(Kind.LIFECYCLE)\n public static ControlClient attach(\n ServerConfig config, SessionId session, long serverPid, String serverVersion, Duration timeout)","params":[{"name":"config","type":"ServerConfig"},{"name":"session","type":"SessionId"},{"name":"serverPid","type":"long","doc":"the tmux process a capture recorded"},{"name":"serverVersion","type":"String","doc":"the version text that process reported, compared as text"},{"name":"timeout","type":"Duration"}],"returns":"ControlClient","typeScopeBoundary":true},{"raw":"@Operation(Kind.LIFECYCLE)\n public static ControlClient attach(\n ControlCarrier carrier,\n ServerConfig config,\n SessionId session,\n long serverPid,\n java.util.OptionalLong serverStartTime,\n String serverVersion,\n Duration timeout)","params":[{"name":"carrier","type":"ControlCarrier"},{"name":"config","type":"ServerConfig"},{"name":"session","type":"SessionId"},{"name":"serverPid","type":"long"},{"name":"serverStartTime","type":"java.util.OptionalLong","doc":"when the captured process started, as {@code #{start_time}} reported it; compared when present, since a restarted tmux can be given the same pid and version"},{"name":"serverVersion","type":"String"},{"name":"timeout","type":"Duration"}],"returns":"ControlClient","typeScopeBoundary":true}],"doc":{"summary":"Attaches, then leaves unless the live server is still the process that was captured.","body":"A pid can be reused, so the version tmux reports is part of the check. A mismatch detaches\nbefore this client changes the server: layout refresh runs only after the check passes."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlClient.java","line":170,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlClient.attach","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlClient.ControlClient.attach","product":"core","slug":"io-github-libtmux-control-controlclient-controlclient-attach"},{"id":"io.github.libtmux.control.ControlClient.ControlClient.send","name":"send","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.control.ControlClient.ControlClient","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public ControlReply send(String... argv)","params":[{"name":"argv","type":"String","variadic":"positional"}],"returns":"ControlReply","typeScopeBoundary":false},{"raw":"@Operation(Kind.MUTATION)\n public ControlReply send(List argv)","params":[{"name":"argv","type":"List"}],"returns":"ControlReply","typeScopeBoundary":false},{"raw":"@Operation(Kind.MUTATION)\n public ControlReply send(List argv, Duration timeout)","params":[{"name":"argv","type":"List","doc":"the command, its arguments already separate elements"},{"name":"timeout","type":"Duration","doc":"how long to wait for tmux to answer"}],"returns":"ControlReply","typeScopeBoundary":false,"returnsDoc":"tmux's reply","raises":[{"type":"DispatchException","doc":"if the request cannot complete; its {@link DispatchException#outcome() outcome} is {@link DispatchOutcome#NOT_DISPATCHED} until the writer picks the request and {@link DispatchOutcome#UNKNOWN} afterwards"}]}],"doc":{"summary":"Runs one command and waits for its reply."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlClient.java","line":311,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlClient.send","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlClient.ControlClient.send","product":"core","slug":"io-github-libtmux-control-controlclient-controlclient-send"},{"id":"io.github.libtmux.control.ControlClient.ControlClient.isAlive","name":"isAlive","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlClient.ControlClient","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public boolean isAlive()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether the client is still running.","body":"A control client is a client of the server it talks to, so it ends when that server does.\nA carrier holding one needs to tell \"this command failed\" from \"there is no longer anything\nto send commands to\", which are the same exception until this is asked."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlClient.java","line":408,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlClient.isAlive","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlClient.ControlClient.isAlive","product":"core","slug":"io-github-libtmux-control-controlclient-controlclient-isalive"},{"id":"io.github.libtmux.control.ControlClient.ControlClient.subscribeOutput","name":"subscribeOutput","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlClient.ControlClient","signatures":[{"raw":"@Operation(Kind.STREAM)\n public EventSubscription subscribeOutput(int capacity)","params":[{"name":"capacity","type":"int","doc":"how many values this subscriber can retain before its oldest value is dropped"}],"returns":"EventSubscription","typeScopeBoundary":false,"returnsDoc":"a pull subscription owned by the caller","raises":[{"type":"IllegalArgumentException","doc":"if {@code capacity} is not positive"},{"type":"IllegalStateException","doc":"if the client has ended"}]}],"doc":{"summary":"Subscribes to terminal output tmux pushes."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlClient.java","line":421,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlClient.subscribeOutput","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlClient.ControlClient.subscribeOutput","product":"core","slug":"io-github-libtmux-control-controlclient-controlclient-subscribeoutput"},{"id":"io.github.libtmux.control.ControlClient.ControlClient.subscribeEvents","name":"subscribeEvents","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlClient.ControlClient","signatures":[{"raw":"@Operation(Kind.STREAM)\n public EventSubscription subscribeEvents(int capacity)","params":[{"name":"capacity","type":"int","doc":"how many values this subscriber can retain before its oldest value is dropped"}],"returns":"EventSubscription","typeScopeBoundary":false,"returnsDoc":"a pull subscription owned by the caller","raises":[{"type":"IllegalArgumentException","doc":"if {@code capacity} is not positive"},{"type":"IllegalStateException","doc":"if the client has ended"}]}],"doc":{"summary":"Subscribes to state changes tmux volunteers."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlClient.java","line":434,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlClient.subscribeEvents","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlClient.ControlClient.subscribeEvents","product":"core","slug":"io-github-libtmux-control-controlclient-controlclient-subscribeevents"},{"id":"io.github.libtmux.control.ControlClient.ControlClient.watch","name":"watch","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlClient.ControlClient","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public ControlReply watch(String name, String target, String format)","params":[{"name":"name","type":"String","doc":"what to call it; registering the same name again replaces the old one"},{"name":"target","type":"String","doc":"{@code %*} for every pane, {@code @*} for every window, a specific {@code %id} or {@code @id}, or the attached session (pass {@code \"\"} - see below)"},{"name":"format","type":"String","doc":"a tmux format, such as {@code #{pane_current_command}}"}],"returns":"ControlReply","typeScopeBoundary":false}],"doc":{"summary":"Asks tmux to report a format whenever its value changes.","body":"tmux re-expands the format about once a second and writes a {@code subscription-changed}\nevent only when the result differs from last time, so the comparison happens in the server and\na client that subscribes does nothing at all between changes. This is what makes watching a\nserver cost nothing while it is idle."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlClient.java","line":452,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlClient.watch","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlClient.ControlClient.watch","product":"core","slug":"io-github-libtmux-control-controlclient-controlclient-watch"},{"id":"io.github.libtmux.control.ControlClient.ControlClient.unwatch","name":"unwatch","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlClient.ControlClient","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public ControlReply unwatch(String name)","params":[{"name":"name","type":"String"}],"returns":"ControlReply","typeScopeBoundary":false}],"doc":{"summary":"Stops a watch. tmux reads a name with no colon in it as one to remove."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlClient.java","line":471,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlClient.unwatch","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlClient.ControlClient.unwatch","product":"core","slug":"io-github-libtmux-control-controlclient-controlclient-unwatch"},{"id":"io.github.libtmux.control.ControlClient.ControlClient.close","name":"close","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlClient.ControlClient","signatures":[{"raw":"@Operation(Kind.LIFECYCLE)\n @Override\n public void close()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Ends the client, rejecting queued requests and resolving picked requests as uncertain."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlClient.java","line":477,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlClient.close","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlClient.ControlClient.close","product":"core","slug":"io-github-libtmux-control-controlclient-controlclient-close"},{"id":"io.github.libtmux.control.ControlClient.ControlClient.line","name":"line","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.control.ControlClient.ControlClient","signatures":[{"raw":"static String line(List argv)","params":[{"name":"argv","type":"List"}],"returns":"String","typeScopeBoundary":true}],"doc":{"summary":"tmux parses a control-mode request as one line, so an argument has to survive its lexer. Single quotes preserve everything except a single quote, which is closed, escaped and reopened."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlClient.java","line":524,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlClient.line","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlClient.ControlClient.line","product":"core","slug":"io-github-libtmux-control-controlclient-controlclient-line"},{"id":"io.github.libtmux.control.ControlClient.ControlClient.standardError","name":"standardError","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlClient.ControlClient","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public String standardError()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The error text captured from this control process, at most 4096 bytes.","body":"Empty when the process wrote none. {@link #standardErrorTruncated()} says the stream\ncontinued past that bound. The text is whatever had been read when this is called."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlClient.java","line":580,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlClient.standardError","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlClient.ControlClient.standardError","product":"core","slug":"io-github-libtmux-control-controlclient-controlclient-standarderror"},{"id":"io.github.libtmux.control.ControlClient.ControlClient.standardErrorTruncated","name":"standardErrorTruncated","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlClient.ControlClient","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public boolean standardErrorTruncated()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether {@link #standardError()} stopped before the process finished writing it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlClient.java","line":588,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlClient.standardErrorTruncated","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlClient.ControlClient.standardErrorTruncated","product":"core","slug":"io-github-libtmux-control-controlclient-controlclient-standarderrortruncated"},{"id":"io.github.libtmux.control.ControlClient.ControlClient.unescape","name":"unescape","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.control.ControlClient.ControlClient","signatures":[{"raw":"static byte[] unescape(byte[] line, int from)","params":[{"name":"line","type":"byte[]"},{"name":"from","type":"int"}],"returns":"byte[]","typeScopeBoundary":true}],"doc":{"summary":"tmux writes a control byte or a backslash as a three-digit octal escape, and the rest raw."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlClient.java","line":721,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlClient.unescape","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlClient.ControlClient.unescape","product":"core","slug":"io-github-libtmux-control-controlclient-controlclient-unescape"},{"id":"io.github.libtmux.control.ControlEvent.ControlEvent","name":"ControlEvent","kind":"class","modifiers":[],"signatures":[{"raw":"public record ControlEvent(\n String kind, @ReadOnly List fields, Optional value, Notification notification)","params":[{"name":"kind","type":"String","doc":"the notification name, such as {@code window-add} or {@code subscription-changed}"},{"name":"fields","type":"List","doc":"the words that followed it, before any {@code :} separator"},{"name":"value","type":"Optional","doc":"what followed a {@code :} separator, which only a subscription carries"},{"name":"notification","type":"Notification","doc":"the same notification, typed"}]}],"typeScopeBoundary":false,"doc":{"summary":"Something tmux volunteered, rather than an answer to a request.","body":"A control client is told about changes as they happen — a window appearing, a session being\nrenamed, a layout moving — without anything asking. That is the difference between watching a\nserver and polling one.\n\nTwo readings of one line. {@link #notification()} is typed, for matching on: a sealed set of\nwhat tmux sends, with a {@link Notification.Unknown} case so that a notification a newer tmux adds\nstill arrives rather than being dropped. {@link #kind()}, {@link #fields()} and {@link #value()}\nare what tmux wrote, word by word, for anything the typed reading does not cover."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlEvent.java","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlEvent","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlEvent.ControlEvent","product":"core","slug":"io-github-libtmux-control-controlevent-controlevent"},{"id":"io.github.libtmux.control.ControlEvent.ControlEvent.ControlEvent","name":"ControlEvent","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlEvent.ControlEvent","signatures":[{"raw":"public ControlEvent(String kind, List fields, Optional value)","params":[{"name":"kind","type":"String"},{"name":"fields","type":"List"},{"name":"value","type":"Optional"}],"typeScopeBoundary":false}],"doc":{"summary":"An event from its words, with the typed reading taken from them.","body":"A name is rejoined from the words with single spaces, so one tmux wrote with a run of them\nreads back with one. {@link #parse} reads the line tmux wrote and has no such loss."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlEvent.java","line":39,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlEvent.ControlEvent","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlEvent.ControlEvent.ControlEvent","product":"core","slug":"io-github-libtmux-control-controlevent-controlevent-controlevent"},{"id":"io.github.libtmux.control.ControlEvent.ControlEvent.parse","name":"parse","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.control.ControlEvent.ControlEvent","signatures":[{"raw":"static Optional parse(String line)","params":[{"name":"line","type":"String","doc":"the line as tmux wrote it, leading {@code %} and all"}],"returns":"Optional","typeScopeBoundary":true,"returnsDoc":"the event, or empty when the line is not a notification"}],"doc":{"summary":"Reads one notification line."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlEvent.java","line":49,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlEvent.parse","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlEvent.ControlEvent.parse","product":"core","slug":"io-github-libtmux-control-controlevent-controlevent-parse"},{"id":"io.github.libtmux.control.ControlEvent.ControlEvent.subscription","name":"subscription","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlEvent.ControlEvent","signatures":[{"raw":"public Optional subscription()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The name a subscription was registered under, for an event that came from one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlEvent.java","line":74,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlEvent.subscription","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlEvent.ControlEvent.subscription","product":"core","slug":"io-github-libtmux-control-controlevent-controlevent-subscription"},{"id":"io.github.libtmux.control.ControlEvent.ControlEvent.paneId","name":"paneId","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlEvent.ControlEvent","signatures":[{"raw":"public Optional paneId()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The first field naming a pane, which is how an event says which pane it is about."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlEvent.java","line":79,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlEvent.paneId","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlEvent.ControlEvent.paneId","product":"core","slug":"io-github-libtmux-control-controlevent-controlevent-paneid"},{"id":"io.github.libtmux.control.ControlEvent.ControlEvent.windowId","name":"windowId","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlEvent.ControlEvent","signatures":[{"raw":"public Optional windowId()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The first field naming a window."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlEvent.java","line":87,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlEvent.windowId","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlEvent.ControlEvent.windowId","product":"core","slug":"io-github-libtmux-control-controlevent-controlevent-windowid"},{"id":"io.github.libtmux.control.ControlEvent.ControlEvent.kind","name":"kind","kind":"method","parent":"io.github.libtmux.control.ControlEvent.ControlEvent","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"the notification name, such as {@code window-add} or {@code subscription-changed}"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlEvent.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlEvent.kind","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlEvent.ControlEvent.kind","product":"core","slug":"io-github-libtmux-control-controlevent-controlevent-kind"},{"id":"io.github.libtmux.control.ControlEvent.ControlEvent.fields","name":"fields","kind":"method","parent":"io.github.libtmux.control.ControlEvent.ControlEvent","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"doc":{"summary":"the words that followed it, before any {@code :} separator"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlEvent.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlEvent.fields","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlEvent.ControlEvent.fields","product":"core","slug":"io-github-libtmux-control-controlevent-controlevent-fields"},{"id":"io.github.libtmux.control.ControlEvent.ControlEvent.value","name":"value","kind":"method","parent":"io.github.libtmux.control.ControlEvent.ControlEvent","modifiers":[],"signatures":[{"params":[],"returns":"Optional"}],"doc":{"summary":"what followed a {@code :} separator, which only a subscription carries"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlEvent.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlEvent.value","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlEvent.ControlEvent.value","product":"core","slug":"io-github-libtmux-control-controlevent-controlevent-value"},{"id":"io.github.libtmux.control.ControlEvent.ControlEvent.notification","name":"notification","kind":"method","parent":"io.github.libtmux.control.ControlEvent.ControlEvent","modifiers":[],"signatures":[{"params":[],"returns":"Notification"}],"doc":{"summary":"the same notification, typed"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlEvent.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlEvent.notification","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlEvent.ControlEvent.notification","product":"core","slug":"io-github-libtmux-control-controlevent-controlevent-notification"},{"id":"io.github.libtmux.control.ControlLineReader.ControlLineReader","name":"ControlLineReader","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Reads bounded physical lines from a control client's byte stream."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlLineReader.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlLineReader","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlLineReader.ControlLineReader","product":"core","slug":"io-github-libtmux-control-controllinereader-controllinereader"},{"id":"io.github.libtmux.control.ControlLineReader.ControlLineReader.ControlLineReader","name":"ControlLineReader","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlLineReader.ControlLineReader","signatures":[{"raw":"ControlLineReader(InputStream source, int maxBytes)","params":[{"name":"source","type":"InputStream"},{"name":"maxBytes","type":"int"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlLineReader.java","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlLineReader.ControlLineReader","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlLineReader.ControlLineReader.ControlLineReader","product":"core","slug":"io-github-libtmux-control-controllinereader-controllinereader-controllinereader"},{"id":"io.github.libtmux.control.ControlLineReader.ControlLineReader.Line","name":"Line","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.ControlLineReader.ControlLineReader","signatures":[{"raw":"@SuppressWarnings(\"ArrayRecordComponent\") // Internal: read once by the thread that made it.\n record Line(String text, int encodedBytes, byte[] bytes)","params":[{"name":"text","type":"String"},{"name":"encodedBytes","type":"int"},{"name":"bytes","type":"byte[]"}]}],"typeScopeBoundary":true,"doc":{"summary":"A line as text, its length on the wire, and its bytes without the line ending."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlLineReader.java","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlLineReader.Line","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlLineReader.ControlLineReader.Line","product":"core","slug":"io-github-libtmux-control-controllinereader-controllinereader-line"},{"id":"io.github.libtmux.control.ControlLineReader.ControlLineReader.Line.text","name":"text","kind":"method","parent":"io.github.libtmux.control.ControlLineReader.ControlLineReader.Line","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlLineReader.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlLineReader.Line.text","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlLineReader.ControlLineReader.Line.text","product":"core","slug":"io-github-libtmux-control-controllinereader-controllinereader-line-text"},{"id":"io.github.libtmux.control.ControlLineReader.ControlLineReader.Line.encodedBytes","name":"encodedBytes","kind":"method","parent":"io.github.libtmux.control.ControlLineReader.ControlLineReader.Line","modifiers":[],"signatures":[{"params":[],"returns":"int"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlLineReader.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlLineReader.Line.encodedBytes","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlLineReader.ControlLineReader.Line.encodedBytes","product":"core","slug":"io-github-libtmux-control-controllinereader-controllinereader-line-encodedbytes"},{"id":"io.github.libtmux.control.ControlLineReader.ControlLineReader.Line.bytes","name":"bytes","kind":"method","parent":"io.github.libtmux.control.ControlLineReader.ControlLineReader.Line","modifiers":[],"signatures":[{"params":[],"returns":"byte[]"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlLineReader.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlLineReader.Line.bytes","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlLineReader.ControlLineReader.Line.bytes","product":"core","slug":"io-github-libtmux-control-controllinereader-controllinereader-line-bytes"},{"id":"io.github.libtmux.control.ControlLineReader.ControlLineReader.readLine","name":"readLine","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlLineReader.ControlLineReader","signatures":[{"raw":"@Nullable\n Line readLine() throws IOException","params":[],"returns":"Line","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlLineReader.java","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlLineReader.readLine","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlLineReader.ControlLineReader.readLine","product":"core","slug":"io-github-libtmux-control-controllinereader-controllinereader-readline"},{"id":"io.github.libtmux.control.ControlLineReader.ControlLineReader.close","name":"close","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlLineReader.ControlLineReader","signatures":[{"raw":"@Override\n public void close() throws IOException","params":[],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlLineReader.java","line":58,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlLineReader.close","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlLineReader.ControlLineReader.close","product":"core","slug":"io-github-libtmux-control-controllinereader-controllinereader-close"},{"id":"io.github.libtmux.control.ControlProtocol.ControlProtocol","name":"ControlProtocol","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Frames control-mode replies and encodes requests for tmux's command parser."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlProtocol.java","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlProtocol","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlProtocol.ControlProtocol","product":"core","slug":"io-github-libtmux-control-controlprotocol-controlprotocol"},{"id":"io.github.libtmux.control.ControlProtocol.ControlProtocol.DEFAULT_MAX_REPLY_BYTES","name":"DEFAULT_MAX_REPLY_BYTES","kind":"attribute","modifiers":["static","readonly"],"parent":"io.github.libtmux.control.ControlProtocol.ControlProtocol","signatures":[],"typeScopeBoundary":true,"type":"int","value":"16 * 1024 * 1024","source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlProtocol.java","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlProtocol.DEFAULT_MAX_REPLY_BYTES","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlProtocol.ControlProtocol.DEFAULT_MAX_REPLY_BYTES","product":"core","slug":"io-github-libtmux-control-controlprotocol-controlprotocol-default_max_reply_bytes"},{"id":"io.github.libtmux.control.ControlProtocol.ControlProtocol.ControlProtocol","name":"ControlProtocol","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.control.ControlProtocol.ControlProtocol","signatures":[{"raw":"ControlProtocol()","params":[],"typeScopeBoundary":false},{"raw":"ControlProtocol(int maxReplyBytes)","params":[{"name":"maxReplyBytes","type":"int"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlProtocol.java","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlProtocol.ControlProtocol","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlProtocol.ControlProtocol.ControlProtocol","product":"core","slug":"io-github-libtmux-control-controlprotocol-controlprotocol-controlprotocol"},{"id":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Result","name":"Result","kind":"interface","modifiers":[],"parent":"io.github.libtmux.control.ControlProtocol.ControlProtocol","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlProtocol.java","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlProtocol.Result","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Result","product":"core","slug":"io-github-libtmux-control-controlprotocol-controlprotocol-result"},{"id":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Awaiting","name":"Awaiting","kind":"enum","modifiers":[],"parent":"io.github.libtmux.control.ControlProtocol.ControlProtocol","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlProtocol.java","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlProtocol.Awaiting","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Awaiting","product":"core","slug":"io-github-libtmux-control-controlprotocol-controlprotocol-awaiting"},{"id":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Awaiting.INSTANCE","name":"INSTANCE","kind":"constant","modifiers":[],"parent":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Awaiting","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlProtocol.java","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlProtocol.Awaiting.INSTANCE","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Awaiting.INSTANCE","product":"core","slug":"io-github-libtmux-control-controlprotocol-controlprotocol-awaiting-instance"},{"id":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Notification","name":"Notification","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.ControlProtocol.ControlProtocol","signatures":[{"raw":"record Notification(String line) implements Result","params":[{"name":"line","type":"String"}]}],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlProtocol.java","line":41,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlProtocol.Notification","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Notification","product":"core","slug":"io-github-libtmux-control-controlprotocol-controlprotocol-notification"},{"id":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Notification.line","name":"line","kind":"method","parent":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Notification","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlProtocol.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlProtocol.Notification.line","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Notification.line","product":"core","slug":"io-github-libtmux-control-controlprotocol-controlprotocol-notification-line"},{"id":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Reply","name":"Reply","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.ControlProtocol.ControlProtocol","signatures":[{"raw":"record Reply(OperationOutcome outcome, @ReadOnly List lines, boolean requested) implements Result","params":[{"name":"outcome","type":"OperationOutcome"},{"name":"lines","type":"List"},{"name":"requested","type":"boolean"}]}],"typeScopeBoundary":true,"doc":{"summary":"One reply block. {@code requested} is tmux's guard flag: set for a command this client wrote, and for any that command queued, and clear for what a hook ran."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlProtocol.java","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlProtocol.Reply","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Reply","product":"core","slug":"io-github-libtmux-control-controlprotocol-controlprotocol-reply"},{"id":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Reply.outcome","name":"outcome","kind":"method","parent":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Reply","modifiers":[],"signatures":[{"params":[],"returns":"OperationOutcome"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlProtocol.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlProtocol.Reply.outcome","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Reply.outcome","product":"core","slug":"io-github-libtmux-control-controlprotocol-controlprotocol-reply-outcome"},{"id":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Reply.lines","name":"lines","kind":"method","parent":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Reply","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlProtocol.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlProtocol.Reply.lines","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Reply.lines","product":"core","slug":"io-github-libtmux-control-controlprotocol-controlprotocol-reply-lines"},{"id":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Reply.requested","name":"requested","kind":"method","parent":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Reply","modifiers":[],"signatures":[{"params":[],"returns":"boolean"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlProtocol.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlProtocol.Reply.requested","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Reply.requested","product":"core","slug":"io-github-libtmux-control-controlprotocol-controlprotocol-reply-requested"},{"id":"io.github.libtmux.control.ControlProtocol.ControlProtocol.accept","name":"accept","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.control.ControlProtocol.ControlProtocol","signatures":[{"raw":"Result accept(String line)","params":[{"name":"line","type":"String"}],"returns":"Result","typeScopeBoundary":false},{"raw":"Result accept(String line, int encodedBytes)","params":[{"name":"line","type":"String"},{"name":"encodedBytes","type":"int"}],"returns":"Result","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlProtocol.java","line":54,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlProtocol.accept","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlProtocol.ControlProtocol.accept","product":"core","slug":"io-github-libtmux-control-controlprotocol-controlprotocol-accept"},{"id":"io.github.libtmux.control.ControlProtocol.ControlProtocol.line","name":"line","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.control.ControlProtocol.ControlProtocol","signatures":[{"raw":"static String line(List argv)","params":[{"name":"argv","type":"List"}],"returns":"String","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlProtocol.java","line":98,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlProtocol.line","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlProtocol.ControlProtocol.line","product":"core","slug":"io-github-libtmux-control-controlprotocol-controlprotocol-line"},{"id":"io.github.libtmux.control.ControlProtocol.ControlProtocol.LimitExceeded","name":"LimitExceeded","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.control.ControlProtocol.ControlProtocol","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlProtocol.java","line":113,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlProtocol.LimitExceeded","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlProtocol.ControlProtocol.LimitExceeded","product":"core","slug":"io-github-libtmux-control-controlprotocol-controlprotocol-limitexceeded"},{"id":"io.github.libtmux.control.ControlProtocol.ControlProtocol.LimitExceeded.LimitExceeded","name":"LimitExceeded","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlProtocol.ControlProtocol.LimitExceeded","signatures":[{"raw":"LimitExceeded(int limit)","params":[{"name":"limit","type":"int"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlProtocol.java","line":116,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlProtocol.LimitExceeded.LimitExceeded","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlProtocol.ControlProtocol.LimitExceeded.LimitExceeded","product":"core","slug":"io-github-libtmux-control-controlprotocol-controlprotocol-limitexceeded-limitexceeded"},{"id":"io.github.libtmux.control.ControlReply.ControlReply","name":"ControlReply","kind":"class","modifiers":[],"signatures":[{"raw":"public record ControlReply(\n OperationOutcome outcome, @ReadOnly List lines)","params":[{"name":"outcome","type":"OperationOutcome","doc":"what tmux said became of it; never {@code SKIPPED}, because control-mode requests are independent and a failure discards nothing behind it"},{"name":"lines","type":"List","doc":"the lines tmux produced between the reply's own begin and end markers"}]}],"typeScopeBoundary":false,"doc":{"summary":"One command's reply in control mode."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlReply.java","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlReply","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlReply.ControlReply","product":"core","slug":"io-github-libtmux-control-controlreply-controlreply"},{"id":"io.github.libtmux.control.ControlReply.ControlReply.succeeded","name":"succeeded","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlReply.ControlReply","signatures":[{"raw":"public boolean succeeded()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether tmux ran the command and it succeeded."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlReply.java","line":22,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlReply.succeeded","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlReply.ControlReply.succeeded","product":"core","slug":"io-github-libtmux-control-controlreply-controlreply-succeeded"},{"id":"io.github.libtmux.control.ControlReply.ControlReply.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlReply.ControlReply","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"Counts only: reply lines carry pane content."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlReply.java","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlReply.toString","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlReply.ControlReply.toString","product":"core","slug":"io-github-libtmux-control-controlreply-controlreply-tostring"},{"id":"io.github.libtmux.control.ControlReply.ControlReply.outcome","name":"outcome","kind":"method","parent":"io.github.libtmux.control.ControlReply.ControlReply","modifiers":[],"signatures":[{"params":[],"returns":"OperationOutcome"}],"doc":{"summary":"what tmux said became of it; never {@code SKIPPED}, because control-mode requests are independent and a failure discards nothing behind it"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlReply.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlReply.outcome","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlReply.ControlReply.outcome","product":"core","slug":"io-github-libtmux-control-controlreply-controlreply-outcome"},{"id":"io.github.libtmux.control.ControlReply.ControlReply.lines","name":"lines","kind":"method","parent":"io.github.libtmux.control.ControlReply.ControlReply","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"doc":{"summary":"the lines tmux produced between the reply's own begin and end markers"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlReply.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlReply.lines","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlReply.ControlReply.lines","product":"core","slug":"io-github-libtmux-control-controlreply-controlreply-lines"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter","name":"ControlWriter","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Owns the process-pipe write and the FIFO that attributes replies to requests.","body":"A request's reply is the first block tmux writes for it: an acknowledgement, which deferred\nwork may outlive. But tmux answers every command another one queues with a block of its own, as\n{@code if-shell} queues its branch and {@code run-shell} reports its job, numbered like any other.\nSo each request line is followed by a second, {@code display-message -p} of a marker unique to it:\ntmux runs that after everything the request queued, whether the request failed or not. Blocks\nbetween a reply and its marker belong to the request already answered, and are not handed to\nthe next one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":34,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.DEFAULT_CAPACITY","name":"DEFAULT_CAPACITY","kind":"attribute","modifiers":["static","readonly"],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter","signatures":[],"typeScopeBoundary":true,"type":"int","value":"64","source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.DEFAULT_CAPACITY","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.DEFAULT_CAPACITY","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-default_capacity"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.ControlWriter","name":"ControlWriter","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter","signatures":[{"raw":"ControlWriter(BufferedWriter output, int capacity, Consumer failed)","params":[{"name":"output","type":"BufferedWriter"},{"name":"capacity","type":"int"},{"name":"failed","type":"Consumer"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":50,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.ControlWriter","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.ControlWriter","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-controlwriter"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.expectInitial","name":"expectInitial","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter","signatures":[{"raw":"Request expectInitial(Duration timeout)","params":[{"name":"timeout","type":"Duration"}],"returns":"Request","typeScopeBoundary":false}],"doc":{"summary":"Records the attach request dispatched by the process invocation."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":64,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.expectInitial","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.expectInitial","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-expectinitial"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.start","name":"start","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter","signatures":[{"raw":"void start()","params":[],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":73,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.start","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.start","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-start"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.exchange","name":"exchange","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter","signatures":[{"raw":"ControlReply exchange(String line, Duration timeout)","params":[{"name":"line","type":"String"},{"name":"timeout","type":"Duration"}],"returns":"ControlReply","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":77,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.exchange","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.exchange","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-exchange"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.takeTiming","name":"takeTiming","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter","signatures":[{"raw":"long[] takeTiming(long elapsed)","params":[{"name":"elapsed","type":"long"}],"returns":"long[]","typeScopeBoundary":false}],"doc":{"summary":"Queue time, then run time, for the last exchange on this thread; {@code elapsed} as run time when this thread made none."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":110,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.takeTiming","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.takeTiming","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-taketiming"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.complete","name":"complete","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter","signatures":[{"raw":"void complete(OperationOutcome outcome, List lines, boolean requested)","params":[{"name":"outcome","type":"OperationOutcome"},{"name":"lines","type":"List"},{"name":"requested","type":"boolean","doc":"tmux's guard flag: clear for a block a hook ran, which answers no request"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Called by the reader for each reply block, in the order tmux wrote them."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":121,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.complete","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.complete","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-complete"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.readerEnded","name":"readerEnded","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter","signatures":[{"raw":"void readerEnded()","params":[],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":148,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.readerEnded","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.readerEnded","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-readerended"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.close","name":"close","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter","signatures":[{"raw":"void close()","params":[],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":152,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.close","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.close","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-close"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.join","name":"join","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter","signatures":[{"raw":"void join(long timeoutMillis) throws InterruptedException","params":[{"name":"timeoutMillis","type":"long"}],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":156,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.join","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.join","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-join"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.await","name":"await","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter","signatures":[{"raw":"ControlReply await(Request request)","params":[{"name":"request","type":"Request"}],"returns":"ControlReply","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":170,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.await","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.await","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-await"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.Request","name":"Request","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":329,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.Request","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.Request","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-request"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.pick","name":"pick","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter.Request","signatures":[{"raw":"boolean pick()","params":[],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":356,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.Request.pick","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.pick","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-request-pick"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.timing","name":"timing","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter.Request","signatures":[{"raw":"long[] timing(long now)","params":[{"name":"now","type":"long"}],"returns":"long[]","typeScopeBoundary":false}],"doc":{"summary":"Queue time, then run time, up to now. A request never picked spent all of it queued."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":366,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.Request.timing","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.timing","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-request-timing"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.cancel","name":"cancel","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter.Request","signatures":[{"raw":"boolean cancel(DispatchException reason)","params":[{"name":"reason","type":"DispatchException"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":373,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.Request.cancel","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.cancel","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-request-cancel"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.complete","name":"complete","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter.Request","signatures":[{"raw":"void complete(ControlReply reply)","params":[{"name":"reply","type":"ControlReply"}],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":377,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.Request.complete","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.complete","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-request-complete"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.fail","name":"fail","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter.Request","signatures":[{"raw":"boolean fail(DispatchException reason)","params":[{"name":"reason","type":"DispatchException"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":381,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.Request.fail","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.fail","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-request-fail"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.claimFailure","name":"claimFailure","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter.Request","signatures":[{"raw":"boolean claimFailure()","params":[],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":389,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.Request.claimFailure","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.claimFailure","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-request-claimfailure"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.publishFailure","name":"publishFailure","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter.Request","signatures":[{"raw":"void publishFailure(DispatchException reason)","params":[{"name":"reason","type":"DispatchException"}],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":393,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.Request.publishFailure","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.publishFailure","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-request-publishfailure"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.isDone","name":"isDone","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter.Request","signatures":[{"raw":"boolean isDone()","params":[],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":406,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.Request.isDone","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.isDone","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-request-isdone"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.remainingNanos","name":"remainingNanos","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter.Request","signatures":[{"raw":"long remainingNanos()","params":[],"returns":"long","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":410,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.Request.remainingNanos","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.remainingNanos","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-request-remainingnanos"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.await","name":"await","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter.Request","signatures":[{"raw":"boolean await() throws InterruptedException","params":[],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":415,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.Request.await","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.await","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-request-await"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.answer","name":"answer","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter.Request","signatures":[{"raw":"ControlReply answer()","params":[],"returns":"ControlReply","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":419,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.Request.answer","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.answer","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-request-answer"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.awaitTerminal","name":"awaitTerminal","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter.Request","signatures":[{"raw":"void awaitTerminal()","params":[],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":430,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.Request.awaitTerminal","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.awaitTerminal","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-request-awaitterminal"},{"id":"io.github.libtmux.control.Delivery.Delivery","name":"Delivery","kind":"interface","modifiers":[],"signatures":[],"typeScopeBoundary":false,"typeParams":["T"],"typeParamNames":["T"],"typeParameters":[{"name":"T","doc":"the event type"}],"doc":{"summary":"One step in a control subscription.","body":"A {@link Gap} sits in the sequence where events were discarded, ahead of the events that\nsurvived. It is not a side total: the next read is the gap, and the one after it is whatever\nremains."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Delivery.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Delivery","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Delivery.Delivery","product":"core","slug":"io-github-libtmux-control-delivery-delivery"},{"id":"io.github.libtmux.control.Delivery.Delivery.kept","name":"kept","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.control.Delivery.Delivery","signatures":[{"raw":"static T kept(Delivery step)","params":[{"name":"step","type":"Delivery","doc":"the subscription's next step"}],"returns":"T","typeParamNames":["T"],"typeScopeBoundary":true,"typeParams":["T"],"typeParameters":[{"name":"T","doc":"the event type"}],"returnsDoc":"the event","raises":[{"type":"IllegalStateException","doc":"if {@code step} is a gap"}]}],"doc":{"summary":"The event a strict reader kept. A gap fails the read."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Delivery.java","line":22,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Delivery.kept","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Delivery.Delivery.kept","product":"core","slug":"io-github-libtmux-control-delivery-delivery-kept"},{"id":"io.github.libtmux.control.Delivery.Delivery.Event","name":"Event","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Delivery.Delivery","signatures":[{"raw":"record Event(T value) implements Delivery","params":[{"name":"value","type":"T","doc":"the event"}],"typeParamNames":["T"],"typeParams":["T"],"typeParameters":[{"name":"T","doc":"the event type"}]}],"typeScopeBoundary":true,"typeParams":["T"],"typeParamNames":["T"],"typeParameters":[{"name":"T","doc":"the event type"}],"doc":{"summary":"An event the subscription kept."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Delivery.java","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Delivery.Event","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Delivery.Delivery.Event","product":"core","slug":"io-github-libtmux-control-delivery-delivery-event"},{"id":"io.github.libtmux.control.Delivery.Delivery.Event.value","name":"value","kind":"method","parent":"io.github.libtmux.control.Delivery.Delivery.Event","modifiers":[],"signatures":[{"params":[],"returns":"T"}],"doc":{"summary":"the event"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Delivery.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Delivery.Event.value","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Delivery.Delivery.Event.value","product":"core","slug":"io-github-libtmux-control-delivery-delivery-event-value"},{"id":"io.github.libtmux.control.Delivery.Delivery.Gap","name":"Gap","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Delivery.Delivery","signatures":[{"raw":"record Gap(long missed) implements Delivery","params":[{"name":"missed","type":"long","doc":"the number discarded, at least one"}],"typeParamNames":["T"],"typeParams":["T"],"typeParameters":[{"name":"T","doc":"the event type"}]}],"typeScopeBoundary":true,"typeParams":["T"],"typeParamNames":["T"],"typeParameters":[{"name":"T","doc":"the event type"}],"doc":{"summary":"How many events were discarded since the previous read because the buffer was full."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Delivery.java","line":43,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Delivery.Gap","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Delivery.Delivery.Gap","product":"core","slug":"io-github-libtmux-control-delivery-delivery-gap"},{"id":"io.github.libtmux.control.Delivery.Delivery.Gap.missed","name":"missed","kind":"method","parent":"io.github.libtmux.control.Delivery.Delivery.Gap","modifiers":[],"signatures":[{"params":[],"returns":"long"}],"doc":{"summary":"the number discarded, at least one"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Delivery.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Delivery.Gap.missed","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Delivery.Delivery.Gap.missed","product":"core","slug":"io-github-libtmux-control-delivery-delivery-gap-missed"},{"id":"io.github.libtmux.control.EventSubscription.EventSubscription","name":"EventSubscription","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"typeParams":["T"],"typeParamNames":["T"],"typeParameters":[{"name":"T","doc":"the event type"}],"doc":{"summary":"Pulls events volunteered by one control client.","body":"Each subscription owns a fixed-capacity buffer. When that buffer is full, the next event\nreplaces its oldest event. The read that follows is a {@link Delivery.Gap} naming how many were\ndiscarded since the previous read, and only then the events that remain. {@link #droppedCount()}\nis the total across the subscription's life. Another subscription has its own buffer and its own\ngaps. The control protocol reader only offers values to these buffers, and never runs subscriber\ncode beyond a {@link #onReady readiness callback}.\n\nOne reader at a time. Public operations are thread-safe, and reads from different threads one\nafter another are fine — a coroutine or a fiber moves between threads — but a read that overlaps\nanother, or any read once {@link #stream()} or {@link #publisher()} has taken the subscription, is\nrefused with {@link IllegalStateException}: two readers would split one sequence and its gaps\nbetween them. For a second reader, subscribe again; each subscription gets every event.\n\n{@link #next()} blocks. {@link #poll()} never does, and {@link #onReady(Runnable)} arms a\none-shot wakeup for when there is something to poll, so an event loop or a coroutine can read\nwithout holding a thread while nothing arrives.\n\nA subscription does not reconnect. When it ends, {@link #next()} returns empty. {@link\n#cause()} is empty when the caller closed it, and set when the control client ended it. Attach\nagain from the captured session and read a snapshot; nothing already missed is replayed.\n\nEnding is terminal and wakes threads blocked in {@link #next()}. A caller's {@link #close()}\ndiscards buffered events: the caller has chosen not to read them, so they are not overflow and do\nnot increment the loss count. When the control client ends a subscription, what it had already\ndelivered stays readable, a pending gap first, and only then does a read return empty with\n{@link #cause()} set."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/EventSubscription.java","line":53,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.EventSubscription","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.EventSubscription.EventSubscription","product":"core","slug":"io-github-libtmux-control-eventsubscription-eventsubscription"},{"id":"io.github.libtmux.control.EventSubscription.EventSubscription.EventSubscription","name":"EventSubscription","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.EventSubscription.EventSubscription","signatures":[{"raw":"EventSubscription(int capacity, Consumer> onClose)","params":[{"name":"capacity","type":"int"},{"name":"onClose","type":"Consumer>"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/EventSubscription.java","line":74,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.EventSubscription.EventSubscription","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.EventSubscription.EventSubscription.EventSubscription","product":"core","slug":"io-github-libtmux-control-eventsubscription-eventsubscription-eventsubscription"},{"id":"io.github.libtmux.control.EventSubscription.EventSubscription.offer","name":"offer","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.EventSubscription.EventSubscription","signatures":[{"raw":"void offer(T event)","params":[{"name":"event","type":"T"}],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/EventSubscription.java","line":82,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.EventSubscription.offer","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.EventSubscription.EventSubscription.offer","product":"core","slug":"io-github-libtmux-control-eventsubscription-eventsubscription-offer"},{"id":"io.github.libtmux.control.EventSubscription.EventSubscription.droppedCount","name":"droppedCount","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.EventSubscription.EventSubscription","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public long droppedCount()","params":[],"returns":"long","typeScopeBoundary":false,"returnsDoc":"the monotonic loss count"}],"doc":{"summary":"Returns the exact number of events discarded because this subscription's buffer was full."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/EventSubscription.java","line":118,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.EventSubscription.droppedCount","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.EventSubscription.EventSubscription.droppedCount","product":"core","slug":"io-github-libtmux-control-eventsubscription-eventsubscription-droppedcount"},{"id":"io.github.libtmux.control.EventSubscription.EventSubscription.cause","name":"cause","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.EventSubscription.EventSubscription","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Optional cause()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"Why this subscription ended, when the control client ended it.","body":"Empty when the subscription is still open, and empty when the caller closed it. A client\nthat died sets this before the read returns empty."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/EventSubscription.java","line":134,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.EventSubscription.cause","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.EventSubscription.EventSubscription.cause","product":"core","slug":"io-github-libtmux-control-eventsubscription-eventsubscription-cause"},{"id":"io.github.libtmux.control.EventSubscription.EventSubscription.next","name":"next","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.control.EventSubscription.EventSubscription","signatures":[{"raw":"@Operation(Kind.WAIT)\n public Optional> next() throws InterruptedException","params":[],"returns":"Optional>","typeScopeBoundary":false,"returnsDoc":"the next gap or event, or empty when the subscription has closed and no gap is waiting","raises":[{"type":"IllegalStateException","doc":"if another read is in progress, or a stream or publisher owns this subscription"},{"type":"InterruptedException","doc":"if the waiting thread is interrupted"}]},{"raw":"@Operation(Kind.WAIT)\n public Optional> next(Duration timeout) throws InterruptedException","params":[{"name":"timeout","type":"Duration","doc":"how long to wait, zero to inspect the buffer without waiting"}],"returns":"Optional>","typeScopeBoundary":false,"returnsDoc":"the next gap or event, or empty when none arrived before the deadline","raises":[{"type":"IllegalArgumentException","doc":"if {@code timeout} is negative"},{"type":"IllegalStateException","doc":"if another read is in progress, or a stream or publisher owns this subscription"},{"type":"InterruptedException","doc":"if the waiting thread is interrupted"}]}],"doc":{"summary":"Waits until the next step arrives or this subscription closes."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/EventSubscription.java","line":152,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.EventSubscription.next","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.EventSubscription.EventSubscription.next","product":"core","slug":"io-github-libtmux-control-eventsubscription-eventsubscription-next"},{"id":"io.github.libtmux.control.EventSubscription.EventSubscription.poll","name":"poll","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.EventSubscription.EventSubscription","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Optional> poll()","params":[],"returns":"Optional>","typeScopeBoundary":false,"returnsDoc":"the next gap or event, or empty when none is buffered; after the subscription has ended, empty once what it held is read","raises":[{"type":"IllegalStateException","doc":"if another read is in progress, or a stream or publisher owns this subscription"}]}],"doc":{"summary":"Returns the next step if one is waiting, without blocking."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/EventSubscription.java","line":189,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.EventSubscription.poll","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.EventSubscription.EventSubscription.poll","product":"core","slug":"io-github-libtmux-control-eventsubscription-eventsubscription-poll"},{"id":"io.github.libtmux.control.EventSubscription.EventSubscription.onReady","name":"onReady","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.EventSubscription.EventSubscription","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public void onReady(Runnable callback)","params":[{"name":"callback","type":"Runnable"}],"returns":"void","typeScopeBoundary":false,"raises":[{"type":"IllegalStateException","doc":"if a callback is already armed, or a stream or publisher owns this subscription"}]}],"doc":{"summary":"Arms a one-shot wakeup for when this subscription has something to read, or has ended.","body":"Runs {@code callback} at once, on this thread, when a step is already waiting or the\nsubscription has ended. Otherwise it runs once, on the control client's reader thread, when the\nfirst step arrives or the subscription ends, and is then disarmed: drain with {@link #poll()}\nuntil it is empty, then arm again. Checking and arming happen under the lock that delivery\ntakes, so a step cannot slip between them unannounced.\n\nThe callback runs on the thread delivering events, so it must not block: resume a waiting\ncoroutine, complete a promise, and return. One that throws is logged and ignored, and delivery\ncontinues."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/EventSubscription.java","line":220,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.EventSubscription.onReady","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.EventSubscription.EventSubscription.onReady","product":"core","slug":"io-github-libtmux-control-eventsubscription-eventsubscription-onready"},{"id":"io.github.libtmux.control.EventSubscription.EventSubscription.clearReady","name":"clearReady","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.EventSubscription.EventSubscription","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public void clearReady()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Disarms the readiness callback, if one is armed. For a reader that stopped waiting."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/EventSubscription.java","line":245,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.EventSubscription.clearReady","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.EventSubscription.EventSubscription.clearReady","product":"core","slug":"io-github-libtmux-control-eventsubscription-eventsubscription-clearready"},{"id":"io.github.libtmux.control.EventSubscription.EventSubscription.stream","name":"stream","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.EventSubscription.EventSubscription","signatures":[{"raw":"@Operation(Kind.STREAM)\n public java.util.stream.Stream> stream()","params":[],"returns":"java.util.stream.Stream>","typeScopeBoundary":false,"raises":[{"type":"io.github.libtmux.exception.LibTmuxException","doc":"from the stream if the reading thread is interrupted; its interrupt status is set again"}]}],"doc":{"summary":"The steps still to come, in order, each read by the thread consuming the stream.","body":"Pull-only: a step is read when the stream asks for one, and events that arrive meanwhile\nwait in this subscription's buffer, so its capacity alone decides what becomes a {@link\nDelivery.Gap}. The stream ends when this subscription closes. When the control client ended\nit, the stream fails with {@link #cause()}. Closing the stream closes this subscription, and\nclosing this subscription from another thread ends a stream that is waiting.","examples":[{"lang":"java","code":"try (Stream> steps = subscription.stream()) {\n steps.map(Delivery::kept).forEach(output -> System.out.print(output.data()));\n}"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/EventSubscription.java","line":366,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.EventSubscription.stream","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.EventSubscription.EventSubscription.stream","product":"core","slug":"io-github-libtmux-control-eventsubscription-eventsubscription-stream"},{"id":"io.github.libtmux.control.EventSubscription.EventSubscription.publisher","name":"publisher","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.control.EventSubscription.EventSubscription","signatures":[{"raw":"@Operation(Kind.STREAM)\n public Flow.Publisher> publisher()","params":[],"returns":"Flow.Publisher>","typeScopeBoundary":false},{"raw":"@Operation(Kind.STREAM)\n public Flow.Publisher> publisher(Executor executor)","params":[{"name":"executor","type":"Executor","doc":"where each blocking read for the subscriber runs; one that runs a task on the calling thread makes {@link Flow.Subscription#request request} block on tmux, which the Reactive Streams rules forbid"}],"returns":"Flow.Publisher>","typeScopeBoundary":false}],"doc":{"summary":"A {@link Flow.Publisher} view of this subscription's steps, delivered as demand allows.","body":"Reads that wait for the next step run on a fresh virtual thread, started only while a\nsubscriber has outstanding demand, so a subscriber that never asks never blocks anything. Use\n{@link #publisher(Executor)} to read somewhere else instead.\n\n@see #publisher(Executor)"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/EventSubscription.java","line":406,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.EventSubscription.publisher","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.EventSubscription.EventSubscription.publisher","product":"core","slug":"io-github-libtmux-control-eventsubscription-eventsubscription-publisher"},{"id":"io.github.libtmux.control.EventSubscription.EventSubscription.isClosed","name":"isClosed","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.EventSubscription.EventSubscription","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public boolean isClosed()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether this subscription has reached its terminal state.","body":"This distinguishes a timed read that expired from one that returned empty because the\nsubscription ended. A pending gap can still be read after the subscription has closed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/EventSubscription.java","line":685,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.EventSubscription.isClosed","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.EventSubscription.EventSubscription.isClosed","product":"core","slug":"io-github-libtmux-control-eventsubscription-eventsubscription-isclosed"},{"id":"io.github.libtmux.control.EventSubscription.EventSubscription.close","name":"close","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.EventSubscription.EventSubscription","signatures":[{"raw":"@Operation(Kind.LIFECYCLE)\n @Override\n public void close()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Discards buffered events, removes this subscriber, and wakes every waiting reader."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/EventSubscription.java","line":696,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.EventSubscription.close","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.EventSubscription.EventSubscription.close","product":"core","slug":"io-github-libtmux-control-eventsubscription-eventsubscription-close"},{"id":"io.github.libtmux.control.EventSubscription.EventSubscription.end","name":"end","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.EventSubscription.EventSubscription","signatures":[{"raw":"void end(@Nullable Throwable failure)","params":[{"name":"failure","type":"Throwable"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Ends this subscription as the control client saw it end, recording why. Unlike {@link #close()}, events already delivered stay readable."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/EventSubscription.java","line":706,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.EventSubscription.end","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.EventSubscription.EventSubscription.end","product":"core","slug":"io-github-libtmux-control-eventsubscription-eventsubscription-end"},{"id":"io.github.libtmux.control.EventSubscription.EventSubscription.finish","name":"finish","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.EventSubscription.EventSubscription","signatures":[{"raw":"void finish()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Ends this subscription as a producer with nothing more to send: not a failure, and nothing is discarded."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/EventSubscription.java","line":711,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.EventSubscription.finish","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.EventSubscription.EventSubscription.finish","product":"core","slug":"io-github-libtmux-control-eventsubscription-eventsubscription-finish"},{"id":"io.github.libtmux.control.Notification.Notification","name":"Notification","kind":"interface","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"What a control-mode notification says, typed, for matching on.","body":"Sealed, with {@link Unknown} as the case for everything else. tmux adds notifications between\nreleases, and a closed set with nowhere to put a new one would drop it; here a notification this\nlibrary does not model yet still arrives, as {@code Unknown}, and {@link ControlEvent#kind()} and\n{@link ControlEvent#fields()} still carry what tmux wrote.\n\nThe forms are tmux's own, from {@code control-notify.c}. A name — of a window, a session, a\nclient — is everything after the id, spaces included, as tmux writes it.","examples":[{"lang":"java","code":"switch (event.notification()) {\n case Notification.WindowRenamed(WindowId window, String name, boolean attached) -> relabel(window, name);\n case Notification.SessionsChanged changed -> refreshSessions();\n default -> {}\n}"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification","product":"core","slug":"io-github-libtmux-control-notification-notification"},{"id":"io.github.libtmux.control.Notification.Notification.WindowAdded","name":"WindowAdded","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record WindowAdded(WindowId window, boolean attached) implements Notification","params":[{"name":"window","type":"WindowId"},{"name":"attached","type":"boolean"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %window-add}: a window was created; {@code attached} is false for {@code unlinked-window-add}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.WindowAdded","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.WindowAdded","product":"core","slug":"io-github-libtmux-control-notification-notification-windowadded"},{"id":"io.github.libtmux.control.Notification.Notification.WindowAdded.window","name":"window","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.WindowAdded","modifiers":[],"signatures":[{"params":[],"returns":"WindowId"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.WindowAdded.window","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.WindowAdded.window","product":"core","slug":"io-github-libtmux-control-notification-notification-windowadded-window"},{"id":"io.github.libtmux.control.Notification.Notification.WindowAdded.attached","name":"attached","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.WindowAdded","modifiers":[],"signatures":[{"params":[],"returns":"boolean"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.WindowAdded.attached","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.WindowAdded.attached","product":"core","slug":"io-github-libtmux-control-notification-notification-windowadded-attached"},{"id":"io.github.libtmux.control.Notification.Notification.WindowClosed","name":"WindowClosed","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record WindowClosed(WindowId window, boolean attached) implements Notification","params":[{"name":"window","type":"WindowId"},{"name":"attached","type":"boolean"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %window-close}: a window was destroyed; {@code attached} as for {@link WindowAdded}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":34,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.WindowClosed","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.WindowClosed","product":"core","slug":"io-github-libtmux-control-notification-notification-windowclosed"},{"id":"io.github.libtmux.control.Notification.Notification.WindowClosed.window","name":"window","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.WindowClosed","modifiers":[],"signatures":[{"params":[],"returns":"WindowId"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.WindowClosed.window","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.WindowClosed.window","product":"core","slug":"io-github-libtmux-control-notification-notification-windowclosed-window"},{"id":"io.github.libtmux.control.Notification.Notification.WindowClosed.attached","name":"attached","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.WindowClosed","modifiers":[],"signatures":[{"params":[],"returns":"boolean"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.WindowClosed.attached","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.WindowClosed.attached","product":"core","slug":"io-github-libtmux-control-notification-notification-windowclosed-attached"},{"id":"io.github.libtmux.control.Notification.Notification.WindowRenamed","name":"WindowRenamed","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record WindowRenamed(WindowId window, String name, boolean attached) implements Notification","params":[{"name":"window","type":"WindowId"},{"name":"name","type":"String"},{"name":"attached","type":"boolean"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %window-renamed}: a window has a new name; {@code attached} as for {@link WindowAdded}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.WindowRenamed","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.WindowRenamed","product":"core","slug":"io-github-libtmux-control-notification-notification-windowrenamed"},{"id":"io.github.libtmux.control.Notification.Notification.WindowRenamed.window","name":"window","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.WindowRenamed","modifiers":[],"signatures":[{"params":[],"returns":"WindowId"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.WindowRenamed.window","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.WindowRenamed.window","product":"core","slug":"io-github-libtmux-control-notification-notification-windowrenamed-window"},{"id":"io.github.libtmux.control.Notification.Notification.WindowRenamed.name","name":"name","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.WindowRenamed","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.WindowRenamed.name","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.WindowRenamed.name","product":"core","slug":"io-github-libtmux-control-notification-notification-windowrenamed-name"},{"id":"io.github.libtmux.control.Notification.Notification.WindowRenamed.attached","name":"attached","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.WindowRenamed","modifiers":[],"signatures":[{"params":[],"returns":"boolean"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.WindowRenamed.attached","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.WindowRenamed.attached","product":"core","slug":"io-github-libtmux-control-notification-notification-windowrenamed-attached"},{"id":"io.github.libtmux.control.Notification.Notification.WindowPaneChanged","name":"WindowPaneChanged","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record WindowPaneChanged(WindowId window, PaneId pane) implements Notification","params":[{"name":"window","type":"WindowId"},{"name":"pane","type":"PaneId"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %window-pane-changed}: a window's active pane changed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":40,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.WindowPaneChanged","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.WindowPaneChanged","product":"core","slug":"io-github-libtmux-control-notification-notification-windowpanechanged"},{"id":"io.github.libtmux.control.Notification.Notification.WindowPaneChanged.window","name":"window","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.WindowPaneChanged","modifiers":[],"signatures":[{"params":[],"returns":"WindowId"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.WindowPaneChanged.window","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.WindowPaneChanged.window","product":"core","slug":"io-github-libtmux-control-notification-notification-windowpanechanged-window"},{"id":"io.github.libtmux.control.Notification.Notification.WindowPaneChanged.pane","name":"pane","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.WindowPaneChanged","modifiers":[],"signatures":[{"params":[],"returns":"PaneId"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.WindowPaneChanged.pane","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.WindowPaneChanged.pane","product":"core","slug":"io-github-libtmux-control-notification-notification-windowpanechanged-pane"},{"id":"io.github.libtmux.control.Notification.Notification.LayoutChanged","name":"LayoutChanged","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record LayoutChanged(WindowId window, WindowLayout layout) implements Notification","params":[{"name":"window","type":"WindowId"},{"name":"layout","type":"WindowLayout"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %layout-change}: a window's layout changed, in whichever form tmux reports it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":43,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.LayoutChanged","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.LayoutChanged","product":"core","slug":"io-github-libtmux-control-notification-notification-layoutchanged"},{"id":"io.github.libtmux.control.Notification.Notification.LayoutChanged.window","name":"window","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.LayoutChanged","modifiers":[],"signatures":[{"params":[],"returns":"WindowId"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.LayoutChanged.window","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.LayoutChanged.window","product":"core","slug":"io-github-libtmux-control-notification-notification-layoutchanged-window"},{"id":"io.github.libtmux.control.Notification.Notification.LayoutChanged.layout","name":"layout","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.LayoutChanged","modifiers":[],"signatures":[{"params":[],"returns":"WindowLayout"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.LayoutChanged.layout","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.LayoutChanged.layout","product":"core","slug":"io-github-libtmux-control-notification-notification-layoutchanged-layout"},{"id":"io.github.libtmux.control.Notification.Notification.SessionChanged","name":"SessionChanged","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record SessionChanged(SessionId session, String name) implements Notification","params":[{"name":"session","type":"SessionId"},{"name":"name","type":"String"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %session-changed}: the attached client is now attached to this session."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":46,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.SessionChanged","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.SessionChanged","product":"core","slug":"io-github-libtmux-control-notification-notification-sessionchanged"},{"id":"io.github.libtmux.control.Notification.Notification.SessionChanged.session","name":"session","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.SessionChanged","modifiers":[],"signatures":[{"params":[],"returns":"SessionId"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.SessionChanged.session","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.SessionChanged.session","product":"core","slug":"io-github-libtmux-control-notification-notification-sessionchanged-session"},{"id":"io.github.libtmux.control.Notification.Notification.SessionChanged.name","name":"name","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.SessionChanged","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.SessionChanged.name","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.SessionChanged.name","product":"core","slug":"io-github-libtmux-control-notification-notification-sessionchanged-name"},{"id":"io.github.libtmux.control.Notification.Notification.SessionRenamed","name":"SessionRenamed","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record SessionRenamed(SessionId session, String name) implements Notification","params":[{"name":"session","type":"SessionId"},{"name":"name","type":"String"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %session-renamed}: a session has a new name."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":49,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.SessionRenamed","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.SessionRenamed","product":"core","slug":"io-github-libtmux-control-notification-notification-sessionrenamed"},{"id":"io.github.libtmux.control.Notification.Notification.SessionRenamed.session","name":"session","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.SessionRenamed","modifiers":[],"signatures":[{"params":[],"returns":"SessionId"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.SessionRenamed.session","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.SessionRenamed.session","product":"core","slug":"io-github-libtmux-control-notification-notification-sessionrenamed-session"},{"id":"io.github.libtmux.control.Notification.Notification.SessionRenamed.name","name":"name","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.SessionRenamed","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.SessionRenamed.name","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.SessionRenamed.name","product":"core","slug":"io-github-libtmux-control-notification-notification-sessionrenamed-name"},{"id":"io.github.libtmux.control.Notification.Notification.SessionsChanged","name":"SessionsChanged","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record SessionsChanged() implements Notification","params":[]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %sessions-changed}: a session was created or destroyed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":52,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.SessionsChanged","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.SessionsChanged","product":"core","slug":"io-github-libtmux-control-notification-notification-sessionschanged"},{"id":"io.github.libtmux.control.Notification.Notification.SessionWindowChanged","name":"SessionWindowChanged","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record SessionWindowChanged(SessionId session, WindowId window) implements Notification","params":[{"name":"session","type":"SessionId"},{"name":"window","type":"WindowId"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %session-window-changed}: a session's current window changed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":55,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.SessionWindowChanged","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.SessionWindowChanged","product":"core","slug":"io-github-libtmux-control-notification-notification-sessionwindowchanged"},{"id":"io.github.libtmux.control.Notification.Notification.SessionWindowChanged.session","name":"session","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.SessionWindowChanged","modifiers":[],"signatures":[{"params":[],"returns":"SessionId"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.SessionWindowChanged.session","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.SessionWindowChanged.session","product":"core","slug":"io-github-libtmux-control-notification-notification-sessionwindowchanged-session"},{"id":"io.github.libtmux.control.Notification.Notification.SessionWindowChanged.window","name":"window","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.SessionWindowChanged","modifiers":[],"signatures":[{"params":[],"returns":"WindowId"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.SessionWindowChanged.window","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.SessionWindowChanged.window","product":"core","slug":"io-github-libtmux-control-notification-notification-sessionwindowchanged-window"},{"id":"io.github.libtmux.control.Notification.Notification.ClientSessionChanged","name":"ClientSessionChanged","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record ClientSessionChanged(String client, SessionId session, String name) implements Notification","params":[{"name":"client","type":"String"},{"name":"session","type":"SessionId"},{"name":"name","type":"String"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %client-session-changed}: another client is now attached to this session."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":58,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.ClientSessionChanged","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.ClientSessionChanged","product":"core","slug":"io-github-libtmux-control-notification-notification-clientsessionchanged"},{"id":"io.github.libtmux.control.Notification.Notification.ClientSessionChanged.client","name":"client","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.ClientSessionChanged","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.ClientSessionChanged.client","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.ClientSessionChanged.client","product":"core","slug":"io-github-libtmux-control-notification-notification-clientsessionchanged-client"},{"id":"io.github.libtmux.control.Notification.Notification.ClientSessionChanged.session","name":"session","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.ClientSessionChanged","modifiers":[],"signatures":[{"params":[],"returns":"SessionId"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.ClientSessionChanged.session","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.ClientSessionChanged.session","product":"core","slug":"io-github-libtmux-control-notification-notification-clientsessionchanged-session"},{"id":"io.github.libtmux.control.Notification.Notification.ClientSessionChanged.name","name":"name","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.ClientSessionChanged","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.ClientSessionChanged.name","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.ClientSessionChanged.name","product":"core","slug":"io-github-libtmux-control-notification-notification-clientsessionchanged-name"},{"id":"io.github.libtmux.control.Notification.Notification.ClientDetached","name":"ClientDetached","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record ClientDetached(String client) implements Notification","params":[{"name":"client","type":"String"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %client-detached}: a client detached."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":61,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.ClientDetached","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.ClientDetached","product":"core","slug":"io-github-libtmux-control-notification-notification-clientdetached"},{"id":"io.github.libtmux.control.Notification.Notification.ClientDetached.client","name":"client","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.ClientDetached","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.ClientDetached.client","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.ClientDetached.client","product":"core","slug":"io-github-libtmux-control-notification-notification-clientdetached-client"},{"id":"io.github.libtmux.control.Notification.Notification.PaneModeChanged","name":"PaneModeChanged","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record PaneModeChanged(PaneId pane) implements Notification","params":[{"name":"pane","type":"PaneId"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %pane-mode-changed}: a pane entered or left a mode."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":64,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.PaneModeChanged","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.PaneModeChanged","product":"core","slug":"io-github-libtmux-control-notification-notification-panemodechanged"},{"id":"io.github.libtmux.control.Notification.Notification.PaneModeChanged.pane","name":"pane","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.PaneModeChanged","modifiers":[],"signatures":[{"params":[],"returns":"PaneId"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.PaneModeChanged.pane","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.PaneModeChanged.pane","product":"core","slug":"io-github-libtmux-control-notification-notification-panemodechanged-pane"},{"id":"io.github.libtmux.control.Notification.Notification.PasteBufferChanged","name":"PasteBufferChanged","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record PasteBufferChanged(String buffer) implements Notification","params":[{"name":"buffer","type":"String"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %paste-buffer-changed}: a paste buffer was created or changed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":67,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.PasteBufferChanged","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.PasteBufferChanged","product":"core","slug":"io-github-libtmux-control-notification-notification-pastebufferchanged"},{"id":"io.github.libtmux.control.Notification.Notification.PasteBufferChanged.buffer","name":"buffer","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.PasteBufferChanged","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.PasteBufferChanged.buffer","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.PasteBufferChanged.buffer","product":"core","slug":"io-github-libtmux-control-notification-notification-pastebufferchanged-buffer"},{"id":"io.github.libtmux.control.Notification.Notification.PasteBufferDeleted","name":"PasteBufferDeleted","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record PasteBufferDeleted(String buffer) implements Notification","params":[{"name":"buffer","type":"String"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %paste-buffer-deleted}: a paste buffer was deleted."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":70,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.PasteBufferDeleted","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.PasteBufferDeleted","product":"core","slug":"io-github-libtmux-control-notification-notification-pastebufferdeleted"},{"id":"io.github.libtmux.control.Notification.Notification.PasteBufferDeleted.buffer","name":"buffer","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.PasteBufferDeleted","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.PasteBufferDeleted.buffer","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.PasteBufferDeleted.buffer","product":"core","slug":"io-github-libtmux-control-notification-notification-pastebufferdeleted-buffer"},{"id":"io.github.libtmux.control.Notification.Notification.SubscriptionChanged","name":"SubscriptionChanged","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record SubscriptionChanged(\n String name, String value, Optional session, Optional window, Optional pane)\n implements Notification","params":[{"name":"name","type":"String","doc":"what the subscription was registered under"},{"name":"value","type":"String","doc":"what the format expanded to"},{"name":"session","type":"Optional","doc":"the session it is about, when tmux named one"},{"name":"window","type":"Optional","doc":"the window, when tmux named one"},{"name":"pane","type":"Optional","doc":"the pane, when tmux named one"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %subscription-changed}: a watched format has a new value."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":81,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.SubscriptionChanged","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.SubscriptionChanged","product":"core","slug":"io-github-libtmux-control-notification-notification-subscriptionchanged"},{"id":"io.github.libtmux.control.Notification.Notification.SubscriptionChanged.name","name":"name","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.SubscriptionChanged","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"what the subscription was registered under"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.SubscriptionChanged.name","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.SubscriptionChanged.name","product":"core","slug":"io-github-libtmux-control-notification-notification-subscriptionchanged-name"},{"id":"io.github.libtmux.control.Notification.Notification.SubscriptionChanged.value","name":"value","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.SubscriptionChanged","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"what the format expanded to"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.SubscriptionChanged.value","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.SubscriptionChanged.value","product":"core","slug":"io-github-libtmux-control-notification-notification-subscriptionchanged-value"},{"id":"io.github.libtmux.control.Notification.Notification.SubscriptionChanged.session","name":"session","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.SubscriptionChanged","modifiers":[],"signatures":[{"params":[],"returns":"Optional"}],"doc":{"summary":"the session it is about, when tmux named one"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.SubscriptionChanged.session","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.SubscriptionChanged.session","product":"core","slug":"io-github-libtmux-control-notification-notification-subscriptionchanged-session"},{"id":"io.github.libtmux.control.Notification.Notification.SubscriptionChanged.window","name":"window","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.SubscriptionChanged","modifiers":[],"signatures":[{"params":[],"returns":"Optional"}],"doc":{"summary":"the window, when tmux named one"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.SubscriptionChanged.window","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.SubscriptionChanged.window","product":"core","slug":"io-github-libtmux-control-notification-notification-subscriptionchanged-window"},{"id":"io.github.libtmux.control.Notification.Notification.SubscriptionChanged.pane","name":"pane","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.SubscriptionChanged","modifiers":[],"signatures":[{"params":[],"returns":"Optional"}],"doc":{"summary":"the pane, when tmux named one"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.SubscriptionChanged.pane","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.SubscriptionChanged.pane","product":"core","slug":"io-github-libtmux-control-notification-notification-subscriptionchanged-pane"},{"id":"io.github.libtmux.control.Notification.Notification.Pause","name":"Pause","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record Pause(PaneId pane) implements Notification","params":[{"name":"pane","type":"PaneId"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %pause}: tmux stopped sending a pane's output to this client, which turned flow control on with {@code refresh-client -f pause-after=N} and fell N seconds behind. {@code refresh-client -A '%1:continue'} resumes it. tmux 3.2 and later."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":90,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.Pause","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.Pause","product":"core","slug":"io-github-libtmux-control-notification-notification-pause"},{"id":"io.github.libtmux.control.Notification.Notification.Pause.pane","name":"pane","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.Pause","modifiers":[],"signatures":[{"params":[],"returns":"PaneId"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.Pause.pane","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.Pause.pane","product":"core","slug":"io-github-libtmux-control-notification-notification-pause-pane"},{"id":"io.github.libtmux.control.Notification.Notification.Continue","name":"Continue","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record Continue(PaneId pane) implements Notification","params":[{"name":"pane","type":"PaneId"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %continue}: a paused pane's output flows to this client again. tmux 3.2 and later."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":93,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.Continue","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.Continue","product":"core","slug":"io-github-libtmux-control-notification-notification-continue"},{"id":"io.github.libtmux.control.Notification.Notification.Continue.pane","name":"pane","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.Continue","modifiers":[],"signatures":[{"params":[],"returns":"PaneId"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.Continue.pane","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.Continue.pane","product":"core","slug":"io-github-libtmux-control-notification-notification-continue-pane"},{"id":"io.github.libtmux.control.Notification.Notification.Message","name":"Message","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record Message(String text) implements Notification","params":[{"name":"text","type":"String"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %message}: text another client showed on this one with {@code display-message -c}. tmux 3.4 and later."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":96,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.Message","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.Message","product":"core","slug":"io-github-libtmux-control-notification-notification-message"},{"id":"io.github.libtmux.control.Notification.Notification.Message.text","name":"text","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.Message","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.Message.text","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.Message.text","product":"core","slug":"io-github-libtmux-control-notification-notification-message-text"},{"id":"io.github.libtmux.control.Notification.Notification.ConfigError","name":"ConfigError","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record ConfigError(String cause) implements Notification","params":[{"name":"cause","type":"String"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %config-error}: a configuration file tmux loaded for this client had an error. tmux 3.4 and later."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":99,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.ConfigError","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.ConfigError","product":"core","slug":"io-github-libtmux-control-notification-notification-configerror"},{"id":"io.github.libtmux.control.Notification.Notification.ConfigError.cause","name":"cause","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.ConfigError","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.ConfigError.cause","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.ConfigError.cause","product":"core","slug":"io-github-libtmux-control-notification-notification-configerror-cause"},{"id":"io.github.libtmux.control.Notification.Notification.Exit","name":"Exit","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record Exit(Optional reason) implements Notification","params":[{"name":"reason","type":"Optional"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %exit}: the client is exiting, with tmux's reason when it gave one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":102,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.Exit","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.Exit","product":"core","slug":"io-github-libtmux-control-notification-notification-exit"},{"id":"io.github.libtmux.control.Notification.Notification.Exit.reason","name":"reason","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.Exit","modifiers":[],"signatures":[{"params":[],"returns":"Optional"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.Exit.reason","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.Exit.reason","product":"core","slug":"io-github-libtmux-control-notification-notification-exit-reason"},{"id":"io.github.libtmux.control.Notification.Notification.Unknown","name":"Unknown","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record Unknown(String kind) implements Notification","params":[{"name":"kind","type":"String"}]}],"typeScopeBoundary":true,"doc":{"summary":"A notification this library does not model; {@link ControlEvent} still carries all of it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":105,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.Unknown","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.Unknown","product":"core","slug":"io-github-libtmux-control-notification-notification-unknown"},{"id":"io.github.libtmux.control.Notification.Notification.Unknown.kind","name":"kind","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.Unknown","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.Unknown.kind","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.Unknown.kind","product":"core","slug":"io-github-libtmux-control-notification-notification-unknown-kind"},{"id":"io.github.libtmux.control.Notification.Notification.read","name":"read","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"static Notification read(String kind, String rest, Optional value)","params":[{"name":"kind","type":"String","doc":"the name without its {@code %}"},{"name":"rest","type":"String","doc":"what followed the name, as tmux wrote it, without any {@code \" : \"} value"},{"name":"value","type":"Optional","doc":"what followed {@code \" : \"}, which only a subscription carries"}],"returns":"Notification","typeScopeBoundary":true}],"doc":{"summary":"Reads one notification from its kind and the text after it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":114,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.read","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.read","product":"core","slug":"io-github-libtmux-control-notification-notification-read"},{"id":"io.github.libtmux.control.PaneOutput.PaneOutput","name":"PaneOutput","kind":"class","modifiers":[],"signatures":[{"raw":"public record PaneOutput(PaneId pane, String data, ByteBuffer bytes)","params":[{"name":"pane","type":"PaneId","doc":"the pane that produced it"},{"name":"data","type":"String","doc":"this piece as text"},{"name":"bytes","type":"ByteBuffer","doc":"this piece exactly, read-only"}]}],"typeScopeBoundary":false,"doc":{"summary":"Terminal output tmux pushed without being asked.","body":"tmux cuts a pane's output into pieces by byte count, not by character. {@code bytes} is\nexactly what one piece carried, so a pane's pieces concatenate to what it wrote. {@code data} is\nthe same output as text, decoded per pane: a character cut between two pieces arrives whole with\nthe later one, and a byte that is not UTF-8 is written {@code \\xHH}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/PaneOutput.java","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.PaneOutput","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.PaneOutput.PaneOutput","product":"core","slug":"io-github-libtmux-control-paneoutput-paneoutput"},{"id":"io.github.libtmux.control.PaneOutput.PaneOutput.PaneOutput","name":"PaneOutput","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.PaneOutput.PaneOutput","signatures":[{"raw":"public PaneOutput(PaneId pane, String data)","params":[{"name":"pane","type":"PaneId"},{"name":"data","type":"String"}],"typeScopeBoundary":false}],"doc":{"summary":"Output whose bytes are {@code data} in UTF-8."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/PaneOutput.java","line":33,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.PaneOutput.PaneOutput","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.PaneOutput.PaneOutput.PaneOutput","product":"core","slug":"io-github-libtmux-control-paneoutput-paneoutput-paneoutput"},{"id":"io.github.libtmux.control.PaneOutput.PaneOutput.bytes","name":"bytes","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.PaneOutput.PaneOutput","signatures":[{"raw":"@Override\n public ByteBuffer bytes()","params":[],"returns":"ByteBuffer","typeScopeBoundary":false}],"doc":{"summary":"This piece's bytes, read-only, positioned at the first."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/PaneOutput.java","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.PaneOutput.bytes","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.PaneOutput.PaneOutput.bytes","product":"core","slug":"io-github-libtmux-control-paneoutput-paneoutput-bytes"},{"id":"io.github.libtmux.control.PaneOutput.PaneOutput.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.PaneOutput.PaneOutput","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"Identifies the pane only: the data is terminal content."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/PaneOutput.java","line":44,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.PaneOutput.toString","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.PaneOutput.PaneOutput.toString","product":"core","slug":"io-github-libtmux-control-paneoutput-paneoutput-tostring"},{"id":"io.github.libtmux.control.PaneOutput.PaneOutput.pane","name":"pane","kind":"method","parent":"io.github.libtmux.control.PaneOutput.PaneOutput","modifiers":[],"signatures":[{"params":[],"returns":"PaneId"}],"doc":{"summary":"the pane that produced it"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/PaneOutput.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.PaneOutput.pane","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.PaneOutput.PaneOutput.pane","product":"core","slug":"io-github-libtmux-control-paneoutput-paneoutput-pane"},{"id":"io.github.libtmux.control.PaneOutput.PaneOutput.data","name":"data","kind":"method","parent":"io.github.libtmux.control.PaneOutput.PaneOutput","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"this piece as text"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/PaneOutput.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.PaneOutput.data","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.PaneOutput.PaneOutput.data","product":"core","slug":"io-github-libtmux-control-paneoutput-paneoutput-data"},{"id":"io.github.libtmux.Dimensions.Dimensions","name":"Dimensions","kind":"class","modifiers":[],"signatures":[{"raw":"public record Dimensions(int width, int height)","params":[{"name":"width","type":"int","doc":"columns"},{"name":"height","type":"int","doc":"rows"}]}],"typeScopeBoundary":false,"doc":{"summary":"How big something is, in terminal cells.","body":"A pair rather than two loose numbers, because width and height are only meaningful together and\na call site that takes them separately can transpose them without the compiler noticing."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Dimensions.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Dimensions","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Dimensions.Dimensions","product":"core","slug":"io-github-libtmux-dimensions-dimensions"},{"id":"io.github.libtmux.Dimensions.Dimensions.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.Dimensions.Dimensions","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Dimensions.java","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Dimensions.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Dimensions.Dimensions.toString","product":"core","slug":"io-github-libtmux-dimensions-dimensions-tostring"},{"id":"io.github.libtmux.Dimensions.Dimensions.width","name":"width","kind":"method","parent":"io.github.libtmux.Dimensions.Dimensions","modifiers":[],"signatures":[{"params":[],"returns":"int"}],"doc":{"summary":"columns"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Dimensions.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Dimensions.width","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Dimensions.Dimensions.width","product":"core","slug":"io-github-libtmux-dimensions-dimensions-width"},{"id":"io.github.libtmux.Dimensions.Dimensions.height","name":"height","kind":"method","parent":"io.github.libtmux.Dimensions.Dimensions","modifiers":[],"signatures":[{"params":[],"returns":"int"}],"doc":{"summary":"rows"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Dimensions.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Dimensions.height","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Dimensions.Dimensions.height","product":"core","slug":"io-github-libtmux-dimensions-dimensions-height"},{"id":"io.github.libtmux.Direction.Direction","name":"Direction","kind":"enum","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Which way to move or grow something.","body":"An enum rather than tmux's {@code -U -D -L -R} flags, so a call site says which way it means\nand a wrong direction cannot be spelled at all."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Direction.java","line":9,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Direction","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Direction.Direction","product":"core","slug":"io-github-libtmux-direction-direction"},{"id":"io.github.libtmux.Direction.Direction.UP","name":"UP","kind":"constant","modifiers":[],"parent":"io.github.libtmux.Direction.Direction","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/Direction.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Direction.UP","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Direction.Direction.UP","product":"core","slug":"io-github-libtmux-direction-direction-up"},{"id":"io.github.libtmux.Direction.Direction.DOWN","name":"DOWN","kind":"constant","modifiers":[],"parent":"io.github.libtmux.Direction.Direction","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/Direction.java","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Direction.DOWN","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Direction.Direction.DOWN","product":"core","slug":"io-github-libtmux-direction-direction-down"},{"id":"io.github.libtmux.Direction.Direction.LEFT","name":"LEFT","kind":"constant","modifiers":[],"parent":"io.github.libtmux.Direction.Direction","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/Direction.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Direction.LEFT","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Direction.Direction.LEFT","product":"core","slug":"io-github-libtmux-direction-direction-left"},{"id":"io.github.libtmux.Direction.Direction.RIGHT","name":"RIGHT","kind":"constant","modifiers":[],"parent":"io.github.libtmux.Direction.Direction","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/Direction.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Direction.RIGHT","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Direction.Direction.RIGHT","product":"core","slug":"io-github-libtmux-direction-direction-right"},{"id":"io.github.libtmux.Direction.Direction.Direction","name":"Direction","kind":"method","modifiers":[],"parent":"io.github.libtmux.Direction.Direction","signatures":[{"raw":"Direction(String flag)","params":[{"name":"flag","type":"String"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Direction.java","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Direction.Direction","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Direction.Direction.Direction","product":"core","slug":"io-github-libtmux-direction-direction-direction"},{"id":"io.github.libtmux.Direction.Direction.flag","name":"flag","kind":"method","modifiers":[],"parent":"io.github.libtmux.Direction.Direction","signatures":[{"raw":"String flag()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The tmux flag that selects this direction."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Direction.java","line":22,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Direction.flag","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Direction.Direction.flag","product":"core","slug":"io-github-libtmux-direction-direction-flag"},{"id":"io.github.libtmux.Environment.Environment","name":"Environment","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The environment tmux gives to processes it starts, at one scope.","body":"tmux keeps one environment per server and one per session, and hands the result to every\nprocess it spawns afterwards. That is what this is for: a pane opened later sees what is set here,\nso it is how a program refreshes a value that goes stale in a long-lived session — {@code\nSSH_AUTH_SOCK} after reconnecting, a token, a display.\n\nA scope is chosen when the view is obtained rather than passed to every call, as {@link\nOptions} does, so a caller cannot read one scope and write another. There are only the two scopes,\nbecause tmux has only those two.\n\nA name is in one of three states, and they are not the same question. It can be *set* to\na value, which {@link #get} answers. It can be *removed*, which is tmux's way of saying a\nnew process should not inherit it even though the server's own environment has it — {@link\n#isRemoved} answers that, and {@link #get} is empty for it. Or it can simply be absent, which is\nboth of those empty."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Environment.java","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Environment","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Environment.Environment","product":"core","slug":"io-github-libtmux-environment-environment"},{"id":"io.github.libtmux.Environment.Environment.global","name":"global","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Environment.Environment","signatures":[{"raw":"static Environment global(Server server)","params":[{"name":"server","type":"Server"}],"returns":"Environment","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Environment.java","line":69,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Environment.global","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Environment.Environment.global","product":"core","slug":"io-github-libtmux-environment-environment-global"},{"id":"io.github.libtmux.Environment.Environment.session","name":"session","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Environment.Environment","signatures":[{"raw":"static Environment session(Server server, ServerSnapshot snapshot, SessionId session)","params":[{"name":"server","type":"Server"},{"name":"snapshot","type":"ServerSnapshot"},{"name":"session","type":"SessionId"}],"returns":"Environment","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Environment.java","line":73,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Environment.session","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Environment.Environment.session","product":"core","slug":"io-github-libtmux-environment-environment-session"},{"id":"io.github.libtmux.Environment.Environment.get","name":"get","kind":"method","modifiers":[],"parent":"io.github.libtmux.Environment.Environment","signatures":[{"raw":"@Operation(Kind.READ)\n public Optional get(String name)","params":[{"name":"name","type":"String"}],"returns":"Optional","typeScopeBoundary":false,"raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if the read otherwise fails"}]}],"doc":{"summary":"The value set for this name, or empty when it is removed or absent."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Environment.java","line":83,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Environment.get","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Environment.Environment.get","product":"core","slug":"io-github-libtmux-environment-environment-get"},{"id":"io.github.libtmux.Environment.Environment.isRemoved","name":"isRemoved","kind":"method","modifiers":[],"parent":"io.github.libtmux.Environment.Environment","signatures":[{"raw":"@Operation(Kind.READ)\n public boolean isRemoved(String name)","params":[{"name":"name","type":"String"}],"returns":"boolean","typeScopeBoundary":false,"raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if the read otherwise fails"}]}],"doc":{"summary":"Whether new processes are told not to inherit this name."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Environment.java","line":94,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Environment.isRemoved","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Environment.Environment.isRemoved","product":"core","slug":"io-github-libtmux-environment-environment-isremoved"},{"id":"io.github.libtmux.Environment.Environment.all","name":"all","kind":"method","modifiers":[],"parent":"io.github.libtmux.Environment.Environment","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public Map all()","params":[],"returns":"Map","typeScopeBoundary":false}],"doc":{"summary":"Every name set at this scope, in tmux's order. Removed names are not values, so not here."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Environment.java","line":100,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Environment.all","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Environment.Environment.all","product":"core","slug":"io-github-libtmux-environment-environment-all"},{"id":"io.github.libtmux.Environment.Environment.effective","name":"effective","kind":"method","modifiers":[],"parent":"io.github.libtmux.Environment.Environment","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public Map effective()","params":[],"returns":"Map","typeScopeBoundary":false,"raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if a read otherwise fails"}]}],"doc":{"summary":"What a process started from this scope is actually handed, both scopes taken together.","body":"{@link #all} answers for one scope, which is what a caller writing to it needs and not what\na pane opened later will see: tmux gives a new process the server's environment with the\nsession's laid over it, minus whatever the session marked as not to be inherited. At the\nserver scope the two are the same thing.\n\nThe counterpart to {@link Options#effective()}, and named after it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Environment.java","line":123,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Environment.effective","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Environment.Environment.effective","product":"core","slug":"io-github-libtmux-environment-environment-effective"},{"id":"io.github.libtmux.Environment.Environment.removed","name":"removed","kind":"method","modifiers":[],"parent":"io.github.libtmux.Environment.Environment","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public Set removed()","params":[],"returns":"Set","typeScopeBoundary":false}],"doc":{"summary":"Every name this scope tells a new process not to inherit."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Environment.java","line":136,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Environment.removed","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Environment.Environment.removed","product":"core","slug":"io-github-libtmux-environment-environment-removed"},{"id":"io.github.libtmux.Environment.Environment.set","name":"set","kind":"method","modifiers":[],"parent":"io.github.libtmux.Environment.Environment","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void set(String name, String value)","params":[{"name":"name","type":"String"},{"name":"value","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Sets a name to a literal value.","body":"The value is not expanded: a {@code #{...}} in it arrives as those characters. {@link\n#setExpanded} is how to ask for the other thing."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Environment.java","line":154,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Environment.set","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Environment.Environment.set","product":"core","slug":"io-github-libtmux-environment-environment-set"},{"id":"io.github.libtmux.Environment.Environment.setExpanded","name":"setExpanded","kind":"method","modifiers":[],"parent":"io.github.libtmux.Environment.Environment","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void setExpanded(String name, String format)","params":[{"name":"name","type":"String"},{"name":"format","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Sets a name to what a tmux format expands to now."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Environment.java","line":160,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Environment.setExpanded","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Environment.Environment.setExpanded","product":"core","slug":"io-github-libtmux-environment-environment-setexpanded"},{"id":"io.github.libtmux.Environment.Environment.unset","name":"unset","kind":"method","modifiers":[],"parent":"io.github.libtmux.Environment.Environment","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void unset(String name)","params":[{"name":"name","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Removes the name from this scope, so it is neither set nor marked."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Environment.java","line":166,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Environment.unset","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Environment.Environment.unset","product":"core","slug":"io-github-libtmux-environment-environment-unset"},{"id":"io.github.libtmux.Environment.Environment.remove","name":"remove","kind":"method","modifiers":[],"parent":"io.github.libtmux.Environment.Environment","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void remove(String name)","params":[{"name":"name","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Tells processes started after this not to inherit the name.","body":"Different from {@link #unset}: the name is remembered, as removed, and tmux subtracts it\nfrom what a new process is given rather than simply not adding it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Environment.java","line":177,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Environment.remove","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Environment.Environment.remove","product":"core","slug":"io-github-libtmux-environment-environment-remove"},{"id":"io.github.libtmux.exception.CardinalityException.CardinalityException","name":"CardinalityException","kind":"class","modifiers":["abstract"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"A lookup that required exactly one match, or at most one, did not get it.","body":"Loosen or tighten the filter, or handle the case explicitly."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/CardinalityException.java","line":8,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.CardinalityException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.CardinalityException.CardinalityException","product":"core","slug":"io-github-libtmux-exception-cardinalityexception-cardinalityexception"},{"id":"io.github.libtmux.exception.CardinalityException.CardinalityException.CardinalityException","name":"CardinalityException","kind":"method","modifiers":[],"parent":"io.github.libtmux.exception.CardinalityException.CardinalityException","signatures":[{"raw":"CardinalityException(String message)","params":[{"name":"message","type":"String"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/CardinalityException.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.CardinalityException.CardinalityException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.CardinalityException.CardinalityException.CardinalityException","product":"core","slug":"io-github-libtmux-exception-cardinalityexception-cardinalityexception-cardinalityexception"},{"id":"io.github.libtmux.exception.CardinalityException.CardinalityException.NoMatch","name":"NoMatch","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.exception.CardinalityException.CardinalityException","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Nothing matched where the caller required something."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/CardinalityException.java","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.CardinalityException.NoMatch","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.CardinalityException.CardinalityException.NoMatch","product":"core","slug":"io-github-libtmux-exception-cardinalityexception-cardinalityexception-nomatch"},{"id":"io.github.libtmux.exception.CardinalityException.CardinalityException.NoMatch.NoMatch","name":"NoMatch","kind":"method","modifiers":[],"parent":"io.github.libtmux.exception.CardinalityException.CardinalityException.NoMatch","signatures":[{"raw":"public NoMatch(String message)","params":[{"name":"message","type":"String"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/CardinalityException.java","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.CardinalityException.NoMatch.NoMatch","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.CardinalityException.CardinalityException.NoMatch.NoMatch","product":"core","slug":"io-github-libtmux-exception-cardinalityexception-cardinalityexception-nomatch-nomatch"},{"id":"io.github.libtmux.exception.CardinalityException.CardinalityException.MultipleMatches","name":"MultipleMatches","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.exception.CardinalityException.CardinalityException","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"More than one thing matched where the caller required at most one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/CardinalityException.java","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.CardinalityException.MultipleMatches","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.CardinalityException.CardinalityException.MultipleMatches","product":"core","slug":"io-github-libtmux-exception-cardinalityexception-cardinalityexception-multiplematches"},{"id":"io.github.libtmux.exception.CardinalityException.CardinalityException.MultipleMatches.MultipleMatches","name":"MultipleMatches","kind":"method","modifiers":[],"parent":"io.github.libtmux.exception.CardinalityException.CardinalityException.MultipleMatches","signatures":[{"raw":"public MultipleMatches(String message, int atLeast)","params":[{"name":"message","type":"String"},{"name":"atLeast","type":"int","doc":"how many matched, at least; never less than two"}],"typeScopeBoundary":false}],"doc":{"summary":""},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/CardinalityException.java","line":33,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.CardinalityException.MultipleMatches.MultipleMatches","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.CardinalityException.CardinalityException.MultipleMatches.MultipleMatches","product":"core","slug":"io-github-libtmux-exception-cardinalityexception-cardinalityexception-multiplematches-multiplematches"},{"id":"io.github.libtmux.exception.CardinalityException.CardinalityException.MultipleMatches.atLeast","name":"atLeast","kind":"method","modifiers":[],"parent":"io.github.libtmux.exception.CardinalityException.CardinalityException.MultipleMatches","signatures":[{"raw":"public int atLeast()","params":[],"returns":"int","typeScopeBoundary":false}],"doc":{"summary":"How many matched, at least.","body":"Exact when the matches came from a capture this library holds, as a handle lookup's do.\n{@link io.github.libtmux.query.Selections} stops at the second match, since its source may be\nlazy or unbounded, so there it is two."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/CardinalityException.java","line":48,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.CardinalityException.MultipleMatches.atLeast","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.CardinalityException.CardinalityException.MultipleMatches.atLeast","product":"core","slug":"io-github-libtmux-exception-cardinalityexception-cardinalityexception-multiplematches-atleast"},{"id":"io.github.libtmux.exception.CommandRejectedException.CommandRejectedException","name":"CommandRejectedException","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"tmux ran a command to completion and refused it.","body":"The request reached a live server and tmux answered no: a duplicate session name, a target it\ncannot find, an option it does not know. Resending the same command gets the same answer, so read\n{@link #errorLines()} and change the request."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/CommandRejectedException.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.CommandRejectedException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.CommandRejectedException.CommandRejectedException","product":"core","slug":"io-github-libtmux-exception-commandrejectedexception-commandrejectedexception"},{"id":"io.github.libtmux.exception.CommandRejectedException.CommandRejectedException.CommandRejectedException","name":"CommandRejectedException","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.exception.CommandRejectedException.CommandRejectedException","signatures":[{"raw":"public CommandRejectedException(String message)","params":[{"name":"message","type":"String"}],"typeScopeBoundary":false},{"raw":"public CommandRejectedException(String message, String command, int exitCode, List errorLines)","params":[{"name":"message","type":"String"},{"name":"command","type":"String"},{"name":"exitCode","type":"int"},{"name":"errorLines","type":"List"}],"typeScopeBoundary":false}],"doc":{"summary":"A refusal of {@code command}, with tmux's exit status and the lines it printed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/CommandRejectedException.java","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.CommandRejectedException.CommandRejectedException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.CommandRejectedException.CommandRejectedException.CommandRejectedException","product":"core","slug":"io-github-libtmux-exception-commandrejectedexception-commandrejectedexception-commandrejectedexception"},{"id":"io.github.libtmux.exception.ControlEndedException.ControlEndedException","name":"ControlEndedException","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The control client ended, and anything reading from it will not resume.","body":"Attach again with {@link io.github.libtmux.Server#control} and read a snapshot: the events this\nclient did not deliver are not replayed, because tmux keeps no history of them. {@link\n#standardError()} is what the tmux process wrote to its error stream, bounded, and empty when it\nwrote nothing."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/ControlEndedException.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.ControlEndedException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.ControlEndedException.ControlEndedException","product":"core","slug":"io-github-libtmux-exception-controlendedexception-controlendedexception"},{"id":"io.github.libtmux.exception.ControlEndedException.ControlEndedException.ControlEndedException","name":"ControlEndedException","kind":"method","modifiers":[],"parent":"io.github.libtmux.exception.ControlEndedException.ControlEndedException","signatures":[{"raw":"public ControlEndedException(String standardError, boolean standardErrorTruncated, @Nullable Throwable cause)","params":[{"name":"standardError","type":"String"},{"name":"standardErrorTruncated","type":"boolean"},{"name":"cause","type":"Throwable"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/ControlEndedException.java","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.ControlEndedException.ControlEndedException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.ControlEndedException.ControlEndedException.ControlEndedException","product":"core","slug":"io-github-libtmux-exception-controlendedexception-controlendedexception-controlendedexception"},{"id":"io.github.libtmux.exception.ControlEndedException.ControlEndedException.standardError","name":"standardError","kind":"method","modifiers":[],"parent":"io.github.libtmux.exception.ControlEndedException.ControlEndedException","signatures":[{"raw":"public String standardError()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The error text captured before the process ended, possibly truncated."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/ControlEndedException.java","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.ControlEndedException.standardError","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.ControlEndedException.ControlEndedException.standardError","product":"core","slug":"io-github-libtmux-exception-controlendedexception-controlendedexception-standarderror"},{"id":"io.github.libtmux.exception.ControlEndedException.ControlEndedException.standardErrorTruncated","name":"standardErrorTruncated","kind":"method","modifiers":[],"parent":"io.github.libtmux.exception.ControlEndedException.ControlEndedException","signatures":[{"raw":"public boolean standardErrorTruncated()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether the error stream continued past the captured bound."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/ControlEndedException.java","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.ControlEndedException.standardErrorTruncated","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.ControlEndedException.ControlEndedException.standardErrorTruncated","product":"core","slug":"io-github-libtmux-exception-controlendedexception-controlendedexception-standarderrortruncated"},{"id":"io.github.libtmux.exception.DispatchException.DispatchException","name":"DispatchException","kind":"class","modifiers":["abstract"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The request did not complete, with how certain it is that tmux applied it.","body":"\"tmux never started\" and \"tmux timed out halfway\" call for opposite recovery, so the certainty\ntravels with the failure. {@link #safeToRetry()} answers the question a caller usually has: whether\nsending the exact same request again can do harm."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/DispatchException.java","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.DispatchException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.DispatchException.DispatchException","product":"core","slug":"io-github-libtmux-exception-dispatchexception-dispatchexception"},{"id":"io.github.libtmux.exception.DispatchException.DispatchException.DispatchException","name":"DispatchException","kind":"method","modifiers":[],"parent":"io.github.libtmux.exception.DispatchException.DispatchException","signatures":[{"raw":"DispatchException(String message, DispatchOutcome outcome, Idempotence idempotence, @Nullable Throwable cause)","params":[{"name":"message","type":"String"},{"name":"outcome","type":"DispatchOutcome"},{"name":"idempotence","type":"Idempotence"},{"name":"cause","type":"Throwable"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/DispatchException.java","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.DispatchException.DispatchException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.DispatchException.DispatchException.DispatchException","product":"core","slug":"io-github-libtmux-exception-dispatchexception-dispatchexception-dispatchexception"},{"id":"io.github.libtmux.exception.DispatchException.DispatchException.outcome","name":"outcome","kind":"method","modifiers":[],"parent":"io.github.libtmux.exception.DispatchException.DispatchException","signatures":[{"raw":"public DispatchOutcome outcome()","params":[],"returns":"DispatchOutcome","typeScopeBoundary":false}],"doc":{"summary":"How certain the transport is that tmux applied the request."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/DispatchException.java","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.DispatchException.outcome","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.DispatchException.DispatchException.outcome","product":"core","slug":"io-github-libtmux-exception-dispatchexception-dispatchexception-outcome"},{"id":"io.github.libtmux.exception.DispatchException.DispatchException.idempotence","name":"idempotence","kind":"method","modifiers":[],"parent":"io.github.libtmux.exception.DispatchException.DispatchException","signatures":[{"raw":"public Idempotence idempotence()","params":[],"returns":"Idempotence","typeScopeBoundary":false}],"doc":{"summary":"Whether every command in the request only reads, so running it twice changes nothing."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/DispatchException.java","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.DispatchException.idempotence","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.DispatchException.DispatchException.idempotence","product":"core","slug":"io-github-libtmux-exception-dispatchexception-dispatchexception-idempotence"},{"id":"io.github.libtmux.exception.DispatchException.DispatchException.safeToRetry","name":"safeToRetry","kind":"method","modifiers":[],"parent":"io.github.libtmux.exception.DispatchException.DispatchException","signatures":[{"raw":"public boolean safeToRetry()","params":[],"returns":"boolean","typeScopeBoundary":false,"returnsDoc":"{@link DispatchOutcome#canRetryVerbatim} for this failure's outcome and idempotence"}],"doc":{"summary":"Whether sending the exact same request again cannot apply it twice."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/DispatchException.java","line":46,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.DispatchException.safeToRetry","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.DispatchException.DispatchException.safeToRetry","product":"core","slug":"io-github-libtmux-exception-dispatchexception-dispatchexception-safetoretry"},{"id":"io.github.libtmux.exception.DispatchException.DispatchException.Failed","name":"Failed","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.exception.DispatchException.DispatchException","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"The transport failed for a reason other than a deadline: tmux could not start, or the channel broke."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/DispatchException.java","line":51,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.DispatchException.Failed","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.DispatchException.DispatchException.Failed","product":"core","slug":"io-github-libtmux-exception-dispatchexception-dispatchexception-failed"},{"id":"io.github.libtmux.exception.DispatchException.DispatchException.Failed.Failed","name":"Failed","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.exception.DispatchException.DispatchException.Failed","signatures":[{"raw":"public Failed(String message, DispatchOutcome outcome, @Nullable Throwable cause)","params":[{"name":"message","type":"String"},{"name":"outcome","type":"DispatchOutcome"},{"name":"cause","type":"Throwable"}],"typeScopeBoundary":false},{"raw":"public Failed(String message, DispatchOutcome outcome, Idempotence idempotence, @Nullable Throwable cause)","params":[{"name":"message","type":"String"},{"name":"outcome","type":"DispatchOutcome"},{"name":"idempotence","type":"Idempotence"},{"name":"cause","type":"Throwable"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/DispatchException.java","line":54,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.DispatchException.Failed.Failed","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.DispatchException.DispatchException.Failed.Failed","product":"core","slug":"io-github-libtmux-exception-dispatchexception-dispatchexception-failed-failed"},{"id":"io.github.libtmux.exception.DispatchException.DispatchException.TimedOut","name":"TimedOut","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.exception.DispatchException.DispatchException","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"The deadline passed before the request finished."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/DispatchException.java","line":64,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.DispatchException.TimedOut","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.DispatchException.DispatchException.TimedOut","product":"core","slug":"io-github-libtmux-exception-dispatchexception-dispatchexception-timedout"},{"id":"io.github.libtmux.exception.DispatchException.DispatchException.TimedOut.TimedOut","name":"TimedOut","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.exception.DispatchException.DispatchException.TimedOut","signatures":[{"raw":"public TimedOut(String message, DispatchOutcome outcome, @Nullable Throwable cause)","params":[{"name":"message","type":"String"},{"name":"outcome","type":"DispatchOutcome"},{"name":"cause","type":"Throwable"}],"typeScopeBoundary":false},{"raw":"public TimedOut(String message, DispatchOutcome outcome, Idempotence idempotence, @Nullable Throwable cause)","params":[{"name":"message","type":"String"},{"name":"outcome","type":"DispatchOutcome"},{"name":"idempotence","type":"Idempotence"},{"name":"cause","type":"Throwable"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/DispatchException.java","line":67,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.DispatchException.TimedOut.TimedOut","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.DispatchException.DispatchException.TimedOut.TimedOut","product":"core","slug":"io-github-libtmux-exception-dispatchexception-dispatchexception-timedout-timedout"},{"id":"io.github.libtmux.exception.LibTmuxException.LibTmuxException","name":"LibTmuxException","kind":"class","modifiers":["abstract"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The root of every operational failure this library raises.","body":"Unchecked, because a tmux failure can arise from any call and forcing every caller to declare\nit would say nothing. Sealed, with every branch abstract, so matching on the permitted subtypes is\nexhaustive in Java, Kotlin and Scala alike.\n\nA failure that came from a tmux command carries that command, its exit status when it has one,\nand the error lines tmux printed. Those lines, and the message that quotes them, name what tmux\nnamed — sessions, windows, panes and buffers included."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/LibTmuxException.java","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.LibTmuxException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.LibTmuxException.LibTmuxException","product":"core","slug":"io-github-libtmux-exception-libtmuxexception-libtmuxexception"},{"id":"io.github.libtmux.exception.LibTmuxException.LibTmuxException.LibTmuxException","name":"LibTmuxException","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.exception.LibTmuxException.LibTmuxException","signatures":[{"raw":"LibTmuxException(String message, @Nullable Throwable cause)","params":[{"name":"message","type":"String"},{"name":"cause","type":"Throwable"}],"typeScopeBoundary":false},{"raw":"LibTmuxException(\n String message,\n @Nullable Throwable cause,\n @Nullable String command,\n int exitCode,\n List errorLines)","params":[{"name":"message","type":"String"},{"name":"cause","type":"Throwable"},{"name":"command","type":"String"},{"name":"exitCode","type":"int"},{"name":"errorLines","type":"List"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/LibTmuxException.java","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.LibTmuxException.LibTmuxException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.LibTmuxException.LibTmuxException.LibTmuxException","product":"core","slug":"io-github-libtmux-exception-libtmuxexception-libtmuxexception-libtmuxexception"},{"id":"io.github.libtmux.exception.LibTmuxException.LibTmuxException.command","name":"command","kind":"method","modifiers":[],"parent":"io.github.libtmux.exception.LibTmuxException.LibTmuxException","signatures":[{"raw":"public Optional command()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The command that failed, when this failure came from one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/LibTmuxException.java","line":54,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.LibTmuxException.command","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.LibTmuxException.LibTmuxException.command","product":"core","slug":"io-github-libtmux-exception-libtmuxexception-libtmuxexception-command"},{"id":"io.github.libtmux.exception.LibTmuxException.LibTmuxException.exitCode","name":"exitCode","kind":"method","modifiers":[],"parent":"io.github.libtmux.exception.LibTmuxException.LibTmuxException","signatures":[{"raw":"public OptionalInt exitCode()","params":[],"returns":"OptionalInt","typeScopeBoundary":false}],"doc":{"summary":"The process exit status, when the failure has one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/LibTmuxException.java","line":59,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.LibTmuxException.exitCode","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.LibTmuxException.LibTmuxException.exitCode","product":"core","slug":"io-github-libtmux-exception-libtmuxexception-libtmuxexception-exitcode"},{"id":"io.github.libtmux.exception.LibTmuxException.LibTmuxException.errorLines","name":"errorLines","kind":"method","modifiers":[],"parent":"io.github.libtmux.exception.LibTmuxException.LibTmuxException","signatures":[{"raw":"@ReadOnly\n public List errorLines()","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"The error lines tmux printed, in full. Empty when this failure has none."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/LibTmuxException.java","line":64,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.LibTmuxException.errorLines","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.LibTmuxException.LibTmuxException.errorLines","product":"core","slug":"io-github-libtmux-exception-libtmuxexception-libtmuxexception-errorlines"},{"id":"io.github.libtmux.exception.MalformedResponseException.MalformedResponseException","name":"MalformedResponseException","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"tmux answered, and the answer did not have the shape this library asked for.","body":"A listing row with the wrong number of fields, a number that did not parse, an identity that\nwas not one row: this library's own template disagreed with what tmux sent. Check the tmux release\nis inside the supported range, and report it if it is."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/MalformedResponseException.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.MalformedResponseException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.MalformedResponseException.MalformedResponseException","product":"core","slug":"io-github-libtmux-exception-malformedresponseexception-malformedresponseexception"},{"id":"io.github.libtmux.exception.MalformedResponseException.MalformedResponseException.MalformedResponseException","name":"MalformedResponseException","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.exception.MalformedResponseException.MalformedResponseException","signatures":[{"raw":"public MalformedResponseException(String message)","params":[{"name":"message","type":"String"}],"typeScopeBoundary":false},{"raw":"public MalformedResponseException(String message, Throwable cause)","params":[{"name":"message","type":"String"},{"name":"cause","type":"Throwable"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/MalformedResponseException.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.MalformedResponseException.MalformedResponseException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.MalformedResponseException.MalformedResponseException.MalformedResponseException","product":"core","slug":"io-github-libtmux-exception-malformedresponseexception-malformedresponseexception-malformedresponseexception"},{"id":"io.github.libtmux.exception.ServerClosedException.ServerClosedException","name":"ServerClosedException","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"A handle was used after the {@link io.github.libtmux.Server} it belongs to was closed.","body":"Programmer error, so deliberately outside {@link LibTmuxException}'s sealed tree: an exhaustive\nmatch over operational failures should not have to decide about a lifecycle bug. {@link\n#outcome()} says whether tmux may have run the call that raced the close."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/ServerClosedException.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.ServerClosedException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.ServerClosedException.ServerClosedException","product":"core","slug":"io-github-libtmux-exception-serverclosedexception-serverclosedexception"},{"id":"io.github.libtmux.exception.ServerClosedException.ServerClosedException.ServerClosedException","name":"ServerClosedException","kind":"method","modifiers":[],"parent":"io.github.libtmux.exception.ServerClosedException.ServerClosedException","signatures":[{"raw":"public ServerClosedException(String message, DispatchOutcome outcome)","params":[{"name":"message","type":"String"},{"name":"outcome","type":"DispatchOutcome"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/ServerClosedException.java","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.ServerClosedException.ServerClosedException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.ServerClosedException.ServerClosedException.ServerClosedException","product":"core","slug":"io-github-libtmux-exception-serverclosedexception-serverclosedexception-serverclosedexception"},{"id":"io.github.libtmux.exception.ServerClosedException.ServerClosedException.outcome","name":"outcome","kind":"method","modifiers":[],"parent":"io.github.libtmux.exception.ServerClosedException.ServerClosedException","signatures":[{"raw":"public DispatchOutcome outcome()","params":[],"returns":"DispatchOutcome","typeScopeBoundary":false}],"doc":{"summary":"{@link DispatchOutcome#NOT_DISPATCHED} when the server was closed before the call reached tmux, {@link DispatchOutcome#UNKNOWN} when a concurrent close ended a tmux already running it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/ServerClosedException.java","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.ServerClosedException.outcome","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.ServerClosedException.ServerClosedException.outcome","product":"core","slug":"io-github-libtmux-exception-serverclosedexception-serverclosedexception-outcome"},{"id":"io.github.libtmux.exception.ServerUnavailableException.ServerUnavailableException","name":"ServerUnavailableException","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"No tmux daemon answered on this endpoint.","body":"Nothing was there to answer, rather than an answer that could not be trusted. Start a server on\ndemand, or treat the endpoint as down."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/ServerUnavailableException.java","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.ServerUnavailableException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.ServerUnavailableException.ServerUnavailableException","product":"core","slug":"io-github-libtmux-exception-serverunavailableexception-serverunavailableexception"},{"id":"io.github.libtmux.exception.ServerUnavailableException.ServerUnavailableException.ServerUnavailableException","name":"ServerUnavailableException","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.exception.ServerUnavailableException.ServerUnavailableException","signatures":[{"raw":"public ServerUnavailableException(String message)","params":[{"name":"message","type":"String"}],"typeScopeBoundary":false},{"raw":"public ServerUnavailableException(String message, String command, int exitCode, List errorLines)","params":[{"name":"message","type":"String"},{"name":"command","type":"String"},{"name":"exitCode","type":"int"},{"name":"errorLines","type":"List"}],"typeScopeBoundary":false}],"doc":{"summary":"A daemon found absent by the command that tried to reach it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/ServerUnavailableException.java","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.ServerUnavailableException.ServerUnavailableException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.ServerUnavailableException.ServerUnavailableException.ServerUnavailableException","product":"core","slug":"io-github-libtmux-exception-serverunavailableexception-serverunavailableexception-serverunavailableexception"},{"id":"io.github.libtmux.exception.TargetGoneException.TargetGoneException","name":"TargetGoneException","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The server answered, and the session, window, pane, buffer or server incarnation a handle addresses is gone.","body":"Re-resolve the handle — run again the lookup or filter that produced it — or stop. An\nunreachable server is a {@link ServerUnavailableException} instead, which calls for something else\nentirely."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/TargetGoneException.java","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.TargetGoneException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.TargetGoneException.TargetGoneException","product":"core","slug":"io-github-libtmux-exception-targetgoneexception-targetgoneexception"},{"id":"io.github.libtmux.exception.TargetGoneException.TargetGoneException.TargetGoneException","name":"TargetGoneException","kind":"method","modifiers":[],"parent":"io.github.libtmux.exception.TargetGoneException.TargetGoneException","signatures":[{"raw":"public TargetGoneException(String message)","params":[{"name":"message","type":"String"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/TargetGoneException.java","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.TargetGoneException.TargetGoneException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.TargetGoneException.TargetGoneException.TargetGoneException","product":"core","slug":"io-github-libtmux-exception-targetgoneexception-targetgoneexception-targetgoneexception"},{"id":"io.github.libtmux.exception.UnencodableTextException.UnencodableTextException","name":"UnencodableTextException","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Text this JVM cannot hand to tmux intact, with no route left to send it by.","body":"A child process receives its arguments as bytes, and the JVM encodes them with the platform's\nnative encoding — which is the locale's, decided before {@code main} runs. In a locale that is\nnot UTF-8 that encoding cannot carry most of Unicode, so tmux would receive {@code ?} where a\ncaller wrote {@code é}. The process transport therefore sends such a command over tmux's standard\ninput instead, which this library encodes itself, and this is raised only when that route is\nalready taken — a command that reads standard input — or when the text is in the endpoint, the\nbinary or socket path, which nothing but an argument can carry.\n\nOnly the environment removes the limit: start the JVM with {@code LC_ALL} or {@code LANG}\nnaming a UTF-8 locale. {@code -Dsun.jnu.encoding} and {@code -Dfile.encoding} do not, because the\nnative encoding is read before either is applied.\n\nASCII text is unaffected on every locale, and so is everything tmux sends back: a reply is\ndecoded as the UTF-8 tmux wrote rather than through the platform's encoding."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/UnencodableTextException.java","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.UnencodableTextException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.UnencodableTextException.UnencodableTextException","product":"core","slug":"io-github-libtmux-exception-unencodabletextexception-unencodabletextexception"},{"id":"io.github.libtmux.exception.UnencodableTextException.UnencodableTextException.UnencodableTextException","name":"UnencodableTextException","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.exception.UnencodableTextException.UnencodableTextException","signatures":[{"raw":"public UnencodableTextException(String message)","params":[{"name":"message","type":"String"}],"typeScopeBoundary":false},{"raw":"public UnencodableTextException(String message, Throwable cause)","params":[{"name":"message","type":"String"},{"name":"cause","type":"Throwable"}],"typeScopeBoundary":false}],"doc":{"summary":"Text refused because of {@code cause}, such as a path the platform cannot represent."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/UnencodableTextException.java","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.UnencodableTextException.UnencodableTextException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.UnencodableTextException.UnencodableTextException.UnencodableTextException","product":"core","slug":"io-github-libtmux-exception-unencodabletextexception-unencodabletextexception-unencodabletextexception"},{"id":"io.github.libtmux.exception.UnsupportedFeatureException.UnsupportedFeatureException","name":"UnsupportedFeatureException","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The running tmux does not have something the call asked for.","body":"Raised instead of dropping the option. The Python sibling warns and carries on, which returns a\npane that differs from the one described in a way nothing downstream can detect; a caller who\nasked for an empty pane and got a shell has no way to notice before something runs in it. Skip the\nfeature, or require a newer tmux.\n\nThe feature and the versions are in the message and not in accessors: a throwable is\nserializable, so exposing a {@link TmuxVersion} here would mean making that serializable too."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/UnsupportedFeatureException.java","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.UnsupportedFeatureException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.UnsupportedFeatureException.UnsupportedFeatureException","product":"core","slug":"io-github-libtmux-exception-unsupportedfeatureexception-unsupportedfeatureexception"},{"id":"io.github.libtmux.exception.UnsupportedFeatureException.UnsupportedFeatureException.UnsupportedFeatureException","name":"UnsupportedFeatureException","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.exception.UnsupportedFeatureException.UnsupportedFeatureException","signatures":[{"raw":"public UnsupportedFeatureException(String feature, TmuxVersion required, TmuxVersion running)","params":[{"name":"feature","type":"String"},{"name":"required","type":"TmuxVersion"},{"name":"running","type":"TmuxVersion"}],"typeScopeBoundary":false},{"raw":"public UnsupportedFeatureException(String message)","params":[{"name":"message","type":"String"}],"typeScopeBoundary":false}],"doc":{"summary":"A feature that needs {@code required} or newer, on a server running {@code running}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/UnsupportedFeatureException.java","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.UnsupportedFeatureException.UnsupportedFeatureException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.UnsupportedFeatureException.UnsupportedFeatureException.UnsupportedFeatureException","product":"core","slug":"io-github-libtmux-exception-unsupportedfeatureexception-unsupportedfeatureexception-unsupportedfeatureexception"},{"id":"io.github.libtmux.format.RowFormat.RowFormat","name":"RowFormat","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"A listing template and the reader for the rows it produces.","body":"tmux returns a listing as plain lines, so what separates one field from the next is whatever\nstring the client put between them — and tmux gives no character a special meaning there. Any\nfixed choice is therefore something a user can put in a window name. A window named with the\nseparator turns an n-field template into n+1 fields and shifts everything after it, so a pane id\narrives where a name belongs, and nothing downstream can tell.\n\nThe separator is generated once per process instead. Colliding with it means naming a window\nwith the exact token this process happened to produce."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/format/RowFormat.java","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.format.RowFormat","namespace":"io.github.libtmux.format","publicId":"io.github.libtmux.format.RowFormat.RowFormat","product":"core","slug":"io-github-libtmux-format-rowformat-rowformat"},{"id":"io.github.libtmux.format.RowFormat.RowFormat.of","name":"of","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.format.RowFormat.RowFormat","signatures":[{"raw":"public static RowFormat of(String... fields)","params":[{"name":"fields","type":"String","variadic":"positional","doc":"tmux format names, without the surrounding {@code #{}}"}],"returns":"RowFormat","typeScopeBoundary":true}],"doc":{"summary":"A format over the given tmux format names, in the order rows will report them."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/format/RowFormat.java","line":45,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.format.RowFormat.of","namespace":"io.github.libtmux.format","publicId":"io.github.libtmux.format.RowFormat.RowFormat.of","product":"core","slug":"io-github-libtmux-format-rowformat-rowformat-of"},{"id":"io.github.libtmux.format.RowFormat.RowFormat.template","name":"template","kind":"method","modifiers":[],"parent":"io.github.libtmux.format.RowFormat.RowFormat","signatures":[{"raw":"public String template()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The argument to pass to tmux's {@code -F}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/format/RowFormat.java","line":53,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.format.RowFormat.template","namespace":"io.github.libtmux.format","publicId":"io.github.libtmux.format.RowFormat.RowFormat.template","product":"core","slug":"io-github-libtmux-format-rowformat-rowformat-template"},{"id":"io.github.libtmux.format.RowFormat.RowFormat.separator","name":"separator","kind":"method","modifiers":[],"parent":"io.github.libtmux.format.RowFormat.RowFormat","signatures":[{"raw":"public String separator()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The token this process separates fields with."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/format/RowFormat.java","line":58,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.format.RowFormat.separator","namespace":"io.github.libtmux.format","publicId":"io.github.libtmux.format.RowFormat.RowFormat.separator","product":"core","slug":"io-github-libtmux-format-rowformat-rowformat-separator"},{"id":"io.github.libtmux.format.RowFormat.RowFormat.terminator","name":"terminator","kind":"method","modifiers":[],"parent":"io.github.libtmux.format.RowFormat.RowFormat","signatures":[{"raw":"String terminator()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/format/RowFormat.java","line":62,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.format.RowFormat.terminator","namespace":"io.github.libtmux.format","publicId":"io.github.libtmux.format.RowFormat.RowFormat.terminator","product":"core","slug":"io-github-libtmux-format-rowformat-rowformat-terminator"},{"id":"io.github.libtmux.format.RowFormat.RowFormat.size","name":"size","kind":"method","modifiers":[],"parent":"io.github.libtmux.format.RowFormat.RowFormat","signatures":[{"raw":"public int size()","params":[],"returns":"int","typeScopeBoundary":false}],"doc":{"summary":"How many fields a row must have."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/format/RowFormat.java","line":67,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.format.RowFormat.size","namespace":"io.github.libtmux.format","publicId":"io.github.libtmux.format.RowFormat.RowFormat.size","product":"core","slug":"io-github-libtmux-format-rowformat-rowformat-size"},{"id":"io.github.libtmux.format.RowFormat.RowFormat.Row","name":"Row","kind":"class","modifiers":["readonly"],"parent":"io.github.libtmux.format.RowFormat.RowFormat","signatures":[],"typeScopeBoundary":false,"doc":{"summary":"One row's values, addressed by the field name that asked for them."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/format/RowFormat.java","line":72,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.format.RowFormat.Row","namespace":"io.github.libtmux.format","publicId":"io.github.libtmux.format.RowFormat.RowFormat.Row","product":"core","slug":"io-github-libtmux-format-rowformat-rowformat-row"},{"id":"io.github.libtmux.format.RowFormat.RowFormat.Row.text","name":"text","kind":"method","modifiers":[],"parent":"io.github.libtmux.format.RowFormat.RowFormat.Row","signatures":[{"raw":"public String text(String field)","params":[{"name":"field","type":"String"}],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The field's value as tmux printed it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/format/RowFormat.java","line":81,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.format.RowFormat.Row.text","namespace":"io.github.libtmux.format","publicId":"io.github.libtmux.format.RowFormat.RowFormat.Row.text","product":"core","slug":"io-github-libtmux-format-rowformat-rowformat-row-text"},{"id":"io.github.libtmux.format.RowFormat.RowFormat.Row.number","name":"number","kind":"method","modifiers":[],"parent":"io.github.libtmux.format.RowFormat.RowFormat.Row","signatures":[{"raw":"public int number(String field)","params":[{"name":"field","type":"String"}],"returns":"int","typeScopeBoundary":false,"raises":[{"type":"MalformedResponseException","doc":"if tmux did not print one"}]}],"doc":{"summary":"The field as a whole number."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/format/RowFormat.java","line":90,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.format.RowFormat.Row.number","namespace":"io.github.libtmux.format","publicId":"io.github.libtmux.format.RowFormat.RowFormat.Row.number","product":"core","slug":"io-github-libtmux-format-rowformat-rowformat-row-number"},{"id":"io.github.libtmux.format.RowFormat.RowFormat.Row.count","name":"count","kind":"method","modifiers":[],"parent":"io.github.libtmux.format.RowFormat.RowFormat.Row","signatures":[{"raw":"public long count(String field)","params":[{"name":"field","type":"String"}],"returns":"long","typeScopeBoundary":false,"raises":[{"type":"MalformedResponseException","doc":"if tmux did not print one"}]}],"doc":{"summary":"The field as a whole count."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/format/RowFormat.java","line":104,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.format.RowFormat.Row.count","namespace":"io.github.libtmux.format","publicId":"io.github.libtmux.format.RowFormat.RowFormat.Row.count","product":"core","slug":"io-github-libtmux-format-rowformat-rowformat-row-count"},{"id":"io.github.libtmux.format.RowFormat.RowFormat.Row.flag","name":"flag","kind":"method","modifiers":[],"parent":"io.github.libtmux.format.RowFormat.RowFormat.Row","signatures":[{"raw":"public boolean flag(String field)","params":[{"name":"field","type":"String"}],"returns":"boolean","typeScopeBoundary":false,"raises":[{"type":"MalformedResponseException","doc":"if tmux printed anything else"}]}],"doc":{"summary":"The field as one of tmux's flags, which it prints as 0 or 1."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/format/RowFormat.java","line":118,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.format.RowFormat.Row.flag","namespace":"io.github.libtmux.format","publicId":"io.github.libtmux.format.RowFormat.RowFormat.Row.flag","product":"core","slug":"io-github-libtmux-format-rowformat-rowformat-row-flag"},{"id":"io.github.libtmux.format.RowFormat.RowFormat.rows","name":"rows","kind":"method","modifiers":[],"parent":"io.github.libtmux.format.RowFormat.RowFormat","signatures":[{"raw":"@ReadOnly\n public List rows(List lines)","params":[{"name":"lines","type":"List","doc":"the listing as tmux printed it"}],"returns":"List","typeScopeBoundary":false,"raises":[{"type":"MalformedResponseException","doc":"if the listing ends mid-row, or a row does not have exactly the expected number of fields"}]}],"doc":{"summary":"Reads a whole listing back into rows.","body":"tmux ends a row with a newline and frames it no other way, so a listing's lines are not its\nrows: a value carrying a newline arrives as several. A working directory may contain one, and\nanything running in a pane may change into it, so this is caller-reachable rather than\ntheoretical. A row is closed by carrying every separator, not by the line ending."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/format/RowFormat.java","line":147,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.format.RowFormat.rows","namespace":"io.github.libtmux.format","publicId":"io.github.libtmux.format.RowFormat.RowFormat.rows","product":"core","slug":"io-github-libtmux-format-rowformat-rowformat-rows"},{"id":"io.github.libtmux.format.RowFormat.RowFormat.split","name":"split","kind":"method","modifiers":[],"parent":"io.github.libtmux.format.RowFormat.RowFormat","signatures":[{"raw":"@ReadOnly\n public List split(String row)","params":[{"name":"row","type":"String"}],"returns":"List","typeScopeBoundary":false,"raises":[{"type":"MalformedResponseException","doc":"if the row does not have exactly the expected number of fields, which is the only chance to notice that something shifted"}]}],"doc":{"summary":"Reads one row back into its fields."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/format/RowFormat.java","line":180,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.format.RowFormat.split","namespace":"io.github.libtmux.format","publicId":"io.github.libtmux.format.RowFormat.RowFormat.split","product":"core","slug":"io-github-libtmux-format-rowformat-rowformat-split"},{"id":"io.github.libtmux.format.Tokens.Tokens","name":"Tokens","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The token this process marks its own text with.","body":"tmux gives no character a special meaning in a name or in output, so any fixed marker is\nsomething a user can produce. One random token per process makes a collision mean naming a window\nwith the exact value this run generated.\n\nHexadecimal, because the token is spliced into tmux format templates and into regular\nexpressions and must be inert in both."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/format/Tokens.java","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.format.Tokens","namespace":"io.github.libtmux.format","publicId":"io.github.libtmux.format.Tokens.Tokens","product":"core","slug":"io-github-libtmux-format-tokens-tokens"},{"id":"io.github.libtmux.format.Tokens.Tokens.perProcess","name":"perProcess","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.format.Tokens.Tokens","signatures":[{"raw":"public static String perProcess()","params":[],"returns":"String","typeScopeBoundary":true}],"doc":{"summary":"A token generated once per process, shared by everything that needs to mark its own text."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/format/Tokens.java","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.format.Tokens.perProcess","namespace":"io.github.libtmux.format","publicId":"io.github.libtmux.format.Tokens.Tokens.perProcess","product":"core","slug":"io-github-libtmux-format-tokens-tokens-perprocess"},{"id":"io.github.libtmux.format.Tokens.Tokens.generate","name":"generate","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.format.Tokens.Tokens","signatures":[{"raw":"static String generate()","params":[],"returns":"String","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/format/Tokens.java","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.format.Tokens.generate","namespace":"io.github.libtmux.format","publicId":"io.github.libtmux.format.Tokens.Tokens.generate","product":"core","slug":"io-github-libtmux-format-tokens-tokens-generate"},{"id":"io.github.libtmux.Hooks.Hooks","name":"Hooks","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The tmux hooks at one scope.","body":"A hook binds a tmux command to an event, so tmux runs it without a client asking.\n\nEvery hook is an array: several commands can hang off one event, and tmux runs them in order.\nThat is why a listing answers with a list per event rather than a value — a hook set once is a\nlist of one, not a special case.\n\nEach hook lives at a particular scope, and not every hook lives at every one.\n{@code pane-focus-in} is a window hook, {@code alert-bell} a session hook. Setting one at a scope\nit does not belong to is accepted and then silently discarded, on every supported release — so a\nhook that never fires is worth checking against {@link #all()} before it is worth debugging."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Hooks.java","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Hooks","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Hooks.Hooks","product":"core","slug":"io-github-libtmux-hooks-hooks"},{"id":"io.github.libtmux.Hooks.Hooks.global","name":"global","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Hooks.Hooks","signatures":[{"raw":"static Hooks global(Server server)","params":[{"name":"server","type":"Server"}],"returns":"Hooks","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Hooks.java","line":42,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Hooks.global","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Hooks.Hooks.global","product":"core","slug":"io-github-libtmux-hooks-hooks-global"},{"id":"io.github.libtmux.Hooks.Hooks.session","name":"session","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Hooks.Hooks","signatures":[{"raw":"static Hooks session(Server server, ServerSnapshot snapshot, SessionId session)","params":[{"name":"server","type":"Server"},{"name":"snapshot","type":"ServerSnapshot"},{"name":"session","type":"SessionId"}],"returns":"Hooks","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Hooks.java","line":46,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Hooks.session","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Hooks.Hooks.session","product":"core","slug":"io-github-libtmux-hooks-hooks-session"},{"id":"io.github.libtmux.Hooks.Hooks.window","name":"window","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Hooks.Hooks","signatures":[{"raw":"static Hooks window(Server server, ServerSnapshot snapshot, WindowId window)","params":[{"name":"server","type":"Server"},{"name":"snapshot","type":"ServerSnapshot"},{"name":"window","type":"WindowId"}],"returns":"Hooks","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Hooks.java","line":50,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Hooks.window","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Hooks.Hooks.window","product":"core","slug":"io-github-libtmux-hooks-hooks-window"},{"id":"io.github.libtmux.Hooks.Hooks.pane","name":"pane","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Hooks.Hooks","signatures":[{"raw":"static Hooks pane(Server server, ServerSnapshot snapshot, PaneId pane)","params":[{"name":"server","type":"Server"},{"name":"snapshot","type":"ServerSnapshot"},{"name":"pane","type":"PaneId"}],"returns":"Hooks","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Hooks.java","line":54,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Hooks.pane","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Hooks.Hooks.pane","product":"core","slug":"io-github-libtmux-hooks-hooks-pane"},{"id":"io.github.libtmux.Hooks.Hooks.set","name":"set","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Hooks.Hooks","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void set(String event, String command)","params":[{"name":"event","type":"String"},{"name":"command","type":"String"}],"returns":"void","typeScopeBoundary":false},{"raw":"@Operation(Kind.MUTATION)\n public void set(String event, List command)","params":[{"name":"event","type":"String"},{"name":"command","type":"List"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Binds a tmux command to an event at this scope, replacing anything already bound to it.","body":"Replacing, not adding: tmux discards the whole array. {@link #append} is how a second\ncommand joins the first."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Hooks.java","line":64,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Hooks.set","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Hooks.Hooks.set","product":"core","slug":"io-github-libtmux-hooks-hooks-set"},{"id":"io.github.libtmux.Hooks.Hooks.append","name":"append","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Hooks.Hooks","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void append(String event, List command)","params":[{"name":"event","type":"String"},{"name":"command","type":"List"}],"returns":"void","typeScopeBoundary":false},{"raw":"@Operation(Kind.MUTATION)\n public void append(String event, String command)","params":[{"name":"event","type":"String"},{"name":"command","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"As {@link #append(String, String)}, with the command as words."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Hooks.java","line":82,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Hooks.append","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Hooks.Hooks.append","product":"core","slug":"io-github-libtmux-hooks-hooks-append"},{"id":"io.github.libtmux.Hooks.Hooks.unset","name":"unset","kind":"method","modifiers":[],"parent":"io.github.libtmux.Hooks.Hooks","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void unset(String event)","params":[{"name":"event","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Removes everything bound to an event at this scope."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Hooks.java","line":101,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Hooks.unset","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Hooks.Hooks.unset","product":"core","slug":"io-github-libtmux-hooks-hooks-unset"},{"id":"io.github.libtmux.Hooks.Hooks.run","name":"run","kind":"method","modifiers":[],"parent":"io.github.libtmux.Hooks.Hooks","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void run(String event)","params":[{"name":"event","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Runs what is bound to an event now, without waiting for the event.","body":"tmux spells this {@code set-hook -R}, which reads as setting something. It runs the hook\nand binds nothing."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Hooks.java","line":112,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Hooks.run","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Hooks.Hooks.run","product":"core","slug":"io-github-libtmux-hooks-hooks-run"},{"id":"io.github.libtmux.Hooks.Hooks.all","name":"all","kind":"method","modifiers":[],"parent":"io.github.libtmux.Hooks.Hooks","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public Map> all()","params":[],"returns":"Map>","typeScopeBoundary":false}],"doc":{"summary":"Every hook at this scope, keyed by event, each with its commands in the order tmux runs them.","body":"tmux prints one line per entry, subscripted — {@code after-new-window[0]}. The subscript is\na position in the list rather than part of the name, so it becomes the ordering here and the\nkey stays the event a caller would look up."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Hooks.java","line":124,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Hooks.all","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Hooks.Hooks.all","product":"core","slug":"io-github-libtmux-hooks-hooks-all"},{"id":"io.github.libtmux.IncarnationFence.IncarnationFence","name":"IncarnationFence","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Which tmux server incarnation a handle or batch may act on: the pid tmux reports, and its start time when known, since a pid alone is reusable — a tmux started on the pid of one just probed, as a container's first processes often are, would otherwise answer as if it were that server.","body":"Every guarded command is sent as tmux's own {@code if-shell -F} test of this condition, so a\nserver that has been replaced under a stale handle is refused before anything runs, rather than\nacting on the wrong incarnation."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/IncarnationFence.java","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.IncarnationFence","namespace":"io.github.libtmux","publicId":"io.github.libtmux.IncarnationFence.IncarnationFence","product":"core","slug":"io-github-libtmux-incarnationfence-incarnationfence"},{"id":"io.github.libtmux.IncarnationFence.IncarnationFence.IncarnationFence","name":"IncarnationFence","kind":"method","modifiers":[],"parent":"io.github.libtmux.IncarnationFence.IncarnationFence","signatures":[{"raw":"IncarnationFence(Server server, ServerIdentity identity)","params":[{"name":"server","type":"Server"},{"name":"identity","type":"ServerIdentity"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/IncarnationFence.java","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.IncarnationFence.IncarnationFence","namespace":"io.github.libtmux","publicId":"io.github.libtmux.IncarnationFence.IncarnationFence.IncarnationFence","product":"core","slug":"io-github-libtmux-incarnationfence-incarnationfence-incarnationfence"},{"id":"io.github.libtmux.IncarnationFence.IncarnationFence.identity","name":"identity","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.IncarnationFence.IncarnationFence","signatures":[{"raw":"ServerIdentity identity()","params":[],"returns":"ServerIdentity","typeScopeBoundary":false},{"raw":"ServerIdentity identity(ServerSnapshot snapshot)","params":[{"name":"snapshot","type":"ServerSnapshot"}],"returns":"ServerIdentity","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/IncarnationFence.java","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.IncarnationFence.identity","namespace":"io.github.libtmux","publicId":"io.github.libtmux.IncarnationFence.IncarnationFence.identity","product":"core","slug":"io-github-libtmux-incarnationfence-incarnationfence-identity"},{"id":"io.github.libtmux.IncarnationFence.IncarnationFence.requireSameServer","name":"requireSameServer","kind":"method","modifiers":[],"parent":"io.github.libtmux.IncarnationFence.IncarnationFence","signatures":[{"raw":"void requireSameServer(Server other)","params":[{"name":"other","type":"Server"}],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/IncarnationFence.java","line":41,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.IncarnationFence.requireSameServer","namespace":"io.github.libtmux","publicId":"io.github.libtmux.IncarnationFence.IncarnationFence.requireSameServer","product":"core","slug":"io-github-libtmux-incarnationfence-incarnationfence-requiresameserver"},{"id":"io.github.libtmux.IncarnationFence.IncarnationFence.requireSameIncarnation","name":"requireSameIncarnation","kind":"method","modifiers":[],"parent":"io.github.libtmux.IncarnationFence.IncarnationFence","signatures":[{"raw":"void requireSameIncarnation(ServerSnapshot snapshot, Server other, ServerSnapshot otherSnapshot)","params":[{"name":"snapshot","type":"ServerSnapshot"},{"name":"other","type":"Server"},{"name":"otherSnapshot","type":"ServerSnapshot"}],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/IncarnationFence.java","line":48,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.IncarnationFence.requireSameIncarnation","namespace":"io.github.libtmux","publicId":"io.github.libtmux.IncarnationFence.IncarnationFence.requireSameIncarnation","product":"core","slug":"io-github-libtmux-incarnationfence-incarnationfence-requiresameincarnation"},{"id":"io.github.libtmux.IncarnationFence.IncarnationFence.incarnation","name":"incarnation","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.IncarnationFence.IncarnationFence","signatures":[{"raw":"static String incarnation(long pid, OptionalLong startTime)","params":[{"name":"pid","type":"long"},{"name":"startTime","type":"OptionalLong"}],"returns":"String","typeScopeBoundary":true}],"doc":{"summary":"A condition true only on the server a capture named: its pid, and its start time when known."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/IncarnationFence.java","line":56,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.IncarnationFence.incarnation","namespace":"io.github.libtmux","publicId":"io.github.libtmux.IncarnationFence.IncarnationFence.incarnation","product":"core","slug":"io-github-libtmux-incarnationfence-incarnationfence-incarnation"},{"id":"io.github.libtmux.IncarnationFence.IncarnationFence.guarded","name":"guarded","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.IncarnationFence.IncarnationFence","signatures":[{"raw":"CommandResult guarded(ServerSnapshot snapshot, String command)","params":[{"name":"snapshot","type":"ServerSnapshot"},{"name":"command","type":"String"}],"returns":"CommandResult","typeScopeBoundary":false},{"raw":"CommandResult guarded(ServerSnapshot snapshot, String command, String input)","params":[{"name":"snapshot","type":"ServerSnapshot"},{"name":"command","type":"String"},{"name":"input","type":"String"}],"returns":"CommandResult","typeScopeBoundary":false},{"raw":"CommandResult guarded(long pid, String condition, String command, String input)","params":[{"name":"pid","type":"long"},{"name":"condition","type":"String"},{"name":"command","type":"String"},{"name":"input","type":"String"}],"returns":"CommandResult","typeScopeBoundary":false}],"doc":{"summary":"Refuses to reach a tmux server that is not the one this handle was made against."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/IncarnationFence.java","line":64,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.IncarnationFence.guarded","namespace":"io.github.libtmux","publicId":"io.github.libtmux.IncarnationFence.IncarnationFence.guarded","product":"core","slug":"io-github-libtmux-incarnationfence-incarnationfence-guarded"},{"id":"io.github.libtmux.IncarnationFence.IncarnationFence.run","name":"run","kind":"method","modifiers":[],"parent":"io.github.libtmux.IncarnationFence.IncarnationFence","signatures":[{"raw":"CommandResult run(ServerSnapshot snapshot, WindowContext expected, List argv)","params":[{"name":"snapshot","type":"ServerSnapshot"},{"name":"expected","type":"WindowContext"},{"name":"argv","type":"List"}],"returns":"CommandResult","typeScopeBoundary":false}],"doc":{"summary":"As {@link #guarded(ServerSnapshot, String, String)}, refused as well once the window has gone."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/IncarnationFence.java","line":87,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.IncarnationFence.run","namespace":"io.github.libtmux","publicId":"io.github.libtmux.IncarnationFence.IncarnationFence.run","product":"core","slug":"io-github-libtmux-incarnationfence-incarnationfence-run"},{"id":"io.github.libtmux.internal.CommandStrings.CommandStrings","name":"CommandStrings","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Encodes a tmux command for each of the two parsers tmux reads commands with.","body":"Every argv this takes is literal: what a caller meant, with nothing escaped for either parser."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/internal/CommandStrings.java","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.internal.CommandStrings","namespace":"io.github.libtmux.internal","publicId":"io.github.libtmux.internal.CommandStrings.CommandStrings","product":"core","slug":"io-github-libtmux-internal-commandstrings-commandstrings"},{"id":"io.github.libtmux.internal.CommandStrings.CommandStrings.arguments","name":"arguments","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.internal.CommandStrings.CommandStrings","signatures":[{"raw":"public static List arguments(List> commands)","params":[{"name":"commands","type":"List>"}],"returns":"List","typeScopeBoundary":true}],"doc":{"summary":"Several commands as the flat argv tmux's own argv parser reads.","body":"tmux ends a command at an argument whose last byte is {@code ;}, and keeps the semicolon\ninstead when a backslash precedes it, so an argument ending in one is escaped here and a bare\n{@code ;} separates commands."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/internal/CommandStrings.java","line":22,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.internal.CommandStrings.arguments","namespace":"io.github.libtmux.internal","publicId":"io.github.libtmux.internal.CommandStrings.CommandStrings.arguments","product":"core","slug":"io-github-libtmux-internal-commandstrings-commandstrings-arguments"},{"id":"io.github.libtmux.internal.CommandStrings.CommandStrings.stringify","name":"stringify","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.internal.CommandStrings.CommandStrings","signatures":[{"raw":"public static String stringify(List argv)","params":[{"name":"argv","type":"List"}],"returns":"String","typeScopeBoundary":true}],"doc":{"summary":"One command as the string tmux's command parser reads, which is what {@code if-shell} takes."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/internal/CommandStrings.java","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.internal.CommandStrings.stringify","namespace":"io.github.libtmux.internal","publicId":"io.github.libtmux.internal.CommandStrings.CommandStrings.stringify","product":"core","slug":"io-github-libtmux-internal-commandstrings-commandstrings-stringify"},{"id":"io.github.libtmux.internal.CommandStrings.CommandStrings.group","name":"group","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.internal.CommandStrings.CommandStrings","signatures":[{"raw":"public static String group(List> commands)","params":[{"name":"commands","type":"List>"}],"returns":"String","typeScopeBoundary":true}],"doc":{"summary":"Several commands as the one string tmux's parser reads as a group.","body":"Each argument is quoted, so a semicolon inside one stays part of it and only the separators\nbetween commands end a command."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/internal/CommandStrings.java","line":53,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.internal.CommandStrings.group","namespace":"io.github.libtmux.internal","publicId":"io.github.libtmux.internal.CommandStrings.CommandStrings.group","product":"core","slug":"io-github-libtmux-internal-commandstrings-commandstrings-group"},{"id":"io.github.libtmux.internal.ErrorText.ErrorText","name":"ErrorText","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"What tmux printed on its error stream, as it appears in a failure's message."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/internal/ErrorText.java","line":8,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.internal.ErrorText","namespace":"io.github.libtmux.internal","publicId":"io.github.libtmux.internal.ErrorText.ErrorText","product":"core","slug":"io-github-libtmux-internal-errortext-errortext"},{"id":"io.github.libtmux.internal.ErrorText.ErrorText.suffix","name":"suffix","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.internal.ErrorText.ErrorText","signatures":[{"raw":"public static String suffix(List stderr)","params":[{"name":"stderr","type":"List"}],"returns":"String","typeScopeBoundary":true}],"doc":{"summary":"{@code \": \"} and the non-blank lines joined by {@code \"; \"}, or nothing when tmux printed none.","body":"Capped at {@link OperationReport#ERROR_LIMIT} characters: a message lands in every log line\nthat prints the failure, and the failure's own {@code errorLines()} keeps the text whole."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/internal/ErrorText.java","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.internal.ErrorText.suffix","namespace":"io.github.libtmux.internal","publicId":"io.github.libtmux.internal.ErrorText.ErrorText.suffix","product":"core","slug":"io-github-libtmux-internal-errortext-errortext-suffix"},{"id":"io.github.libtmux.internal.ProcessTree.ProcessTree","name":"ProcessTree","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Owns bounded, idempotent termination of one process and its observable descendants."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/internal/ProcessTree.java","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.internal.ProcessTree","namespace":"io.github.libtmux.internal","publicId":"io.github.libtmux.internal.ProcessTree.ProcessTree","product":"core","slug":"io-github-libtmux-internal-processtree-processtree"},{"id":"io.github.libtmux.internal.ProcessTree.ProcessTree.ProcessTree","name":"ProcessTree","kind":"method","modifiers":[],"parent":"io.github.libtmux.internal.ProcessTree.ProcessTree","signatures":[{"raw":"public ProcessTree(Process root)","params":[{"name":"root","type":"Process"}],"typeScopeBoundary":false}],"doc":{"summary":"Takes ownership of terminating {@code root} and descendants visible from it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/internal/ProcessTree.java","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.internal.ProcessTree.ProcessTree","namespace":"io.github.libtmux.internal","publicId":"io.github.libtmux.internal.ProcessTree.ProcessTree.ProcessTree","product":"core","slug":"io-github-libtmux-internal-processtree-processtree-processtree"},{"id":"io.github.libtmux.internal.ProcessTree.ProcessTree.captureDescendants","name":"captureDescendants","kind":"method","modifiers":[],"parent":"io.github.libtmux.internal.ProcessTree.ProcessTree","signatures":[{"raw":"public synchronized void captureDescendants()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Retains descendants before another cleanup step can make the root disappear."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/internal/ProcessTree.java","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.internal.ProcessTree.captureDescendants","namespace":"io.github.libtmux.internal","publicId":"io.github.libtmux.internal.ProcessTree.ProcessTree.captureDescendants","product":"core","slug":"io-github-libtmux-internal-processtree-processtree-capturedescendants"},{"id":"io.github.libtmux.internal.ProcessTree.ProcessTree.terminate","name":"terminate","kind":"method","modifiers":[],"parent":"io.github.libtmux.internal.ProcessTree.ProcessTree","signatures":[{"raw":"public synchronized boolean terminate()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Terminates the known process tree, closes the root's streams, and reports reclamation."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/internal/ProcessTree.java","line":43,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.internal.ProcessTree.terminate","namespace":"io.github.libtmux.internal","publicId":"io.github.libtmux.internal.ProcessTree.ProcessTree.terminate","product":"core","slug":"io-github-libtmux-internal-processtree-processtree-terminate"},{"id":"io.github.libtmux.internal.Utf8.Utf8","name":"Utf8","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The UTF-8 boundary shared by process and control transports, in both directions."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/internal/Utf8.java","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.internal.Utf8","namespace":"io.github.libtmux.internal","publicId":"io.github.libtmux.internal.Utf8.Utf8","product":"core","slug":"io-github-libtmux-internal-utf8-utf8"},{"id":"io.github.libtmux.internal.Utf8.Utf8.requireEncodableArguments","name":"requireEncodableArguments","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.internal.Utf8.Utf8","signatures":[{"raw":"public static void requireEncodableArguments(List argv)","params":[{"name":"argv","type":"List"}],"returns":"void","typeScopeBoundary":true,"raises":[{"type":"UnencodableTextException","doc":"if an argument holds non-ASCII text and this JVM's native encoding is not UTF-8"}]}],"doc":{"summary":"Refuses argument text this JVM would corrupt on the way to tmux.","body":"Checked here rather than at each call site because every process this library starts is\nbuilt from one of these lists, and a value that reaches tmux mangled is indistinguishable\nthere from one the caller meant."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/internal/Utf8.java","line":40,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.internal.Utf8.requireEncodableArguments","namespace":"io.github.libtmux.internal","publicId":"io.github.libtmux.internal.Utf8.Utf8.requireEncodableArguments","product":"core","slug":"io-github-libtmux-internal-utf8-utf8-requireencodablearguments"},{"id":"io.github.libtmux.internal.Utf8.Utf8.encodable","name":"encodable","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.internal.Utf8.Utf8","signatures":[{"raw":"public static boolean encodable(List argv)","params":[{"name":"argv","type":"List"}],"returns":"boolean","typeScopeBoundary":true}],"doc":{"summary":"Whether this JVM can hand every one of these to a child process intact."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/internal/Utf8.java","line":48,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.internal.Utf8.encodable","namespace":"io.github.libtmux.internal","publicId":"io.github.libtmux.internal.Utf8.Utf8.encodable","product":"core","slug":"io-github-libtmux-internal-utf8-utf8-encodable"},{"id":"io.github.libtmux.internal.Utf8.Utf8.argumentsAreUtf8","name":"argumentsAreUtf8","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.internal.Utf8.Utf8","signatures":[{"raw":"static boolean argumentsAreUtf8(String encoding)","params":[{"name":"encoding","type":"String"}],"returns":"boolean","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/internal/Utf8.java","line":78,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.internal.Utf8.argumentsAreUtf8","namespace":"io.github.libtmux.internal","publicId":"io.github.libtmux.internal.Utf8.Utf8.argumentsAreUtf8","product":"core","slug":"io-github-libtmux-internal-utf8-utf8-argumentsareutf8"},{"id":"io.github.libtmux.internal.Utf8.Utf8.backslashReplace","name":"backslashReplace","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.internal.Utf8.Utf8","signatures":[{"raw":"public static String backslashReplace(byte[] bytes)","params":[{"name":"bytes","type":"byte[]"}],"returns":"String","typeScopeBoundary":true}],"doc":{"summary":"Decodes valid UTF-8 and writes each malformed byte as a recoverable {@code \\xNN} escape."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/internal/Utf8.java","line":88,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.internal.Utf8.backslashReplace","namespace":"io.github.libtmux.internal","publicId":"io.github.libtmux.internal.Utf8.Utf8.backslashReplace","product":"core","slug":"io-github-libtmux-internal-utf8-utf8-backslashreplace"},{"id":"io.github.libtmux.internal.Utf8.Utf8.Stream","name":"Stream","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.internal.Utf8.Utf8","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Decodes one byte stream that arrives in pieces cut anywhere, as {@link #backslashReplace} decodes a whole one. A character cut between two pieces is held back and returned whole with the later piece. One per stream, on one thread."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/internal/Utf8.java","line":117,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.internal.Utf8.Stream","namespace":"io.github.libtmux.internal","publicId":"io.github.libtmux.internal.Utf8.Utf8.Stream","product":"core","slug":"io-github-libtmux-internal-utf8-utf8-stream"},{"id":"io.github.libtmux.internal.Utf8.Utf8.Stream.decode","name":"decode","kind":"method","modifiers":[],"parent":"io.github.libtmux.internal.Utf8.Utf8.Stream","signatures":[{"raw":"public String decode(byte[] piece)","params":[{"name":"piece","type":"byte[]"}],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The text this piece completes, leaving a character it only starts for the next."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/internal/Utf8.java","line":126,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.internal.Utf8.Stream.decode","namespace":"io.github.libtmux.internal","publicId":"io.github.libtmux.internal.Utf8.Utf8.Stream.decode","product":"core","slug":"io-github-libtmux-internal-utf8-utf8-stream-decode"},{"id":"io.github.libtmux.JsonLayout.JsonLayout","name":"JsonLayout","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"tmux's restricted JSON grammar and layout cells, for pre-mutation workspace validation."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/JsonLayout.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.JsonLayout","namespace":"io.github.libtmux","publicId":"io.github.libtmux.JsonLayout.JsonLayout","product":"core","slug":"io-github-libtmux-jsonlayout-jsonlayout"},{"id":"io.github.libtmux.JsonLayout.JsonLayout.leaves","name":"leaves","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.JsonLayout.JsonLayout","signatures":[{"raw":"static int leaves(String text)","params":[{"name":"text","type":"String"}],"returns":"int","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/JsonLayout.java","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.JsonLayout.leaves","namespace":"io.github.libtmux","publicId":"io.github.libtmux.JsonLayout.JsonLayout.leaves","product":"core","slug":"io-github-libtmux-jsonlayout-jsonlayout-leaves"},{"id":"io.github.libtmux.Keys.Keys","name":"Keys","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The server's key bindings, in one key table or across all of them.","body":"tmux keeps bindings in named tables: {@code prefix}, pressed after the prefix key, is where a\nbinding goes unless another table is named; {@code root} is pressed without it; the copy-mode\ntables belong to copy mode. {@link Server#keys()} answers for {@code prefix} when binding and for\nevery table when listing; {@link #in} names one.","examples":[{"lang":"java","code":"server.keys().bind(\"F12\", List.of(\"display-message\", \"hello\"));\nserver.keys().in(\"root\").bind(\"F11\", List.of(\"next-window\"));"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Keys.java","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Keys","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Keys.Keys","product":"core","slug":"io-github-libtmux-keys-keys"},{"id":"io.github.libtmux.Keys.Keys.Keys","name":"Keys","kind":"method","modifiers":[],"parent":"io.github.libtmux.Keys.Keys","signatures":[{"raw":"Keys(Server server, @Nullable String table)","params":[{"name":"server","type":"Server"},{"name":"table","type":"String"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Keys.java","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Keys.Keys","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Keys.Keys.Keys","product":"core","slug":"io-github-libtmux-keys-keys-keys"},{"id":"io.github.libtmux.Keys.Keys.in","name":"in","kind":"method","modifiers":[],"parent":"io.github.libtmux.Keys.Keys","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Keys in(String table)","params":[{"name":"table","type":"String"}],"returns":"Keys","typeScopeBoundary":false}],"doc":{"summary":"The same bindings, in one named table."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Keys.java","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Keys.in","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Keys.Keys.in","product":"core","slug":"io-github-libtmux-keys-keys-in"},{"id":"io.github.libtmux.Keys.Keys.bind","name":"bind","kind":"method","modifiers":[],"parent":"io.github.libtmux.Keys.Keys","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void bind(String key, List command)","params":[{"name":"key","type":"String"},{"name":"command","type":"List"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Binds a key to a tmux command, given as its words.","body":"Each word reaches tmux as itself: the command is passed as arguments, never as a line for\ntmux to split."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Keys.java","line":51,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Keys.bind","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Keys.Keys.bind","product":"core","slug":"io-github-libtmux-keys-keys-bind"},{"id":"io.github.libtmux.Keys.Keys.unbind","name":"unbind","kind":"method","modifiers":[],"parent":"io.github.libtmux.Keys.Keys","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void unbind(String key)","params":[{"name":"key","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Removes a key's binding."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Keys.java","line":66,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Keys.unbind","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Keys.Keys.unbind","product":"core","slug":"io-github-libtmux-keys-keys-unbind"},{"id":"io.github.libtmux.Keys.Keys.list","name":"list","kind":"method","modifiers":[],"parent":"io.github.libtmux.Keys.Keys","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public List list()","params":[],"returns":"List","typeScopeBoundary":false,"raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"}]}],"doc":{"summary":"The bindings as tmux lists them, one per line.","body":"Every table unless one was named. Read without starting a daemon to answer, which tmux\nwould otherwise do for {@code list-keys}: its tables are compiled in, so it can answer an\nendpoint nothing serves by serving it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Keys.java","line":85,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Keys.list","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Keys.Keys.list","product":"core","slug":"io-github-libtmux-keys-keys-list"},{"id":"io.github.libtmux.Layout.Layout","name":"Layout","kind":"enum","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"One of tmux's built-in pane arrangements.","body":"An enum rather than a string, and not for tidiness: {@code select-layout} with a name tmux does\nnot recognise *ends the server* on 3.3a, taking every session on that socket with it —\nincluding sessions this program never created. Every other supported release answers\n{@code invalid layout} and carries on.\n\nA name that cannot be misspelled cannot trigger that. {@link Window#applyLayout} covers the\nother way in, a serialized layout string, by checking it before tmux sees it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layout.java","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layout","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layout.Layout","product":"core","slug":"io-github-libtmux-layout-layout"},{"id":"io.github.libtmux.Layout.Layout.EVEN_HORIZONTAL","name":"EVEN_HORIZONTAL","kind":"constant","modifiers":[],"parent":"io.github.libtmux.Layout.Layout","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layout.java","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layout.EVEN_HORIZONTAL","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layout.Layout.EVEN_HORIZONTAL","product":"core","slug":"io-github-libtmux-layout-layout-even_horizontal"},{"id":"io.github.libtmux.Layout.Layout.EVEN_VERTICAL","name":"EVEN_VERTICAL","kind":"constant","modifiers":[],"parent":"io.github.libtmux.Layout.Layout","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layout.java","line":22,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layout.EVEN_VERTICAL","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layout.Layout.EVEN_VERTICAL","product":"core","slug":"io-github-libtmux-layout-layout-even_vertical"},{"id":"io.github.libtmux.Layout.Layout.MAIN_HORIZONTAL","name":"MAIN_HORIZONTAL","kind":"constant","modifiers":[],"parent":"io.github.libtmux.Layout.Layout","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layout.java","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layout.MAIN_HORIZONTAL","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layout.Layout.MAIN_HORIZONTAL","product":"core","slug":"io-github-libtmux-layout-layout-main_horizontal"},{"id":"io.github.libtmux.Layout.Layout.MAIN_VERTICAL","name":"MAIN_VERTICAL","kind":"constant","modifiers":[],"parent":"io.github.libtmux.Layout.Layout","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layout.java","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layout.MAIN_VERTICAL","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layout.Layout.MAIN_VERTICAL","product":"core","slug":"io-github-libtmux-layout-layout-main_vertical"},{"id":"io.github.libtmux.Layout.Layout.TILED","name":"TILED","kind":"constant","modifiers":[],"parent":"io.github.libtmux.Layout.Layout","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layout.java","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layout.TILED","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layout.Layout.TILED","product":"core","slug":"io-github-libtmux-layout-layout-tiled"},{"id":"io.github.libtmux.Layout.Layout.MAIN_HORIZONTAL_MIRRORED","name":"MAIN_HORIZONTAL_MIRRORED","kind":"constant","modifiers":[],"parent":"io.github.libtmux.Layout.Layout","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Requires tmux 3.5."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layout.java","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layout.MAIN_HORIZONTAL_MIRRORED","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layout.Layout.MAIN_HORIZONTAL_MIRRORED","product":"core","slug":"io-github-libtmux-layout-layout-main_horizontal_mirrored"},{"id":"io.github.libtmux.Layout.Layout.MAIN_VERTICAL_MIRRORED","name":"MAIN_VERTICAL_MIRRORED","kind":"constant","modifiers":[],"parent":"io.github.libtmux.Layout.Layout","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Requires tmux 3.5."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layout.java","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layout.MAIN_VERTICAL_MIRRORED","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layout.Layout.MAIN_VERTICAL_MIRRORED","product":"core","slug":"io-github-libtmux-layout-layout-main_vertical_mirrored"},{"id":"io.github.libtmux.Layout.Layout.Layout","name":"Layout","kind":"method","modifiers":[],"parent":"io.github.libtmux.Layout.Layout","signatures":[{"raw":"Layout(String name)","params":[{"name":"name","type":"String"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layout.java","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layout.Layout","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layout.Layout.Layout","product":"core","slug":"io-github-libtmux-layout-layout-layout"},{"id":"io.github.libtmux.Layout.Layout.tmuxName","name":"tmuxName","kind":"method","modifiers":[],"parent":"io.github.libtmux.Layout.Layout","signatures":[{"raw":"public String tmuxName()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The name tmux knows this by."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layout.java","line":40,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layout.tmuxName","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layout.Layout.tmuxName","product":"core","slug":"io-github-libtmux-layout-layout-tmuxname"},{"id":"io.github.libtmux.Layout.Layout.byTmuxName","name":"byTmuxName","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Layout.Layout","signatures":[{"raw":"public static Optional byTmuxName(String name)","params":[{"name":"name","type":"String"}],"returns":"Optional","typeScopeBoundary":true}],"doc":{"summary":"The layout with this exact tmux name, or empty if none matches.","body":"One map built once, so a caller that already has a canonical name does not repeat the scan\nover {@link #values()} that resolving an abbreviation already did."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layout.java","line":53,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layout.byTmuxName","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layout.Layout.byTmuxName","product":"core","slug":"io-github-libtmux-layout-layout-bytmuxname"},{"id":"io.github.libtmux.Layout.Layout.since","name":"since","kind":"method","modifiers":[],"parent":"io.github.libtmux.Layout.Layout","signatures":[{"raw":"TmuxVersion since()","params":[],"returns":"TmuxVersion","typeScopeBoundary":false}],"doc":{"summary":"The first supported release that has this layout.","body":"A switch rather than a field, so that adding a layout cannot compile until someone says\nwhich release brought it — and so the enum holds nothing but its name."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layout.java","line":63,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layout.since","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layout.Layout.since","product":"core","slug":"io-github-libtmux-layout-layout-since"},{"id":"io.github.libtmux.Layout.Layout.requireSupported","name":"requireSupported","kind":"method","modifiers":[],"parent":"io.github.libtmux.Layout.Layout","signatures":[{"raw":"public void requireSupported(TmuxVersion running)","params":[{"name":"running","type":"TmuxVersion"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Refuses this layout when the running tmux predates it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layout.java","line":71,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layout.requireSupported","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layout.Layout.requireSupported","product":"core","slug":"io-github-libtmux-layout-layout-requiresupported"},{"id":"io.github.libtmux.Layout.Layout.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.Layout.Layout","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layout.java","line":77,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layout.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layout.Layout.toString","product":"core","slug":"io-github-libtmux-layout-layout-tostring"},{"id":"io.github.libtmux.Layouts.Layouts","name":"Layouts","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Which layout names are safe to hand to tmux.","body":"Public because every path that can reach select-layout needs it, not only the one that reads\na workspace file. This check exists because an unrecognised layout name does not produce an error on every tmux:\non 3.3a it crashes the server, taking down every session on that socket, including ones this\nprogram never created. A workspace file is user-supplied text, so the name has to be checked\nbefore it is dispatched rather than after tmux has had it.\n\ntmux accepts either one of its named layouts or a serialized layout tmux itself produced. Since\n3.8 that serialized form is either the classic checksummed grammar or JSON, and {@code\nselect-layout} takes either back - but only JSON round-trips exactly. The classic grammar\ncarries no pane identity, only shape, so which process lands in which cell can differ from\nwhere it started; see {@link Window#applyLayout}. The classic checksum is verified here; a\nfour-hex-digit prefix alone does not make the rest safe for tmux to parse. JSON carries no such\nsignature, so a JSON-shaped string is only trusted once the running tmux is new enough to have\nwritten it - see {@link #requireSerialized}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layouts.java","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layouts","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layouts.Layouts","product":"core","slug":"io-github-libtmux-layouts-layouts"},{"id":"io.github.libtmux.Layouts.Layouts.require","name":"require","kind":"method","modifiers":["static","overload"],"parent":"io.github.libtmux.Layouts.Layouts","signatures":[{"raw":"public static String require(String layout)","params":[{"name":"layout","type":"String"}],"returns":"String","typeScopeBoundary":true,"raises":[{"type":"IllegalArgumentException","doc":"if tmux would not recognise the name, which on some versions is not a recoverable error"}]},{"raw":"public static String require(String layout, TmuxVersion running)","params":[{"name":"layout","type":"String"},{"name":"running","type":"TmuxVersion"}],"returns":"String","typeScopeBoundary":true,"raises":[{"type":"IllegalArgumentException","doc":"if tmux would not recognise the layout"},{"type":"UnsupportedFeatureException","doc":"if the name or the JSON format arrived after this release"}]},{"raw":"public static String require(String layout, Server server, int paneCount)","params":[{"name":"layout","type":"String","doc":"a built-in name, unique abbreviation or serialized tree"},{"name":"server","type":"Server","doc":"the endpoint which will apply the layout"},{"name":"paneCount","type":"int","doc":"the number of panes which the layout must accommodate"}],"returns":"String","typeScopeBoundary":true,"returnsDoc":"a full built-in name or the unchanged serialized layout","raises":[{"type":"IllegalArgumentException","doc":"if the layout is invalid or has too few pane cells"},{"type":"UnsupportedFeatureException","doc":"if an exact built-in name requires a newer daemon"},{"type":"LibTmuxException","doc":"if the daemon or client version cannot be read"}]}],"doc":{"summary":"Returns the layout unchanged, having checked tmux will recognise it.","body":"Accepts the classic checksummed form, a JSON layout (by shape only — a running version is\nneeded to say whether this server could have written it, which {@link #require(String,\nTmuxVersion)} does), a built-in name, or an unambiguous prefix of exactly one built-in name\n({@code layout_set_lookup} is a prefix match, so {@code tile} and {@code even-h} apply on\nevery tmux release). Ambiguity is judged against every name this library knows, not only the\nones the eventual server will have — the version to narrow that with is not available here."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layouts.java","line":61,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layouts.require","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layouts.Layouts.require","product":"core","slug":"io-github-libtmux-layouts-layouts-require"},{"id":"io.github.libtmux.Layouts.Layouts.builtIn","name":"builtIn","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Layouts.Layouts","signatures":[{"raw":"public static Optional builtIn(String layout, TmuxVersion running)","params":[{"name":"layout","type":"String"},{"name":"running","type":"TmuxVersion"}],"returns":"Optional","typeScopeBoundary":true}],"doc":{"summary":"The built-in layout a name or an unambiguous prefix of one denotes, resolved against what {@code running} actually supports — the same resolution {@link #require(String, TmuxVersion)} applies, exposed so a caller that must choose between the enum path and a raw string (a workspace file's own dispatch) makes the same choice the guard just validated."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layouts.java","line":122,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layouts.builtIn","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layouts.Layouts.builtIn","product":"core","slug":"io-github-libtmux-layouts-layouts-builtin"},{"id":"io.github.libtmux.Layouts.Layouts.requireSerialized","name":"requireSerialized","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Layouts.Layouts","signatures":[{"raw":"static String requireSerialized(String layout, TmuxVersion running)","params":[{"name":"layout","type":"String"},{"name":"running","type":"TmuxVersion"}],"returns":"String","typeScopeBoundary":true,"raises":[{"type":"IllegalArgumentException","doc":"if the string is not a layout tmux wrote"},{"type":"UnsupportedFeatureException","doc":"if it is JSON-shaped but {@code running} predates the format, so it cannot be one this server wrote"}]}],"doc":{"summary":"Requires an exact layout string rather than a built-in layout name.","body":"The classic form answers \"did tmux write this?\" by its own checksum, without needing to\nknow what tmux is running. JSON carries nothing equivalent, so the only question left to ask\nis \"could this tmux have written it?\" - which is a version, not a parse. Recognising the shape\nis as far as this goes: a JSON body that passes the shape check but is not real is tmux's own\nproblem to refuse, and it does, safely, on every release that understands the format at all\n(confirmed against next-3.9: malformed JSON answers an ordinary parse error, never a crash)."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layouts.java","line":249,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layouts.requireSerialized","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layouts.Layouts.requireSerialized","product":"core","slug":"io-github-libtmux-layouts-layouts-requireserialized"},{"id":"io.github.libtmux.MessageLog.MessageLog","name":"MessageLog","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The server's own message log, newest last.","body":"tmux before 3.6 answers {@code no current client} when nothing is attached. A gate would\nrefuse the case that works: with a client attached the log is readable on every supported\nrelease. The failure tmux reports is left to reach the caller."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/MessageLog.java","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.MessageLog","namespace":"io.github.libtmux","publicId":"io.github.libtmux.MessageLog.MessageLog","product":"core","slug":"io-github-libtmux-messagelog-messagelog"},{"id":"io.github.libtmux.MessageLog.MessageLog.MessageLog","name":"MessageLog","kind":"method","modifiers":[],"parent":"io.github.libtmux.MessageLog.MessageLog","signatures":[{"raw":"MessageLog(Server server)","params":[{"name":"server","type":"Server"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/MessageLog.java","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.MessageLog.MessageLog","namespace":"io.github.libtmux","publicId":"io.github.libtmux.MessageLog.MessageLog.MessageLog","product":"core","slug":"io-github-libtmux-messagelog-messagelog-messagelog"},{"id":"io.github.libtmux.MessageLog.MessageLog.lines","name":"lines","kind":"method","modifiers":[],"parent":"io.github.libtmux.MessageLog.MessageLog","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public List lines()","params":[],"returns":"List","typeScopeBoundary":false,"raises":[{"type":"LibTmuxException","doc":"before 3.6 when no client is attached"}]}],"doc":{"summary":"The log lines."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/MessageLog.java","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.MessageLog.lines","namespace":"io.github.libtmux","publicId":"io.github.libtmux.MessageLog.MessageLog.lines","product":"core","slug":"io-github-libtmux-messagelog-messagelog-lines"},{"id":"io.github.libtmux.OptionKey.OptionKey","name":"OptionKey","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"typeParams":["T"],"typeParamNames":["T"],"typeParameters":[{"name":"T","doc":"what the value reads as"}],"doc":{"summary":"A tmux option and the Java type its value reads as.","body":"Declared by the caller rather than catalogued here. tmux has hundreds of options, adds them\nbetween releases and changes a few of their types, so a closed catalogue would be wrong somewhere\non every release it did not track. A key says how to read one option; the name-and-string methods\non {@link Options} remain for anything else.\n\nThe constants are the ones whose type is the same on every supported release, checked against\ntmux's own option table from 3.2a to 3.7c. {@code status} is not among the flags for that reason:\ntmux reads it as a choice of {@code off}, {@code on} and a line count.","examples":[{"lang":"java","code":"session.options().set(OptionKey.HISTORY_LIMIT, 50_000);\nint kept = session.options().get(OptionKey.HISTORY_LIMIT).orElseThrow(); // → 50000\n\nOptionKey bell = OptionKey.flag(\"visual-bell\");"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/OptionKey.java","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.OptionKey","namespace":"io.github.libtmux","publicId":"io.github.libtmux.OptionKey.OptionKey","product":"core","slug":"io-github-libtmux-optionkey-optionkey"},{"id":"io.github.libtmux.OptionKey.OptionKey.HISTORY_LIMIT","name":"HISTORY_LIMIT","kind":"attribute","modifiers":["static","readonly"],"parent":"io.github.libtmux.OptionKey.OptionKey","signatures":[],"typeScopeBoundary":true,"type":"OptionKey","value":"number(\"history-limit\")","doc":{"summary":"Lines of scrollback a pane keeps. A session option."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/OptionKey.java","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.OptionKey.HISTORY_LIMIT","namespace":"io.github.libtmux","publicId":"io.github.libtmux.OptionKey.OptionKey.HISTORY_LIMIT","product":"core","slug":"io-github-libtmux-optionkey-optionkey-history_limit"},{"id":"io.github.libtmux.OptionKey.OptionKey.BASE_INDEX","name":"BASE_INDEX","kind":"attribute","modifiers":["static","readonly"],"parent":"io.github.libtmux.OptionKey.OptionKey","signatures":[],"typeScopeBoundary":true,"type":"OptionKey","value":"number(\"base-index\")","doc":{"summary":"The index a session's first window gets. A session option."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/OptionKey.java","line":34,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.OptionKey.BASE_INDEX","namespace":"io.github.libtmux","publicId":"io.github.libtmux.OptionKey.OptionKey.BASE_INDEX","product":"core","slug":"io-github-libtmux-optionkey-optionkey-base_index"},{"id":"io.github.libtmux.OptionKey.OptionKey.ESCAPE_TIME","name":"ESCAPE_TIME","kind":"attribute","modifiers":["static","readonly"],"parent":"io.github.libtmux.OptionKey.OptionKey","signatures":[],"typeScopeBoundary":true,"type":"OptionKey","value":"number(\"escape-time\")","doc":{"summary":"How long tmux waits after an escape to see whether a key sequence follows. A server option."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/OptionKey.java","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.OptionKey.ESCAPE_TIME","namespace":"io.github.libtmux","publicId":"io.github.libtmux.OptionKey.OptionKey.ESCAPE_TIME","product":"core","slug":"io-github-libtmux-optionkey-optionkey-escape_time"},{"id":"io.github.libtmux.OptionKey.OptionKey.MOUSE","name":"MOUSE","kind":"attribute","modifiers":["static","readonly"],"parent":"io.github.libtmux.OptionKey.OptionKey","signatures":[],"typeScopeBoundary":true,"type":"OptionKey","value":"flag(\"mouse\")","doc":{"summary":"Whether the mouse is captured. A session option."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/OptionKey.java","line":40,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.OptionKey.MOUSE","namespace":"io.github.libtmux","publicId":"io.github.libtmux.OptionKey.OptionKey.MOUSE","product":"core","slug":"io-github-libtmux-optionkey-optionkey-mouse"},{"id":"io.github.libtmux.OptionKey.OptionKey.AUTOMATIC_RENAME","name":"AUTOMATIC_RENAME","kind":"attribute","modifiers":["static","readonly"],"parent":"io.github.libtmux.OptionKey.OptionKey","signatures":[],"typeScopeBoundary":true,"type":"OptionKey","value":"flag(\"automatic-rename\")","doc":{"summary":"Whether a window renames itself after what its pane runs. A window option."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/OptionKey.java","line":43,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.OptionKey.AUTOMATIC_RENAME","namespace":"io.github.libtmux","publicId":"io.github.libtmux.OptionKey.OptionKey.AUTOMATIC_RENAME","product":"core","slug":"io-github-libtmux-optionkey-optionkey-automatic_rename"},{"id":"io.github.libtmux.OptionKey.OptionKey.SYNCHRONIZE_PANES","name":"SYNCHRONIZE_PANES","kind":"attribute","modifiers":["static","readonly"],"parent":"io.github.libtmux.OptionKey.OptionKey","signatures":[],"typeScopeBoundary":true,"type":"OptionKey","value":"flag(\"synchronize-panes\")","doc":{"summary":"Whether keys typed into one pane go to every pane in the window. A window or pane option."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/OptionKey.java","line":46,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.OptionKey.SYNCHRONIZE_PANES","namespace":"io.github.libtmux","publicId":"io.github.libtmux.OptionKey.OptionKey.SYNCHRONIZE_PANES","product":"core","slug":"io-github-libtmux-optionkey-optionkey-synchronize_panes"},{"id":"io.github.libtmux.OptionKey.OptionKey.text","name":"text","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.OptionKey.OptionKey","signatures":[{"raw":"public static OptionKey text(String name)","params":[{"name":"name","type":"String"}],"returns":"OptionKey","typeScopeBoundary":true}],"doc":{"summary":"An option read as the text tmux reports, which suits a string, a choice, a style or a colour."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/OptionKey.java","line":59,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.OptionKey.text","namespace":"io.github.libtmux","publicId":"io.github.libtmux.OptionKey.OptionKey.text","product":"core","slug":"io-github-libtmux-optionkey-optionkey-text"},{"id":"io.github.libtmux.OptionKey.OptionKey.number","name":"number","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.OptionKey.OptionKey","signatures":[{"raw":"public static OptionKey number(String name)","params":[{"name":"name","type":"String"}],"returns":"OptionKey","typeScopeBoundary":true}],"doc":{"summary":"An option tmux holds as a number."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/OptionKey.java","line":64,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.OptionKey.number","namespace":"io.github.libtmux","publicId":"io.github.libtmux.OptionKey.OptionKey.number","product":"core","slug":"io-github-libtmux-optionkey-optionkey-number"},{"id":"io.github.libtmux.OptionKey.OptionKey.flag","name":"flag","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.OptionKey.OptionKey","signatures":[{"raw":"public static OptionKey flag(String name)","params":[{"name":"name","type":"String"}],"returns":"OptionKey","typeScopeBoundary":true}],"doc":{"summary":"An option tmux holds as a flag, which it reports as {@code on} or {@code off}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/OptionKey.java","line":69,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.OptionKey.flag","namespace":"io.github.libtmux","publicId":"io.github.libtmux.OptionKey.OptionKey.flag","product":"core","slug":"io-github-libtmux-optionkey-optionkey-flag"},{"id":"io.github.libtmux.OptionKey.OptionKey.name","name":"name","kind":"method","modifiers":[],"parent":"io.github.libtmux.OptionKey.OptionKey","signatures":[{"raw":"public String name()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The option's name, as tmux spells it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/OptionKey.java","line":74,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.OptionKey.name","namespace":"io.github.libtmux","publicId":"io.github.libtmux.OptionKey.OptionKey.name","product":"core","slug":"io-github-libtmux-optionkey-optionkey-name"},{"id":"io.github.libtmux.OptionKey.OptionKey.read","name":"read","kind":"method","modifiers":[],"parent":"io.github.libtmux.OptionKey.OptionKey","signatures":[{"raw":"T read(String reported)","params":[{"name":"reported","type":"String"}],"returns":"T","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/OptionKey.java","line":78,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.OptionKey.read","namespace":"io.github.libtmux","publicId":"io.github.libtmux.OptionKey.OptionKey.read","product":"core","slug":"io-github-libtmux-optionkey-optionkey-read"},{"id":"io.github.libtmux.OptionKey.OptionKey.write","name":"write","kind":"method","modifiers":[],"parent":"io.github.libtmux.OptionKey.OptionKey","signatures":[{"raw":"String write(T value)","params":[{"name":"value","type":"T"}],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/OptionKey.java","line":82,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.OptionKey.write","namespace":"io.github.libtmux","publicId":"io.github.libtmux.OptionKey.OptionKey.write","product":"core","slug":"io-github-libtmux-optionkey-optionkey-write"},{"id":"io.github.libtmux.OptionKey.OptionKey.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.OptionKey.OptionKey","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/OptionKey.java","line":105,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.OptionKey.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.OptionKey.OptionKey.toString","product":"core","slug":"io-github-libtmux-optionkey-optionkey-tostring"},{"id":"io.github.libtmux.Options.Options","name":"Options","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The tmux options at one scope.","body":"tmux keeps options on the server, on a session, on a window and on a pane, and the same option\nname can exist at more than one of them. A scope is therefore chosen when the view is obtained,\nnot passed to every call, so a caller cannot read one scope and write another.\n\nArray options keep the subscript tmux prints — {@code command-alias[0]} — because that is what\naddresses the individual entry when setting it back.\n\nEvery read asks the daemon its version in the same tmux invocation as the values, since how a\nvalue is printed depends on that version: tmux 3.4 and 3.5 print a carriage return and a literal\n{@code \\r} alike under {@code -v}, so on those two the escaped listing is decoded instead."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Options.java","line":39,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Options","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Options.Options","product":"core","slug":"io-github-libtmux-options-options"},{"id":"io.github.libtmux.Options.Options.server","name":"server","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Options.Options","signatures":[{"raw":"static Options server(Server server)","params":[{"name":"server","type":"Server"}],"returns":"Options","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Options.java","line":54,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Options.server","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Options.Options.server","product":"core","slug":"io-github-libtmux-options-options-server"},{"id":"io.github.libtmux.Options.Options.global","name":"global","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Options.Options","signatures":[{"raw":"static Options global(Server server)","params":[{"name":"server","type":"Server"}],"returns":"Options","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Options.java","line":58,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Options.global","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Options.Options.global","product":"core","slug":"io-github-libtmux-options-options-global"},{"id":"io.github.libtmux.Options.Options.session","name":"session","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Options.Options","signatures":[{"raw":"static Options session(Server server, ServerSnapshot snapshot, SessionId session)","params":[{"name":"server","type":"Server"},{"name":"snapshot","type":"ServerSnapshot"},{"name":"session","type":"SessionId"}],"returns":"Options","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Options.java","line":62,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Options.session","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Options.Options.session","product":"core","slug":"io-github-libtmux-options-options-session"},{"id":"io.github.libtmux.Options.Options.window","name":"window","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Options.Options","signatures":[{"raw":"static Options window(Server server, ServerSnapshot snapshot, WindowId window)","params":[{"name":"server","type":"Server"},{"name":"snapshot","type":"ServerSnapshot"},{"name":"window","type":"WindowId"}],"returns":"Options","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Options.java","line":66,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Options.window","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Options.Options.window","product":"core","slug":"io-github-libtmux-options-options-window"},{"id":"io.github.libtmux.Options.Options.pane","name":"pane","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Options.Options","signatures":[{"raw":"static Options pane(Server server, ServerSnapshot snapshot, PaneId pane)","params":[{"name":"server","type":"Server"},{"name":"snapshot","type":"ServerSnapshot"},{"name":"pane","type":"PaneId"}],"returns":"Options","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Options.java","line":70,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Options.pane","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Options.Options.pane","product":"core","slug":"io-github-libtmux-options-options-pane"},{"id":"io.github.libtmux.Options.Options.get","name":"get","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Options.Options","signatures":[{"raw":"@Operation(Kind.READ)\n public Optional get(String name)","params":[{"name":"name","type":"String"}],"returns":"Optional","typeScopeBoundary":false,"returnsDoc":"empty only when tmux does not know the option, which it reports as an error; an option genuinely set to the empty string comes back as an empty value, not as absent. A value spanning several lines comes back whole","raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if the read otherwise fails, including a name tmux finds ambiguous — option names may be abbreviated, and a prefix matching several is a question tmux declined to answer rather than an option it does not have"}]},{"raw":"@Operation(Kind.READ)\n public Optional get(OptionKey key)","params":[{"name":"key","type":"OptionKey"}],"returns":"Optional","typeParamNames":["T"],"typeScopeBoundary":false,"typeParams":["T"],"typeParameters":[{"name":"T"}],"raises":[{"type":"LibTmuxException","doc":"if tmux reports a value the key's type cannot hold, which means the key was declared with the wrong type"}]}],"doc":{"summary":"The value in effect at this scope, inherited from a parent scope when this one does not set it.","body":"This is what tmux itself will act on. To ask the narrower question — whether this scope\nsets the option at all — look for the name in {@link #all()}, which lists only what is set\nhere."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Options.java","line":89,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Options.get","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Options.Options.get","product":"core","slug":"io-github-libtmux-options-options-get"},{"id":"io.github.libtmux.Options.Options.set","name":"set","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Options.Options","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void set(OptionKey key, T value)","params":[{"name":"key","type":"OptionKey"},{"name":"value","type":"T"}],"returns":"void","typeParamNames":["T"],"typeScopeBoundary":false,"typeParams":["T"],"typeParameters":[{"name":"T"}]},{"raw":"@Operation(Kind.MUTATION)\n public void set(String name, String value)","params":[{"name":"name","type":"String"},{"name":"value","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"As {@link #set(String, String)}, written the way tmux reads the key's type."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Options.java","line":130,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Options.set","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Options.Options.set","product":"core","slug":"io-github-libtmux-options-options-set"},{"id":"io.github.libtmux.Options.Options.all","name":"all","kind":"method","modifiers":[],"parent":"io.github.libtmux.Options.Options","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public Map all()","params":[],"returns":"Map","typeScopeBoundary":false}],"doc":{"summary":"Every option set at this scope, in tmux's order. Inherited values are not listed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Options.java","line":137,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Options.all","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Options.Options.all","product":"core","slug":"io-github-libtmux-options-options-all"},{"id":"io.github.libtmux.Options.Options.effective","name":"effective","kind":"method","modifiers":[],"parent":"io.github.libtmux.Options.Options","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public Map effective()","params":[],"returns":"Map","typeScopeBoundary":false}],"doc":{"summary":"Every option tmux lists at this scope, including inherited built-in values.","body":"Inherited user-option names are not listed by tmux. {@link #get(String)} still reads their\neffective values by name."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Options.java","line":316,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Options.effective","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Options.Options.effective","product":"core","slug":"io-github-libtmux-options-options-effective"},{"id":"io.github.libtmux.Options.Options.setIfAbsent","name":"setIfAbsent","kind":"method","modifiers":[],"parent":"io.github.libtmux.Options.Options","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public boolean setIfAbsent(String name, String value)","params":[{"name":"name","type":"String"},{"name":"value","type":"String"}],"returns":"boolean","typeScopeBoundary":false,"returnsDoc":"whether the value was taken, false when this scope already set the option"}],"doc":{"summary":"Sets one option only if this scope does not already set it.","body":"tmux reports the already-set case as an error, which it is not: declining to overwrite is\nthe whole point of asking. The answer comes back as a value instead."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Options.java","line":336,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Options.setIfAbsent","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Options.Options.setIfAbsent","product":"core","slug":"io-github-libtmux-options-options-setifabsent"},{"id":"io.github.libtmux.Options.Options.append","name":"append","kind":"method","modifiers":[],"parent":"io.github.libtmux.Options.Options","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void append(String name, String suffix)","params":[{"name":"name","type":"String"},{"name":"suffix","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Adds to the end of a string option, rather than replacing it.","body":"Appending to an option this scope has not set simply sets it, which is what tmux does and\nwhat a caller building a value up piece by piece wants."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Options.java","line":347,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Options.append","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Options.Options.append","product":"core","slug":"io-github-libtmux-options-options-append"},{"id":"io.github.libtmux.Options.Options.setExpanded","name":"setExpanded","kind":"method","modifiers":[],"parent":"io.github.libtmux.Options.Options","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void setExpanded(String name, String format)","params":[{"name":"name","type":"String"},{"name":"format","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Sets one option to what a tmux format comes to, rather than to the format itself.","body":"{@code setExpanded(\"status-left\", \"in #{session_name}\")} stores {@code in base}. The\nexpansion happens once, when this is called; the option does not stay live.\n\nBecause tmux expands the format when this is called, a {@code #(...)} in it runs a command\nat that moment. Pass any interpolated value through {@link TmuxFormats#literal} unless you mean\nit to be expanded."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Options.java","line":362,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Options.setExpanded","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Options.Options.setExpanded","product":"core","slug":"io-github-libtmux-options-options-setexpanded"},{"id":"io.github.libtmux.Options.Options.unset","name":"unset","kind":"method","modifiers":[],"parent":"io.github.libtmux.Options.Options","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void unset(String name)","params":[{"name":"name","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Removes one option at this scope, so it falls back to whatever it inherits."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Options.java","line":368,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Options.unset","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Options.Options.unset","product":"core","slug":"io-github-libtmux-options-options-unset"},{"id":"io.github.libtmux.Pane.Pane","name":"Pane","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"One tmux pane, as one capture saw it.","body":"Identity is the server and the pane id. An index is state: panes renumber as neighbours come\nand go.\n\nA method named for a captured field returns what {@link #info()} holds and does no I/O;\n{@link #refresh()} reads again. Every other method asks tmux now."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":43,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane","product":"core","slug":"io-github-libtmux-pane-pane"},{"id":"io.github.libtmux.Pane.Pane.Pane","name":"Pane","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"Pane(Server server, ServerSnapshot snapshot, PaneState state)","params":[{"name":"server","type":"Server"},{"name":"snapshot","type":"ServerSnapshot"},{"name":"state","type":"PaneState"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":64,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.Pane","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.Pane","product":"core","slug":"io-github-libtmux-pane-pane-pane"},{"id":"io.github.libtmux.Pane.Pane.info","name":"info","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public PaneState info()","params":[],"returns":"PaneState","typeScopeBoundary":false}],"doc":{"summary":"The fields this capture stored. A later title change is not visible here."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":71,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.info","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.info","product":"core","slug":"io-github-libtmux-pane-pane-info"},{"id":"io.github.libtmux.Pane.Pane.id","name":"id","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public PaneId id()","params":[],"returns":"PaneId","typeScopeBoundary":false}],"doc":{"summary":"The pane's stable id."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":77,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.id","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.id","product":"core","slug":"io-github-libtmux-pane-pane-id"},{"id":"io.github.libtmux.Pane.Pane.index","name":"index","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public int index()","params":[],"returns":"int","typeScopeBoundary":false}],"doc":{"summary":"The pane's position, which shifts as neighbours come and go."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":83,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.index","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.index","product":"core","slug":"io-github-libtmux-pane-pane-index"},{"id":"io.github.libtmux.Pane.Pane.active","name":"active","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public boolean active()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether this was its window's active pane when captured."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":89,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.active","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.active","product":"core","slug":"io-github-libtmux-pane-pane-active"},{"id":"io.github.libtmux.Pane.Pane.currentCommand","name":"currentCommand","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public String currentCommand()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The command tmux reported running here."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":95,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.currentCommand","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.currentCommand","product":"core","slug":"io-github-libtmux-pane-pane-currentcommand"},{"id":"io.github.libtmux.Pane.Pane.floating","name":"floating","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Optional floating()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"Whether this pane floats, or empty when the running tmux cannot say.","body":"Empty is not \"no\". tmux before 3.7 expands the format to nothing, and answering {@code false}\nthere would be indistinguishable from a tmux that looked and found the pane was not floating."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":106,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.floating","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.floating","product":"core","slug":"io-github-libtmux-pane-pane-floating"},{"id":"io.github.libtmux.Pane.Pane.size","name":"size","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Dimensions size()","params":[],"returns":"Dimensions","typeScopeBoundary":false}],"doc":{"summary":"How large the pane was when captured, in terminal cells."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":112,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.size","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.size","product":"core","slug":"io-github-libtmux-pane-pane-size"},{"id":"io.github.libtmux.Pane.Pane.position","name":"position","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public PanePosition position()","params":[],"returns":"PanePosition","typeScopeBoundary":false}],"doc":{"summary":"Where the pane's top-left corner sat in its window when captured, in terminal cells."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":118,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.position","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.position","product":"core","slug":"io-github-libtmux-pane-pane-position"},{"id":"io.github.libtmux.Pane.Pane.title","name":"title","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public String title()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The pane title, which a program running inside it can change."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":124,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.title","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.title","product":"core","slug":"io-github-libtmux-pane-pane-title"},{"id":"io.github.libtmux.Pane.Pane.currentPath","name":"currentPath","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Path currentPath()","params":[],"returns":"Path","typeScopeBoundary":false,"raises":[{"type":"LibTmuxException","doc":"if this JVM's encoding cannot represent the name, which a UTF-8 locale fixes"}]}],"doc":{"summary":"The working directory tmux reported for the pane.","body":"Converted on request rather than when the pane was captured, because a directory name is\nbytes to tmux and this JVM cannot always represent one: converting at capture time would lose\nevery pane on the server over a single pane's directory. {@link #currentPathText()} is the\nvalue tmux actually reported, and never throws."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":140,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.currentPath","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.currentPath","product":"core","slug":"io-github-libtmux-pane-pane-currentpath"},{"id":"io.github.libtmux.Pane.Pane.currentPathText","name":"currentPathText","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public String currentPathText()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The working directory tmux reported for the pane, exactly as tmux reported it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":155,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.currentPathText","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.currentPathText","product":"core","slug":"io-github-libtmux-pane-pane-currentpathtext"},{"id":"io.github.libtmux.Pane.Pane.pid","name":"pid","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public OptionalLong pid()","params":[],"returns":"OptionalLong","typeScopeBoundary":false}],"doc":{"summary":"The process id of the program running in the pane, captured at the time of the read this handle came from.","body":"Empty means tmux reported no process — never a literal {@code 0}, which would be\nindistinguishable from a real pid. That covers two different situations this capture cannot\ntell apart: a pane that never ran one ({@link SplitSpec.Builder#empty()}) and, from tmux 3.8, a\npane that ran one and it has since died. Before 3.8 a dead pane still reports its stale pid.\n{@link #dead()} is the live read that tells a caller which."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":170,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.pid","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.pid","product":"core","slug":"io-github-libtmux-pane-pane-pid"},{"id":"io.github.libtmux.Pane.Pane.dead","name":"dead","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.READ)\n public boolean dead()","params":[],"returns":"boolean","typeScopeBoundary":false,"raises":[{"type":"TargetGoneException","doc":"if the pane is gone from a server that still answers"}]}],"doc":{"summary":"Whether this pane's process has exited, read fresh rather than from the capture.","body":"Dying is something that happens between reads, so a cached answer would report a pane that\ndied after this handle was captured as alive forever — the trap a snapshot-backed {@code\nisDead()} would set, which is why there is no such accessor on the capture itself. This asks\ntmux directly instead, every time.\n\nA dead pane is not necessarily a gone one: {@code remain-on-exit} keeps it around, still\nlisted, to be read. A pane with no {@code remain-on-exit} is simply removed once its process\nexits — {@link #refresh()} on this handle then throws {@link TargetGoneException}, and\nthis method throws too. Unlike every other command {@code Pane} sends, {@code display-message\n-t} does not error on a target it cannot resolve — it exits 0 with nothing on stdout — so a\ngone pane looks like a live one that answered nothing rather than like a failure. That empty\nread, and not a \"can't find pane\" from tmux, is what this method throws on: a real pane always\nanswers {@code 0} or {@code 1} for this format, never nothing."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":194,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.dead","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.dead","product":"core","slug":"io-github-libtmux-pane-pane-dead"},{"id":"io.github.libtmux.Pane.Pane.resize","name":"resize","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void resize(Direction direction, int cells)","params":[{"name":"direction","type":"Direction","doc":"which way to grow, named rather than flagged"},{"name":"cells","type":"int","doc":"how many terminal cells to grow by"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Grows this pane by a number of cells in one direction."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":209,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.resize","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.resize","product":"core","slug":"io-github-libtmux-pane-pane-resize"},{"id":"io.github.libtmux.Pane.Pane.edges","name":"edges","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public PaneEdges edges()","params":[],"returns":"PaneEdges","typeScopeBoundary":false}],"doc":{"summary":"Which sides of its window the pane touches."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":219,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.edges","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.edges","product":"core","slug":"io-github-libtmux-pane-pane-edges"},{"id":"io.github.libtmux.Pane.Pane.copyMode","name":"copyMode","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void copyMode()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Puts this pane into copy mode, where its scrollback can be navigated."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":225,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.copyMode","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.copyMode","product":"core","slug":"io-github-libtmux-pane-pane-copymode"},{"id":"io.github.libtmux.Pane.Pane.mode","name":"mode","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.READ)\n public Optional mode()","params":[],"returns":"Optional","typeScopeBoundary":false,"returnsDoc":"the mode, or empty when the pane is showing its program","raises":[{"type":"LibTmuxException","doc":"if this tmux named a mode outside the supported range"}]}],"doc":{"summary":"Which mode this pane is in at this moment, or empty when it is in none.","body":"Read live rather than from the capture, because entering a mode is something this library\ndoes and a caller wants to see the result of."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":239,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.mode","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.mode","product":"core","slug":"io-github-libtmux-pane-pane-mode"},{"id":"io.github.libtmux.Pane.Pane.exitMode","name":"exitMode","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void exitMode()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Leaves whichever mode this pane is in.","body":"tmux spells this {@code copy-mode -q}, which quits any mode and not only copy mode — a clock\nand a chooser go the same way. The name is tmux's history rather than its behaviour, so it is\nnot the one exposed here."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":252,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.exitMode","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.exitMode","product":"core","slug":"io-github-libtmux-pane-pane-exitmode"},{"id":"io.github.libtmux.Pane.Pane.select","name":"select","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void select()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Makes this the active pane of its window."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":258,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.select","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.select","product":"core","slug":"io-github-libtmux-pane-pane-select"},{"id":"io.github.libtmux.Pane.Pane.retitle","name":"retitle","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@CheckReturnValue\n @Operation(Kind.MUTATION)\n public Pane retitle(String title)","params":[{"name":"title","type":"String"}],"returns":"Pane","typeScopeBoundary":false}],"doc":{"summary":"Retitles this pane and returns its replacement capture.","body":"Retain the result to read the changed title. This handle keeps its original captured state.\n\nA program running in the pane can set its own title through an escape sequence, and tmux\nreports that one instead. This says what the title is now, not what it will stay."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":271,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.retitle","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.retitle","product":"core","slug":"io-github-libtmux-pane-pane-retitle"},{"id":"io.github.libtmux.Pane.Pane.resizeTo","name":"resizeTo","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void resizeTo(Dimensions size)","params":[{"name":"size","type":"Dimensions"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Resizes this pane."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":280,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.resizeTo","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.resizeTo","product":"core","slug":"io-github-libtmux-pane-pane-resizeto"},{"id":"io.github.libtmux.Pane.Pane.server","name":"server","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Server server()","params":[],"returns":"Server","typeScopeBoundary":false}],"doc":{"summary":"The server this pane lives on."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":295,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.server","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.server","product":"core","slug":"io-github-libtmux-pane-pane-server"},{"id":"io.github.libtmux.Pane.Pane.batch","name":"batch","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Batch batch()","params":[],"returns":"Batch","typeScopeBoundary":false}],"doc":{"summary":"Collects commands fenced to the server incarnation that produced this pane."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":301,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.batch","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.batch","product":"core","slug":"io-github-libtmux-pane-pane-batch"},{"id":"io.github.libtmux.Pane.Pane.snapshot","name":"snapshot","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"ServerSnapshot snapshot()","params":[],"returns":"ServerSnapshot","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":306,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.snapshot","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.snapshot","product":"core","slug":"io-github-libtmux-pane-pane-snapshot"},{"id":"io.github.libtmux.Pane.Pane.window","name":"window","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Window window()","params":[],"returns":"Window","typeScopeBoundary":false}],"doc":{"summary":"The window link this pane was reached through. A pure read of the capture."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":311,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.window","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.window","product":"core","slug":"io-github-libtmux-pane-pane-window"},{"id":"io.github.libtmux.Pane.Pane.hooks","name":"hooks","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Hooks hooks()","params":[],"returns":"Hooks","typeScopeBoundary":false}],"doc":{"summary":"This pane's own hooks."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":320,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.hooks","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.hooks","product":"core","slug":"io-github-libtmux-pane-pane-hooks"},{"id":"io.github.libtmux.Pane.Pane.options","name":"options","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Options options()","params":[],"returns":"Options","typeScopeBoundary":false}],"doc":{"summary":"This pane's own options."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":326,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.options","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.options","product":"core","slug":"io-github-libtmux-pane-pane-options"},{"id":"io.github.libtmux.Pane.Pane.capture","name":"capture","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public List capture()","params":[],"returns":"List","typeScopeBoundary":false},{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public List capture(Consumer configure)","params":[{"name":"configure","type":"Consumer","doc":"receives a builder that reads the visible area and nothing else"}],"returns":"List","typeScopeBoundary":false,"raises":[{"type":"UnsupportedFeatureException","doc":"if the spec asks for something this server does not have"}]},{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public List capture(CaptureSpec spec)","params":[{"name":"spec","type":"CaptureSpec"}],"returns":"List","typeScopeBoundary":false,"raises":[{"type":"UnsupportedFeatureException","doc":"if the spec asks for something this server does not have"}]}],"doc":{"summary":"This pane's visible content, one element per line.","examples":[{"lang":"console","intro":"Send input and wait for output before capturing the pane. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/build.gradle.kts","code":"plugins {\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"java","intro":"Save this complete program as src/main/java/Capture.java. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/java/io/github/libtmux/examples/api/java/Capture.java","code":"package io.github.libtmux.examples.api.java;\n\nimport io.github.libtmux.Server;\nimport io.github.libtmux.ServerConfig;\nimport io.github.libtmux.ServerEndpoint;\nimport io.github.libtmux.SessionSpec;\nimport io.github.libtmux.TextOutcome;\nimport java.nio.file.Path;\nimport java.time.Duration;\nimport java.util.List;\n\n/** Send input and wait for output before capturing the pane. */\npublic final class Capture {\n private Capture() {}\n\n public static void main(String[] args) {\n try {\n if (args.length != 3) {\n throw new IllegalArgumentException(\"expected: tmux-binary socket-path config-file\");\n }\n var config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build();\n try (Server server = Server.open(config)) {\n var session = server.newSession(SessionSpec.builder()\n .named(\"api-capture\")\n .running(\"/bin/sh\")\n .build());\n var pane = session.windows().getFirst().panes().getFirst();\n pane.sendKeys(List.of(\"printf 'api-%s\\\\n' keys\", \"Enter\"));\n if (pane.awaitText(\"api-keys\", Duration.ofSeconds(5)) == TextOutcome.TIMED_OUT) {\n throw new IllegalStateException(\"timed out waiting for keys output\");\n }\n pane.sendLine(\"printf 'api-%s\\\\n' line\");\n if (pane.awaitText(\"api-line\", Duration.ofSeconds(5)) == TextOutcome.TIMED_OUT) {\n throw new IllegalStateException(\"timed out waiting for line output\");\n }\n var lines = pane.capture();\n for (String expected : List.of(\"api-keys\", \"api-line\")) {\n if (lines.stream().noneMatch(line -> line.strip().equals(expected))) {\n throw new IllegalStateException(\"capture is missing \" + expected);\n }\n System.out.println(expected);\n }\n }\n } catch (Exception error) {\n if (error instanceof InterruptedException) Thread.currentThread().interrupt();\n System.err.println(\"Example failed: \" + error.getMessage());\n System.exit(1);\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.java.Capture && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"api-keys\napi-line\n"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":332,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.capture","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.capture","product":"core","slug":"io-github-libtmux-pane-pane-capture"},{"id":"io.github.libtmux.Pane.Pane.noteTyped","name":"noteTyped","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void noteTyped(String text)","params":[{"name":"text","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Notes text that reached this pane without going through this handle, so a wait discounts its echo the way it discounts text sent through {@link #sendLiteral}.","body":"Use this for input delivered outside this handle. Input sent through {@link #sendKeys}\nor {@link #sendLiteral} already records synchronized recipients. Include a trailing line break\nwhen the external write submitted its line; otherwise the text remains pending."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":346,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.noteTyped","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.noteTyped","product":"core","slug":"io-github-libtmux-pane-pane-notetyped"},{"id":"io.github.libtmux.Pane.Pane.awaitText","name":"awaitText","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.WAIT)\n public TextOutcome awaitText(String text, Duration timeout) throws InterruptedException","params":[{"name":"text","type":"String","doc":"the text to wait for, matched anywhere in a captured line"},{"name":"timeout","type":"Duration","doc":"how long to keep looking"}],"returns":"TextOutcome","typeScopeBoundary":false,"returnsDoc":"why the wait ended, which tells text that appeared from text that was already there","raises":[{"type":"LibTmuxException","doc":"if a read fails while the server is still answering — most often because this pane was killed, which is not a timeout"},{"type":"InterruptedException","doc":"if the waiting thread is interrupted, which is a cancellation rather than a timeout and so is not reported as one"}]},{"raw":"@Operation(Kind.WAIT)\n public TextOutcome awaitText(String text, Duration timeout, Duration every) throws InterruptedException","params":[{"name":"text","type":"String"},{"name":"timeout","type":"Duration"},{"name":"every","type":"Duration","doc":"how long to leave between looks, at least 10 ms"}],"returns":"TextOutcome","typeScopeBoundary":false,"raises":[{"type":"IllegalArgumentException","doc":"if {@code every} is shorter than 10 ms"}]}],"doc":{"summary":"Waits until this pane's text contains something, and says why the wait ended.","body":"**Reach for this last.** It reads the screen on a timer, which is a heuristic\nabout a program's output rather than a fact about it, and the cheaper waits are exact:\n\n - If you wrote the command, append {@code ; tmux wait-for -S name} to it and block on\n {@link Server#channel}. tmux blocks server-side and returns on the signal itself, so\n nothing is inferred from the screen and one tmux process covers the whole wait. That is\n the only deterministic wait here, and it is the right one whenever the command is yours.\n - If you did not write the command — a daemon printing that it is ready, a build somebody\n else started — this is the case polling is for.\n\nThe timeout bounds the whole wait, reads included. Each read is given only what is left of\nit, so a slow tmux cannot stretch a short wait out to the server's default deadline, and text\nthat first appears after the deadline is not reported. The first read alone is allowed at least\na quarter of a second, so a timeout shorter than one read can still answer\n{@link TextOutcome#PRESENT_AT_ENTRY}.\n\nWaiting longer is also less reliable, not more: tmux frees the oldest scrollback once\n{@code history-limit} is reached, so a long wait on a productive pane can end up reading past\nthe lines it was watching for.","examples":[{"lang":"console","intro":"Send input and wait for output before capturing the pane. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/build.gradle.kts","code":"plugins {\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"java","intro":"Save this complete program as src/main/java/Capture.java. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/java/io/github/libtmux/examples/api/java/Capture.java","code":"package io.github.libtmux.examples.api.java;\n\nimport io.github.libtmux.Server;\nimport io.github.libtmux.ServerConfig;\nimport io.github.libtmux.ServerEndpoint;\nimport io.github.libtmux.SessionSpec;\nimport io.github.libtmux.TextOutcome;\nimport java.nio.file.Path;\nimport java.time.Duration;\nimport java.util.List;\n\n/** Send input and wait for output before capturing the pane. */\npublic final class Capture {\n private Capture() {}\n\n public static void main(String[] args) {\n try {\n if (args.length != 3) {\n throw new IllegalArgumentException(\"expected: tmux-binary socket-path config-file\");\n }\n var config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build();\n try (Server server = Server.open(config)) {\n var session = server.newSession(SessionSpec.builder()\n .named(\"api-capture\")\n .running(\"/bin/sh\")\n .build());\n var pane = session.windows().getFirst().panes().getFirst();\n pane.sendKeys(List.of(\"printf 'api-%s\\\\n' keys\", \"Enter\"));\n if (pane.awaitText(\"api-keys\", Duration.ofSeconds(5)) == TextOutcome.TIMED_OUT) {\n throw new IllegalStateException(\"timed out waiting for keys output\");\n }\n pane.sendLine(\"printf 'api-%s\\\\n' line\");\n if (pane.awaitText(\"api-line\", Duration.ofSeconds(5)) == TextOutcome.TIMED_OUT) {\n throw new IllegalStateException(\"timed out waiting for line output\");\n }\n var lines = pane.capture();\n for (String expected : List.of(\"api-keys\", \"api-line\")) {\n if (lines.stream().noneMatch(line -> line.strip().equals(expected))) {\n throw new IllegalStateException(\"capture is missing \" + expected);\n }\n System.out.println(expected);\n }\n }\n } catch (Exception error) {\n if (error instanceof InterruptedException) Thread.currentThread().interrupt();\n System.err.println(\"Example failed: \" + error.getMessage());\n System.exit(1);\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.java.Capture && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"api-keys\napi-line\n"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":385,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.awaitText","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.awaitText","product":"core","slug":"io-github-libtmux-pane-pane-awaittext"},{"id":"io.github.libtmux.Pane.Pane.run","name":"run","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.WAIT)\n public PaneRun run(String command, Duration timeout) throws InterruptedException","params":[{"name":"command","type":"String","doc":"a line of shell, run as {@code eval} would run it"},{"name":"timeout","type":"Duration","doc":"how long to wait for it to end"}],"returns":"PaneRun","typeScopeBoundary":false,"raises":[{"type":"IllegalStateException","doc":"if the pane is not running a POSIX shell"},{"type":"InterruptedException","doc":"if the waiting thread is interrupted"}]}],"doc":{"summary":"Runs a shell command in this pane to its end, and answers with its exit status and output.","body":"**Reach for this first** whenever the command is yours. Nothing is inferred from\nthe screen: the command runs in a subshell of the pane's own shell, whose trap reports {@code $?}\nand signals a private {@code wait-for} channel, so the wait is tmux's and the status is the\nshell's. The trap covers interrupt and terminate as well as exit, so a command someone stops at\nthe pane ends this call with the status it was stopped with rather than leaving it waiting. The output is what the command printed and nothing else — not the typed line,\nnot the prompt — cut out between two markers the plumbing prints around it.\n\nIt runs in the shell a person set up — its directory, its environment, a virtualenv someone\nactivated — which is the reason to type it there rather than start a process of your own. The\npane has to be running a POSIX shell for the typed line to mean what it says.\n\nA command still running at the deadline keeps running; the answer carries what it had printed\nby then, and {@link PaneRun#exact()} is false.","examples":[{"lang":"java","code":"PaneRun built = pane.run(\"make test\", Duration.ofMinutes(5));\nif (!built.succeeded()) {\n System.err.println(String.join(\"\\n\", built.output()));\n}"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":435,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.run","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.run","product":"core","slug":"io-github-libtmux-pane-pane-run"},{"id":"io.github.libtmux.Pane.Pane.await","name":"await","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.WAIT)\n public WakeReason await(Predicate settled, Duration timeout) throws InterruptedException","params":[{"name":"settled","type":"Predicate","doc":"receives this pane as it is now"},{"name":"timeout","type":"Duration","doc":"how long to keep looking"}],"returns":"WakeReason","typeScopeBoundary":false,"returnsDoc":"why the wait ended","raises":[{"type":"TargetGoneException","doc":"if this pane is killed while its server stays up, which is not a timeout"},{"type":"InterruptedException","doc":"if the waiting thread is interrupted"}]},{"raw":"@Operation(Kind.WAIT)\n public WakeReason await(Predicate settled, Duration timeout, Duration every) throws InterruptedException","params":[{"name":"settled","type":"Predicate"},{"name":"timeout","type":"Duration"},{"name":"every","type":"Duration","doc":"how long to leave between looks, at least 10 ms"}],"returns":"WakeReason","typeScopeBoundary":false,"raises":[{"type":"IllegalArgumentException","doc":"if {@code every} is shorter than 10 ms"}]}],"doc":{"summary":"Waits until a condition holds for this pane as tmux reports it, and says why the wait ended.","body":"The pane is captured again before each test, so the condition reads fresh state rather than\nthe capture this handle was built from. What the condition receives is an ordinary handle on\nthis pane's server and can be kept. The ordering {@link #awaitText} describes applies here too —\na signal on a {@link Server#channel} is exact, and this is for when nothing signals — and so do\nits deadline rules.","examples":[{"lang":"java","code":"pane.await(fresh -> !fresh.currentCommand().equals(\"zsh\"), Duration.ofSeconds(5));"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":484,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.await","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.await","product":"core","slug":"io-github-libtmux-pane-pane-await"},{"id":"io.github.libtmux.Pane.Pane.through","name":"through","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"Pane through(Server via)","params":[{"name":"via","type":"Server"}],"returns":"Pane","typeScopeBoundary":false}],"doc":{"summary":"This pane's captured state, addressed through another view of the same server."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":502,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.through","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.through","product":"core","slug":"io-github-libtmux-pane-pane-through"},{"id":"io.github.libtmux.Pane.Pane.send","name":"send","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void send(String keys)","params":[{"name":"keys","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Sends keys to this pane without pressing Enter.","body":"Separate from {@link #sendLine} rather than a boolean, so a call site says which it means.\n\nRecorded as an echo before dispatch, through the same key model {@link #sendKeys} uses,\nbecause tmux types anything here that is not one of its key names and a terminal echoes what\nis typed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":546,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.send","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.send","product":"core","slug":"io-github-libtmux-pane-pane-send"},{"id":"io.github.libtmux.Pane.Pane.sendKeys","name":"sendKeys","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void sendKeys(List keys)","params":[{"name":"keys","type":"List"}],"returns":"void","typeScopeBoundary":false},{"raw":"@Operation(Kind.MUTATION)\n public void sendKeys(List keys, Runnable beforeSend)","params":[{"name":"keys","type":"List"},{"name":"beforeSend","type":"Runnable","doc":"validates current input ownership"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Sends an ordered group of key names to this pane, as tmux resolves them.","body":"Each entry is resolved through tmux's key table; an unknown name is typed as text.\nRecorded input includes effective synchronized recipients. Known dispatch failures undo the\nrecord; uncertain delivery retains it. {@link #sendLiteral} types every entry literally.","examples":[{"lang":"console","intro":"Send input and wait for output before capturing the pane. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/build.gradle.kts","code":"plugins {\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"java","intro":"Save this complete program as src/main/java/Capture.java. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/java/io/github/libtmux/examples/api/java/Capture.java","code":"package io.github.libtmux.examples.api.java;\n\nimport io.github.libtmux.Server;\nimport io.github.libtmux.ServerConfig;\nimport io.github.libtmux.ServerEndpoint;\nimport io.github.libtmux.SessionSpec;\nimport io.github.libtmux.TextOutcome;\nimport java.nio.file.Path;\nimport java.time.Duration;\nimport java.util.List;\n\n/** Send input and wait for output before capturing the pane. */\npublic final class Capture {\n private Capture() {}\n\n public static void main(String[] args) {\n try {\n if (args.length != 3) {\n throw new IllegalArgumentException(\"expected: tmux-binary socket-path config-file\");\n }\n var config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build();\n try (Server server = Server.open(config)) {\n var session = server.newSession(SessionSpec.builder()\n .named(\"api-capture\")\n .running(\"/bin/sh\")\n .build());\n var pane = session.windows().getFirst().panes().getFirst();\n pane.sendKeys(List.of(\"printf 'api-%s\\\\n' keys\", \"Enter\"));\n if (pane.awaitText(\"api-keys\", Duration.ofSeconds(5)) == TextOutcome.TIMED_OUT) {\n throw new IllegalStateException(\"timed out waiting for keys output\");\n }\n pane.sendLine(\"printf 'api-%s\\\\n' line\");\n if (pane.awaitText(\"api-line\", Duration.ofSeconds(5)) == TextOutcome.TIMED_OUT) {\n throw new IllegalStateException(\"timed out waiting for line output\");\n }\n var lines = pane.capture();\n for (String expected : List.of(\"api-keys\", \"api-line\")) {\n if (lines.stream().noneMatch(line -> line.strip().equals(expected))) {\n throw new IllegalStateException(\"capture is missing \" + expected);\n }\n System.out.println(expected);\n }\n }\n } catch (Exception error) {\n if (error instanceof InterruptedException) Thread.currentThread().interrupt();\n System.err.println(\"Example failed: \" + error.getMessage());\n System.exit(1);\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.java.Capture && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"api-keys\napi-line\n"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":558,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.sendKeys","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.sendKeys","product":"core","slug":"io-github-libtmux-pane-pane-sendkeys"},{"id":"io.github.libtmux.Pane.Pane.sendLiteral","name":"sendLiteral","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void sendLiteral(List keys)","params":[{"name":"keys","type":"List"}],"returns":"void","typeScopeBoundary":false},{"raw":"@Operation(Kind.MUTATION)\n public void sendLiteral(List keys, Runnable beforeSend)","params":[{"name":"keys","type":"List"},{"name":"beforeSend","type":"Runnable","doc":"validates current input ownership"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Sends an ordered group of strings to this pane as the characters they spell.","body":"Nothing is resolved as a key name, so {@code C-c} types those three characters. Recorded\nbefore dispatch, with a line break in the joined text treated as tmux treats it: a submit the\ninstant it reaches the pane, whether or not the caller also presses Enter afterward."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":599,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.sendLiteral","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.sendLiteral","product":"core","slug":"io-github-libtmux-pane-pane-sendliteral"},{"id":"io.github.libtmux.Pane.Pane.sendLine","name":"sendLine","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void sendLine(String command)","params":[{"name":"command","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Sends a line to this pane and presses Enter, which is how a command gets run.","examples":[{"lang":"console","intro":"Send input and wait for output before capturing the pane. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/build.gradle.kts","code":"plugins {\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"java","intro":"Save this complete program as src/main/java/Capture.java. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/java/io/github/libtmux/examples/api/java/Capture.java","code":"package io.github.libtmux.examples.api.java;\n\nimport io.github.libtmux.Server;\nimport io.github.libtmux.ServerConfig;\nimport io.github.libtmux.ServerEndpoint;\nimport io.github.libtmux.SessionSpec;\nimport io.github.libtmux.TextOutcome;\nimport java.nio.file.Path;\nimport java.time.Duration;\nimport java.util.List;\n\n/** Send input and wait for output before capturing the pane. */\npublic final class Capture {\n private Capture() {}\n\n public static void main(String[] args) {\n try {\n if (args.length != 3) {\n throw new IllegalArgumentException(\"expected: tmux-binary socket-path config-file\");\n }\n var config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build();\n try (Server server = Server.open(config)) {\n var session = server.newSession(SessionSpec.builder()\n .named(\"api-capture\")\n .running(\"/bin/sh\")\n .build());\n var pane = session.windows().getFirst().panes().getFirst();\n pane.sendKeys(List.of(\"printf 'api-%s\\\\n' keys\", \"Enter\"));\n if (pane.awaitText(\"api-keys\", Duration.ofSeconds(5)) == TextOutcome.TIMED_OUT) {\n throw new IllegalStateException(\"timed out waiting for keys output\");\n }\n pane.sendLine(\"printf 'api-%s\\\\n' line\");\n if (pane.awaitText(\"api-line\", Duration.ofSeconds(5)) == TextOutcome.TIMED_OUT) {\n throw new IllegalStateException(\"timed out waiting for line output\");\n }\n var lines = pane.capture();\n for (String expected : List.of(\"api-keys\", \"api-line\")) {\n if (lines.stream().noneMatch(line -> line.strip().equals(expected))) {\n throw new IllegalStateException(\"capture is missing \" + expected);\n }\n System.out.println(expected);\n }\n }\n } catch (Exception error) {\n if (error instanceof InterruptedException) Thread.currentThread().interrupt();\n System.err.println(\"Example failed: \" + error.getMessage());\n System.exit(1);\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.java.Capture && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"api-keys\napi-line\n"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":649,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.sendLine","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.sendLine","product":"core","slug":"io-github-libtmux-pane-pane-sendline"},{"id":"io.github.libtmux.Pane.Pane.identity","name":"identity","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"ServerIdentity identity()","params":[],"returns":"ServerIdentity","typeScopeBoundary":false}],"doc":{"summary":"Which server incarnation this pane belongs to: its echo record and its input hold."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":692,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.identity","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.identity","product":"core","slug":"io-github-libtmux-pane-pane-identity"},{"id":"io.github.libtmux.Pane.Pane.breakOut","name":"breakOut","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public Window breakOut()","params":[],"returns":"Window","typeScopeBoundary":false},{"raw":"@Operation(Kind.MUTATION)\n public Window breakOut(String windowName)","params":[{"name":"windowName","type":"String"}],"returns":"Window","typeScopeBoundary":false}],"doc":{"summary":"Moves this pane into a window of its own, leaving tmux to name it.","body":"On tmux 3.7 the name is supplied rather than left to tmux, because letting tmux choose it\nthere ends the server and every session on it. The name supplied is the one tmux would have\nchosen, so the result is the same window either way."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":703,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.breakOut","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.breakOut","product":"core","slug":"io-github-libtmux-pane-pane-breakout"},{"id":"io.github.libtmux.Pane.Pane.expand","name":"expand","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.READ)\n public String expand(String format)","params":[{"name":"format","type":"String","doc":"a tmux format, usually of the shape {@code #{name}}"}],"returns":"String","typeScopeBoundary":false,"returnsDoc":"the expansion, whole when it spans lines and empty when the format expanded to nothing"}],"doc":{"summary":"Expands a tmux format in this pane's context, and answers with what it came to.","body":"The way out of this library. Snapshots carry the fields worth carrying; a format reaches\neverything else tmux knows, including fields added by a release this code has never heard of.","examples":[{"lang":"java","code":"String title = pane.expand(\"#{pane_title}\");\nString where = pane.expand(\"#{session_name}:#{window_index}.#{pane_index}\");"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":732,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.expand","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.expand","product":"core","slug":"io-github-libtmux-pane-pane-expand"},{"id":"io.github.libtmux.Pane.Pane.variables","name":"variables","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public Map variables(List names)","params":[{"name":"names","type":"List"}],"returns":"Map","typeScopeBoundary":false}],"doc":{"summary":"Reads validated tmux variables in this pane's format context."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":742,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.variables","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.variables","product":"core","slug":"io-github-libtmux-pane-pane-variables"},{"id":"io.github.libtmux.Pane.Pane.respawn","name":"respawn","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void respawn()","params":[],"returns":"void","typeScopeBoundary":false},{"raw":"@Operation(Kind.MUTATION)\n public void respawn(String... command)","params":[{"name":"command","type":"String","variadic":"positional","doc":"the command and its arguments"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Kills whatever runs here and starts the pane's default command again.","body":"tmux refuses to respawn a pane that is still running something, on every supported release,\nso what is asked for is always the killing form. Restarting a live process is the whole point\nof the call."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":755,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.respawn","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.respawn","product":"core","slug":"io-github-libtmux-pane-pane-respawn"},{"id":"io.github.libtmux.Pane.Pane.respawnIn","name":"respawnIn","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void respawnIn(Path directory)","params":[{"name":"directory","type":"Path"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Restarts the configured pane process in a caller-supplied literal directory, resolved against this process's working directory when relative."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":764,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.respawnIn","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.respawnIn","product":"core","slug":"io-github-libtmux-pane-pane-respawnin"},{"id":"io.github.libtmux.Pane.Pane.respawnArgv","name":"respawnArgv","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"static List respawnArgv(PaneId pane, Path directory)","params":[{"name":"pane","type":"PaneId"},{"name":"directory","type":"Path"}],"returns":"List","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":770,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.respawnArgv","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.respawnArgv","product":"core","slug":"io-github-libtmux-pane-pane-respawnargv"},{"id":"io.github.libtmux.Pane.Pane.pipeTo","name":"pipeTo","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void pipeTo(String shellCommand)","params":[{"name":"shellCommand","type":"String","doc":"run by the user's shell, so it may redirect and pipe"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Sends everything this pane prints to a shell command, until {@link #stopPiping}.","body":"A second call replaces the first: tmux keeps one pipe per pane, not a list.\n\ntmux expands {@code #(...)} in this command before a shell sees it, and shell quoting does\nnot prevent that. Pass any interpolated value through {@link TmuxFormats#literal} unless you\nmean it to be expanded."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":807,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.pipeTo","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.pipeTo","product":"core","slug":"io-github-libtmux-pane-pane-pipeto"},{"id":"io.github.libtmux.Pane.Pane.stopPiping","name":"stopPiping","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void stopPiping()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Stops sending this pane's output anywhere. Doing so twice is not an error."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":814,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.stopPiping","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.stopPiping","product":"core","slug":"io-github-libtmux-pane-pane-stoppiping"},{"id":"io.github.libtmux.Pane.Pane.split","name":"split","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public Pane split()","params":[],"returns":"Pane","typeScopeBoundary":false,"returnsDoc":"the pane that appeared"},{"raw":"@Operation(Kind.MUTATION)\n public Pane split(Consumer configure)","params":[{"name":"configure","type":"Consumer","doc":"receives a builder holding tmux's defaults"}],"returns":"Pane","typeScopeBoundary":false,"returnsDoc":"the pane that appeared","raises":[{"type":"UnsupportedFeatureException","doc":"if the spec asks for something this server does not have"},{"type":"TargetGoneException","doc":"if a command with no {@link SplitSpec.Builder#keepOnExit} exits before the pane it ran in can be read back — see {@link SplitSpec.Builder#running}. tmux still made the pane and ran the command; only this confirming read lost the race."}]},{"raw":"@Operation(Kind.MUTATION)\n public Pane split(SplitSpec spec)","params":[{"name":"spec","type":"SplitSpec"}],"returns":"Pane","typeScopeBoundary":false,"returnsDoc":"the pane that appeared","raises":[{"type":"UnsupportedFeatureException","doc":"if the spec asks for something this server does not have"},{"type":"TargetGoneException","doc":"if a command with no {@link SplitSpec.Builder#keepOnExit} exits before the pane it ran in can be read back — see {@link SplitSpec.Builder#running}. tmux still made the pane and ran the command; only this confirming read lost the race."}]}],"doc":{"summary":"Splits this pane in half, putting the new one below it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":855,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.split","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.split","product":"core","slug":"io-github-libtmux-pane-pane-split"},{"id":"io.github.libtmux.Pane.Pane.created","name":"created","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"static Pane created(Server server, ServerSnapshot previous, List argv)","params":[{"name":"server","type":"Server"},{"name":"previous","type":"ServerSnapshot"},{"name":"argv","type":"List"}],"returns":"Pane","typeScopeBoundary":true}],"doc":{"summary":"Runs a command that reports one new pane, and hands back a handle on it.","body":"The creating command names the pane it made, so the result is exact rather than whichever\npane a fresh listing happens to put last — two splits racing would otherwise be\nindistinguishable."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":903,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.created","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.created","product":"core","slug":"io-github-libtmux-pane-pane-created"},{"id":"io.github.libtmux.Pane.Pane.createdFormat","name":"createdFormat","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"static String createdFormat()","params":[],"returns":"String","typeScopeBoundary":true}],"doc":{"summary":"The format a creating command reports its new pane through."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":918,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.createdFormat","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.createdFormat","product":"core","slug":"io-github-libtmux-pane-pane-createdformat"},{"id":"io.github.libtmux.Pane.Pane.pasteBuffer","name":"pasteBuffer","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void pasteBuffer(String name)","params":[{"name":"name","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Pastes a named buffer into this pane, as though it had been typed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":923,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.pasteBuffer","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.pasteBuffer","product":"core","slug":"io-github-libtmux-pane-pane-pastebuffer"},{"id":"io.github.libtmux.Pane.Pane.paste","name":"paste","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void paste(String text)","params":[{"name":"text","type":"String"}],"returns":"void","typeScopeBoundary":false,"raises":[{"type":"IllegalArgumentException","doc":"if the text contains NUL, which a terminal cannot receive and {@link #send} refuses too"},{"type":"UnsupportedFeatureException","doc":"before tmux 3.4, where deleting the buffer left by a failed paste can remove one this did not create"}]},{"raw":"@Operation(Kind.MUTATION)\n public void paste(String text, Runnable beforePaste)","params":[{"name":"text","type":"String"},{"name":"beforePaste","type":"Runnable","doc":"runs after staging and immediately before the paste dispatch"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Pastes text into this pane as one block, leaving nothing behind on the server.","body":"Nothing in the text is looked up as a key name, so a line containing {@code Enter} or a\nbracket arrives as those characters. That is what an editor, a REPL, or anything reading a\nhere-document needs, and it is the difference from {@link #send}.\n\ntmux needs a buffer to paste from, and this one travels in the same invocation as the paste\nthat consumes it. A caller that stops in between therefore cannot leave the text in the paste\nhistory every session on the server can read.\n\nThe text goes to tmux on standard input rather than as an argument, so it is not bounded by\nthe size of a tmux command and never reaches tmux's parser."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":953,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.paste","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.paste","product":"core","slug":"io-github-libtmux-pane-pane-paste"},{"id":"io.github.libtmux.Pane.Pane.clearHistory","name":"clearHistory","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void clearHistory()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Discards this pane's scrollback."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":1050,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.clearHistory","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.clearHistory","product":"core","slug":"io-github-libtmux-pane-pane-clearhistory"},{"id":"io.github.libtmux.Pane.Pane.swapWith","name":"swapWith","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void swapWith(Pane other)","params":[{"name":"other","type":"Pane"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Swaps this pane's position with another's."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":1056,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.swapWith","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.swapWith","product":"core","slug":"io-github-libtmux-pane-pane-swapwith"},{"id":"io.github.libtmux.Pane.Pane.joinTo","name":"joinTo","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void joinTo(Window window)","params":[{"name":"window","type":"Window"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Moves this pane into another window, splitting it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":1066,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.joinTo","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.joinTo","product":"core","slug":"io-github-libtmux-pane-pane-jointo"},{"id":"io.github.libtmux.Pane.Pane.kill","name":"kill","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void kill()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Closes this pane."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":1076,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.kill","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.kill","product":"core","slug":"io-github-libtmux-pane-pane-kill"},{"id":"io.github.libtmux.Pane.Pane.refresh","name":"refresh","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@CheckReturnValue\n @Operation(Kind.READ)\n public Pane refresh()","params":[],"returns":"Pane","typeScopeBoundary":false,"raises":[{"type":"TargetGoneException","doc":"if the pane is gone from a server that still answers"},{"type":"ServerUnavailableException","doc":"if no daemon is running"}]}],"doc":{"summary":"Takes a new capture and returns this pane as it is now.","body":"This handle remains unchanged. Use the returned handle for subsequent state reads."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":1090,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.refresh","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.refresh","product":"core","slug":"io-github-libtmux-pane-pane-refresh"},{"id":"io.github.libtmux.Pane.Pane.equals","name":"equals","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Override\n public boolean equals(Object other)","params":[{"name":"other","type":"Object"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":1101,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.equals","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.equals","product":"core","slug":"io-github-libtmux-pane-pane-equals"},{"id":"io.github.libtmux.Pane.Pane.hashCode","name":"hashCode","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Override\n public int hashCode()","params":[],"returns":"int","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":1108,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.hashCode","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.hashCode","product":"core","slug":"io-github-libtmux-pane-pane-hashcode"},{"id":"io.github.libtmux.Pane.Pane.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":1113,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.toString","product":"core","slug":"io-github-libtmux-pane-pane-tostring"},{"id":"io.github.libtmux.PaneCommand.PaneCommand","name":"PaneCommand","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The line typed at a pane's shell to run one command to its end, and how its output is read back.","body":"Completion is not inferred from the screen. The command runs in a subshell whose trap prints an\nend marker carrying {@code $?} and then signals a private {@code wait-for} channel through the\nsame tmux binary and socket, so the wait is tmux's own and the status is the shell's. The trap\ncovers interrupt and terminate as well as exit, so a command someone stops with {@code C-c} ends\nthe run and reports the status it was stopped with — commonly 130 — rather than leaving a wait\nwith nothing to end it.\n\nThe output is cut out by framing: a start marker is printed before the command and the end\nmarker after it, and only lines strictly between them are returned. The shell echoes the whole\ntyped line, which contains both markers — but only inside quotes, never as a line of its own that\nequals a marker, so matching complete marker lines tells plumbing from output even when the echo\nwraps.\n\n{@link Pane#run} is built on this, and it is public for a caller that needs the same framing\naround orchestration of its own — the MCP server holds a pane for other clients while a run is\nuncertain, which the library has no reason to."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneCommand.java","line":33,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneCommand","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneCommand.PaneCommand","product":"core","slug":"io-github-libtmux-panecommand-panecommand"},{"id":"io.github.libtmux.PaneCommand.PaneCommand.fresh","name":"fresh","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PaneCommand.PaneCommand","signatures":[{"raw":"public static PaneCommand fresh()","params":[],"returns":"PaneCommand","typeScopeBoundary":true}],"doc":{"summary":"A run with markers and a channel no other run shares."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneCommand.java","line":55,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneCommand.fresh","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneCommand.PaneCommand.fresh","product":"core","slug":"io-github-libtmux-panecommand-panecommand-fresh"},{"id":"io.github.libtmux.PaneCommand.PaneCommand.channel","name":"channel","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneCommand.PaneCommand","signatures":[{"raw":"public String channel()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The {@code wait-for} channel the typed line signals once the command has ended."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneCommand.java","line":62,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneCommand.channel","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneCommand.PaneCommand.channel","product":"core","slug":"io-github-libtmux-panecommand-panecommand-channel"},{"id":"io.github.libtmux.PaneCommand.PaneCommand.typed","name":"typed","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneCommand.PaneCommand","signatures":[{"raw":"public String typed(List tmux, String command)","params":[{"name":"tmux","type":"List","doc":"the client the pane's shell calls: an absolute binary and its {@code -S} socket"},{"name":"command","type":"String"}],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The line to type.","body":"Typed at the pane's own interactive shell rather than a fresh one, so the command sees the\nenvironment a person set up there — a virtualenv, a loaded module, a directory someone changed\ninto. The leading space asks bash ({@code HISTCONTROL=ignorespace}) and zsh ({@code\nHIST_IGNORE_SPACE}) to keep the plumbing out of the history; a shell set to neither records it.\nBuiltins are called as {@code \\\\trap}, {@code \\\\eval} and {@code \\\\exit} so an alias of the same\nname cannot take them over.\n\nThe line begins with that space; strip it to have the shell record the line like any other."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneCommand.java","line":80,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneCommand.typed","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneCommand.PaneCommand.typed","product":"core","slug":"io-github-libtmux-panecommand-panecommand-typed"},{"id":"io.github.libtmux.PaneCommand.PaneCommand.frame","name":"frame","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneCommand.PaneCommand","signatures":[{"raw":"public Framed frame(List lines)","params":[{"name":"lines","type":"List"}],"returns":"Framed","typeScopeBoundary":false}],"doc":{"summary":"What lies between the two markers, and the status the end marker carried.","body":"The start marker is matched as a whole row after trimming, the end marker as the end of\none — never by containment, because the echo of the typed line holds both as substrings and\nmust not be mistaken for either. The asymmetry is the shell's: nothing can precede the start\nmarker on its row, since it prints before the command runs, while the command's own last line\nprecedes the end marker whenever it carried no closing newline. That line is output, and is\nreturned as such."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneCommand.java","line":102,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneCommand.frame","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneCommand.PaneCommand.frame","product":"core","slug":"io-github-libtmux-panecommand-panecommand-frame"},{"id":"io.github.libtmux.PaneCommand.PaneCommand.status","name":"status","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneCommand.PaneCommand","signatures":[{"raw":"public OptionalInt status(String line)","params":[{"name":"line","type":"String"}],"returns":"OptionalInt","typeScopeBoundary":false}],"doc":{"summary":"The exit status a row carries at its end, or empty when the row does not end in one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneCommand.java","line":174,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneCommand.status","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneCommand.PaneCommand.status","product":"core","slug":"io-github-libtmux-panecommand-panecommand-status"},{"id":"io.github.libtmux.PaneCommand.PaneCommand.Framed","name":"Framed","kind":"class","modifiers":[],"parent":"io.github.libtmux.PaneCommand.PaneCommand","signatures":[{"raw":"public record Framed(@ReadOnly List lines, boolean exact, OptionalInt status)","params":[{"name":"lines","type":"List","doc":"the command's output"},{"name":"exact","type":"boolean","doc":"whether both markers were found, so the lines are only the command's output"},{"name":"status","type":"OptionalInt","doc":"the exit status, when the end marker was read"}]}],"typeScopeBoundary":true,"doc":{"summary":"A run's output as read back from the screen."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneCommand.java","line":199,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneCommand.Framed","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneCommand.PaneCommand.Framed","product":"core","slug":"io-github-libtmux-panecommand-panecommand-framed"},{"id":"io.github.libtmux.PaneCommand.PaneCommand.Framed.lines","name":"lines","kind":"method","parent":"io.github.libtmux.PaneCommand.PaneCommand.Framed","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"doc":{"summary":"the command's output"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneCommand.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneCommand.Framed.lines","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneCommand.PaneCommand.Framed.lines","product":"core","slug":"io-github-libtmux-panecommand-panecommand-framed-lines"},{"id":"io.github.libtmux.PaneCommand.PaneCommand.Framed.exact","name":"exact","kind":"method","parent":"io.github.libtmux.PaneCommand.PaneCommand.Framed","modifiers":[],"signatures":[{"params":[],"returns":"boolean"}],"doc":{"summary":"whether both markers were found, so the lines are only the command's output"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneCommand.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneCommand.Framed.exact","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneCommand.PaneCommand.Framed.exact","product":"core","slug":"io-github-libtmux-panecommand-panecommand-framed-exact"},{"id":"io.github.libtmux.PaneCommand.PaneCommand.Framed.status","name":"status","kind":"method","parent":"io.github.libtmux.PaneCommand.PaneCommand.Framed","modifiers":[],"signatures":[{"params":[],"returns":"OptionalInt"}],"doc":{"summary":"the exit status, when the end marker was read"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneCommand.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneCommand.Framed.status","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneCommand.PaneCommand.Framed.status","product":"core","slug":"io-github-libtmux-panecommand-panecommand-framed-status"},{"id":"io.github.libtmux.PaneCommand.PaneCommand.requirePosixShell","name":"requirePosixShell","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PaneCommand.PaneCommand","signatures":[{"raw":"static void requirePosixShell(String current)","params":[{"name":"current","type":"String"}],"returns":"void","typeScopeBoundary":true}],"doc":{"summary":"Refuses a pane whose shell would not read the typed line as written."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneCommand.java","line":207,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneCommand.requirePosixShell","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneCommand.PaneCommand.requirePosixShell","product":"core","slug":"io-github-libtmux-panecommand-panecommand-requireposixshell"},{"id":"io.github.libtmux.PaneCommand.PaneCommand.quote","name":"quote","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PaneCommand.PaneCommand","signatures":[{"raw":"static String quote(String word)","params":[{"name":"word","type":"String"}],"returns":"String","typeScopeBoundary":true}],"doc":{"summary":"One word, quoted so a POSIX shell reads it as exactly the text given."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneCommand.java","line":220,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneCommand.quote","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneCommand.PaneCommand.quote","product":"core","slug":"io-github-libtmux-panecommand-panecommand-quote"},{"id":"io.github.libtmux.PaneEcho.PaneEcho","name":"PaneEcho","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Tracks pending and recently submitted input under each server incarnation and pane id."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEcho.java","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEcho","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEcho.PaneEcho","product":"core","slug":"io-github-libtmux-paneecho-paneecho"},{"id":"io.github.libtmux.PaneEcho.PaneEcho.Live","name":"Live","kind":"class","modifiers":[],"parent":"io.github.libtmux.PaneEcho.PaneEcho","signatures":[{"raw":"record Live(@ReadOnly List pending, @ReadOnly List recent)","params":[{"name":"pending","type":"List"},{"name":"recent","type":"List"}]}],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEcho.java","line":48,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEcho.Live","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEcho.PaneEcho.Live","product":"core","slug":"io-github-libtmux-paneecho-paneecho-live"},{"id":"io.github.libtmux.PaneEcho.PaneEcho.Live.NONE","name":"NONE","kind":"attribute","modifiers":["static","readonly"],"parent":"io.github.libtmux.PaneEcho.PaneEcho.Live","signatures":[],"typeScopeBoundary":true,"type":"Live","value":"new Live(List.of(), List.of())","source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEcho.java","line":49,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEcho.Live.NONE","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEcho.PaneEcho.Live.NONE","product":"core","slug":"io-github-libtmux-paneecho-paneecho-live-none"},{"id":"io.github.libtmux.PaneEcho.PaneEcho.Live.pending","name":"pending","kind":"method","parent":"io.github.libtmux.PaneEcho.PaneEcho.Live","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEcho.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEcho.Live.pending","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEcho.PaneEcho.Live.pending","product":"core","slug":"io-github-libtmux-paneecho-paneecho-live-pending"},{"id":"io.github.libtmux.PaneEcho.PaneEcho.Live.recent","name":"recent","kind":"method","parent":"io.github.libtmux.PaneEcho.PaneEcho.Live","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEcho.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEcho.Live.recent","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEcho.PaneEcho.Live.recent","product":"core","slug":"io-github-libtmux-paneecho-paneecho-live-recent"},{"id":"io.github.libtmux.PaneEcho.PaneEcho.PaneEcho","name":"PaneEcho","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.PaneEcho.PaneEcho","signatures":[{"raw":"PaneEcho()","params":[],"typeScopeBoundary":false},{"raw":"PaneEcho(LongSupplier nanoTime)","params":[{"name":"nanoTime","type":"LongSupplier"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEcho.java","line":246,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEcho.PaneEcho","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEcho.PaneEcho.PaneEcho","product":"core","slug":"io-github-libtmux-paneecho-paneecho-paneecho"},{"id":"io.github.libtmux.PaneEcho.PaneEcho.Recorded","name":"Recorded","kind":"class","modifiers":["readonly"],"parent":"io.github.libtmux.PaneEcho.PaneEcho","signatures":[],"typeScopeBoundary":false,"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEcho.java","line":254,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEcho.Recorded","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEcho.PaneEcho.Recorded","product":"core","slug":"io-github-libtmux-paneecho-paneecho-recorded"},{"id":"io.github.libtmux.PaneEcho.PaneEcho.Recorded.confirm","name":"confirm","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneEcho.PaneEcho.Recorded","signatures":[{"raw":"void confirm()","params":[],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEcho.java","line":269,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEcho.Recorded.confirm","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEcho.PaneEcho.Recorded.confirm","product":"core","slug":"io-github-libtmux-paneecho-paneecho-recorded-confirm"},{"id":"io.github.libtmux.PaneEcho.PaneEcho.Recorded.rollback","name":"rollback","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneEcho.PaneEcho.Recorded","signatures":[{"raw":"void rollback()","params":[],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEcho.java","line":297,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEcho.Recorded.rollback","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEcho.PaneEcho.Recorded.rollback","product":"core","slug":"io-github-libtmux-paneecho-paneecho-recorded-rollback"},{"id":"io.github.libtmux.PaneEcho.PaneEcho.recordLiteral","name":"recordLiteral","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneEcho.PaneEcho","signatures":[{"raw":"Recorded recordLiteral(ServerIdentity identity, PaneId pane, String text)","params":[{"name":"identity","type":"ServerIdentity"},{"name":"pane","type":"PaneId"},{"name":"text","type":"String"}],"returns":"Recorded","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEcho.java","line":366,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEcho.recordLiteral","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEcho.PaneEcho.recordLiteral","product":"core","slug":"io-github-libtmux-paneecho-paneecho-recordliteral"},{"id":"io.github.libtmux.PaneEcho.PaneEcho.recordKeys","name":"recordKeys","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneEcho.PaneEcho","signatures":[{"raw":"Recorded recordKeys(ServerIdentity identity, PaneId pane, List keys)","params":[{"name":"identity","type":"ServerIdentity"},{"name":"pane","type":"PaneId"},{"name":"keys","type":"List"}],"returns":"Recorded","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEcho.java","line":370,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEcho.recordKeys","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEcho.PaneEcho.recordKeys","product":"core","slug":"io-github-libtmux-paneecho-paneecho-recordkeys"},{"id":"io.github.libtmux.PaneEcho.PaneEcho.size","name":"size","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneEcho.PaneEcho","signatures":[{"raw":"int size()","params":[],"returns":"int","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEcho.java","line":374,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEcho.size","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEcho.PaneEcho.size","product":"core","slug":"io-github-libtmux-paneecho-paneecho-size"},{"id":"io.github.libtmux.PaneEcho.PaneEcho.forget","name":"forget","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneEcho.PaneEcho","signatures":[{"raw":"void forget(ServerIdentity identity, PaneId pane)","params":[{"name":"identity","type":"ServerIdentity"},{"name":"pane","type":"PaneId"}],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEcho.java","line":378,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEcho.forget","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEcho.PaneEcho.forget","product":"core","slug":"io-github-libtmux-paneecho-paneecho-forget"},{"id":"io.github.libtmux.PaneEcho.PaneEcho.liveFor","name":"liveFor","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneEcho.PaneEcho","signatures":[{"raw":"Live liveFor(ServerIdentity identity, PaneId pane)","params":[{"name":"identity","type":"ServerIdentity"},{"name":"pane","type":"PaneId"}],"returns":"Live","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEcho.java","line":382,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEcho.liveFor","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEcho.PaneEcho.liveFor","product":"core","slug":"io-github-libtmux-paneecho-paneecho-livefor"},{"id":"io.github.libtmux.PaneEcho.PaneEcho.withoutEcho","name":"withoutEcho","kind":"method","modifiers":["static","overload"],"parent":"io.github.libtmux.PaneEcho.PaneEcho","signatures":[{"raw":"static List withoutEcho(List lines, List echoes)","params":[{"name":"lines","type":"List"},{"name":"echoes","type":"List"}],"returns":"List","typeScopeBoundary":true},{"raw":"static List withoutEcho(List lines, String echo)","params":[{"name":"lines","type":"List"},{"name":"echo","type":"String"}],"returns":"List","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEcho.java","line":396,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEcho.withoutEcho","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEcho.PaneEcho.withoutEcho","product":"core","slug":"io-github-libtmux-paneecho-paneecho-withoutecho"},{"id":"io.github.libtmux.PaneEdges.PaneEdges","name":"PaneEdges","kind":"class","modifiers":[],"signatures":[{"raw":"public record PaneEdges(boolean top, boolean bottom, boolean left, boolean right)","params":[{"name":"top","type":"boolean","doc":"whether the pane touches the top of its window"},{"name":"bottom","type":"boolean","doc":"whether it touches the bottom"},{"name":"left","type":"boolean","doc":"whether it touches the left"},{"name":"right","type":"boolean","doc":"whether it touches the right"}]}],"typeScopeBoundary":false,"doc":{"summary":"Which sides of its window a pane touches.","body":"Grouped rather than four loose flags, because they are read together to answer one question —\nwhere in the window this pane sits — and four booleans in a row is an invitation to transpose two."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEdges.java","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEdges","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEdges.PaneEdges","product":"core","slug":"io-github-libtmux-paneedges-paneedges"},{"id":"io.github.libtmux.PaneEdges.PaneEdges.fillsWindow","name":"fillsWindow","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneEdges.PaneEdges","signatures":[{"raw":"public boolean fillsWindow()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether the pane fills its window, touching every side."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEdges.java","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEdges.fillsWindow","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEdges.PaneEdges.fillsWindow","product":"core","slug":"io-github-libtmux-paneedges-paneedges-fillswindow"},{"id":"io.github.libtmux.PaneEdges.PaneEdges.top","name":"top","kind":"method","parent":"io.github.libtmux.PaneEdges.PaneEdges","modifiers":[],"signatures":[{"params":[],"returns":"boolean"}],"doc":{"summary":"whether the pane touches the top of its window"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEdges.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEdges.top","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEdges.PaneEdges.top","product":"core","slug":"io-github-libtmux-paneedges-paneedges-top"},{"id":"io.github.libtmux.PaneEdges.PaneEdges.bottom","name":"bottom","kind":"method","parent":"io.github.libtmux.PaneEdges.PaneEdges","modifiers":[],"signatures":[{"params":[],"returns":"boolean"}],"doc":{"summary":"whether it touches the bottom"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEdges.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEdges.bottom","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEdges.PaneEdges.bottom","product":"core","slug":"io-github-libtmux-paneedges-paneedges-bottom"},{"id":"io.github.libtmux.PaneEdges.PaneEdges.left","name":"left","kind":"method","parent":"io.github.libtmux.PaneEdges.PaneEdges","modifiers":[],"signatures":[{"params":[],"returns":"boolean"}],"doc":{"summary":"whether it touches the left"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEdges.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEdges.left","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEdges.PaneEdges.left","product":"core","slug":"io-github-libtmux-paneedges-paneedges-left"},{"id":"io.github.libtmux.PaneEdges.PaneEdges.right","name":"right","kind":"method","parent":"io.github.libtmux.PaneEdges.PaneEdges","modifiers":[],"signatures":[{"params":[],"returns":"boolean"}],"doc":{"summary":"whether it touches the right"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEdges.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEdges.right","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEdges.PaneEdges.right","product":"core","slug":"io-github-libtmux-paneedges-paneedges-right"},{"id":"io.github.libtmux.PaneId.PaneId","name":"PaneId","kind":"class","modifiers":[],"signatures":[{"raw":"public record PaneId(String value)","params":[{"name":"value","type":"String","doc":"the id including its {@code %} sigil"}]}],"typeScopeBoundary":false,"doc":{"summary":"A tmux pane id, such as {@code %2}.","body":"Stable for the life of the pane, unlike a pane index, which shifts as neighbours come and go."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneId.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneId","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneId.PaneId","product":"core","slug":"io-github-libtmux-paneid-paneid"},{"id":"io.github.libtmux.PaneId.PaneId.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneId.PaneId","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneId.java","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneId.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneId.PaneId.toString","product":"core","slug":"io-github-libtmux-paneid-paneid-tostring"},{"id":"io.github.libtmux.PaneId.PaneId.value","name":"value","kind":"method","parent":"io.github.libtmux.PaneId.PaneId","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"the id including its {@code %} sigil"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneId.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneId.value","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneId.PaneId.value","product":"core","slug":"io-github-libtmux-paneid-paneid-value"},{"id":"io.github.libtmux.PaneInput.PaneInput","name":"PaneInput","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"One writer at a time for a pane's keyboard, paste, and shell run.","body":"Those three share one screen. {@link #hold} throws if another thread already has the pane.\nThe same thread may hold it again; the pane is free when the outer hold closes. {@link\nPane#sendKeys}, {@link Pane#sendLiteral}, {@link Pane#paste}, {@link Pane#pasteBuffer}, and {@link\nPane#run} take a hold for the call and release it when they return. A command still running after\n{@code run} returns is not held unless the caller kept {@link #hold} or {@link #holdInterruptible}\naround that call. Raw commands and {@link CommandChain} steps do not take it.\n\n{@link #holdInterruptible} is that longer hold. Another thread may {@link #enterInterrupt} it\nto send a stop, and that entry does not take the pane. Closing the run's lease still releases\nit, including from the thread that notices the command has finished."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneInput.java","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneInput","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneInput.PaneInput","product":"core","slug":"io-github-libtmux-paneinput-paneinput"},{"id":"io.github.libtmux.PaneInput.PaneInput.hold","name":"hold","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PaneInput.PaneInput","signatures":[{"raw":"public static Lease hold(Pane pane)","params":[{"name":"pane","type":"Pane"}],"returns":"Lease","typeScopeBoundary":true}],"doc":{"summary":"Excludes other threads from this pane until the lease closes. The pane is the one its capture named: the same id on a server started since is another pane, and is not held."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneInput.java","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneInput.hold","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneInput.PaneInput.hold","product":"core","slug":"io-github-libtmux-paneinput-paneinput-hold"},{"id":"io.github.libtmux.PaneInput.PaneInput.holdInterruptible","name":"holdInterruptible","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PaneInput.PaneInput","signatures":[{"raw":"public static Lease holdInterruptible(Pane pane)","params":[{"name":"pane","type":"Pane"}],"returns":"Lease","typeScopeBoundary":true}],"doc":{"summary":"Holds the pane for a command that another thread may have to stop.","body":"The stop uses {@link #enterInterrupt}. Any other attempt to {@link #hold} still fails."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneInput.java","line":49,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneInput.holdInterruptible","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneInput.PaneInput.holdInterruptible","product":"core","slug":"io-github-libtmux-paneinput-paneinput-holdinterruptible"},{"id":"io.github.libtmux.PaneInput.PaneInput.enterInterrupt","name":"enterInterrupt","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PaneInput.PaneInput","signatures":[{"raw":"public static Lease enterInterrupt(Pane pane)","params":[{"name":"pane","type":"Pane"}],"returns":"Lease","typeScopeBoundary":true}],"doc":{"summary":"Enters a pane {@link #holdInterruptible} is holding, without taking it.","body":"Closing this lease leaves the run's hold in place. A pane that is free, or held by\n{@link #hold}, refuses the entry."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneInput.java","line":63,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneInput.enterInterrupt","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneInput.PaneInput.enterInterrupt","product":"core","slug":"io-github-libtmux-paneinput-paneinput-enterinterrupt"},{"id":"io.github.libtmux.PaneInput.PaneInput.heldSince","name":"heldSince","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PaneInput.PaneInput","signatures":[{"raw":"public static Optional heldSince(Pane pane)","params":[{"name":"pane","type":"Pane"}],"returns":"Optional","typeScopeBoundary":true,"returnsDoc":"empty when the pane is not held"}],"doc":{"summary":"Reports when the current hold on this pane was acquired, so a lease nothing ever closes can be found from outside the thread holding it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneInput.java","line":77,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneInput.heldSince","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneInput.PaneInput.heldSince","product":"core","slug":"io-github-libtmux-paneinput-paneinput-heldsince"},{"id":"io.github.libtmux.PaneInput.PaneInput.held","name":"held","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PaneInput.PaneInput","signatures":[{"raw":"@ReadOnly\n public static List held()","params":[],"returns":"List","typeScopeBoundary":true,"returnsDoc":"an immutable snapshot, one entry per held pane regardless of how many times its owning thread has re-entered it"}],"doc":{"summary":"Every pane held right now, for diagnosing a lease nothing ever closes."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneInput.java","line":94,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneInput.held","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneInput.PaneInput.held","product":"core","slug":"io-github-libtmux-paneinput-paneinput-held-16tz"},{"id":"io.github.libtmux.PaneInput.PaneInput.Held","name":"Held","kind":"class","modifiers":[],"parent":"io.github.libtmux.PaneInput.PaneInput","signatures":[{"raw":"public record Held(ServerIdentity server, PaneId pane, Instant since, String holdingThread)","params":[{"name":"server","type":"ServerIdentity","doc":"which server's pane this is"},{"name":"pane","type":"PaneId","doc":"the held pane"},{"name":"since","type":"Instant","doc":"when the hold was acquired"},{"name":"holdingThread","type":"String","doc":"the name of the thread that holds it"}]}],"typeScopeBoundary":true,"doc":{"summary":"One pane's outstanding hold."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneInput.java","line":115,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneInput.Held","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneInput.PaneInput.Held","product":"core","slug":"io-github-libtmux-paneinput-paneinput-held-6kxu"},{"id":"io.github.libtmux.PaneInput.PaneInput.Held.server","name":"server","kind":"method","parent":"io.github.libtmux.PaneInput.PaneInput.Held","modifiers":[],"signatures":[{"params":[],"returns":"ServerIdentity"}],"doc":{"summary":"which server's pane this is"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneInput.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneInput.Held.server","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneInput.PaneInput.Held.server","product":"core","slug":"io-github-libtmux-paneinput-paneinput-held-server"},{"id":"io.github.libtmux.PaneInput.PaneInput.Held.pane","name":"pane","kind":"method","parent":"io.github.libtmux.PaneInput.PaneInput.Held","modifiers":[],"signatures":[{"params":[],"returns":"PaneId"}],"doc":{"summary":"the held pane"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneInput.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneInput.Held.pane","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneInput.PaneInput.Held.pane","product":"core","slug":"io-github-libtmux-paneinput-paneinput-held-pane"},{"id":"io.github.libtmux.PaneInput.PaneInput.Held.since","name":"since","kind":"method","parent":"io.github.libtmux.PaneInput.PaneInput.Held","modifiers":[],"signatures":[{"params":[],"returns":"Instant"}],"doc":{"summary":"when the hold was acquired"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneInput.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneInput.Held.since","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneInput.PaneInput.Held.since","product":"core","slug":"io-github-libtmux-paneinput-paneinput-held-since"},{"id":"io.github.libtmux.PaneInput.PaneInput.Held.holdingThread","name":"holdingThread","kind":"method","parent":"io.github.libtmux.PaneInput.PaneInput.Held","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"the name of the thread that holds it"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneInput.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneInput.Held.holdingThread","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneInput.PaneInput.Held.holdingThread","product":"core","slug":"io-github-libtmux-paneinput-paneinput-held-holdingthread"},{"id":"io.github.libtmux.PaneInput.PaneInput.Lease","name":"Lease","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.PaneInput.PaneInput","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Releases one matching hold. Closing twice releases once. Any thread may close it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneInput.java","line":148,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneInput.Lease","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneInput.PaneInput.Lease","product":"core","slug":"io-github-libtmux-paneinput-paneinput-lease"},{"id":"io.github.libtmux.PaneInput.PaneInput.Lease.close","name":"close","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneInput.PaneInput.Lease","signatures":[{"raw":"@Override\n public void close()","params":[],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneInput.java","line":162,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneInput.Lease.close","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneInput.PaneInput.Lease.close","product":"core","slug":"io-github-libtmux-paneinput-paneinput-lease-close"},{"id":"io.github.libtmux.PaneMode.PaneMode","name":"PaneMode","kind":"enum","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"A mode a pane can be in, as tmux names them.","body":"A pane in a mode shows something other than its program: its own scrollback, a clock, or one of\nthe choosers. Every mode below exists on each supported release."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneMode.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneMode","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneMode.PaneMode","product":"core","slug":"io-github-libtmux-panemode-panemode"},{"id":"io.github.libtmux.PaneMode.PaneMode.COPY","name":"COPY","kind":"constant","modifiers":[],"parent":"io.github.libtmux.PaneMode.PaneMode","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Scrollback, navigable and selectable. Entered by {@link Pane#copyMode()}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneMode.java","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneMode.COPY","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneMode.PaneMode.COPY","product":"core","slug":"io-github-libtmux-panemode-panemode-copy"},{"id":"io.github.libtmux.PaneMode.PaneMode.VIEW","name":"VIEW","kind":"constant","modifiers":[],"parent":"io.github.libtmux.PaneMode.PaneMode","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Scrollback without the selection commands.","body":"tmux enters this itself, for the output of a command it was asked to display; no command\nhere puts a pane into it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneMode.java","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneMode.VIEW","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneMode.PaneMode.VIEW","product":"core","slug":"io-github-libtmux-panemode-panemode-view"},{"id":"io.github.libtmux.PaneMode.PaneMode.CLOCK","name":"CLOCK","kind":"constant","modifiers":[],"parent":"io.github.libtmux.PaneMode.PaneMode","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"A clock, entered by tmux's {@code clock-mode}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneMode.java","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneMode.CLOCK","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneMode.PaneMode.CLOCK","product":"core","slug":"io-github-libtmux-panemode-panemode-clock"},{"id":"io.github.libtmux.PaneMode.PaneMode.TREE","name":"TREE","kind":"constant","modifiers":[],"parent":"io.github.libtmux.PaneMode.PaneMode","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"The session and window browser, which the window finder also opens."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneMode.java","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneMode.TREE","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneMode.PaneMode.TREE","product":"core","slug":"io-github-libtmux-panemode-panemode-tree"},{"id":"io.github.libtmux.PaneMode.PaneMode.CLIENT","name":"CLIENT","kind":"constant","modifiers":[],"parent":"io.github.libtmux.PaneMode.PaneMode","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"The attached-client browser."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneMode.java","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneMode.CLIENT","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneMode.PaneMode.CLIENT","product":"core","slug":"io-github-libtmux-panemode-panemode-client"},{"id":"io.github.libtmux.PaneMode.PaneMode.BUFFER","name":"BUFFER","kind":"constant","modifiers":[],"parent":"io.github.libtmux.PaneMode.PaneMode","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"The paste-buffer browser."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneMode.java","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneMode.BUFFER","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneMode.PaneMode.BUFFER","product":"core","slug":"io-github-libtmux-panemode-panemode-buffer"},{"id":"io.github.libtmux.PaneMode.PaneMode.OPTIONS","name":"OPTIONS","kind":"constant","modifiers":[],"parent":"io.github.libtmux.PaneMode.PaneMode","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"The option browser, entered by tmux's {@code customize-mode}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneMode.java","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneMode.OPTIONS","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneMode.PaneMode.OPTIONS","product":"core","slug":"io-github-libtmux-panemode-panemode-options"},{"id":"io.github.libtmux.PaneMode.PaneMode.PaneMode","name":"PaneMode","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneMode.PaneMode","signatures":[{"raw":"PaneMode(String reported)","params":[{"name":"reported","type":"String"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneMode.java","line":42,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneMode.PaneMode","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneMode.PaneMode.PaneMode","product":"core","slug":"io-github-libtmux-panemode-panemode-panemode"},{"id":"io.github.libtmux.PaneMode.PaneMode.reported","name":"reported","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneMode.PaneMode","signatures":[{"raw":"public String reported()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"What tmux calls it, which is what {@code #{pane_mode}} expands to."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneMode.java","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneMode.reported","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneMode.PaneMode.reported","product":"core","slug":"io-github-libtmux-panemode-panemode-reported"},{"id":"io.github.libtmux.PaneMode.PaneMode.of","name":"of","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PaneMode.PaneMode","signatures":[{"raw":"static PaneMode of(String reported)","params":[{"name":"reported","type":"String"}],"returns":"PaneMode","typeScopeBoundary":true,"raises":[{"type":"LibTmuxException","doc":"if this tmux named a mode this release range does not have"}]}],"doc":{"summary":"Reads what tmux reported."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneMode.java","line":56,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneMode.of","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneMode.PaneMode.of","product":"core","slug":"io-github-libtmux-panemode-panemode-of"},{"id":"io.github.libtmux.PanePosition.PanePosition","name":"PanePosition","kind":"class","modifiers":[],"signatures":[{"raw":"public record PanePosition(int left, int top)","params":[{"name":"left","type":"int","doc":"columns from the window's left edge"},{"name":"top","type":"int","doc":"rows from the window's top edge"}]}],"typeScopeBoundary":false,"doc":{"summary":"Where a pane's top-left corner sits in its window, in terminal cells.","body":"A pair rather than two loose numbers, for the reason {@link Dimensions} gives: read together,\nand a call site that took them separately could transpose them without the compiler noticing."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PanePosition.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PanePosition","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PanePosition.PanePosition","product":"core","slug":"io-github-libtmux-paneposition-paneposition"},{"id":"io.github.libtmux.PanePosition.PanePosition.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.PanePosition.PanePosition","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/PanePosition.java","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PanePosition.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PanePosition.PanePosition.toString","product":"core","slug":"io-github-libtmux-paneposition-paneposition-tostring"},{"id":"io.github.libtmux.PanePosition.PanePosition.left","name":"left","kind":"method","parent":"io.github.libtmux.PanePosition.PanePosition","modifiers":[],"signatures":[{"params":[],"returns":"int"}],"doc":{"summary":"columns from the window's left edge"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PanePosition.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PanePosition.left","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PanePosition.PanePosition.left","product":"core","slug":"io-github-libtmux-paneposition-paneposition-left"},{"id":"io.github.libtmux.PanePosition.PanePosition.top","name":"top","kind":"method","parent":"io.github.libtmux.PanePosition.PanePosition","modifiers":[],"signatures":[{"params":[],"returns":"int"}],"doc":{"summary":"rows from the window's top edge"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PanePosition.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PanePosition.top","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PanePosition.PanePosition.top","product":"core","slug":"io-github-libtmux-paneposition-paneposition-top"},{"id":"io.github.libtmux.PaneRun.PaneRun","name":"PaneRun","kind":"class","modifiers":[],"signatures":[{"raw":"public record PaneRun(\n Outcome outcome, OptionalInt exitStatus, @ReadOnly List output, boolean exact)","params":[{"name":"outcome","type":"Outcome","doc":"why the wait ended"},{"name":"exitStatus","type":"OptionalInt","doc":"the command's exit status, present once it finished and its end was read"},{"name":"output","type":"List","doc":"what the command printed, one element per line, without the plumbing around it. Lines tmux wrapped are rejoined"},{"name":"exact","type":"boolean","doc":"whether the output was cut out between both of its markers, so it is the command's and nothing else. False when the output outgrew the pane's history or the command cleared the screen, or when the command had not finished by the deadline"}]}],"typeScopeBoundary":false,"doc":{"summary":"How a command run in a pane with {@link Pane#run} ended, and what it printed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneRun.java","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneRun","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneRun.PaneRun","product":"core","slug":"io-github-libtmux-panerun-panerun"},{"id":"io.github.libtmux.PaneRun.PaneRun.Outcome","name":"Outcome","kind":"enum","modifiers":[],"parent":"io.github.libtmux.PaneRun.PaneRun","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Why a run's wait ended."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneRun.java","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneRun.Outcome","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneRun.PaneRun.Outcome","product":"core","slug":"io-github-libtmux-panerun-panerun-outcome"},{"id":"io.github.libtmux.PaneRun.PaneRun.Outcome.FINISHED","name":"FINISHED","kind":"constant","modifiers":[],"parent":"io.github.libtmux.PaneRun.PaneRun.Outcome","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"The command ended; its status is in {@link #exitStatus()}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneRun.java","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneRun.Outcome.FINISHED","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneRun.PaneRun.Outcome.FINISHED","product":"core","slug":"io-github-libtmux-panerun-panerun-outcome-finished"},{"id":"io.github.libtmux.PaneRun.PaneRun.Outcome.TIMED_OUT","name":"TIMED_OUT","kind":"constant","modifiers":[],"parent":"io.github.libtmux.PaneRun.PaneRun.Outcome","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"The deadline passed with the command still running. The output is what it had printed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneRun.java","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneRun.Outcome.TIMED_OUT","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneRun.PaneRun.Outcome.TIMED_OUT","product":"core","slug":"io-github-libtmux-panerun-panerun-outcome-timed_out"},{"id":"io.github.libtmux.PaneRun.PaneRun.Outcome.SERVER_GONE","name":"SERVER_GONE","kind":"constant","modifiers":[],"parent":"io.github.libtmux.PaneRun.PaneRun.Outcome","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"The server went away underneath the command, so nothing about it can be relied on."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneRun.java","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneRun.Outcome.SERVER_GONE","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneRun.PaneRun.Outcome.SERVER_GONE","product":"core","slug":"io-github-libtmux-panerun-panerun-outcome-server_gone"},{"id":"io.github.libtmux.PaneRun.PaneRun.succeeded","name":"succeeded","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneRun.PaneRun","signatures":[{"raw":"public boolean succeeded()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether the command finished with status zero."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneRun.java","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneRun.succeeded","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneRun.PaneRun.succeeded","product":"core","slug":"io-github-libtmux-panerun-panerun-succeeded"},{"id":"io.github.libtmux.PaneRun.PaneRun.outcome","name":"outcome","kind":"method","parent":"io.github.libtmux.PaneRun.PaneRun","modifiers":[],"signatures":[{"params":[],"returns":"Outcome"}],"doc":{"summary":"why the wait ended"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneRun.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneRun.outcome","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneRun.PaneRun.outcome","product":"core","slug":"io-github-libtmux-panerun-panerun-outcome-3ji4"},{"id":"io.github.libtmux.PaneRun.PaneRun.exitStatus","name":"exitStatus","kind":"method","parent":"io.github.libtmux.PaneRun.PaneRun","modifiers":[],"signatures":[{"params":[],"returns":"OptionalInt"}],"doc":{"summary":"the command's exit status, present once it finished and its end was read"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneRun.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneRun.exitStatus","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneRun.PaneRun.exitStatus","product":"core","slug":"io-github-libtmux-panerun-panerun-exitstatus"},{"id":"io.github.libtmux.PaneRun.PaneRun.output","name":"output","kind":"method","parent":"io.github.libtmux.PaneRun.PaneRun","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"doc":{"summary":"what the command printed, one element per line, without the plumbing around it. Lines tmux wrapped are rejoined"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneRun.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneRun.output","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneRun.PaneRun.output","product":"core","slug":"io-github-libtmux-panerun-panerun-output"},{"id":"io.github.libtmux.PaneRun.PaneRun.exact","name":"exact","kind":"method","parent":"io.github.libtmux.PaneRun.PaneRun","modifiers":[],"signatures":[{"params":[],"returns":"boolean"}],"doc":{"summary":"whether the output was cut out between both of its markers, so it is the command's and nothing else. False when the output outgrew the pane's history or the command cleared the screen, or when the command had not finished by the deadline"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneRun.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneRun.exact","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneRun.PaneRun.exact","product":"core","slug":"io-github-libtmux-panerun-panerun-exact"},{"id":"io.github.libtmux.PaneSize.PaneSize","name":"PaneSize","kind":"interface","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"How big a new pane should be.","body":"One value with two spellings, not a size and a percentage. tmux takes both through {@code -l},\nso there is no pair of fields to hold consistent and no \"both were given\" error to raise — the\nPython sibling's {@code size}/{@code percentage} pair and the {@code ValueError} guarding it both\ndisappear.\n\ntmux's own {@code -p} flag is never emitted. It is broken in 3.4, which reads the {@code -l}\nargument while handling {@code -p} and fails with {@code size missing}; {@code -l 25%} produces the\nsame pane on every supported release."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneSize.java","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneSize","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneSize.PaneSize","product":"core","slug":"io-github-libtmux-panesize-panesize"},{"id":"io.github.libtmux.PaneSize.PaneSize.Cells","name":"Cells","kind":"class","modifiers":[],"parent":"io.github.libtmux.PaneSize.PaneSize","signatures":[{"raw":"record Cells(int count) implements PaneSize","params":[{"name":"count","type":"int"}]}],"typeScopeBoundary":true,"doc":{"summary":"A size in terminal cells."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneSize.java","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneSize.Cells","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneSize.PaneSize.Cells","product":"core","slug":"io-github-libtmux-panesize-panesize-cells-csva"},{"id":"io.github.libtmux.PaneSize.PaneSize.Cells.count","name":"count","kind":"method","parent":"io.github.libtmux.PaneSize.PaneSize.Cells","modifiers":[],"signatures":[{"params":[],"returns":"int"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneSize.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneSize.Cells.count","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneSize.PaneSize.Cells.count","product":"core","slug":"io-github-libtmux-panesize-panesize-cells-count"},{"id":"io.github.libtmux.PaneSize.PaneSize.Percent","name":"Percent","kind":"class","modifiers":[],"parent":"io.github.libtmux.PaneSize.PaneSize","signatures":[{"raw":"record Percent(int share) implements PaneSize","params":[{"name":"share","type":"int"}]}],"typeScopeBoundary":true,"doc":{"summary":"A share of what is being split."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneSize.java","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneSize.Percent","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneSize.PaneSize.Percent","product":"core","slug":"io-github-libtmux-panesize-panesize-percent-30sw"},{"id":"io.github.libtmux.PaneSize.PaneSize.Percent.share","name":"share","kind":"method","parent":"io.github.libtmux.PaneSize.PaneSize.Percent","modifiers":[],"signatures":[{"params":[],"returns":"int"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneSize.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneSize.Percent.share","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneSize.PaneSize.Percent.share","product":"core","slug":"io-github-libtmux-panesize-panesize-percent-share"},{"id":"io.github.libtmux.PaneSize.PaneSize.cells","name":"cells","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PaneSize.PaneSize","signatures":[{"raw":"static PaneSize cells(int count)","params":[{"name":"count","type":"int"}],"returns":"PaneSize","typeScopeBoundary":true}],"doc":{"summary":"A size in terminal cells."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneSize.java","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneSize.cells","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneSize.PaneSize.cells","product":"core","slug":"io-github-libtmux-panesize-panesize-cells-11uj"},{"id":"io.github.libtmux.PaneSize.PaneSize.percent","name":"percent","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PaneSize.PaneSize","signatures":[{"raw":"static PaneSize percent(int share)","params":[{"name":"share","type":"int"}],"returns":"PaneSize","typeScopeBoundary":true}],"doc":{"summary":"A share of what is being split, between 1 and 100."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneSize.java","line":41,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneSize.percent","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneSize.PaneSize.percent","product":"core","slug":"io-github-libtmux-panesize-panesize-percent-1ojv"},{"id":"io.github.libtmux.PaneSize.PaneSize.flagValue","name":"flagValue","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneSize.PaneSize","signatures":[{"raw":"default String flagValue()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"What follows {@code -l}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneSize.java","line":46,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneSize.flagValue","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneSize.PaneSize.flagValue","product":"core","slug":"io-github-libtmux-panesize-panesize-flagvalue"},{"id":"io.github.libtmux.PaneStart.PaneStart","name":"PaneStart","kind":"interface","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"What runs in a new pane.","body":"One choice rather than a command field beside an emptiness flag. tmux refuses the pair —\n{@code command cannot be given for empty pane} — and refuses it before spawning anything, so the\ncombination is not a state the server will ever be in. Sealing it means no value can carry both."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneStart.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneStart","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneStart.PaneStart","product":"core","slug":"io-github-libtmux-panestart-panestart"},{"id":"io.github.libtmux.PaneStart.PaneStart.Shell","name":"Shell","kind":"class","modifiers":[],"parent":"io.github.libtmux.PaneStart.PaneStart","signatures":[{"raw":"record Shell() implements PaneStart","params":[]}],"typeScopeBoundary":true,"doc":{"summary":"Whatever the session's {@code default-command} or shell is."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneStart.java","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneStart.Shell","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneStart.PaneStart.Shell","product":"core","slug":"io-github-libtmux-panestart-panestart-shell-x755"},{"id":"io.github.libtmux.PaneStart.PaneStart.Command","name":"Command","kind":"class","modifiers":[],"parent":"io.github.libtmux.PaneStart.PaneStart","signatures":[{"raw":"record Command(@ReadOnly List argv) implements PaneStart","params":[{"name":"argv","type":"List","doc":"the command and its arguments"}]}],"typeScopeBoundary":true,"doc":{"summary":"A command, which closes the pane when it exits unless the pane is kept."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneStart.java","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneStart.Command","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneStart.PaneStart.Command","product":"core","slug":"io-github-libtmux-panestart-panestart-command-o9ni"},{"id":"io.github.libtmux.PaneStart.PaneStart.Command.argv","name":"argv","kind":"method","parent":"io.github.libtmux.PaneStart.PaneStart.Command","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"doc":{"summary":"the command and its arguments"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneStart.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneStart.Command.argv","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneStart.PaneStart.Command.argv","product":"core","slug":"io-github-libtmux-panestart-panestart-command-argv"},{"id":"io.github.libtmux.PaneStart.PaneStart.Empty","name":"Empty","kind":"class","modifiers":[],"parent":"io.github.libtmux.PaneStart.PaneStart","signatures":[{"raw":"record Empty() implements PaneStart","params":[]}],"typeScopeBoundary":true,"doc":{"summary":"No process at all. Requires tmux 3.7."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneStart.java","line":33,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneStart.Empty","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneStart.PaneStart.Empty","product":"core","slug":"io-github-libtmux-panestart-panestart-empty-1qmp"},{"id":"io.github.libtmux.PaneStart.PaneStart.shell","name":"shell","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PaneStart.PaneStart","signatures":[{"raw":"static PaneStart shell()","params":[],"returns":"PaneStart","typeScopeBoundary":true}],"doc":{"summary":"Whatever the session's shell is."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneStart.java","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneStart.shell","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneStart.PaneStart.shell","product":"core","slug":"io-github-libtmux-panestart-panestart-shell-kfg3"},{"id":"io.github.libtmux.PaneStart.PaneStart.command","name":"command","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PaneStart.PaneStart","signatures":[{"raw":"static PaneStart command(String... argv)","params":[{"name":"argv","type":"String","variadic":"positional"}],"returns":"PaneStart","typeScopeBoundary":true}],"doc":{"summary":"A command, which closes the pane when it exits unless the pane is kept."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneStart.java","line":41,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneStart.command","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneStart.PaneStart.command","product":"core","slug":"io-github-libtmux-panestart-panestart-command-vfqq"},{"id":"io.github.libtmux.PaneStart.PaneStart.empty","name":"empty","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PaneStart.PaneStart","signatures":[{"raw":"static PaneStart empty()","params":[],"returns":"PaneStart","typeScopeBoundary":true}],"doc":{"summary":"No process at all. Requires tmux 3.7."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneStart.java","line":46,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneStart.empty","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneStart.PaneStart.empty","product":"core","slug":"io-github-libtmux-panestart-panestart-empty-1dv0"},{"id":"io.github.libtmux.PaneWait.PaneWait","name":"PaneWait","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Polls a pane on a timer for {@link Pane#awaitText} and {@link Pane#await}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneWait.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneWait","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneWait.PaneWait","product":"core","slug":"io-github-libtmux-panewait-panewait"},{"id":"io.github.libtmux.PaneWait.PaneWait.POLL","name":"POLL","kind":"attribute","modifiers":["static","readonly"],"parent":"io.github.libtmux.PaneWait.PaneWait","signatures":[],"typeScopeBoundary":true,"type":"Duration","value":"Duration.ofMillis(50)","doc":{"summary":"How often a wait looks again.","body":"Short enough that a wait reports promptly, long enough that a wait held open for minutes\nis not thousands of tmux invocations. A caller who needs an exact moment wants a signal on a\n{@link Channel}, not a shorter interval here."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneWait.java","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneWait.POLL","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneWait.PaneWait.POLL","product":"core","slug":"io-github-libtmux-panewait-panewait-poll"},{"id":"io.github.libtmux.PaneWait.PaneWait.awaitText","name":"awaitText","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PaneWait.PaneWait","signatures":[{"raw":"static TextOutcome awaitText(Pane pane, String text, Duration timeout, Duration every) throws InterruptedException","params":[{"name":"pane","type":"Pane"},{"name":"text","type":"String"},{"name":"timeout","type":"Duration"},{"name":"every","type":"Duration"}],"returns":"TextOutcome","typeScopeBoundary":true}],"doc":{"summary":"{@link Pane#awaitText(String, Duration, Duration)}'s implementation."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneWait.java","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneWait.awaitText","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneWait.PaneWait.awaitText","product":"core","slug":"io-github-libtmux-panewait-panewait-awaittext"},{"id":"io.github.libtmux.PaneWait.PaneWait.await","name":"await","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PaneWait.PaneWait","signatures":[{"raw":"static WakeReason await(Pane pane, Predicate settled, Duration timeout, Duration every)\n throws InterruptedException","params":[{"name":"pane","type":"Pane"},{"name":"settled","type":"Predicate"},{"name":"timeout","type":"Duration"},{"name":"every","type":"Duration"}],"returns":"WakeReason","typeScopeBoundary":true}],"doc":{"summary":"{@link Pane#await(Predicate, Duration, Duration)}'s implementation."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneWait.java","line":60,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneWait.await","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneWait.PaneWait.await","product":"core","slug":"io-github-libtmux-panewait-panewait-await"},{"id":"io.github.libtmux.PrintedText.PrintedText","name":"PrintedText","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Decodes tmux's printed output against the version the server actually reports, framed with process-local markers so a reply is read back exactly whatever quirks that version's own printing has."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PrintedText.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PrintedText","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PrintedText.PrintedText","product":"core","slug":"io-github-libtmux-printedtext-printedtext"},{"id":"io.github.libtmux.PrintedText.PrintedText.END_MARK","name":"END_MARK","kind":"attribute","modifiers":["static","readonly"],"parent":"io.github.libtmux.PrintedText.PrintedText","signatures":[],"typeScopeBoundary":true,"type":"String","value":"Tokens.perProcess() + \"-end\"","doc":{"summary":"Printed after what a command printed. tmux ends its output with a line break and the transport drops trailing blank lines, so text that itself ends in line breaks would lose them; with this after it, nothing trailing is blank."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PrintedText.java","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PrintedText.END_MARK","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PrintedText.PrintedText.END_MARK","product":"core","slug":"io-github-libtmux-printedtext-printedtext-end_mark"},{"id":"io.github.libtmux.PrintedText.PrintedText.expansion","name":"expansion","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PrintedText.PrintedText","signatures":[{"raw":"static String expansion(String format)","params":[{"name":"format","type":"String"}],"returns":"String","typeScopeBoundary":true}],"doc":{"summary":"A format for {@code display-message -p} that {@link #printed(List)} reads back exactly."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PrintedText.java","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PrintedText.expansion","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PrintedText.PrintedText.expansion","product":"core","slug":"io-github-libtmux-printedtext-printedtext-expansion"},{"id":"io.github.libtmux.PrintedText.PrintedText.versioned","name":"versioned","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PrintedText.PrintedText","signatures":[{"raw":"static String versioned(String format)","params":[{"name":"format","type":"String"}],"returns":"String","typeScopeBoundary":true}],"doc":{"summary":"This format with the server's version expanded ahead of it, so the reply can be decoded without another tmux process. See {@link TmuxFormats#printed(String, TmuxVersion)}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PrintedText.java","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PrintedText.versioned","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PrintedText.PrintedText.versioned","product":"core","slug":"io-github-libtmux-printedtext-printedtext-versioned"},{"id":"io.github.libtmux.PrintedText.PrintedText.printed","name":"printed","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PrintedText.PrintedText","signatures":[{"raw":"static String printed(List reported)","params":[{"name":"reported","type":"List"}],"returns":"String","typeScopeBoundary":true}],"doc":{"summary":"The expansion of a {@link #versioned} format, as tmux held the text."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PrintedText.java","line":40,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PrintedText.printed","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PrintedText.PrintedText.printed","product":"core","slug":"io-github-libtmux-printedtext-printedtext-printed"},{"id":"io.github.libtmux.PrintedText.PrintedText.printedRows","name":"printedRows","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PrintedText.PrintedText","signatures":[{"raw":"static List printedRows(List rows)","params":[{"name":"rows","type":"List"}],"returns":"List","typeScopeBoundary":true}],"doc":{"summary":"As {@link #printed(List)}, for a listing whose every row began with {@link #versioned}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PrintedText.java","line":57,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PrintedText.printedRows","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PrintedText.PrintedText.printedRows","product":"core","slug":"io-github-libtmux-printedtext-printedtext-printedrows"},{"id":"io.github.libtmux.PrintedText.PrintedText.framed","name":"framed","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PrintedText.PrintedText","signatures":[{"raw":"static List> framed(List argv)","params":[{"name":"argv","type":"List"}],"returns":"List>","typeScopeBoundary":true}],"doc":{"summary":"The three commands {@link Server#printed(io.github.libtmux.snapshot.ServerSnapshot, List)} sends as one group."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PrintedText.java","line":66,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PrintedText.framed","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PrintedText.PrintedText.framed","product":"core","slug":"io-github-libtmux-printedtext-printedtext-framed"},{"id":"io.github.libtmux.PrintedText.PrintedText.unwrap","name":"unwrap","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PrintedText.PrintedText","signatures":[{"raw":"static CommandResult unwrap(CommandResult result)","params":[{"name":"result","type":"CommandResult"}],"returns":"CommandResult","typeScopeBoundary":true}],"doc":{"summary":"Strips the version line and end mark {@link #framed} added, decoding what is left."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PrintedText.java","line":72,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PrintedText.unwrap","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PrintedText.PrintedText.unwrap","product":"core","slug":"io-github-libtmux-printedtext-printedtext-unwrap"},{"id":"io.github.libtmux.Prompt.Prompt","name":"Prompt","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The server's command-prompt history.","body":"Whether the commands exist is asked of the daemon, not inferred from a version string."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Prompt.java","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Prompt","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Prompt.Prompt","product":"core","slug":"io-github-libtmux-prompt-prompt"},{"id":"io.github.libtmux.Prompt.Prompt.Prompt","name":"Prompt","kind":"method","modifiers":[],"parent":"io.github.libtmux.Prompt.Prompt","signatures":[{"raw":"Prompt(Server server)","params":[{"name":"server","type":"Server"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Prompt.java","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Prompt.Prompt","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Prompt.Prompt.Prompt","product":"core","slug":"io-github-libtmux-prompt-prompt-prompt"},{"id":"io.github.libtmux.Prompt.Prompt.history","name":"history","kind":"method","modifiers":[],"parent":"io.github.libtmux.Prompt.Prompt","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public List history()","params":[],"returns":"List","typeScopeBoundary":false,"raises":[{"type":"UnsupportedFeatureException","doc":"if this tmux has no such command"}]}],"doc":{"summary":"What has been typed at the prompt, oldest first."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Prompt.java","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Prompt.history","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Prompt.Prompt.history","product":"core","slug":"io-github-libtmux-prompt-prompt-history"},{"id":"io.github.libtmux.Prompt.Prompt.clear","name":"clear","kind":"method","modifiers":[],"parent":"io.github.libtmux.Prompt.Prompt","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void clear()","params":[],"returns":"void","typeScopeBoundary":false,"raises":[{"type":"UnsupportedFeatureException","doc":"if this tmux has no such command"}]}],"doc":{"summary":"Forgets what has been typed at the prompt."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Prompt.java","line":42,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Prompt.clear","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Prompt.Prompt.clear","product":"core","slug":"io-github-libtmux-prompt-prompt-clear"},{"id":"io.github.libtmux.query.FieldKind.FieldKind","name":"FieldKind","kind":"enum","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The value kind a field reads.","body":"Carried explicitly because exactness must not rest on the operand's runtime class. A number\nfield's operand happens to box to {@code Integer}, and reading the kind off that accident would\nsilently pick tmux's lexical comparison where the caller meant arithmetic."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FieldKind.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FieldKind","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FieldKind.FieldKind","product":"core","slug":"io-github-libtmux-query-fieldkind-fieldkind"},{"id":"io.github.libtmux.query.FieldKind.FieldKind.TEXT","name":"TEXT","kind":"constant","modifiers":[],"parent":"io.github.libtmux.query.FieldKind.FieldKind","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FieldKind.java","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FieldKind.TEXT","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FieldKind.FieldKind.TEXT","product":"core","slug":"io-github-libtmux-query-fieldkind-fieldkind-text"},{"id":"io.github.libtmux.query.FieldKind.FieldKind.NUMBER","name":"NUMBER","kind":"constant","modifiers":[],"parent":"io.github.libtmux.query.FieldKind.FieldKind","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FieldKind.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FieldKind.NUMBER","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FieldKind.FieldKind.NUMBER","product":"core","slug":"io-github-libtmux-query-fieldkind-fieldkind-number"},{"id":"io.github.libtmux.query.FieldKind.FieldKind.FLAG","name":"FLAG","kind":"constant","modifiers":[],"parent":"io.github.libtmux.query.FieldKind.FieldKind","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FieldKind.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FieldKind.FLAG","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FieldKind.FieldKind.FLAG","product":"core","slug":"io-github-libtmux-query-fieldkind-fieldkind-flag"},{"id":"io.github.libtmux.query.FieldRef.FieldRef","name":"FieldRef","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"typeParams":["T","V"],"typeParamNames":["T","V"],"typeParameters":[{"name":"T"},{"name":"V"}],"doc":{"summary":"A named, kinded accessor.","body":"The name makes a built expression printable; the kind makes consumers independent of the\noperand's runtime class. A serializer or compiler must bind the exact handle against its own\nmodel before trusting the name to describe what the accessor reads."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FieldRef.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FieldRef","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FieldRef.FieldRef","product":"core","slug":"io-github-libtmux-query-fieldref-fieldref"},{"id":"io.github.libtmux.query.FieldRef.FieldRef.FieldRef","name":"FieldRef","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FieldRef.FieldRef","signatures":[{"raw":"FieldRef(String id, FieldKind kind, Function accessor)","params":[{"name":"id","type":"String"},{"name":"kind","type":"FieldKind"},{"name":"accessor","type":"Function"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FieldRef.java","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FieldRef.FieldRef","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FieldRef.FieldRef.FieldRef","product":"core","slug":"io-github-libtmux-query-fieldref-fieldref-fieldref"},{"id":"io.github.libtmux.query.FieldRef.FieldRef.requireId","name":"requireId","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.query.FieldRef.FieldRef","signatures":[{"raw":"static String requireId(String id)","params":[{"name":"id","type":"String"}],"returns":"String","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FieldRef.java","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FieldRef.requireId","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FieldRef.FieldRef.requireId","product":"core","slug":"io-github-libtmux-query-fieldref-fieldref-requireid"},{"id":"io.github.libtmux.query.FieldRef.FieldRef.id","name":"id","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FieldRef.FieldRef","signatures":[{"raw":"public String id()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FieldRef.java","line":33,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FieldRef.id","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FieldRef.FieldRef.id","product":"core","slug":"io-github-libtmux-query-fieldref-fieldref-id"},{"id":"io.github.libtmux.query.FieldRef.FieldRef.kind","name":"kind","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FieldRef.FieldRef","signatures":[{"raw":"public FieldKind kind()","params":[],"returns":"FieldKind","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FieldRef.java","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FieldRef.kind","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FieldRef.FieldRef.kind","product":"core","slug":"io-github-libtmux-query-fieldref-fieldref-kind"},{"id":"io.github.libtmux.query.FieldRef.FieldRef.accessor","name":"accessor","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FieldRef.FieldRef","signatures":[{"raw":"public Function accessor()","params":[],"returns":"Function","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FieldRef.java","line":41,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FieldRef.accessor","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FieldRef.FieldRef.accessor","product":"core","slug":"io-github-libtmux-query-fieldref-fieldref-accessor"},{"id":"io.github.libtmux.query.Fields.Fields","name":"Fields","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Typed field handles.","body":"A caller supplies each accessor, so no backend may trust the name without matching this exact\nhandle against a model it owns.\n\nEach kind exposes only the operators its type supports, so {@code Pane_.index().startsWith(..)}\nis a compile error rather than a runtime class cast. This is the half of the metamodel that has to\nexist by hand or by generator; the generator only writes the accessors, never the semantics."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields","product":"core","slug":"io-github-libtmux-query-fields-fields"},{"id":"io.github.libtmux.query.Fields.Fields.text","name":"text","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.query.Fields.Fields","signatures":[{"raw":"public static TextField text(String id, Function accessor)","params":[{"name":"id","type":"String"},{"name":"accessor","type":"Function"}],"returns":"TextField","typeParamNames":["T"],"typeScopeBoundary":true,"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.text","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.text","product":"core","slug":"io-github-libtmux-query-fields-fields-text"},{"id":"io.github.libtmux.query.Fields.Fields.number","name":"number","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.query.Fields.Fields","signatures":[{"raw":"public static NumberField number(String id, Function accessor)","params":[{"name":"id","type":"String"},{"name":"accessor","type":"Function"}],"returns":"NumberField","typeParamNames":["T"],"typeScopeBoundary":true,"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.number","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.number","product":"core","slug":"io-github-libtmux-query-fields-fields-number"},{"id":"io.github.libtmux.query.Fields.Fields.flag","name":"flag","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.query.Fields.Fields","signatures":[{"raw":"public static FlagField flag(String id, Function accessor)","params":[{"name":"id","type":"String"},{"name":"accessor","type":"Function"}],"returns":"FlagField","typeParamNames":["T"],"typeScopeBoundary":true,"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.flag","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.flag","product":"core","slug":"io-github-libtmux-query-fields-fields-flag"},{"id":"io.github.libtmux.query.Fields.Fields.toMany","name":"toMany","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.query.Fields.Fields","signatures":[{"raw":"public static ToManyRef toMany(String id, Function> navigate)","params":[{"name":"id","type":"String"},{"name":"navigate","type":"Function>"}],"returns":"ToManyRef","typeParamNames":["T","R"],"typeScopeBoundary":true,"typeParams":["T","R"],"typeParameters":[{"name":"T"},{"name":"R"}]}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.toMany","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.toMany","product":"core","slug":"io-github-libtmux-query-fields-fields-tomany"},{"id":"io.github.libtmux.query.Fields.Fields.toOne","name":"toOne","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.query.Fields.Fields","signatures":[{"raw":"public static ToOneRef toOne(String id, Function> navigate)","params":[{"name":"id","type":"String"},{"name":"navigate","type":"Function>"}],"returns":"ToOneRef","typeParamNames":["T","R"],"typeScopeBoundary":true,"typeParams":["T","R"],"typeParameters":[{"name":"T"},{"name":"R"}]}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":40,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.toOne","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.toOne","product":"core","slug":"io-github-libtmux-query-fields-fields-toone"},{"id":"io.github.libtmux.query.Fields.Fields.TextField","name":"TextField","kind":"class","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields","signatures":[{"raw":"public record TextField(FieldRef ref)","params":[{"name":"ref","type":"FieldRef"}],"typeParamNames":["T"],"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"typeScopeBoundary":true,"typeParams":["T"],"typeParamNames":["T"],"typeParameters":[{"name":"T"}],"doc":{"summary":"String-valued field."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":45,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.TextField","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.TextField","product":"core","slug":"io-github-libtmux-query-fields-fields-textfield"},{"id":"io.github.libtmux.query.Fields.Fields.TextField.is","name":"is","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.TextField","signatures":[{"raw":"public FilterExpr is(String value)","params":[{"name":"value","type":"String"}],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.TextField.is","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.TextField.is","product":"core","slug":"io-github-libtmux-query-fields-fields-textfield-is"},{"id":"io.github.libtmux.query.Fields.Fields.TextField.isNot","name":"isNot","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.TextField","signatures":[{"raw":"public FilterExpr isNot(String value)","params":[{"name":"value","type":"String"}],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":51,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.TextField.isNot","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.TextField.isNot","product":"core","slug":"io-github-libtmux-query-fields-fields-textfield-isnot"},{"id":"io.github.libtmux.query.Fields.Fields.TextField.contains","name":"contains","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.TextField","signatures":[{"raw":"public FilterExpr contains(String value)","params":[{"name":"value","type":"String"}],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":55,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.TextField.contains","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.TextField.contains","product":"core","slug":"io-github-libtmux-query-fields-fields-textfield-contains"},{"id":"io.github.libtmux.query.Fields.Fields.TextField.startsWith","name":"startsWith","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.TextField","signatures":[{"raw":"public FilterExpr startsWith(String value)","params":[{"name":"value","type":"String"}],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":59,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.TextField.startsWith","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.TextField.startsWith","product":"core","slug":"io-github-libtmux-query-fields-fields-textfield-startswith"},{"id":"io.github.libtmux.query.Fields.Fields.TextField.endsWith","name":"endsWith","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.TextField","signatures":[{"raw":"public FilterExpr endsWith(String value)","params":[{"name":"value","type":"String"}],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":63,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.TextField.endsWith","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.TextField.endsWith","product":"core","slug":"io-github-libtmux-query-fields-fields-textfield-endswith"},{"id":"io.github.libtmux.query.Fields.Fields.TextField.matches","name":"matches","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.TextField","signatures":[{"raw":"public FilterExpr matches(Pattern value)","params":[{"name":"value","type":"Pattern"}],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":67,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.TextField.matches","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.TextField.matches","product":"core","slug":"io-github-libtmux-query-fields-fields-textfield-matches"},{"id":"io.github.libtmux.query.Fields.Fields.TextField.in","name":"in","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.TextField","signatures":[{"raw":"public FilterExpr in(Collection values)","params":[{"name":"values","type":"Collection"}],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":71,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.TextField.in","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.TextField.in","product":"core","slug":"io-github-libtmux-query-fields-fields-textfield-in"},{"id":"io.github.libtmux.query.Fields.Fields.TextField.ref","name":"ref","kind":"method","parent":"io.github.libtmux.query.Fields.Fields.TextField","modifiers":[],"signatures":[{"params":[],"returns":"FieldRef"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.TextField.ref","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.TextField.ref","product":"core","slug":"io-github-libtmux-query-fields-fields-textfield-ref"},{"id":"io.github.libtmux.query.Fields.Fields.NumberField","name":"NumberField","kind":"class","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields","signatures":[{"raw":"public record NumberField(FieldRef ref)","params":[{"name":"ref","type":"FieldRef"}],"typeParamNames":["T"],"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"typeScopeBoundary":true,"typeParams":["T"],"typeParamNames":["T"],"typeParameters":[{"name":"T"}],"doc":{"summary":"Integer-valued field. No text operators reach it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":77,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.NumberField","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.NumberField","product":"core","slug":"io-github-libtmux-query-fields-fields-numberfield"},{"id":"io.github.libtmux.query.Fields.Fields.NumberField.is","name":"is","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.NumberField","signatures":[{"raw":"public FilterExpr is(int value)","params":[{"name":"value","type":"int"}],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":79,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.NumberField.is","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.NumberField.is","product":"core","slug":"io-github-libtmux-query-fields-fields-numberfield-is"},{"id":"io.github.libtmux.query.Fields.Fields.NumberField.isNot","name":"isNot","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.NumberField","signatures":[{"raw":"public FilterExpr isNot(int value)","params":[{"name":"value","type":"int"}],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":83,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.NumberField.isNot","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.NumberField.isNot","product":"core","slug":"io-github-libtmux-query-fields-fields-numberfield-isnot"},{"id":"io.github.libtmux.query.Fields.Fields.NumberField.lessThan","name":"lessThan","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.NumberField","signatures":[{"raw":"public FilterExpr lessThan(int value)","params":[{"name":"value","type":"int"}],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":87,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.NumberField.lessThan","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.NumberField.lessThan","product":"core","slug":"io-github-libtmux-query-fields-fields-numberfield-lessthan"},{"id":"io.github.libtmux.query.Fields.Fields.NumberField.atMost","name":"atMost","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.NumberField","signatures":[{"raw":"public FilterExpr atMost(int value)","params":[{"name":"value","type":"int"}],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":91,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.NumberField.atMost","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.NumberField.atMost","product":"core","slug":"io-github-libtmux-query-fields-fields-numberfield-atmost"},{"id":"io.github.libtmux.query.Fields.Fields.NumberField.greaterThan","name":"greaterThan","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.NumberField","signatures":[{"raw":"public FilterExpr greaterThan(int value)","params":[{"name":"value","type":"int"}],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":95,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.NumberField.greaterThan","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.NumberField.greaterThan","product":"core","slug":"io-github-libtmux-query-fields-fields-numberfield-greaterthan"},{"id":"io.github.libtmux.query.Fields.Fields.NumberField.atLeast","name":"atLeast","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.NumberField","signatures":[{"raw":"public FilterExpr atLeast(int value)","params":[{"name":"value","type":"int"}],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":99,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.NumberField.atLeast","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.NumberField.atLeast","product":"core","slug":"io-github-libtmux-query-fields-fields-numberfield-atleast"},{"id":"io.github.libtmux.query.Fields.Fields.NumberField.ref","name":"ref","kind":"method","parent":"io.github.libtmux.query.Fields.Fields.NumberField","modifiers":[],"signatures":[{"params":[],"returns":"FieldRef"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.NumberField.ref","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.NumberField.ref","product":"core","slug":"io-github-libtmux-query-fields-fields-numberfield-ref"},{"id":"io.github.libtmux.query.Fields.Fields.FlagField","name":"FlagField","kind":"class","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields","signatures":[{"raw":"public record FlagField(FieldRef ref)","params":[{"name":"ref","type":"FieldRef"}],"typeParamNames":["T"],"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"typeScopeBoundary":true,"typeParams":["T"],"typeParamNames":["T"],"typeParameters":[{"name":"T"}],"doc":{"summary":"Boolean-valued field."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":105,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.FlagField","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.FlagField","product":"core","slug":"io-github-libtmux-query-fields-fields-flagfield"},{"id":"io.github.libtmux.query.Fields.Fields.FlagField.is","name":"is","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.FlagField","signatures":[{"raw":"public FilterExpr is(boolean value)","params":[{"name":"value","type":"boolean"}],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":107,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.FlagField.is","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.FlagField.is","product":"core","slug":"io-github-libtmux-query-fields-fields-flagfield-is"},{"id":"io.github.libtmux.query.Fields.Fields.FlagField.isNot","name":"isNot","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.FlagField","signatures":[{"raw":"public FilterExpr isNot(boolean value)","params":[{"name":"value","type":"boolean"}],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":111,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.FlagField.isNot","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.FlagField.isNot","product":"core","slug":"io-github-libtmux-query-fields-fields-flagfield-isnot"},{"id":"io.github.libtmux.query.Fields.Fields.FlagField.isTrue","name":"isTrue","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.FlagField","signatures":[{"raw":"public FilterExpr isTrue()","params":[],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":115,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.FlagField.isTrue","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.FlagField.isTrue","product":"core","slug":"io-github-libtmux-query-fields-fields-flagfield-istrue"},{"id":"io.github.libtmux.query.Fields.Fields.FlagField.isFalse","name":"isFalse","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.FlagField","signatures":[{"raw":"public FilterExpr isFalse()","params":[],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":119,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.FlagField.isFalse","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.FlagField.isFalse","product":"core","slug":"io-github-libtmux-query-fields-fields-flagfield-isfalse"},{"id":"io.github.libtmux.query.Fields.Fields.FlagField.ref","name":"ref","kind":"method","parent":"io.github.libtmux.query.Fields.Fields.FlagField","modifiers":[],"signatures":[{"params":[],"returns":"FieldRef"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.FlagField.ref","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.FlagField.ref","product":"core","slug":"io-github-libtmux-query-fields-fields-flagfield-ref"},{"id":"io.github.libtmux.query.Fields.Fields.ToManyRef","name":"ToManyRef","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.query.Fields.Fields","signatures":[],"typeScopeBoundary":true,"typeParams":["T","R"],"typeParamNames":["T","R"],"typeParameters":[{"name":"T"},{"name":"R"}],"doc":{"summary":"To-many relation. Quantifiers are the only way in, so an unquantified relation cannot compile."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":125,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.ToManyRef","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.ToManyRef","product":"core","slug":"io-github-libtmux-query-fields-fields-tomanyref"},{"id":"io.github.libtmux.query.Fields.Fields.ToManyRef.id","name":"id","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.ToManyRef","signatures":[{"raw":"public String id()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":135,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.ToManyRef.id","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.ToManyRef.id","product":"core","slug":"io-github-libtmux-query-fields-fields-tomanyref-id"},{"id":"io.github.libtmux.query.Fields.Fields.ToManyRef.navigate","name":"navigate","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.ToManyRef","signatures":[{"raw":"public Function> navigate()","params":[],"returns":"Function>","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":139,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.ToManyRef.navigate","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.ToManyRef.navigate","product":"core","slug":"io-github-libtmux-query-fields-fields-tomanyref-navigate"},{"id":"io.github.libtmux.query.Fields.Fields.ToManyRef.any","name":"any","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.ToManyRef","signatures":[{"raw":"public FilterExpr.ToMany any(FilterExpr predicate)","params":[{"name":"predicate","type":"FilterExpr"}],"returns":"FilterExpr.ToMany","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":143,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.ToManyRef.any","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.ToManyRef.any","product":"core","slug":"io-github-libtmux-query-fields-fields-tomanyref-any"},{"id":"io.github.libtmux.query.Fields.Fields.ToManyRef.all","name":"all","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.ToManyRef","signatures":[{"raw":"public FilterExpr.ToMany all(FilterExpr predicate)","params":[{"name":"predicate","type":"FilterExpr"}],"returns":"FilterExpr.ToMany","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":147,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.ToManyRef.all","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.ToManyRef.all","product":"core","slug":"io-github-libtmux-query-fields-fields-tomanyref-all"},{"id":"io.github.libtmux.query.Fields.Fields.ToManyRef.none","name":"none","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.ToManyRef","signatures":[{"raw":"public FilterExpr.ToMany none(FilterExpr predicate)","params":[{"name":"predicate","type":"FilterExpr"}],"returns":"FilterExpr.ToMany","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":151,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.ToManyRef.none","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.ToManyRef.none","product":"core","slug":"io-github-libtmux-query-fields-fields-tomanyref-none"},{"id":"io.github.libtmux.query.Fields.Fields.ToOneRef","name":"ToOneRef","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.query.Fields.Fields","signatures":[],"typeScopeBoundary":true,"typeParams":["T","R"],"typeParamNames":["T","R"],"typeParameters":[{"name":"T"},{"name":"R"}],"doc":{"summary":"To-one relation."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":157,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.ToOneRef","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.ToOneRef","product":"core","slug":"io-github-libtmux-query-fields-fields-tooneref"},{"id":"io.github.libtmux.query.Fields.Fields.ToOneRef.id","name":"id","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.ToOneRef","signatures":[{"raw":"public String id()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":167,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.ToOneRef.id","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.ToOneRef.id","product":"core","slug":"io-github-libtmux-query-fields-fields-tooneref-id"},{"id":"io.github.libtmux.query.Fields.Fields.ToOneRef.navigate","name":"navigate","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.ToOneRef","signatures":[{"raw":"public Function> navigate()","params":[],"returns":"Function>","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":171,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.ToOneRef.navigate","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.ToOneRef.navigate","product":"core","slug":"io-github-libtmux-query-fields-fields-tooneref-navigate"},{"id":"io.github.libtmux.query.Fields.Fields.ToOneRef.is","name":"is","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.ToOneRef","signatures":[{"raw":"public FilterExpr.ToOne is(FilterExpr predicate)","params":[{"name":"predicate","type":"FilterExpr"}],"returns":"FilterExpr.ToOne","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":175,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.ToOneRef.is","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.ToOneRef.is","product":"core","slug":"io-github-libtmux-query-fields-fields-tooneref-is"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr","name":"FilterExpr","kind":"interface","modifiers":[],"signatures":[],"typeScopeBoundary":false,"typeParams":["T"],"typeParamNames":["T"],"typeParameters":[{"name":"T"}],"doc":{"summary":"A filter that is both runnable and readable.","body":"It extends {@link Predicate}, so {@code stream().filter(expr)} works with no adapter, and it is\na sealed tree of records, so the same value can be printed, serialized, or later compiled into a\ntmux {@code -f} filter. A lambda can do the first of those and none of the rest, which is why\nnamed expressions are built from these nodes instead.\n\nEvaluation is a total function over the tree: every consumer switches exhaustively, so adding a\nnode breaks compilation at each site that has to learn about it rather than at runtime."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":22,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.describe","name":"describe","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr","signatures":[{"raw":"String describe();","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"Renders the expression as inspectable text. Deliberately not {@code toString} on records."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.describe","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.describe","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-describe"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.and","name":"and","kind":"method","modifiers":["static","overload"],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr","signatures":[{"raw":"static FilterExpr and(List> operands)","params":[{"name":"operands","type":"List>"}],"returns":"FilterExpr","typeParamNames":["T"],"typeScopeBoundary":true,"typeParams":["T"],"typeParameters":[{"name":"T"}]},{"raw":"default FilterExpr and(FilterExpr other)","params":[{"name":"other","type":"FilterExpr"}],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.and","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.and","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-and-12cg"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.or","name":"or","kind":"method","modifiers":["static","overload"],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr","signatures":[{"raw":"static FilterExpr or(List> operands)","params":[{"name":"operands","type":"List>"}],"returns":"FilterExpr","typeParamNames":["T"],"typeScopeBoundary":true,"typeParams":["T"],"typeParameters":[{"name":"T"}]},{"raw":"default FilterExpr or(FilterExpr other)","params":[{"name":"other","type":"FilterExpr"}],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":33,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.or","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.or","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-or-6b3f"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.negate","name":"negate","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr","signatures":[{"raw":"@Override\n default FilterExpr negate()","params":[],"returns":"FilterExpr","typeScopeBoundary":false}],"doc":{"summary":"Negation, narrowed to an expression.","body":"{@code and} and {@code or} below are deliberately *overloads* of the inherited\n{@link Predicate} methods rather than overrides: their parameter is a {@code FilterExpr}, so\ncombining two expressions stays an expression, while passing a bare lambda selects the\ninherited method and yields a plain predicate. That is the intended boundary — a lambda cannot\nbe printed or serialized, so an expression built from one must not claim to be inspectable."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":54,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.negate","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.negate","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-negate"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.And","name":"And","kind":"class","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr","signatures":[{"raw":"record And(@ReadOnly List> operands) implements FilterExpr","params":[{"name":"operands","type":"List>"}],"typeParamNames":["T"],"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"typeScopeBoundary":true,"typeParams":["T"],"typeParamNames":["T"],"typeParameters":[{"name":"T"}],"doc":{"summary":"Conjunction. An empty conjunction is true, which is what makes it a safe identity."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":62,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.And","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.And","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-and-b05l"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.And.test","name":"test","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr.And","signatures":[{"raw":"@Override\n public boolean test(T value)","params":[{"name":"value","type":"T"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":68,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.And.test","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.And.test","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-and-test"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.And.describe","name":"describe","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr.And","signatures":[{"raw":"@Override\n public String describe()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":78,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.And.describe","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.And.describe","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-and-describe"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.And.operands","name":"operands","kind":"method","parent":"io.github.libtmux.query.FilterExpr.FilterExpr.And","modifiers":[],"signatures":[{"params":[],"returns":"List>"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.And.operands","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.And.operands","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-and-operands"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Or","name":"Or","kind":"class","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr","signatures":[{"raw":"record Or(@ReadOnly List> operands) implements FilterExpr","params":[{"name":"operands","type":"List>"}],"typeParamNames":["T"],"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"typeScopeBoundary":true,"typeParams":["T"],"typeParamNames":["T"],"typeParameters":[{"name":"T"}],"doc":{"summary":"Disjunction. An empty disjunction is false."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":90,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Or","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Or","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-or-9f1f"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Or.test","name":"test","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr.Or","signatures":[{"raw":"@Override\n public boolean test(T value)","params":[{"name":"value","type":"T"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":96,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Or.test","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Or.test","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-or-test"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Or.describe","name":"describe","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr.Or","signatures":[{"raw":"@Override\n public String describe()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":106,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Or.describe","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Or.describe","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-or-describe"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Or.operands","name":"operands","kind":"method","parent":"io.github.libtmux.query.FilterExpr.FilterExpr.Or","modifiers":[],"signatures":[{"params":[],"returns":"List>"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Or.operands","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Or.operands","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-or-operands"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Not","name":"Not","kind":"class","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr","signatures":[{"raw":"record Not(FilterExpr operand) implements FilterExpr","params":[{"name":"operand","type":"FilterExpr"}],"typeParamNames":["T"],"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"typeScopeBoundary":true,"typeParams":["T"],"typeParamNames":["T"],"typeParameters":[{"name":"T"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":117,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Not","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Not","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-not"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Not.test","name":"test","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr.Not","signatures":[{"raw":"@Override\n public boolean test(T value)","params":[{"name":"value","type":"T"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":119,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Not.test","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Not.test","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-not-test"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Not.describe","name":"describe","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr.Not","signatures":[{"raw":"@Override\n public String describe()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":124,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Not.describe","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Not.describe","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-not-describe"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Not.operand","name":"operand","kind":"method","parent":"io.github.libtmux.query.FilterExpr.FilterExpr.Not","modifiers":[],"signatures":[{"params":[],"returns":"FilterExpr"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Not.operand","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Not.operand","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-not-operand"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare","name":"Compare","kind":"class","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr","signatures":[{"raw":"record Compare(FieldRef field, Operator operator, Object operand) implements FilterExpr","params":[{"name":"field","type":"FieldRef"},{"name":"operator","type":"Operator"},{"name":"operand","type":"Object"}],"typeParamNames":["T","V"],"typeParams":["T","V"],"typeParameters":[{"name":"T"},{"name":"V"}]}],"typeScopeBoundary":true,"typeParams":["T","V"],"typeParamNames":["T","V"],"typeParameters":[{"name":"T"},{"name":"V"}],"doc":{"summary":"One scalar field compared to one operand."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":131,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Compare","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-compare"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare.test","name":"test","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare","signatures":[{"raw":"@Override\n public boolean test(T value)","params":[{"name":"value","type":"T"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":142,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Compare.test","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare.test","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-compare-test"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare.describe","name":"describe","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare","signatures":[{"raw":"@Override\n public String describe()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":147,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Compare.describe","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare.describe","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-compare-describe"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare.equals","name":"equals","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare","signatures":[{"raw":"@Override\n public boolean equals(Object other)","params":[{"name":"other","type":"Object"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":152,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Compare.equals","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare.equals","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-compare-equals"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare.hashCode","name":"hashCode","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare","signatures":[{"raw":"@Override\n public int hashCode()","params":[],"returns":"int","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":160,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Compare.hashCode","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare.hashCode","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-compare-hashcode"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare.field","name":"field","kind":"method","parent":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare","modifiers":[],"signatures":[{"params":[],"returns":"FieldRef"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Compare.field","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare.field","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-compare-field"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare.operator","name":"operator","kind":"method","parent":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare","modifiers":[],"signatures":[{"params":[],"returns":"Operator"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Compare.operator","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare.operator","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-compare-operator"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare.operand","name":"operand","kind":"method","parent":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare","modifiers":[],"signatures":[{"params":[],"returns":"Object"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Compare.operand","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare.operand","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-compare-operand"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.ToMany","name":"ToMany","kind":"class","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr","signatures":[{"raw":"record ToMany(Fields.ToManyRef relation, Quantifier quantifier, FilterExpr predicate)\n implements FilterExpr","params":[{"name":"relation","type":"Fields.ToManyRef"},{"name":"quantifier","type":"Quantifier"},{"name":"predicate","type":"FilterExpr"}],"typeParamNames":["T","R"],"typeParams":["T","R"],"typeParameters":[{"name":"T"},{"name":"R"}]}],"typeScopeBoundary":true,"typeParams":["T","R"],"typeParamNames":["T","R"],"typeParameters":[{"name":"T"},{"name":"R"}],"doc":{"summary":"A quantified filter over a to-many relation.","body":"{@code ALL} over an empty relation is true. That is the standard vacuous reading and it is\nthe one tmux users expect: a session with no windows does not fail \"all windows are zoomed\"."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":181,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.ToMany","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.ToMany","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-tomany"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.ToMany.test","name":"test","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr.ToMany","signatures":[{"raw":"@Override\n public boolean test(T value)","params":[{"name":"value","type":"T"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":190,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.ToMany.test","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.ToMany.test","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-tomany-test"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.ToMany.describe","name":"describe","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr.ToMany","signatures":[{"raw":"@Override\n public String describe()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":200,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.ToMany.describe","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.ToMany.describe","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-tomany-describe"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.ToMany.relation","name":"relation","kind":"method","parent":"io.github.libtmux.query.FilterExpr.FilterExpr.ToMany","modifiers":[],"signatures":[{"params":[],"returns":"Fields.ToManyRef"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.ToMany.relation","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.ToMany.relation","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-tomany-relation"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.ToMany.quantifier","name":"quantifier","kind":"method","parent":"io.github.libtmux.query.FilterExpr.FilterExpr.ToMany","modifiers":[],"signatures":[{"params":[],"returns":"Quantifier"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.ToMany.quantifier","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.ToMany.quantifier","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-tomany-quantifier"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.ToMany.predicate","name":"predicate","kind":"method","parent":"io.github.libtmux.query.FilterExpr.FilterExpr.ToMany","modifiers":[],"signatures":[{"params":[],"returns":"FilterExpr"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.ToMany.predicate","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.ToMany.predicate","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-tomany-predicate"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.ToOne","name":"ToOne","kind":"class","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr","signatures":[{"raw":"record ToOne(Fields.ToOneRef relation, FilterExpr predicate) implements FilterExpr","params":[{"name":"relation","type":"Fields.ToOneRef"},{"name":"predicate","type":"FilterExpr"}],"typeParamNames":["T","R"],"typeParams":["T","R"],"typeParameters":[{"name":"T"},{"name":"R"}]}],"typeScopeBoundary":true,"typeParams":["T","R"],"typeParamNames":["T","R"],"typeParameters":[{"name":"T"},{"name":"R"}],"doc":{"summary":"A to-one relation. An absent target does not satisfy the filter."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":207,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.ToOne","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.ToOne","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-toone"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.ToOne.test","name":"test","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr.ToOne","signatures":[{"raw":"@Override\n public boolean test(T value)","params":[{"name":"value","type":"T"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":214,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.ToOne.test","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.ToOne.test","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-toone-test"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.ToOne.describe","name":"describe","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr.ToOne","signatures":[{"raw":"@Override\n public String describe()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":219,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.ToOne.describe","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.ToOne.describe","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-toone-describe"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.ToOne.relation","name":"relation","kind":"method","parent":"io.github.libtmux.query.FilterExpr.FilterExpr.ToOne","modifiers":[],"signatures":[{"params":[],"returns":"Fields.ToOneRef"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.ToOne.relation","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.ToOne.relation","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-toone-relation"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.ToOne.predicate","name":"predicate","kind":"method","parent":"io.github.libtmux.query.FilterExpr.FilterExpr.ToOne","modifiers":[],"signatures":[{"params":[],"returns":"FilterExpr"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.ToOne.predicate","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.ToOne.predicate","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-toone-predicate"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Quantifier","name":"Quantifier","kind":"enum","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":225,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Quantifier","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Quantifier","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-quantifier"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Quantifier.ANY","name":"ANY","kind":"constant","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr.Quantifier","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":226,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Quantifier.ANY","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Quantifier.ANY","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-quantifier-any"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Quantifier.ALL","name":"ALL","kind":"constant","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr.Quantifier","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":227,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Quantifier.ALL","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Quantifier.ALL","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-quantifier-all"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Quantifier.NONE","name":"NONE","kind":"constant","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr.Quantifier","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":228,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Quantifier.NONE","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Quantifier.NONE","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-quantifier-none"},{"id":"io.github.libtmux.query.Operator.Operator","name":"Operator","kind":"enum","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The scalar comparisons an expression can hold. Evaluation stays a total switch."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Operator.java","line":8,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Operator","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Operator.Operator","product":"core","slug":"io-github-libtmux-query-operator-operator"},{"id":"io.github.libtmux.query.Operator.Operator.EQUALS","name":"EQUALS","kind":"constant","modifiers":[],"parent":"io.github.libtmux.query.Operator.Operator","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Operator.java","line":9,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Operator.EQUALS","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Operator.Operator.EQUALS","product":"core","slug":"io-github-libtmux-query-operator-operator-equals"},{"id":"io.github.libtmux.query.Operator.Operator.NOT_EQUALS","name":"NOT_EQUALS","kind":"constant","modifiers":[],"parent":"io.github.libtmux.query.Operator.Operator","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Operator.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Operator.NOT_EQUALS","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Operator.Operator.NOT_EQUALS","product":"core","slug":"io-github-libtmux-query-operator-operator-not_equals"},{"id":"io.github.libtmux.query.Operator.Operator.CONTAINS","name":"CONTAINS","kind":"constant","modifiers":[],"parent":"io.github.libtmux.query.Operator.Operator","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Operator.java","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Operator.CONTAINS","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Operator.Operator.CONTAINS","product":"core","slug":"io-github-libtmux-query-operator-operator-contains"},{"id":"io.github.libtmux.query.Operator.Operator.STARTS_WITH","name":"STARTS_WITH","kind":"constant","modifiers":[],"parent":"io.github.libtmux.query.Operator.Operator","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Operator.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Operator.STARTS_WITH","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Operator.Operator.STARTS_WITH","product":"core","slug":"io-github-libtmux-query-operator-operator-starts_with"},{"id":"io.github.libtmux.query.Operator.Operator.ENDS_WITH","name":"ENDS_WITH","kind":"constant","modifiers":[],"parent":"io.github.libtmux.query.Operator.Operator","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Operator.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Operator.ENDS_WITH","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Operator.Operator.ENDS_WITH","product":"core","slug":"io-github-libtmux-query-operator-operator-ends_with"},{"id":"io.github.libtmux.query.Operator.Operator.MATCHES","name":"MATCHES","kind":"constant","modifiers":[],"parent":"io.github.libtmux.query.Operator.Operator","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Operator.java","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Operator.MATCHES","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Operator.Operator.MATCHES","product":"core","slug":"io-github-libtmux-query-operator-operator-matches-1lrg"},{"id":"io.github.libtmux.query.Operator.Operator.LESS_THAN","name":"LESS_THAN","kind":"constant","modifiers":[],"parent":"io.github.libtmux.query.Operator.Operator","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Operator.java","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Operator.LESS_THAN","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Operator.Operator.LESS_THAN","product":"core","slug":"io-github-libtmux-query-operator-operator-less_than"},{"id":"io.github.libtmux.query.Operator.Operator.AT_MOST","name":"AT_MOST","kind":"constant","modifiers":[],"parent":"io.github.libtmux.query.Operator.Operator","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Operator.java","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Operator.AT_MOST","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Operator.Operator.AT_MOST","product":"core","slug":"io-github-libtmux-query-operator-operator-at_most"},{"id":"io.github.libtmux.query.Operator.Operator.GREATER_THAN","name":"GREATER_THAN","kind":"constant","modifiers":[],"parent":"io.github.libtmux.query.Operator.Operator","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Operator.java","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Operator.GREATER_THAN","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Operator.Operator.GREATER_THAN","product":"core","slug":"io-github-libtmux-query-operator-operator-greater_than"},{"id":"io.github.libtmux.query.Operator.Operator.AT_LEAST","name":"AT_LEAST","kind":"constant","modifiers":[],"parent":"io.github.libtmux.query.Operator.Operator","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Operator.java","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Operator.AT_LEAST","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Operator.Operator.AT_LEAST","product":"core","slug":"io-github-libtmux-query-operator-operator-at_least"},{"id":"io.github.libtmux.query.Operator.Operator.IN","name":"IN","kind":"constant","modifiers":[],"parent":"io.github.libtmux.query.Operator.Operator","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Operator.java","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Operator.IN","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Operator.Operator.IN","product":"core","slug":"io-github-libtmux-query-operator-operator-in"},{"id":"io.github.libtmux.query.Operator.Operator.Operator","name":"Operator","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Operator.Operator","signatures":[{"raw":"Operator(String symbol)","params":[{"name":"symbol","type":"String"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Operator.java","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Operator.Operator","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Operator.Operator.Operator","product":"core","slug":"io-github-libtmux-query-operator-operator-operator"},{"id":"io.github.libtmux.query.Operator.Operator.symbol","name":"symbol","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Operator.Operator","signatures":[{"raw":"public String symbol()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Operator.java","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Operator.symbol","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Operator.Operator.symbol","product":"core","slug":"io-github-libtmux-query-operator-operator-symbol"},{"id":"io.github.libtmux.query.Operator.Operator.requireOperand","name":"requireOperand","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Operator.Operator","signatures":[{"raw":"void requireOperand(FieldKind kind, Object operand)","params":[{"name":"kind","type":"FieldKind"},{"name":"operand","type":"Object"}],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Operator.java","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Operator.requireOperand","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Operator.Operator.requireOperand","product":"core","slug":"io-github-libtmux-query-operator-operator-requireoperand"},{"id":"io.github.libtmux.query.Operator.Operator.matches","name":"matches","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Operator.Operator","signatures":[{"raw":"@SuppressWarnings(\"unchecked\")\n boolean matches(Object actual, Object operand)","params":[{"name":"actual","type":"Object"},{"name":"operand","type":"Object"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Operator.java","line":65,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Operator.matches","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Operator.Operator.matches","product":"core","slug":"io-github-libtmux-query-operator-operator-matches-80y7"},{"id":"io.github.libtmux.query.Selections.Selections","name":"Selections","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Cardinality with the ambiguity removed.","body":"\"No session matched\" and \"several sessions matched\" are different bugs in a caller's code, so\nthey get different exceptions. {@code findFirst} stays on {@link java.util.stream.Stream} where it\nalready belongs; only the strict shapes need helpers."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Selections.java","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Selections","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Selections.Selections","product":"core","slug":"io-github-libtmux-query-selections-selections"},{"id":"io.github.libtmux.query.Selections.Selections.exactlyOne","name":"exactlyOne","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.query.Selections.Selections","signatures":[{"raw":"public static T exactlyOne(Iterable matches)","params":[{"name":"matches","type":"Iterable"}],"returns":"T","typeParamNames":["T"],"typeScopeBoundary":true,"typeParams":["T"],"typeParameters":[{"name":"T"}],"raises":[{"type":"CardinalityException.NoMatch","doc":"if nothing matched"},{"type":"CardinalityException.MultipleMatches","doc":"if more than one did; the scan stops at the second match, so its count is two"}]}],"doc":{"summary":"The single match, or a failure naming which way the count was wrong."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Selections.java","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Selections.exactlyOne","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Selections.Selections.exactlyOne","product":"core","slug":"io-github-libtmux-query-selections-selections-exactlyone"},{"id":"io.github.libtmux.query.Selections.Selections.oneOrEmpty","name":"oneOrEmpty","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.query.Selections.Selections","signatures":[{"raw":"public static Optional oneOrEmpty(Iterable matches)","params":[{"name":"matches","type":"Iterable"}],"returns":"Optional","typeParamNames":["T"],"typeScopeBoundary":true,"typeParams":["T"],"typeParameters":[{"name":"T"}],"raises":[{"type":"CardinalityException.MultipleMatches","doc":"if more than one matched"}]}],"doc":{"summary":"The single match if there is one, empty if there is none — but still a failure for several.","body":"Returning the first of many would make a caller's ambiguous query look answered."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Selections.java","line":44,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Selections.oneOrEmpty","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Selections.Selections.oneOrEmpty","product":"core","slug":"io-github-libtmux-query-selections-selections-oneorempty"},{"id":"io.github.libtmux.query.TmuxFilters.TmuxFilters","name":"TmuxFilters","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Lowers a {@link FilterExpr} to a tmux {@code -f} format when every node is one tmux can apply.","body":"Relations, a Java regular expression, and any operand containing {@code ,}, `#`,\n`{`, `}`, {@code :}, or a backslash, are refused. Those stay a local filter over a capture. tmux\ncompiles {@code #{m/r:}} with its own dialect, so a pattern Java would match can select nothing.\nA compiled format is a hint to tmux, not a promise that the local reading would differ: callers\nstill apply the expression to the rows that come back."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/TmuxFilters.java","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.TmuxFilters","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.TmuxFilters.TmuxFilters","product":"core","slug":"io-github-libtmux-query-tmuxfilters-tmuxfilters"},{"id":"io.github.libtmux.query.TmuxFilters.TmuxFilters.format","name":"format","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.query.TmuxFilters.TmuxFilters","signatures":[{"raw":"public static Optional format(FilterExpr expression)","params":[{"name":"expression","type":"FilterExpr"}],"returns":"Optional","typeScopeBoundary":true}],"doc":{"summary":"A tmux format for {@code -f}, or empty when this expression is not a safe subset."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/TmuxFilters.java","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.TmuxFilters.format","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.TmuxFilters.TmuxFilters.format","product":"core","slug":"io-github-libtmux-query-tmuxfilters-tmuxfilters-format"},{"id":"io.github.libtmux.query.TmuxFilters.TmuxFilters.literal","name":"literal","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.query.TmuxFilters.TmuxFilters","signatures":[{"raw":"public static boolean literal(String value)","params":[{"name":"value","type":"String"}],"returns":"boolean","typeScopeBoundary":true}],"doc":{"summary":"Whether this text can sit inside a tmux format argument without changing its shape. A backslash escapes the next character in a format, so a trailing one swallows the closing brace."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/TmuxFilters.java","line":33,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.TmuxFilters.literal","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.TmuxFilters.TmuxFilters.literal","product":"core","slug":"io-github-libtmux-query-tmuxfilters-tmuxfilters-literal"},{"id":"io.github.libtmux.Server.Server","name":"Server","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Manages sessions, windows, and panes on a tmux server.","body":"Use {@link #open} with a {@link ServerConfig} to select a server by socket name or path.\nFrom this object, create sessions or query the server's existing sessions, windows, and panes.\nEach {@link Session} contains windows, and each {@link Window} contains panes.\n\nOwnership is decided at construction and never inferred. {@link #open} creates a transport this\nserver closes exactly once; {@link #using} borrows one the caller keeps, so several servers can\nshare a transport and closing one leaves the others working.\n\nClosing this object releases its owned transport. The tmux server and its sessions keep\nrunning. Call {@link #killServer()} to stop the tmux server.\n\nClose it anyway. A server that owns its transport holds the threads that drain tmux's output,\nand those are not daemons, so that a reply being read when a program ends is finished rather than\ntruncated. They do let go once they have been idle, so forgetting to close delays a JVM's exit by\nseconds instead of preventing it — but only closing releases them at once.\n\n**Threads.** Share one freely. A server holds nothing a call changes, its transport\nis thread-safe by contract, and the record of what was typed into each pane is concurrent; calls\nfrom several threads run side by side, bounded by the transport's own admission. The same goes\nfor every {@link Session}, {@link Window} and {@link Pane} it hands out: each is an immutable view\nof one capture, and a method that changes tmux changes tmux rather than the handle. Close it once,\nafter the last call on any thread.","examples":[{"lang":"console","intro":"Connect to a private tmux server. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/build.gradle.kts","code":"plugins {\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"java","intro":"Save this complete program as src/main/java/Connect.java. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/java/io/github/libtmux/examples/api/java/Connect.java","code":"package io.github.libtmux.examples.api.java;\n\nimport io.github.libtmux.Server;\nimport io.github.libtmux.ServerConfig;\nimport io.github.libtmux.ServerEndpoint;\nimport java.nio.file.Path;\n\n/** Connect to a private tmux server. */\npublic final class Connect {\n private Connect() {}\n\n public static void main(String[] args) {\n try {\n if (args.length != 3) {\n throw new IllegalArgumentException(\"expected: tmux-binary socket-path config-file\");\n }\n var config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build();\n try (Server server = Server.open(config)) {\n System.out.println(\"connected=\" + server.isAlive());\n }\n } catch (Exception error) {\n if (error instanceof InterruptedException) Thread.currentThread().interrupt();\n System.err.println(\"Example failed: \" + error.getMessage());\n System.exit(1);\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.java.Connect && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"connected=true\n"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":73,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server","product":"core","slug":"io-github-libtmux-server-server"},{"id":"io.github.libtmux.Server.Server.echo","name":"echo","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"PaneEcho echo()","params":[],"returns":"PaneEcho","typeScopeBoundary":false}],"doc":{"summary":"What this library last typed into each of this server's panes."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":106,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.echo","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.echo","product":"core","slug":"io-github-libtmux-server-server-echo"},{"id":"io.github.libtmux.Server.Server.capture","name":"capture","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"SnapshotCapture capture()","params":[],"returns":"SnapshotCapture","typeScopeBoundary":false}],"doc":{"summary":"How this server's own hierarchy is read back, for helpers that need one listing directly."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":111,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.capture","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.capture","product":"core","slug":"io-github-libtmux-server-server-capture"},{"id":"io.github.libtmux.Server.Server.newSession","name":"newSession","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public Session newSession(String name)","params":[{"name":"name","type":"String"}],"returns":"Session","typeScopeBoundary":false},{"raw":"@Operation(Kind.MUTATION)\n public Session newSession(Consumer configure)","params":[{"name":"configure","type":"Consumer","doc":"receives a builder holding tmux's defaults"}],"returns":"Session","typeScopeBoundary":false,"raises":[{"type":"UnsupportedFeatureException","doc":"if the spec asks for something this server does not have"}]},{"raw":"@Operation(Kind.MUTATION)\n public Session newSession(SessionSpec spec)","params":[{"name":"spec","type":"SessionSpec"}],"returns":"Session","typeScopeBoundary":false,"raises":[{"type":"UnsupportedFeatureException","doc":"if the spec asks for something this server does not have"}]}],"doc":{"summary":"Creates a detached session and returns that exact session.","body":"tmux reports which session it made, so the result is exact even when another session\nalready carries the same name.\n\nKeep {@code :} and {@code .} out of the name. tmux decides what to do with them and changes\nits mind across the supported range: 3.2a through 3.6 rewrite each one to {@code _}, 3.7\nrefuses the name, and 3.7a onwards keeps it — where a bare {@code -t} target still misreads the\ndelimiter, so {@link #hasSession} and {@link #killSession} resolve the id by comparing names\ninstead of building one. {@link Session#name()} reports what tmux settled on.","examples":[{"lang":"console","intro":"Create a session running cat. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/build.gradle.kts","code":"plugins {\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"java","intro":"Save this complete program as src/main/java/NewSession.java. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/java/io/github/libtmux/examples/api/java/NewSession.java","code":"package io.github.libtmux.examples.api.java;\n\nimport io.github.libtmux.Server;\nimport io.github.libtmux.ServerConfig;\nimport io.github.libtmux.ServerEndpoint;\nimport io.github.libtmux.SessionSpec;\nimport java.nio.file.Path;\n\n/** Create a session running cat. */\npublic final class NewSession {\n private NewSession() {}\n\n public static void main(String[] args) {\n try {\n if (args.length != 3) {\n throw new IllegalArgumentException(\"expected: tmux-binary socket-path config-file\");\n }\n var config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build();\n try (Server server = Server.open(config)) {\n var session = server.newSession(SessionSpec.builder()\n .named(\"api-session\")\n .running(\"/bin/cat\")\n .build());\n System.out.println(\"created=\" + session.name());\n }\n } catch (Exception error) {\n if (error instanceof InterruptedException) Thread.currentThread().interrupt();\n System.err.println(\"Example failed: \" + error.getMessage());\n System.exit(1);\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.java.NewSession && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"created=api-session\n"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":127,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.newSession","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.newSession","product":"core","slug":"io-github-libtmux-server-server-newsession"},{"id":"io.github.libtmux.Server.Server.hasSession","name":"hasSession","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.READ)\n public boolean hasSession(String name)","params":[{"name":"name","type":"String"}],"returns":"boolean","typeScopeBoundary":false,"raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"}]}],"doc":{"summary":"Whether a session with this name exists."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":173,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.hasSession","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.hasSession","product":"core","slug":"io-github-libtmux-server-server-hassession"},{"id":"io.github.libtmux.Server.Server.killSession","name":"killSession","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void killSession(String name)","params":[{"name":"name","type":"String"}],"returns":"void","typeScopeBoundary":false,"raises":[{"type":"LibTmuxException","doc":"if no session carries the name"}]}],"doc":{"summary":"Ends the session with this name, and everything in it.","body":"The name is matched exactly. tmux would otherwise take a prefix, so asking to kill\n{@code build} could end {@code build-cache} instead."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":187,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.killSession","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.killSession","product":"core","slug":"io-github-libtmux-server-server-killsession"},{"id":"io.github.libtmux.Server.Server.isAlive","name":"isAlive","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.READ)\n public boolean isAlive()","params":[],"returns":"boolean","typeScopeBoundary":false},{"raw":"@Operation(Kind.READ)\n public boolean isAlive(Duration timeout)","params":[{"name":"timeout","type":"Duration","doc":"how long to wait for an answer before treating the server as unreachable"}],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether the server is running and answering.","body":"Returns false when tmux refuses the probe. Transport failures still throw."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":200,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.isAlive","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.isAlive","product":"core","slug":"io-github-libtmux-server-server-isalive"},{"id":"io.github.libtmux.Server.Server.requireAlive","name":"requireAlive","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.READ)\n public void requireAlive()","params":[],"returns":"void","typeScopeBoundary":false,"raises":[{"type":"ServerUnavailableException","doc":"if no daemon is there to answer"},{"type":"LibTmuxException","doc":"if one is, and could not be reached — a socket this user cannot open, or a binary that is not tmux, which starting a server would not fix"}]}],"doc":{"summary":"Requires a running tmux daemon that answers the liveness probe."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":226,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.requireAlive","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.requireAlive","product":"core","slug":"io-github-libtmux-server-server-requirealive"},{"id":"io.github.libtmux.Server.Server.failed","name":"failed","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"LibTmuxException failed(String command, CommandResult result)","params":[{"name":"command","type":"String"},{"name":"result","type":"CommandResult"}],"returns":"LibTmuxException","typeScopeBoundary":false},{"raw":"LibTmuxException failed(String command, String status, List stderr)","params":[{"name":"command","type":"String"},{"name":"status","type":"String"},{"name":"stderr","type":"List"}],"returns":"LibTmuxException","typeScopeBoundary":false}],"doc":{"summary":"One sentence for a tmux command that did not succeed.","body":"Built in one place because a message that omits the exit status, or says nothing at all\nwhen tmux printed nothing, is how a misconfigured binary reads as a tmux that simply refused:\npointing a server at {@code /bin/false} used to raise \"tmux display-message failed: \" and\nstop there."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":247,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.failed","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.failed","product":"core","slug":"io-github-libtmux-server-server-failed"},{"id":"io.github.libtmux.Server.Server.failure","name":"failure","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"static String failure(String command, String binary, String status, List stderr)","params":[{"name":"command","type":"String"},{"name":"binary","type":"String"},{"name":"status","type":"String","doc":"how the command ended, as an exit code or, inside a group, tmux's own outcome for it — a batch reports which of its commands never ran, which no single exit code says"},{"name":"stderr","type":"List"}],"returns":"String","typeScopeBoundary":true}],"doc":{"summary":""},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":272,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.failure","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.failure","product":"core","slug":"io-github-libtmux-server-server-failure"},{"id":"io.github.libtmux.Server.Server.serverAbsent","name":"serverAbsent","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"static boolean serverAbsent(String message)","params":[{"name":"message","type":"String"}],"returns":"boolean","typeScopeBoundary":true}],"doc":{"summary":"Whether a failed command's stderr says the daemon itself is gone, rather than refusing the request."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":279,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.serverAbsent","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.serverAbsent","product":"core","slug":"io-github-libtmux-server-server-serverabsent"},{"id":"io.github.libtmux.Server.Server.killServer","name":"killServer","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void killServer()","params":[],"returns":"void","typeScopeBoundary":false},{"raw":"@Operation(Kind.MUTATION)\n public void killServer(Duration timeout)","params":[{"name":"timeout","type":"Duration","doc":"how long to allow for each of the two commands"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Ends the tmux server and every session on it.","body":"Deliberately explicit and deliberately not what {@link #close()} does: closing a client is\nnot a reason to end everyone else's sessions.\n\nKilling a server that has already gone is not a failure. Which is harder to detect than it\nsounds: tmux answers a doomed request with {@code no server running} most of the time, but\nwith {@code server exited unexpectedly} when it reaches a socket whose server is still\nexiting — on every release from 3.3a onwards, and on one in five attempts on 3.7. So the\npostcondition is checked rather than the wording, which has changed before and says nothing\na second look cannot answer better."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":298,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.killServer","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.killServer","product":"core","slug":"io-github-libtmux-server-server-killserver"},{"id":"io.github.libtmux.Server.Server.batch","name":"batch","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Batch batch()","params":[],"returns":"Batch","typeScopeBoundary":false}],"doc":{"summary":"Collects several commands to run in one tmux invocation.","body":"Each operation gets its own outcome. tmux discards a group after the first failure, so a\nsingle exit status cannot say which command failed or which never ran."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":386,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.batch","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.batch","product":"core","slug":"io-github-libtmux-server-server-batch"},{"id":"io.github.libtmux.Server.Server.chain","name":"chain","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public CommandChain chain()","params":[],"returns":"CommandChain","typeScopeBoundary":false}],"doc":{"summary":"Starts a chain of commands where each one acts on what the last one made.","body":"tmux moves its own current target as a group runs, so a chain needs no round trip to learn\nthe id of a window or pane it just created."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":397,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.chain","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.chain","product":"core","slug":"io-github-libtmux-server-server-chain"},{"id":"io.github.libtmux.Server.Server.expand","name":"expand","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.READ)\n public String expand(String format)","params":[{"name":"format","type":"String","doc":"a tmux format, usually of the shape {@code #{name}}"}],"returns":"String","typeScopeBoundary":false,"returnsDoc":"the expansion, whole when it spans lines and empty when the format expanded to nothing"}],"doc":{"summary":"Expands a tmux format against the server, and answers with what it came to.","body":"The server-wide counterpart to {@link Pane#expand}: fields such as {@code #{pid}} and\n{@code #{version}} that belong to no session in particular."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":412,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.expand","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.expand","product":"core","slug":"io-github-libtmux-server-server-expand"},{"id":"io.github.libtmux.Server.Server.printed","name":"printed","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"CommandResult printed(@Nullable ServerSnapshot snapshot, List argv)","params":[{"name":"snapshot","type":"ServerSnapshot"},{"name":"argv","type":"List"}],"returns":"CommandResult","typeScopeBoundary":false}],"doc":{"summary":"Runs one read with the server's version printed first in the same invocation, and answers with its output as tmux held the text, and without that version line. Line breaks at the end of the output are kept."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":424,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.printed","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.printed","product":"core","slug":"io-github-libtmux-server-server-printed"},{"id":"io.github.libtmux.Server.Server.shell","name":"shell","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Shell shell()","params":[],"returns":"Shell","typeScopeBoundary":false}],"doc":{"summary":"Shell commands run by tmux, and tmux commands chosen by a shell exit status."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":433,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.shell","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.shell","product":"core","slug":"io-github-libtmux-server-server-shell"},{"id":"io.github.libtmux.Server.Server.commands","name":"commands","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Commands commands()","params":[],"returns":"Commands","typeScopeBoundary":false}],"doc":{"summary":"The commands this tmux knows."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":439,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.commands","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.commands","product":"core","slug":"io-github-libtmux-server-server-commands"},{"id":"io.github.libtmux.Server.Server.lock","name":"lock","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void lock()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Locks every client attached to this server."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":445,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.lock","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.lock","product":"core","slug":"io-github-libtmux-server-server-lock"},{"id":"io.github.libtmux.Server.Server.messageLog","name":"messageLog","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public MessageLog messageLog()","params":[],"returns":"MessageLog","typeScopeBoundary":false}],"doc":{"summary":"The server's message log."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":451,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.messageLog","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.messageLog","product":"core","slug":"io-github-libtmux-server-server-messagelog"},{"id":"io.github.libtmux.Server.Server.prompt","name":"prompt","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Prompt prompt()","params":[],"returns":"Prompt","typeScopeBoundary":false}],"doc":{"summary":"The command prompt's history."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":457,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.prompt","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.prompt","product":"core","slug":"io-github-libtmux-server-server-prompt"},{"id":"io.github.libtmux.Server.Server.withoutStartingServer","name":"withoutStartingServer","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"CommandResult withoutStartingServer(List command)","params":[{"name":"command","type":"List"}],"returns":"CommandResult","typeScopeBoundary":false}],"doc":{"summary":"Runs a read that tmux would otherwise answer by starting a daemon.","body":"{@code list-keys} and {@code list-commands} are answered from the binary's own tables, and\ntmux starts a server to do it rather than reporting that there is none — so reading the key\nbindings of an endpoint nothing serves left a daemon behind, which is the opposite of a read.\n{@code -N} says not to, on every supported release, and tmux then reports the absent server\nthe way every other read does."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":471,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.withoutStartingServer","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.withoutStartingServer","product":"core","slug":"io-github-libtmux-server-server-withoutstartingserver"},{"id":"io.github.libtmux.Server.Server.channel","name":"channel","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Channel channel(String name)","params":[{"name":"name","type":"String"}],"returns":"Channel","typeScopeBoundary":false}],"doc":{"summary":"One of this server's wait-for channels, which is where a signal is sent and waited for."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":483,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.channel","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.channel","product":"core","slug":"io-github-libtmux-server-server-channel"},{"id":"io.github.libtmux.Server.Server.variables","name":"variables","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public Map variables(List names)","params":[{"name":"names","type":"List"}],"returns":"Map","typeScopeBoundary":false}],"doc":{"summary":"Reads only validated tmux variable names, never caller-authored format syntax."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":489,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.variables","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.variables","product":"core","slug":"io-github-libtmux-server-server-variables"},{"id":"io.github.libtmux.Server.Server.paneFields","name":"paneFields","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public Map> paneFields(List names)","params":[{"name":"names","type":"List","doc":"tmux format variable names, at most 32"}],"returns":"Map>","typeScopeBoundary":false,"returnsDoc":"each pane's values keyed by the names asked for, in tmux's pane order","raises":[{"type":"IllegalArgumentException","doc":"if a name is not a tmux variable name"},{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if the listing otherwise fails"}]}],"doc":{"summary":"Chosen fields for every pane on the server, from one listing.","body":"For what a capture does not carry — {@code pane_tty}, {@code pane_dead_status}, {@code\npane_start_command}, any of tmux's pane formats. Asking each pane is a tmux process per pane\nand a view no single moment held; this is one {@code list-panes}, so every value is from the\nsame instant.","examples":[{"lang":"java","code":"Map> ttys = server.paneFields(List.of(\"pane_tty\", \"pane_dead\"));"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":530,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.paneFields","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.paneFields","product":"core","slug":"io-github-libtmux-server-server-panefields"},{"id":"io.github.libtmux.Server.Server.awaitChannel","name":"awaitChannel","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"WakeReason awaitChannel(String channel, Duration timeout, boolean reserveSignalCapacity)\n throws InterruptedException","params":[{"name":"channel","type":"String"},{"name":"timeout","type":"Duration"},{"name":"reserveSignalCapacity","type":"boolean"}],"returns":"WakeReason","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":566,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.awaitChannel","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.awaitChannel","product":"core","slug":"io-github-libtmux-server-server-awaitchannel"},{"id":"io.github.libtmux.Server.Server.keys","name":"keys","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Keys keys()","params":[],"returns":"Keys","typeScopeBoundary":false}],"doc":{"summary":"The server's key bindings: {@code prefix} when binding, every table when listing."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":608,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.keys","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.keys","product":"core","slug":"io-github-libtmux-server-server-keys"},{"id":"io.github.libtmux.Server.Server.buffers","name":"buffers","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Buffers buffers()","params":[],"returns":"Buffers","typeScopeBoundary":false}],"doc":{"summary":"The server's paste buffers, which every session shares."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":614,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.buffers","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.buffers","product":"core","slug":"io-github-libtmux-server-server-buffers"},{"id":"io.github.libtmux.Server.Server.sourceFile","name":"sourceFile","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void sourceFile(Path file)","params":[{"name":"file","type":"Path"}],"returns":"void","typeScopeBoundary":false,"raises":[{"type":"LibTmuxException","doc":"if tmux could not read or run it"}]}],"doc":{"summary":"Runs a file of tmux commands, as a configuration file would be run."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":624,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.sourceFile","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.sourceFile","product":"core","slug":"io-github-libtmux-server-server-sourcefile"},{"id":"io.github.libtmux.Server.Server.options","name":"options","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Options options()","params":[],"returns":"Options","typeScopeBoundary":false}],"doc":{"summary":"The server-wide options, the ones tmux keeps once per server."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":630,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.options","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.options","product":"core","slug":"io-github-libtmux-server-server-options"},{"id":"io.github.libtmux.Server.Server.globalOptions","name":"globalOptions","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Options globalOptions()","params":[],"returns":"Options","typeScopeBoundary":false}],"doc":{"summary":"The global session options every session inherits unless it sets its own."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":636,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.globalOptions","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.globalOptions","product":"core","slug":"io-github-libtmux-server-server-globaloptions"},{"id":"io.github.libtmux.Server.Server.environment","name":"environment","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Environment environment()","params":[],"returns":"Environment","typeScopeBoundary":false}],"doc":{"summary":"The server's environment, which every session inherits and every new process is given.","body":"Set here to change what a pane opened later sees — a refreshed {@code SSH_AUTH_SOCK} after\nreconnecting, say. A pane already running has its own copy and is not affected."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":647,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.environment","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.environment","product":"core","slug":"io-github-libtmux-server-server-environment"},{"id":"io.github.libtmux.Server.Server.hooks","name":"hooks","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Hooks hooks()","params":[],"returns":"Hooks","typeScopeBoundary":false}],"doc":{"summary":"The global hooks every session inherits."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":653,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.hooks","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.hooks","product":"core","slug":"io-github-libtmux-server-server-hooks"},{"id":"io.github.libtmux.Server.Server.version","name":"version","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.READ)\n public TmuxVersion version()","params":[],"returns":"TmuxVersion","typeScopeBoundary":false,"raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"}]}],"doc":{"summary":"Which tmux this server is running.","body":"Asked of the running server rather than of the binary, because the server may have been\nstarted by a different build than the one this client is invoking."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":666,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.version","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.version","product":"core","slug":"io-github-libtmux-server-server-version"},{"id":"io.github.libtmux.Server.Server.identity","name":"identity","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public ServerIdentity identity()","params":[],"returns":"ServerIdentity","typeScopeBoundary":false}],"doc":{"summary":"Which server this is. Every handle taken from it is scoped by this."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":678,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.identity","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.identity","product":"core","slug":"io-github-libtmux-server-server-identity"},{"id":"io.github.libtmux.Server.Server.requireSameServer","name":"requireSameServer","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"void requireSameServer(Server other)","params":[{"name":"other","type":"Server"}],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":683,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.requireSameServer","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.requireSameServer","product":"core","slug":"io-github-libtmux-server-server-requiresameserver"},{"id":"io.github.libtmux.Server.Server.requireSameIncarnation","name":"requireSameIncarnation","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"void requireSameIncarnation(ServerSnapshot snapshot, Server other, ServerSnapshot otherSnapshot)","params":[{"name":"snapshot","type":"ServerSnapshot"},{"name":"other","type":"Server"},{"name":"otherSnapshot","type":"ServerSnapshot"}],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":687,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.requireSameIncarnation","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.requireSameIncarnation","product":"core","slug":"io-github-libtmux-server-server-requiresameincarnation"},{"id":"io.github.libtmux.Server.Server.open","name":"open","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.LIFECYCLE)\n public static Server open(ServerConfig config)","params":[{"name":"config","type":"ServerConfig"}],"returns":"Server","typeScopeBoundary":true}],"doc":{"summary":"A server over a transport it owns and closes.","examples":[{"lang":"console","intro":"Connect to a private tmux server. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/build.gradle.kts","code":"plugins {\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"java","intro":"Save this complete program as src/main/java/Connect.java. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/java/io/github/libtmux/examples/api/java/Connect.java","code":"package io.github.libtmux.examples.api.java;\n\nimport io.github.libtmux.Server;\nimport io.github.libtmux.ServerConfig;\nimport io.github.libtmux.ServerEndpoint;\nimport java.nio.file.Path;\n\n/** Connect to a private tmux server. */\npublic final class Connect {\n private Connect() {}\n\n public static void main(String[] args) {\n try {\n if (args.length != 3) {\n throw new IllegalArgumentException(\"expected: tmux-binary socket-path config-file\");\n }\n var config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build();\n try (Server server = Server.open(config)) {\n System.out.println(\"connected=\" + server.isAlive());\n }\n } catch (Exception error) {\n if (error instanceof InterruptedException) Thread.currentThread().interrupt();\n System.err.println(\"Example failed: \" + error.getMessage());\n System.exit(1);\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.java.Connect && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"connected=true\n"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":696,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.open","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.open","product":"core","slug":"io-github-libtmux-server-server-open"},{"id":"io.github.libtmux.Server.Server.using","name":"using","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.LIFECYCLE)\n public static Server using(ServerConfig config, TmuxTransport transport)","params":[{"name":"config","type":"ServerConfig"},{"name":"transport","type":"TmuxTransport"}],"returns":"Server","typeScopeBoundary":true}],"doc":{"summary":"A server over a transport the caller owns. Closing this server never closes it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":705,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.using","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.using","product":"core","slug":"io-github-libtmux-server-server-using"},{"id":"io.github.libtmux.Server.Server.within","name":"within","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.LIFECYCLE)\n public Server within(Duration timeout)","params":[{"name":"timeout","type":"Duration"}],"returns":"Server","typeScopeBoundary":false,"raises":[{"type":"IllegalArgumentException","doc":"if the timeout is not positive"}]}],"doc":{"summary":"This server, with every command bounded by a deadline of the caller's choosing.","body":"The per-call deadline. Every read and change made through the result, and through every\nhandle taken from it, gives tmux this long rather than the server's default:\n\nShares this server's transport, so it has the same identity and its handles compare equal\nto this server's; closing it releases nothing. {@link #toBuilder} is not how to spell this: a\nserver that owns its transport hands a derived server a transport of its own, which a caller\nbounding many calls would multiply.","examples":[{"lang":"java","code":"List screen = server.within(Duration.ofMillis(500)).panes().get(0).capture();"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":737,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.within","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.within","product":"core","slug":"io-github-libtmux-server-server-within"},{"id":"io.github.libtmux.Server.Server.builder","name":"builder","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.LIFECYCLE)\n public static Builder builder()","params":[],"returns":"Builder","typeScopeBoundary":true}],"doc":{"summary":"A builder holding the documented defaults."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":747,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.builder","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.builder","product":"core","slug":"io-github-libtmux-server-server-builder-3ftd"},{"id":"io.github.libtmux.Server.Server.config","name":"config","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public ServerConfig config()","params":[],"returns":"ServerConfig","typeScopeBoundary":false}],"doc":{"summary":"How this server was configured."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":753,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.config","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.config","product":"core","slug":"io-github-libtmux-server-server-config"},{"id":"io.github.libtmux.Server.Server.cmd","name":"cmd","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public CommandResult cmd(String... argv)","params":[{"name":"argv","type":"String","variadic":"positional","doc":"the tmux command and its arguments, each already a separate element"}],"returns":"CommandResult","typeScopeBoundary":false,"returnsDoc":"the result, in which a nonzero exit is data rather than a failure"},{"raw":"@Operation(Kind.MUTATION)\n public CommandResult cmd(List argv)","params":[{"name":"argv","type":"List"}],"returns":"CommandResult","typeScopeBoundary":false},{"raw":"@Operation(Kind.MUTATION)\n public CommandResult cmd(List argv, Duration timeout)","params":[{"name":"argv","type":"List"},{"name":"timeout","type":"Duration"}],"returns":"CommandResult","typeScopeBoundary":false}],"doc":{"summary":"Runs one tmux command against this server."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":764,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.cmd","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.cmd","product":"core","slug":"io-github-libtmux-server-server-cmd"},{"id":"io.github.libtmux.Server.Server.control","name":"control","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.LIFECYCLE)\n public ControlClient control(Session session)","params":[{"name":"session","type":"Session","doc":"a session captured from this server"}],"returns":"ControlClient","typeScopeBoundary":false,"raises":[{"type":"TargetGoneException","doc":"if that process is no longer the one on this socket"},{"type":"IllegalArgumentException","doc":"if the session belongs to another server"},{"type":"IllegalStateException","doc":"if this server is closed, or its transport starts no control client"}]},{"raw":"@Operation(Kind.LIFECYCLE)\n public ControlClient control(Session session, Duration timeout)","params":[{"name":"session","type":"Session"},{"name":"timeout","type":"Duration","doc":"how long to wait for the client to become ready"}],"returns":"ControlClient","typeScopeBoundary":false}],"doc":{"summary":"Attaches a control client to this session's server, and only to the process this capture named.","body":"The client is started by this server's transport. A transport that cannot start processes\nfails here rather than attaching on the local machine. The process id is checked before the\nclient starts and again on the client itself; a server that has taken over the socket is\ndetached before this client changes it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":815,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.control","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.control","product":"core","slug":"io-github-libtmux-server-server-control"},{"id":"io.github.libtmux.Server.Server.snapshot","name":"snapshot","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.READ)\n public ServerSnapshot snapshot()","params":[],"returns":"ServerSnapshot","typeScopeBoundary":false,"raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if a listing otherwise fails or the listings cannot form one valid snapshot"}]}],"doc":{"summary":"Captures the whole hierarchy in at most four listings, retrying once if the server is replaced.","body":"One server-wide listing per kind of object, so ordering and membership stay tmux's decision\nrather than being re-derived from another listing's rows.\n\nA failed read throws, including when no daemon is running. An empty graph means a live\nserver successfully reported no sessions."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":875,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.snapshot","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.snapshot","product":"core","slug":"io-github-libtmux-server-server-snapshot"},{"id":"io.github.libtmux.Server.Server.sessions","name":"sessions","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public List sessions(FilterExpr expression)","params":[{"name":"expression","type":"FilterExpr"}],"returns":"List","typeScopeBoundary":false,"returnsDoc":"an immutable list in tmux order","raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if the capture otherwise fails"}]},{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public List sessions()","params":[],"returns":"List","typeScopeBoundary":false,"raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if the capture otherwise fails"}]}],"doc":{"summary":"The sessions this expression matches, captured now.","body":"A safe expression is sent as {@code list-sessions -f}. The sessions that come back are still\ntested with the expression. A relation, or an expression tmux cannot apply, reads the whole server and\nfilters that capture; a filtered read that finds nothing is the answer.","examples":[{"lang":"console","intro":"List the sessions returned by a server read. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/build.gradle.kts","code":"plugins {\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"java","intro":"Save this complete program as src/main/java/ListSessions.java. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/java/io/github/libtmux/examples/api/java/ListSessions.java","code":"package io.github.libtmux.examples.api.java;\n\nimport io.github.libtmux.Server;\nimport io.github.libtmux.ServerConfig;\nimport io.github.libtmux.ServerEndpoint;\nimport java.nio.file.Path;\nimport java.util.stream.Collectors;\n\n/** List the sessions returned by a server read. */\npublic final class ListSessions {\n private ListSessions() {}\n\n public static void main(String[] args) {\n try {\n if (args.length != 3) {\n throw new IllegalArgumentException(\"expected: tmux-binary socket-path config-file\");\n }\n var config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build();\n try (Server server = Server.open(config)) {\n System.out.println(\"sessions=\"\n + server.sessions().stream()\n .map(session -> session.name())\n .sorted()\n .collect(Collectors.joining(\",\")));\n }\n } catch (Exception error) {\n if (error instanceof InterruptedException) Thread.currentThread().interrupt();\n System.err.println(\"Example failed: \" + error.getMessage());\n System.exit(1);\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.java.ListSessions && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"sessions=work-one,work-two\n"},{"lang":"console","intro":"Select sessions with a typed name filter. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/build.gradle.kts","code":"plugins {\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"java","intro":"Save this complete program as src/main/java/Query.java. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/java/io/github/libtmux/examples/api/java/Query.java","code":"package io.github.libtmux.examples.api.java;\n\nimport io.github.libtmux.Server;\nimport io.github.libtmux.ServerConfig;\nimport io.github.libtmux.ServerEndpoint;\nimport io.github.libtmux.Session_;\nimport java.nio.file.Path;\nimport java.util.stream.Collectors;\n\n/** Select sessions with a typed name filter. */\npublic final class Query {\n private Query() {}\n\n public static void main(String[] args) {\n try {\n if (args.length != 3) {\n throw new IllegalArgumentException(\"expected: tmux-binary socket-path config-file\");\n }\n var config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build();\n try (Server server = Server.open(config)) {\n var matches = server.sessions(Session_.name().is(\"work-one\"));\n System.out.println(\"matches=\"\n + matches.stream()\n .map(session -> session.name())\n .sorted()\n .collect(Collectors.joining(\",\")));\n }\n } catch (Exception error) {\n if (error instanceof InterruptedException) Thread.currentThread().interrupt();\n System.err.println(\"Example failed: \" + error.getMessage());\n System.exit(1);\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.java.Query && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"matches=work-one\n"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":901,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.sessions","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.sessions","product":"core","slug":"io-github-libtmux-server-server-sessions"},{"id":"io.github.libtmux.Server.Server.windows","name":"windows","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public List windows()","params":[],"returns":"List","typeScopeBoundary":false,"returnsDoc":"an immutable list in tmux order","raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if the capture otherwise fails"}]},{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public List windows(FilterExpr expression)","params":[{"name":"expression","type":"FilterExpr"}],"returns":"List","typeScopeBoundary":false,"returnsDoc":"an immutable list in tmux order","raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if the capture otherwise fails"}]},{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public List windows(WindowId id)","params":[{"name":"id","type":"WindowId"}],"returns":"List","typeScopeBoundary":false,"returnsDoc":"an immutable list in tmux order, empty if the window was not found","raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if the capture otherwise fails"}]}],"doc":{"summary":"Captures every winlink, preserving each session and index placement.","examples":[{"lang":"console","intro":"List all windows, then the windows captured for one session. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/build.gradle.kts","code":"plugins {\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"java","intro":"Save this complete program as src/main/java/ListWindows.java. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/java/io/github/libtmux/examples/api/java/ListWindows.java","code":"package io.github.libtmux.examples.api.java;\n\nimport io.github.libtmux.Server;\nimport io.github.libtmux.ServerConfig;\nimport io.github.libtmux.ServerEndpoint;\nimport java.nio.file.Path;\nimport java.util.stream.Collectors;\n\n/** List all windows, then the windows captured for one session. */\npublic final class ListWindows {\n private ListWindows() {}\n\n public static void main(String[] args) {\n try {\n if (args.length != 3) {\n throw new IllegalArgumentException(\"expected: tmux-binary socket-path config-file\");\n }\n var config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build();\n try (Server server = Server.open(config)) {\n System.out.println(\"windows=\"\n + server.windows().stream()\n .map(window -> window.name())\n .sorted()\n .collect(Collectors.joining(\",\")));\n var session = server.session(\"work-one\").orElseThrow();\n System.out.println(\"session-windows=\"\n + session.windows().stream()\n .map(window -> window.name())\n .sorted()\n .collect(Collectors.joining(\",\")));\n }\n } catch (Exception error) {\n if (error instanceof InterruptedException) Thread.currentThread().interrupt();\n System.err.println(\"Example failed: \" + error.getMessage());\n System.exit(1);\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.java.ListWindows && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"windows=editor,editor,logs\nsession-windows=editor,logs\n"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":936,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.windows","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.windows","product":"core","slug":"io-github-libtmux-server-server-windows"},{"id":"io.github.libtmux.Server.Server.panes","name":"panes","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public List panes()","params":[],"returns":"List","typeScopeBoundary":false,"returnsDoc":"an immutable list in tmux order","raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if the capture otherwise fails"}]},{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public List panes(FilterExpr expression)","params":[{"name":"expression","type":"FilterExpr"}],"returns":"List","typeScopeBoundary":false,"returnsDoc":"an immutable list in tmux order","raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if the capture otherwise fails"}]}],"doc":{"summary":"Captures every pane on the server.","examples":[{"lang":"console","intro":"List all panes, then the panes captured for one window. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/build.gradle.kts","code":"plugins {\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"java","intro":"Save this complete program as src/main/java/ListPanes.java. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/java/io/github/libtmux/examples/api/java/ListPanes.java","code":"package io.github.libtmux.examples.api.java;\n\nimport io.github.libtmux.Server;\nimport io.github.libtmux.ServerConfig;\nimport io.github.libtmux.ServerEndpoint;\nimport java.nio.file.Path;\n\n/** List all panes, then the panes captured for one window. */\npublic final class ListPanes {\n private ListPanes() {}\n\n public static void main(String[] args) {\n try {\n if (args.length != 3) {\n throw new IllegalArgumentException(\"expected: tmux-binary socket-path config-file\");\n }\n var config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build();\n try (Server server = Server.open(config)) {\n System.out.println(\"panes=\" + server.panes().size());\n var session = server.session(\"work-one\").orElseThrow();\n var window = session.windows().stream()\n .filter(item -> item.name().equals(\"editor\"))\n .findFirst()\n .orElseThrow();\n System.out.println(\"window-panes=\" + window.panes().size());\n }\n } catch (Exception error) {\n if (error instanceof InterruptedException) Thread.currentThread().interrupt();\n System.err.println(\"Example failed: \" + error.getMessage());\n System.exit(1);\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.java.ListPanes && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"panes=4\nwindow-panes=2\n"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":974,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.panes","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.panes","product":"core","slug":"io-github-libtmux-server-server-panes"},{"id":"io.github.libtmux.Server.Server.session","name":"session","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.READ)\n public Optional session(FilterExpr expression)","params":[{"name":"expression","type":"FilterExpr"}],"returns":"Optional","typeScopeBoundary":false,"raises":[{"type":"CardinalityException.MultipleMatches","doc":"if more than one session matches; its count is exact, since the whole capture is in hand"},{"type":"ServerUnavailableException","doc":"if no daemon is running"}]},{"raw":"@Operation(Kind.READ)\n public Optional session(String name)","params":[{"name":"name","type":"String"}],"returns":"Optional","typeScopeBoundary":false,"raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if the capture otherwise fails"}]},{"raw":"@Operation(Kind.READ)\n public Optional session(SessionId id)","params":[{"name":"id","type":"SessionId"}],"returns":"Optional","typeScopeBoundary":false,"returnsDoc":"empty only when a successful capture contains no match","raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if the capture otherwise fails"}]}],"doc":{"summary":"The one session this expression matches, captured now, or empty when none does.","body":"Reads as {@link #sessions(FilterExpr)} does."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1014,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.session","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.session","product":"core","slug":"io-github-libtmux-server-server-session"},{"id":"io.github.libtmux.Server.Server.window","name":"window","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.READ)\n public Optional window(FilterExpr expression)","params":[{"name":"expression","type":"FilterExpr"}],"returns":"Optional","typeScopeBoundary":false,"raises":[{"type":"CardinalityException.MultipleMatches","doc":"if more than one link matches"},{"type":"ServerUnavailableException","doc":"if no daemon is running"}]},{"raw":"@Operation(Kind.READ)\n public Optional window(WindowContext context)","params":[{"name":"context","type":"WindowContext"}],"returns":"Optional","typeScopeBoundary":false,"returnsDoc":"empty only when a successful capture contains no match","raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if the capture otherwise fails"}]}],"doc":{"summary":"The one window link this expression matches, captured now, or empty when none does.","body":"Reads as {@link #windows(FilterExpr)} does. A window linked into two sessions is two links,\nso an expression naming it matches twice."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1028,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.window","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.window","product":"core","slug":"io-github-libtmux-server-server-window"},{"id":"io.github.libtmux.Server.Server.pane","name":"pane","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.READ)\n public Optional pane(FilterExpr expression)","params":[{"name":"expression","type":"FilterExpr"}],"returns":"Optional","typeScopeBoundary":false,"raises":[{"type":"CardinalityException.MultipleMatches","doc":"if more than one pane matches"},{"type":"ServerUnavailableException","doc":"if no daemon is running"}]},{"raw":"@Operation(Kind.READ)\n public Optional pane(PaneId id)","params":[{"name":"id","type":"PaneId"}],"returns":"Optional","typeScopeBoundary":false,"returnsDoc":"empty only when a successful capture contains no match","raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if the capture otherwise fails"}]}],"doc":{"summary":"The one pane this expression matches, captured now, or empty when none does.","body":"Reads as {@link #panes(FilterExpr)} does."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1041,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.pane","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.pane","product":"core","slug":"io-github-libtmux-server-server-pane"},{"id":"io.github.libtmux.Server.Server.admissionBound","name":"admissionBound","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public int admissionBound()","params":[],"returns":"int","typeScopeBoundary":false,"returnsDoc":"the bound, or {@link Integer#MAX_VALUE} for a transport that sets none"}],"doc":{"summary":"How many tmux commands this server's transport runs at once, from {@link ServerConfig#maxConcurrentCommands()} for a server {@link #open}ed here."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1064,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.admissionBound","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.admissionBound","product":"core","slug":"io-github-libtmux-server-server-admissionbound"},{"id":"io.github.libtmux.Server.Server.clients","name":"clients","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public List clients()","params":[],"returns":"List","typeScopeBoundary":false,"returnsDoc":"an immutable list in tmux order","raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if the capture otherwise fails"}]}],"doc":{"summary":"Captures every attached client."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1189,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.clients","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.clients","product":"core","slug":"io-github-libtmux-server-server-clients"},{"id":"io.github.libtmux.Server.Server.attachedSessions","name":"attachedSessions","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public List attachedSessions()","params":[],"returns":"List","typeScopeBoundary":false,"returnsDoc":"an immutable list in tmux order","raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if the capture otherwise fails"}]}],"doc":{"summary":"Captures every session a client is attached to."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1205,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.attachedSessions","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.attachedSessions","product":"core","slug":"io-github-libtmux-server-server-attachedsessions"},{"id":"io.github.libtmux.Server.Server.run","name":"run","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public CommandResult run(List argv)","params":[{"name":"argv","type":"List"}],"returns":"CommandResult","typeScopeBoundary":false,"raises":[{"type":"LibTmuxException","doc":"if tmux reported a nonzero exit"}]}],"doc":{"summary":"Runs a command that is expected to work, and raises when it did not.","body":"The counterpart to {@link #cmd}: use this when a nonzero exit means the thing you asked for\ndid not happen, and {@code cmd} when a nonzero exit is an answer you want to inspect. tmux\nreports an ordinary miss and a real problem the same way, so only the caller knows which it is."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1220,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.run","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.run","product":"core","slug":"io-github-libtmux-server-server-run"},{"id":"io.github.libtmux.Server.Server.runTogether","name":"runTogether","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"CommandResult runTogether(ServerSnapshot snapshot, List> commands)","params":[{"name":"snapshot","type":"ServerSnapshot"},{"name":"commands","type":"List>"}],"returns":"CommandResult","typeScopeBoundary":false},{"raw":"CommandResult runTogether(ServerSnapshot snapshot, String input, List> commands)","params":[{"name":"snapshot","type":"ServerSnapshot"},{"name":"input","type":"String"},{"name":"commands","type":"List>"}],"returns":"CommandResult","typeScopeBoundary":false}],"doc":{"summary":"Runs several commands in one invocation, so nothing of this caller's happens between them.","body":"tmux carries a group to its server as one message and runs it there, so a caller that stops\npartway cannot leave the group half applied. That is what an operation whose second command\ncleans up after its first needs."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1265,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.runTogether","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.runTogether","product":"core","slug":"io-github-libtmux-server-server-runtogether"},{"id":"io.github.libtmux.Server.Server.refresh","name":"refresh","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"ServerSnapshot refresh(ServerSnapshot previous)","params":[{"name":"previous","type":"ServerSnapshot"}],"returns":"ServerSnapshot","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1284,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.refresh","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.refresh","product":"core","slug":"io-github-libtmux-server-server-refresh"},{"id":"io.github.libtmux.Server.Server.toBuilder","name":"toBuilder","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Builder toBuilder()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"A builder holding every configuration and ownership choice this server made."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1293,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.toBuilder","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.toBuilder","product":"core","slug":"io-github-libtmux-server-server-tobuilder"},{"id":"io.github.libtmux.Server.Server.close","name":"close","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.LIFECYCLE)\n @Override\n public void close()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Releases an owned transport. Idempotent, and never kills tmux."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1300,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.close","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.close","product":"core","slug":"io-github-libtmux-server-server-close"},{"id":"io.github.libtmux.Server.Server.Builder","name":"Builder","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.Server.Server","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Collects configuration and the ownership choice, then builds a server."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1312,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.Builder","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.Builder","product":"core","slug":"io-github-libtmux-server-server-builder-dv7l"},{"id":"io.github.libtmux.Server.Server.Builder.binary","name":"binary","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server.Builder","signatures":[{"raw":"public Builder binary(String binary)","params":[{"name":"binary","type":"String"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Sets the tmux executable."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1323,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.Builder.binary","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.Builder.binary","product":"core","slug":"io-github-libtmux-server-server-builder-binary"},{"id":"io.github.libtmux.Server.Server.Builder.endpoint","name":"endpoint","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server.Builder","signatures":[{"raw":"public Builder endpoint(ServerEndpoint endpoint)","params":[{"name":"endpoint","type":"ServerEndpoint"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Sets which server to talk to."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1329,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.Builder.endpoint","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.Builder.endpoint","product":"core","slug":"io-github-libtmux-server-server-builder-endpoint"},{"id":"io.github.libtmux.Server.Server.Builder.configFile","name":"configFile","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server.Builder","signatures":[{"raw":"public Builder configFile(Path configFile)","params":[{"name":"configFile","type":"Path"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Pins the config file tmux reads."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1335,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.Builder.configFile","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.Builder.configFile","product":"core","slug":"io-github-libtmux-server-server-builder-configfile"},{"id":"io.github.libtmux.Server.Server.Builder.defaultTimeout","name":"defaultTimeout","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server.Builder","signatures":[{"raw":"public Builder defaultTimeout(Duration defaultTimeout)","params":[{"name":"defaultTimeout","type":"Duration"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Sets the deadline a request gets when the caller does not supply one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1341,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.Builder.defaultTimeout","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.Builder.defaultTimeout","product":"core","slug":"io-github-libtmux-server-server-builder-defaulttimeout"},{"id":"io.github.libtmux.Server.Server.Builder.force256Colors","name":"force256Colors","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server.Builder","signatures":[{"raw":"public Builder force256Colors(boolean force256Colors)","params":[{"name":"force256Colors","type":"boolean"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Forces 256-color client support; false preserves terminal detection."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1347,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.Builder.force256Colors","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.Builder.force256Colors","product":"core","slug":"io-github-libtmux-server-server-builder-force256colors"},{"id":"io.github.libtmux.Server.Server.Builder.transport","name":"transport","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server.Builder","signatures":[{"raw":"public Builder transport(TmuxTransport transport)","params":[{"name":"transport","type":"TmuxTransport"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Borrows a caller-owned transport, which the built server will never close."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1353,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.Builder.transport","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.Builder.transport","product":"core","slug":"io-github-libtmux-server-server-builder-transport"},{"id":"io.github.libtmux.Server.Server.Builder.build","name":"build","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server.Builder","signatures":[{"raw":"public Server build()","params":[],"returns":"Server","typeScopeBoundary":false}],"doc":{"summary":"Builds the server, owning a new transport unless one was borrowed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1359,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.Builder.build","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.Builder.build","product":"core","slug":"io-github-libtmux-server-server-builder-build"},{"id":"io.github.libtmux.ServerConfig.ServerConfig","name":"ServerConfig","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"What a server needs to know before it runs anything: which tmux, which server, which config.","body":"Deliberately a builder-built class rather than a record. tmux keeps growing flags, and a\nrecord's canonical constructor is public API: every field added later would break both source and\nbinary compatibility for anyone who had constructed one.\n\nNothing here contacts tmux. A config can be built, stored and compared on a machine that has\nno tmux installed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.builder","name":"builder","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.ServerConfig.ServerConfig","signatures":[{"raw":"public static Builder builder()","params":[],"returns":"Builder","typeScopeBoundary":true}],"doc":{"summary":"A builder holding the documented defaults."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":50,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.builder","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.builder","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-builder-yotf"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.binary","name":"binary","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig","signatures":[{"raw":"public String binary()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The tmux executable, resolved on {@code PATH} unless it is an absolute path."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":55,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.binary","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.binary","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-binary"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.binaryPath","name":"binaryPath","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig","signatures":[{"raw":"public String binaryPath()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The binary as a path, resolved the way this process resolves it.","body":"What to write into a command a pane will run. A pane resolves a bare name against the\nuser's {@code PATH} rather than this process's, and a tmux client built from a different\nrelease than the server it reaches is dropped rather than served. Falls back to the name when\nnothing on {@code PATH} matches, which leaves the caller no worse off."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":67,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.binaryPath","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.binaryPath","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-binarypath"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.endpoint","name":"endpoint","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig","signatures":[{"raw":"public ServerEndpoint endpoint()","params":[],"returns":"ServerEndpoint","typeScopeBoundary":false}],"doc":{"summary":"Which tmux server to talk to."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":88,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.endpoint","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.endpoint","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-endpoint"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.configFile","name":"configFile","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig","signatures":[{"raw":"public Optional configFile()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The config file tmux should read, if the caller pinned one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":93,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.configFile","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.configFile","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-configfile"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.defaultTimeout","name":"defaultTimeout","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig","signatures":[{"raw":"public Duration defaultTimeout()","params":[],"returns":"Duration","typeScopeBoundary":false}],"doc":{"summary":"How long a request waits when the caller does not say."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":98,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.defaultTimeout","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.defaultTimeout","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-defaulttimeout"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.force256Colors","name":"force256Colors","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig","signatures":[{"raw":"public boolean force256Colors()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether tmux clients advertise 256-color support regardless of terminal detection."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":103,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.force256Colors","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.force256Colors","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-force256colors"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.observer","name":"observer","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig","signatures":[{"raw":"public OperationObserver observer()","params":[],"returns":"OperationObserver","typeScopeBoundary":false}],"doc":{"summary":"Where each command's report goes. {@link OperationObserver#NONE} until a caller sets one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":108,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.observer","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.observer","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-observer"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.endpointCommand","name":"endpointCommand","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig","signatures":[{"raw":"@ReadOnly\n public List endpointCommand()","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"The argv prefix every command on this server begins with: the binary, {@code -u}, optional color flag, the server selection, and the config file if one was pinned.","body":"{@code -u} says this client reads UTF-8. Without it tmux decides from {@code LC_ALL},\n{@code LC_CTYPE} and {@code LANG}, and a client it judges not to be UTF-8 has every non-ASCII\ncharacter in every reply replaced with {@code _} before it is sent — so a session named\n{@code café} reads back as {@code caf_}, and a pane's directory becomes a path that does not\nexist. The flag is in tmux's option string on every supported release.\n\nDeliberately the flag rather than {@code LC_ALL} in the child's environment, which would\nreach the same conclusion and then be inherited by every pane the server spawns from this\nclient."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":126,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.endpointCommand","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.endpointCommand","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-endpointcommand"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.maxConcurrentCommands","name":"maxConcurrentCommands","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig","signatures":[{"raw":"public int maxConcurrentCommands()","params":[],"returns":"int","typeScopeBoundary":false}],"doc":{"summary":"How many tmux commands {@link Server#open} lets run at once; more wait their turn.","body":"A coroutine dispatcher or effect pool that runs blocking calls for this server gains nothing\nfrom more threads than this: the rest would only wait for admission."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":146,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.maxConcurrentCommands","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.maxConcurrentCommands","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-maxconcurrentcommands"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.toBuilder","name":"toBuilder","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig","signatures":[{"raw":"public Builder toBuilder()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"A builder holding every choice this config made."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":151,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.toBuilder","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.toBuilder","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-tobuilder"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.Builder","name":"Builder","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.ServerConfig.ServerConfig","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Collects the choices; {@link #build()} checks them."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":164,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.Builder","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.Builder","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-builder-ly8z"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.Builder.binary","name":"binary","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig.Builder","signatures":[{"raw":"public Builder binary(String binary)","params":[{"name":"binary","type":"String"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Sets the tmux executable."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":177,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.Builder.binary","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.Builder.binary","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-builder-binary"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.Builder.endpoint","name":"endpoint","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig.Builder","signatures":[{"raw":"public Builder endpoint(ServerEndpoint endpoint)","params":[{"name":"endpoint","type":"ServerEndpoint"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Sets which server to talk to."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":183,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.Builder.endpoint","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.Builder.endpoint","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-builder-endpoint"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.Builder.configFile","name":"configFile","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig.Builder","signatures":[{"raw":"public Builder configFile(Path configFile)","params":[{"name":"configFile","type":"Path"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Pins the config file tmux reads, which is how a test isolates itself from a user's own."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":189,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.Builder.configFile","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.Builder.configFile","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-builder-configfile"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.Builder.defaultTimeout","name":"defaultTimeout","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig.Builder","signatures":[{"raw":"public Builder defaultTimeout(Duration defaultTimeout)","params":[{"name":"defaultTimeout","type":"Duration"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Sets the deadline a request gets when the caller does not supply one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":195,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.Builder.defaultTimeout","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.Builder.defaultTimeout","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-builder-defaulttimeout"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.Builder.force256Colors","name":"force256Colors","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig.Builder","signatures":[{"raw":"public Builder force256Colors(boolean force256Colors)","params":[{"name":"force256Colors","type":"boolean"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Forces 256-color client support with tmux's {@code -2}; false uses terminal detection."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":201,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.Builder.force256Colors","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.Builder.force256Colors","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-builder-force256colors"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.Builder.observer","name":"observer","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig.Builder","signatures":[{"raw":"public Builder observer(OperationObserver observer)","params":[{"name":"observer","type":"OperationObserver"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Receives a report after each command. The report names verbs, not arguments."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":207,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.Builder.observer","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.Builder.observer","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-builder-observer"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.Builder.maxConcurrentCommands","name":"maxConcurrentCommands","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig.Builder","signatures":[{"raw":"public Builder maxConcurrentCommands(int maxConcurrentCommands)","params":[{"name":"maxConcurrentCommands","type":"int"}],"returns":"Builder","typeScopeBoundary":false,"raises":[{"type":"IllegalArgumentException","doc":"if {@code maxConcurrentCommands} is not positive"}]}],"doc":{"summary":"Sets how many tmux commands {@link Server#open} lets run at once, four unless set."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":217,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.Builder.maxConcurrentCommands","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.Builder.maxConcurrentCommands","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-builder-maxconcurrentcommands"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.Builder.build","name":"build","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig.Builder","signatures":[{"raw":"public ServerConfig build()","params":[],"returns":"ServerConfig","typeScopeBoundary":false,"raises":[{"type":"IllegalArgumentException","doc":"if a choice would only fail later"}]}],"doc":{"summary":"Builds an immutable config, rejecting choices that could only fail later."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":230,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.Builder.build","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.Builder.build","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-builder-build"},{"id":"io.github.libtmux.ServerEndpoint.ServerEndpoint","name":"ServerEndpoint","kind":"interface","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Which tmux server to talk to.","body":"A value, decided and comparable before any process runs. Two endpoints are equal when they name\nthe same server lexically; nothing here resolves symlinks, contacts the filesystem, or opens a\nsocket. That matters because an endpoint is routinely built, logged and compared while the socket\nit names does not exist yet.\n\nValidation that needs tmux — above all whether a socket path fits the platform's\n{@code sun_path} — happens at dispatch, where the error can carry the command that hit it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerEndpoint.java","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerEndpoint","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerEndpoint.ServerEndpoint","product":"core","slug":"io-github-libtmux-serverendpoint-serverendpoint"},{"id":"io.github.libtmux.ServerEndpoint.ServerEndpoint.flags","name":"flags","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerEndpoint.ServerEndpoint","signatures":[{"raw":"@ReadOnly\n List flags();","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"The flags that select this server, in argv order."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerEndpoint.java","line":22,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerEndpoint.flags","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerEndpoint.ServerEndpoint.flags","product":"core","slug":"io-github-libtmux-serverendpoint-serverendpoint-flags"},{"id":"io.github.libtmux.ServerEndpoint.ServerEndpoint.defaultSocket","name":"defaultSocket","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.ServerEndpoint.ServerEndpoint","signatures":[{"raw":"static ServerEndpoint defaultSocket()","params":[],"returns":"ServerEndpoint","typeScopeBoundary":true}],"doc":{"summary":"tmux's own default server, wherever tmux decides that is."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerEndpoint.java","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerEndpoint.defaultSocket","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerEndpoint.ServerEndpoint.defaultSocket","product":"core","slug":"io-github-libtmux-serverendpoint-serverendpoint-defaultsocket"},{"id":"io.github.libtmux.ServerEndpoint.ServerEndpoint.namedSocket","name":"namedSocket","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.ServerEndpoint.ServerEndpoint","signatures":[{"raw":"static ServerEndpoint namedSocket(String name)","params":[{"name":"name","type":"String"}],"returns":"ServerEndpoint","typeScopeBoundary":true}],"doc":{"summary":"A server named with {@code -L}, resolved by tmux under its own socket directory."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerEndpoint.java","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerEndpoint.namedSocket","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerEndpoint.ServerEndpoint.namedSocket","product":"core","slug":"io-github-libtmux-serverendpoint-serverendpoint-namedsocket-uymy"},{"id":"io.github.libtmux.ServerEndpoint.ServerEndpoint.socketPath","name":"socketPath","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.ServerEndpoint.ServerEndpoint","signatures":[{"raw":"static ServerEndpoint socketPath(Path path)","params":[{"name":"path","type":"Path"}],"returns":"ServerEndpoint","typeScopeBoundary":true}],"doc":{"summary":"A server at an exact socket path, selected with {@code -S}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerEndpoint.java","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerEndpoint.socketPath","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerEndpoint.ServerEndpoint.socketPath","product":"core","slug":"io-github-libtmux-serverendpoint-serverendpoint-socketpath-l4dk"},{"id":"io.github.libtmux.ServerEndpoint.ServerEndpoint.Default","name":"Default","kind":"class","modifiers":[],"parent":"io.github.libtmux.ServerEndpoint.ServerEndpoint","signatures":[{"raw":"record Default() implements ServerEndpoint","params":[]}],"typeScopeBoundary":true,"doc":{"summary":"Adds no flags, so tmux applies its own default socket resolution."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerEndpoint.java","line":41,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerEndpoint.Default","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerEndpoint.ServerEndpoint.Default","product":"core","slug":"io-github-libtmux-serverendpoint-serverendpoint-default"},{"id":"io.github.libtmux.ServerEndpoint.ServerEndpoint.Default.flags","name":"flags","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerEndpoint.ServerEndpoint.Default","signatures":[{"raw":"@Override\n @ReadOnly\n public List flags()","params":[],"returns":"List","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerEndpoint.java","line":42,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerEndpoint.Default.flags","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerEndpoint.ServerEndpoint.Default.flags","product":"core","slug":"io-github-libtmux-serverendpoint-serverendpoint-default-flags"},{"id":"io.github.libtmux.ServerEndpoint.ServerEndpoint.NamedSocket","name":"NamedSocket","kind":"class","modifiers":[],"parent":"io.github.libtmux.ServerEndpoint.ServerEndpoint","signatures":[{"raw":"record NamedSocket(String name) implements ServerEndpoint","params":[{"name":"name","type":"String","doc":"a bare name, with no path separator"}]}],"typeScopeBoundary":true,"doc":{"summary":"A server tmux locates by name under its own socket directory."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerEndpoint.java","line":54,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerEndpoint.NamedSocket","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerEndpoint.ServerEndpoint.NamedSocket","product":"core","slug":"io-github-libtmux-serverendpoint-serverendpoint-namedsocket-1lu0"},{"id":"io.github.libtmux.ServerEndpoint.ServerEndpoint.NamedSocket.flags","name":"flags","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerEndpoint.ServerEndpoint.NamedSocket","signatures":[{"raw":"@Override\n @ReadOnly\n public List flags()","params":[],"returns":"List","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerEndpoint.java","line":68,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerEndpoint.NamedSocket.flags","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerEndpoint.ServerEndpoint.NamedSocket.flags","product":"core","slug":"io-github-libtmux-serverendpoint-serverendpoint-namedsocket-flags"},{"id":"io.github.libtmux.ServerEndpoint.ServerEndpoint.NamedSocket.name","name":"name","kind":"method","parent":"io.github.libtmux.ServerEndpoint.ServerEndpoint.NamedSocket","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"a bare name, with no path separator"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerEndpoint.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerEndpoint.NamedSocket.name","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerEndpoint.ServerEndpoint.NamedSocket.name","product":"core","slug":"io-github-libtmux-serverendpoint-serverendpoint-namedsocket-name"},{"id":"io.github.libtmux.ServerEndpoint.ServerEndpoint.SocketPath","name":"SocketPath","kind":"class","modifiers":[],"parent":"io.github.libtmux.ServerEndpoint.ServerEndpoint","signatures":[{"raw":"record SocketPath(Path path) implements ServerEndpoint","params":[{"name":"path","type":"Path","doc":"the socket path, anchored and lexically normalized so equal sockets compare equal"}]}],"typeScopeBoundary":true,"doc":{"summary":"A server at an exact socket path."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerEndpoint.java","line":80,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerEndpoint.SocketPath","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerEndpoint.ServerEndpoint.SocketPath","product":"core","slug":"io-github-libtmux-serverendpoint-serverendpoint-socketpath-1obc"},{"id":"io.github.libtmux.ServerEndpoint.ServerEndpoint.SocketPath.flags","name":"flags","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerEndpoint.ServerEndpoint.SocketPath","signatures":[{"raw":"@Override\n @ReadOnly\n public List flags()","params":[],"returns":"List","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerEndpoint.java","line":90,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerEndpoint.SocketPath.flags","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerEndpoint.ServerEndpoint.SocketPath.flags","product":"core","slug":"io-github-libtmux-serverendpoint-serverendpoint-socketpath-flags"},{"id":"io.github.libtmux.ServerEndpoint.ServerEndpoint.SocketPath.path","name":"path","kind":"method","parent":"io.github.libtmux.ServerEndpoint.ServerEndpoint.SocketPath","modifiers":[],"signatures":[{"params":[],"returns":"Path"}],"doc":{"summary":"the socket path, anchored and lexically normalized so equal sockets compare equal"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerEndpoint.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerEndpoint.SocketPath.path","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerEndpoint.ServerEndpoint.SocketPath.path","product":"core","slug":"io-github-libtmux-serverendpoint-serverendpoint-socketpath-path"},{"id":"io.github.libtmux.ServerIdentity.ServerIdentity","name":"ServerIdentity","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Which tmux server a handle belongs to.","body":"Two entities with the same id are the same entity only if they came from the same server. The\nrealm exists because socket text alone is not enough: two unrelated execution realms — a local\nprocess and a container, say — can both hold a server at {@code /tmp/s}, and entities from them\nmust not compare equal.\n\nThe server is identified by a digest of its endpoint rather than by the endpoint itself, so an\nidentity can be logged, compared and embedded in a message without carrying a socket path."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerIdentity.java","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerIdentity","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerIdentity.ServerIdentity","product":"core","slug":"io-github-libtmux-serveridentity-serveridentity"},{"id":"io.github.libtmux.ServerIdentity.ServerIdentity.of","name":"of","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.ServerIdentity.ServerIdentity","signatures":[{"raw":"static ServerIdentity of(String realm, ServerEndpoint endpoint)","params":[{"name":"realm","type":"String"},{"name":"endpoint","type":"ServerEndpoint"}],"returns":"ServerIdentity","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerIdentity.java","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerIdentity.of","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerIdentity.ServerIdentity.of","product":"core","slug":"io-github-libtmux-serveridentity-serveridentity-of"},{"id":"io.github.libtmux.ServerIdentity.ServerIdentity.at","name":"at","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerIdentity.ServerIdentity","signatures":[{"raw":"ServerIdentity at(long pid, OptionalLong startTime)","params":[{"name":"pid","type":"long"},{"name":"startTime","type":"OptionalLong"}],"returns":"ServerIdentity","typeScopeBoundary":false}],"doc":{"summary":"This server as one process: a pid alone can be reused, so its start time is part of it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerIdentity.java","line":41,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerIdentity.at","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerIdentity.ServerIdentity.at","product":"core","slug":"io-github-libtmux-serveridentity-serveridentity-at"},{"id":"io.github.libtmux.ServerIdentity.ServerIdentity.realm","name":"realm","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerIdentity.ServerIdentity","signatures":[{"raw":"public String realm()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The execution realm the transport reaches tmux through."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerIdentity.java","line":49,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerIdentity.realm","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerIdentity.ServerIdentity.realm","product":"core","slug":"io-github-libtmux-serveridentity-serveridentity-realm"},{"id":"io.github.libtmux.ServerIdentity.ServerIdentity.server","name":"server","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerIdentity.ServerIdentity","signatures":[{"raw":"public String server()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"A stable opaque key for the server, carrying no socket path."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerIdentity.java","line":54,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerIdentity.server","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerIdentity.ServerIdentity.server","product":"core","slug":"io-github-libtmux-serveridentity-serveridentity-server"},{"id":"io.github.libtmux.ServerIdentity.ServerIdentity.processId","name":"processId","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerIdentity.ServerIdentity","signatures":[{"raw":"public OptionalLong processId()","params":[],"returns":"OptionalLong","typeScopeBoundary":false}],"doc":{"summary":"The live tmux process, present on an identity bound to a captured handle."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerIdentity.java","line":59,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerIdentity.processId","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerIdentity.ServerIdentity.processId","product":"core","slug":"io-github-libtmux-serveridentity-serveridentity-processid"},{"id":"io.github.libtmux.ServerIdentity.ServerIdentity.equals","name":"equals","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerIdentity.ServerIdentity","signatures":[{"raw":"@Override\n public boolean equals(Object other)","params":[{"name":"other","type":"Object"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerIdentity.java","line":63,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerIdentity.equals","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerIdentity.ServerIdentity.equals","product":"core","slug":"io-github-libtmux-serveridentity-serveridentity-equals"},{"id":"io.github.libtmux.ServerIdentity.ServerIdentity.hashCode","name":"hashCode","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerIdentity.ServerIdentity","signatures":[{"raw":"@Override\n public int hashCode()","params":[],"returns":"int","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerIdentity.java","line":72,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerIdentity.hashCode","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerIdentity.ServerIdentity.hashCode","product":"core","slug":"io-github-libtmux-serveridentity-serveridentity-hashcode"},{"id":"io.github.libtmux.ServerIdentity.ServerIdentity.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerIdentity.ServerIdentity","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerIdentity.java","line":77,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerIdentity.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerIdentity.ServerIdentity.toString","product":"core","slug":"io-github-libtmux-serveridentity-serveridentity-tostring"},{"id":"io.github.libtmux.Session.Session","name":"Session","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"One tmux session, as one capture saw it.","body":"Identity is the server and the session id. A name is state: a user can rename a session at any\ntime, and a handle whose equality included the name would stop matching itself the moment they\ndid.\n\n{@link #windows()} reads the capture this handle came from and issues no command. To see newer\nstate, take a new capture.\n\nA method named for a captured field returns what {@link #info()} holds and does no I/O;\n{@link #refresh()} reads again. Every other method asks tmux now."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session","product":"core","slug":"io-github-libtmux-session-session"},{"id":"io.github.libtmux.Session.Session.Session","name":"Session","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"Session(Server server, ServerSnapshot snapshot, SessionState state)","params":[{"name":"server","type":"Server"},{"name":"snapshot","type":"ServerSnapshot"},{"name":"state","type":"SessionState"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":40,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.Session","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.Session","product":"core","slug":"io-github-libtmux-session-session-session"},{"id":"io.github.libtmux.Session.Session.info","name":"info","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public SessionState info()","params":[],"returns":"SessionState","typeScopeBoundary":false}],"doc":{"summary":"The fields this capture stored. A later rename is not visible here."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.info","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.info","product":"core","slug":"io-github-libtmux-session-session-info"},{"id":"io.github.libtmux.Session.Session.id","name":"id","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public SessionId id()","params":[],"returns":"SessionId","typeScopeBoundary":false}],"doc":{"summary":"The session's stable id."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":53,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.id","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.id","product":"core","slug":"io-github-libtmux-session-session-id"},{"id":"io.github.libtmux.Session.Session.name","name":"name","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public String name()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The session name, which a user may change at any time."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":59,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.name","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.name","product":"core","slug":"io-github-libtmux-session-session-name"},{"id":"io.github.libtmux.Session.Session.attached","name":"attached","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public boolean attached()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether a client was attached when this was captured."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":65,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.attached","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.attached","product":"core","slug":"io-github-libtmux-session-session-attached"},{"id":"io.github.libtmux.Session.Session.server","name":"server","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Server server()","params":[],"returns":"Server","typeScopeBoundary":false}],"doc":{"summary":"The server this session lives on."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":71,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.server","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.server","product":"core","slug":"io-github-libtmux-session-session-server"},{"id":"io.github.libtmux.Session.Session.snapshot","name":"snapshot","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"ServerSnapshot snapshot()","params":[],"returns":"ServerSnapshot","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":76,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.snapshot","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.snapshot","product":"core","slug":"io-github-libtmux-session-session-snapshot"},{"id":"io.github.libtmux.Session.Session.activeWindow","name":"activeWindow","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Optional activeWindow()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The window tmux had active in this session. A pure read of the capture."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":81,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.activeWindow","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.activeWindow","product":"core","slug":"io-github-libtmux-session-session-activewindow"},{"id":"io.github.libtmux.Session.Session.activePane","name":"activePane","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Optional activePane()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The active pane of the active window. A pure read of the capture."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":87,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.activePane","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.activePane","product":"core","slug":"io-github-libtmux-session-session-activepane"},{"id":"io.github.libtmux.Session.Session.selectWindow","name":"selectWindow","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void selectWindow(Window window)","params":[{"name":"window","type":"Window"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Makes a window of this session the active one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":93,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.selectWindow","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.selectWindow","product":"core","slug":"io-github-libtmux-session-session-selectwindow"},{"id":"io.github.libtmux.Session.Session.nextWindow","name":"nextWindow","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void nextWindow()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Moves to the next window in this session, wrapping at the end."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":110,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.nextWindow","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.nextWindow","product":"core","slug":"io-github-libtmux-session-session-nextwindow"},{"id":"io.github.libtmux.Session.Session.previousWindow","name":"previousWindow","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void previousWindow()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Moves to the previous window in this session, wrapping at the start."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":116,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.previousWindow","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.previousWindow","product":"core","slug":"io-github-libtmux-session-session-previouswindow"},{"id":"io.github.libtmux.Session.Session.lastWindow","name":"lastWindow","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void lastWindow()","params":[],"returns":"void","typeScopeBoundary":false,"raises":[{"type":"LibTmuxException","doc":"if nothing else has been active yet, which tmux reports rather than silently staying put"}]}],"doc":{"summary":"Returns to the window that was active before this one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":127,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.lastWindow","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.lastWindow","product":"core","slug":"io-github-libtmux-session-session-lastwindow"},{"id":"io.github.libtmux.Session.Session.detachClients","name":"detachClients","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void detachClients()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Detaches every client attached to this session, leaving the session running."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":133,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.detachClients","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.detachClients","product":"core","slug":"io-github-libtmux-session-session-detachclients"},{"id":"io.github.libtmux.Session.Session.options","name":"options","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Options options()","params":[],"returns":"Options","typeScopeBoundary":false}],"doc":{"summary":"This session's own options."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":139,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.options","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.options","product":"core","slug":"io-github-libtmux-session-session-options"},{"id":"io.github.libtmux.Session.Session.environment","name":"environment","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Environment environment()","params":[],"returns":"Environment","typeScopeBoundary":false}],"doc":{"summary":"This session's own environment, which a process started in it is given on top of the server's."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":148,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.environment","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.environment","product":"core","slug":"io-github-libtmux-session-session-environment"},{"id":"io.github.libtmux.Session.Session.hooks","name":"hooks","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Hooks hooks()","params":[],"returns":"Hooks","typeScopeBoundary":false}],"doc":{"summary":"This session's own hooks."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":154,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.hooks","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.hooks","product":"core","slug":"io-github-libtmux-session-session-hooks"},{"id":"io.github.libtmux.Session.Session.setHistoryLimit","name":"setHistoryLimit","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void setHistoryLimit(int lines)","params":[{"name":"lines","type":"int"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Sets the scrollback retained by panes created in this session."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":160,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.setHistoryLimit","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.setHistoryLimit","product":"core","slug":"io-github-libtmux-session-session-sethistorylimit"},{"id":"io.github.libtmux.Session.Session.windows","name":"windows","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.CAPTURED)\n public List windows()","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"This session's windows, in tmux's order. A pure read of the capture.","examples":[{"lang":"console","intro":"List all windows, then the windows captured for one session. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/build.gradle.kts","code":"plugins {\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"java","intro":"Save this complete program as src/main/java/ListWindows.java. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/java/io/github/libtmux/examples/api/java/ListWindows.java","code":"package io.github.libtmux.examples.api.java;\n\nimport io.github.libtmux.Server;\nimport io.github.libtmux.ServerConfig;\nimport io.github.libtmux.ServerEndpoint;\nimport java.nio.file.Path;\nimport java.util.stream.Collectors;\n\n/** List all windows, then the windows captured for one session. */\npublic final class ListWindows {\n private ListWindows() {}\n\n public static void main(String[] args) {\n try {\n if (args.length != 3) {\n throw new IllegalArgumentException(\"expected: tmux-binary socket-path config-file\");\n }\n var config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build();\n try (Server server = Server.open(config)) {\n System.out.println(\"windows=\"\n + server.windows().stream()\n .map(window -> window.name())\n .sorted()\n .collect(Collectors.joining(\",\")));\n var session = server.session(\"work-one\").orElseThrow();\n System.out.println(\"session-windows=\"\n + session.windows().stream()\n .map(window -> window.name())\n .sorted()\n .collect(Collectors.joining(\",\")));\n }\n } catch (Exception error) {\n if (error instanceof InterruptedException) Thread.currentThread().interrupt();\n System.err.println(\"Example failed: \" + error.getMessage());\n System.exit(1);\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.java.ListWindows && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"windows=editor,editor,logs\nsession-windows=editor,logs\n"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":169,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.windows","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.windows","product":"core","slug":"io-github-libtmux-session-session-windows"},{"id":"io.github.libtmux.Session.Session.newWindow","name":"newWindow","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public Window newWindow(String name)","params":[{"name":"name","type":"String","doc":"the window name"}],"returns":"Window","typeScopeBoundary":false,"returnsDoc":"a handle on the created window, from a fresh capture"},{"raw":"@Operation(Kind.MUTATION)\n public Window newWindow(Consumer configure)","params":[{"name":"configure","type":"Consumer","doc":"receives a builder holding tmux's defaults"}],"returns":"Window","typeScopeBoundary":false,"returnsDoc":"a handle on the created window, from a fresh capture"},{"raw":"@Operation(Kind.MUTATION)\n public Window newWindow(WindowSpec spec)","params":[{"name":"spec","type":"WindowSpec"}],"returns":"Window","typeScopeBoundary":false,"returnsDoc":"a handle on the created window, from a fresh capture"}],"doc":{"summary":"Creates a window in this session and returns that exact window.","body":"The creating command reports which window it made, rather than the name being looked up\nafterwards: two windows may share a name, and then a lookup cannot say which one is new.","examples":[{"lang":"console","intro":"Create a window and read the updated session. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/build.gradle.kts","code":"plugins {\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"java","intro":"Save this complete program as src/main/java/NewWindow.java. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/java/io/github/libtmux/examples/api/java/NewWindow.java","code":"package io.github.libtmux.examples.api.java;\n\nimport io.github.libtmux.Server;\nimport io.github.libtmux.ServerConfig;\nimport io.github.libtmux.ServerEndpoint;\nimport io.github.libtmux.WindowSpec;\nimport java.nio.file.Path;\nimport java.util.stream.Collectors;\n\n/** Create a window and read the updated session. */\npublic final class NewWindow {\n private NewWindow() {}\n\n public static void main(String[] args) {\n try {\n if (args.length != 3) {\n throw new IllegalArgumentException(\"expected: tmux-binary socket-path config-file\");\n }\n var config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build();\n try (Server server = Server.open(config)) {\n var session = server.session(\"work-one\").orElseThrow();\n var window = session.newWindow(WindowSpec.builder()\n .named(\"api-window\")\n .running(\"/bin/cat\")\n .build());\n System.out.println(\"created=\" + window.name());\n var refreshed = server.session(\"work-one\").orElseThrow();\n System.out.println(\"windows=\"\n + refreshed.windows().stream()\n .map(item -> item.name())\n .sorted()\n .collect(Collectors.joining(\",\")));\n }\n } catch (Exception error) {\n if (error instanceof InterruptedException) Thread.currentThread().interrupt();\n System.err.println(\"Example failed: \" + error.getMessage());\n System.exit(1);\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.java.NewWindow && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"created=api-window\nwindows=api-window,editor,logs\n"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":186,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.newWindow","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.newWindow","product":"core","slug":"io-github-libtmux-session-session-newwindow"},{"id":"io.github.libtmux.Session.Session.expand","name":"expand","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.READ)\n public String expand(String format)","params":[{"name":"format","type":"String","doc":"a tmux format, usually of the shape {@code #{name}}"}],"returns":"String","typeScopeBoundary":false,"returnsDoc":"the expansion, whole when it spans lines and empty when the format expanded to nothing"}],"doc":{"summary":"Expands a tmux format in this session's context, and answers with what it came to.","body":"The same escape hatch {@link Pane#expand} gives, resolved against this session."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":247,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.expand","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.expand","product":"core","slug":"io-github-libtmux-session-session-expand"},{"id":"io.github.libtmux.Session.Session.rename","name":"rename","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@CheckReturnValue\n @Operation(Kind.MUTATION)\n public Session rename(String name)","params":[{"name":"name","type":"String"}],"returns":"Session","typeScopeBoundary":false}],"doc":{"summary":"Renames this session and returns its replacement capture.","body":"Retain the result to read the changed name. This handle keeps its original captured state."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":261,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.rename","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.rename","product":"core","slug":"io-github-libtmux-session-session-rename"},{"id":"io.github.libtmux.Session.Session.kill","name":"kill","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void kill()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Ends this session. Every window in it goes with it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":269,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.kill","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.kill","product":"core","slug":"io-github-libtmux-session-session-kill"},{"id":"io.github.libtmux.Session.Session.refresh","name":"refresh","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@CheckReturnValue\n @Operation(Kind.READ)\n public Session refresh()","params":[],"returns":"Session","typeScopeBoundary":false,"raises":[{"type":"TargetGoneException","doc":"if the session is gone from a server that still answers"},{"type":"ServerUnavailableException","doc":"if no daemon is running"}]}],"doc":{"summary":"Takes a new capture and returns this session as it is now.","body":"This handle remains unchanged. Use the returned handle for subsequent state reads."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":282,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.refresh","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.refresh","product":"core","slug":"io-github-libtmux-session-session-refresh"},{"id":"io.github.libtmux.Session.Session.equals","name":"equals","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Override\n public boolean equals(Object other)","params":[{"name":"other","type":"Object"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":291,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.equals","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.equals","product":"core","slug":"io-github-libtmux-session-session-equals"},{"id":"io.github.libtmux.Session.Session.hashCode","name":"hashCode","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Override\n public int hashCode()","params":[],"returns":"int","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":298,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.hashCode","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.hashCode","product":"core","slug":"io-github-libtmux-session-session-hashcode"},{"id":"io.github.libtmux.Session.Session.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":303,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.toString","product":"core","slug":"io-github-libtmux-session-session-tostring"},{"id":"io.github.libtmux.SessionCreation.SessionCreation","name":"SessionCreation","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Assembles the pieces {@link Server#newSession(SessionSpec)} needs before tmux has a session yet."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionCreation.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionCreation","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionCreation.SessionCreation","product":"core","slug":"io-github-libtmux-sessioncreation-sessioncreation"},{"id":"io.github.libtmux.SessionCreation.SessionCreation.failureMessage","name":"failureMessage","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.SessionCreation.SessionCreation","signatures":[{"raw":"static String failureMessage(ServerConfig config, CommandResult result)","params":[{"name":"config","type":"ServerConfig"},{"name":"result","type":"CommandResult"}],"returns":"String","typeScopeBoundary":true}],"doc":{"summary":"tmux exits 0 even when nothing was created: an explicit {@code -S} under a directory that does not exist prints its own {@code error creating ...} and still returns success, and a binary that is not tmux at all can exit 0 with nothing on stdout the same way {@code run} cannot tell apart from a real session id. Reads tmux's own words when it spoke and names the configured binary when it did not, rather than letting an empty list reach {@code SessionId} and throw an unchecked collection exception with neither in it.","body":"tmux 3.2a says nothing at all when it cannot create its socket: the server queues the\nerror and tells the client to exit at once, and the client leaves before the error reaches\nit. So a silent exit checks the one cause this client can see for itself."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionCreation.java","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionCreation.failureMessage","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionCreation.SessionCreation.failureMessage","product":"core","slug":"io-github-libtmux-sessioncreation-sessioncreation-failuremessage"},{"id":"io.github.libtmux.SessionCreation.SessionCreation.versionForCreation","name":"versionForCreation","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.SessionCreation.SessionCreation","signatures":[{"raw":"static TmuxVersion versionForCreation(Server server)","params":[{"name":"server","type":"Server"}],"returns":"TmuxVersion","typeScopeBoundary":true}],"doc":{"summary":"The version to gate a session-creation spec against.","body":"{@code new-session} may be the first command said to a fresh socket, where {@link\nServer#version()} fails for want of a daemon. So this asks a running daemon when one answers,\nsince it may be a different build than the configured binary, and otherwise asks the binary\nthrough {@link #binaryVersion}.\n\nReads {@link SnapshotCapture#processForCreation()} rather than {@link Server#version()}: a\ndaemon too old to talk to fails the identity probe as one never started does (\"server exited\nunexpectedly\"), and {@link ServerUnavailableException} does not keep that distinction.\nFalling back to {@code binaryVersion} for such a daemon would report the binary's version as\nthe daemon's."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionCreation.java","line":56,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionCreation.versionForCreation","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionCreation.SessionCreation.versionForCreation","product":"core","slug":"io-github-libtmux-sessioncreation-sessioncreation-versionforcreation"},{"id":"io.github.libtmux.SessionId.SessionId","name":"SessionId","kind":"class","modifiers":[],"signatures":[{"raw":"public record SessionId(String value)","params":[{"name":"value","type":"String","doc":"the id including its {@code $} sigil"}]}],"typeScopeBoundary":false,"doc":{"summary":"A tmux session id, such as {@code $0}.","body":"Stable for the life of the session, unlike a session name, which a user can change at any\ntime. A separate type from {@link WindowId} and {@link PaneId} because tmux accepts any of them\nas {@code -t} syntax: passing the wrong one is not an error tmux reports, it simply addresses\nnothing."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionId.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionId","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionId.SessionId","product":"core","slug":"io-github-libtmux-sessionid-sessionid"},{"id":"io.github.libtmux.SessionId.SessionId.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionId.SessionId","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionId.java","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionId.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionId.SessionId.toString","product":"core","slug":"io-github-libtmux-sessionid-sessionid-tostring"},{"id":"io.github.libtmux.SessionId.SessionId.value","name":"value","kind":"method","parent":"io.github.libtmux.SessionId.SessionId","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"the id including its {@code $} sigil"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionId.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionId.value","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionId.SessionId.value","product":"core","slug":"io-github-libtmux-sessionid-sessionid-value"},{"id":"io.github.libtmux.SessionLookup.SessionLookup","name":"SessionLookup","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Resolves a caller-given session name to the id tmux keeps it under."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionLookup.java","line":9,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionLookup","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionLookup.SessionLookup","product":"core","slug":"io-github-libtmux-sessionlookup-sessionlookup"},{"id":"io.github.libtmux.SessionLookup.SessionLookup.named","name":"named","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.SessionLookup.SessionLookup","signatures":[{"raw":"static Optional named(Server server, String name)","params":[{"name":"server","type":"Server"},{"name":"name","type":"String"}],"returns":"Optional","typeScopeBoundary":true}],"doc":{"summary":"The id of the session tmux keeps under this name, read from one listing.","body":"Not a {@code -t =name} target: tmux reads {@code .} and {@code :} in a target as window and\npane separators, and it may have stored the name differently from how it was given."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionLookup.java","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionLookup.named","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionLookup.SessionLookup.named","product":"core","slug":"io-github-libtmux-sessionlookup-sessionlookup-named"},{"id":"io.github.libtmux.SessionSpec.SessionSpec","name":"SessionSpec","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"How a session should be made.","body":"The shape {@link SplitSpec} and {@link WindowSpec} use. tmux's {@code -A}, which attaches when\nthe name is taken, is deliberately absent: attaching needs a terminal, and it fails with\n{@code open terminal failed} on every supported release when there is none. Asking\n{@link Server#hasSession} first does the same job from a process that has no tty, which is where a\nlibrary usually runs.","examples":[{"lang":"java","code":"Session build = server.newSession(s -> s.named(\"build\").sized(new Dimensions(120, 40)));"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.builder","name":"builder","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.SessionSpec.SessionSpec","signatures":[{"raw":"public static Builder builder()","params":[],"returns":"Builder","typeScopeBoundary":true}],"doc":{"summary":"A builder holding tmux's own defaults: a detached session tmux names itself."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":62,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.builder","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.builder","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-builder-1p4q"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.name","name":"name","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec","signatures":[{"raw":"public Optional name()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The session name, or empty to let tmux number it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":67,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.name","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.name","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-name"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.directory","name":"directory","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec","signatures":[{"raw":"public Optional directory()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"Where the session's first pane starts, or empty to inherit."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":72,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.directory","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.directory","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-directory"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.environment","name":"environment","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec","signatures":[{"raw":"@ReadOnly\n public Map environment()","params":[],"returns":"Map","typeScopeBoundary":false}],"doc":{"summary":"Variables set for the new session, in the order they were given."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":77,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.environment","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.environment","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-environment"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.detached","name":"detached","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec","signatures":[{"raw":"public boolean detached()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Always true, and not a choice.","body":"{@code new-session} attaches unless told not to, and attaching needs a terminal — from a\nprocess without one it fails with {@code open terminal failed}. A library is usually called\nfrom something that has no tty, so the session is always created detached. {@link WindowSpec}\nand {@link SplitSpec} default the other way, because their commands need no terminal."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":90,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.detached","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.detached","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-detached"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.windowName","name":"windowName","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec","signatures":[{"raw":"public Optional windowName()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The name of the session's first window, or empty for tmux's choice."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":95,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.windowName","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.windowName","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-windowname"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.size","name":"size","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec","signatures":[{"raw":"public Optional size()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"How big the session is, or empty for tmux's default. Requires tmux 3.3."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":100,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.size","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.size","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-size"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.withoutSize","name":"withoutSize","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec","signatures":[{"raw":"public boolean withoutSize()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether tmux is told not to give the session a size at all."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":105,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.withoutSize","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.withoutSize","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-withoutsize"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.detachOthers","name":"detachOthers","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec","signatures":[{"raw":"public boolean detachOthers()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether other clients on this session are detached."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":110,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.detachOthers","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.detachOthers","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-detachothers"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.clientFlags","name":"clientFlags","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec","signatures":[{"raw":"@ReadOnly\n public List clientFlags()","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"Client flags, which tmux takes as one comma-separated list."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":115,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.clientFlags","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.clientFlags","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-clientflags"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.command","name":"command","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec","signatures":[{"raw":"@ReadOnly\n public List command()","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"What the session's first pane runs, empty for the default shell."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":121,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.command","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.command","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-command"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.argv","name":"argv","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec","signatures":[{"raw":"List argv(String format, Supplier running)","params":[{"name":"format","type":"String","doc":"the row format the caller will read the result back with"},{"name":"running","type":"Supplier","doc":"what the server about to run this is, asked only if it matters"}],"returns":"List","typeScopeBoundary":false,"raises":[{"type":"UnsupportedFeatureException","doc":"if the spec asks for something {@code running} does not have"}]}],"doc":{"summary":"The command that makes this session, reporting it through {@code format}.","body":"The version arrives as a supplier because this is the one creating call that may run when\nthere is no server yet, and asking a socket with nothing behind it for its version fails.\nNothing asks unless the spec depends on the answer."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":137,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.argv","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.argv","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-argv"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":192,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.toString","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-tostring"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.Builder","name":"Builder","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.SessionSpec.SessionSpec","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Collects the choices, each named for what it does rather than for the field it sets."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":198,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.Builder","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.Builder","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-builder-3lof"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.Builder.named","name":"named","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec.Builder","signatures":[{"raw":"public Builder named(String name)","params":[{"name":"name","type":"String"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Names the session, where tmux would otherwise number it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":213,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.Builder.named","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.Builder.named","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-builder-named"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.Builder.firstWindowNamed","name":"firstWindowNamed","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec.Builder","signatures":[{"raw":"public Builder firstWindowNamed(String windowName)","params":[{"name":"windowName","type":"String"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Names the session's first window."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":219,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.Builder.firstWindowNamed","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.Builder.firstWindowNamed","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-builder-firstwindownamed"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.Builder.running","name":"running","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec.Builder","signatures":[{"raw":"public Builder running(String... argv)","params":[{"name":"argv","type":"String","variadic":"positional"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Runs a command instead of the default shell. tmux reports the session before the command has started, so wait for its pane's command with {@link Pane#await(java.util.function.Predicate, java.time.Duration)} rather than reading it at once."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":228,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.Builder.running","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.Builder.running","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-builder-running"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.Builder.in","name":"in","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec.Builder","signatures":[{"raw":"public Builder in(Path directory)","params":[{"name":"directory","type":"Path"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Starts the session in this directory, resolved against this process's when relative."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":238,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.Builder.in","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.Builder.in","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-builder-in"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.Builder.env","name":"env","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec.Builder","signatures":[{"raw":"public Builder env(String name, String value)","params":[{"name":"name","type":"String"},{"name":"value","type":"String"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Sets one variable in the new session's environment."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":244,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.Builder.env","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.Builder.env","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-builder-env"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.Builder.environment","name":"environment","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec.Builder","signatures":[{"raw":"public Builder environment(Map variables)","params":[{"name":"variables","type":"Map"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Adds several variables to the new session's environment, keeping any already set."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":250,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.Builder.environment","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.Builder.environment","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-builder-environment"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.Builder.sized","name":"sized","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec.Builder","signatures":[{"raw":"public Builder sized(Dimensions size)","params":[{"name":"size","type":"Dimensions"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Gives the session a size, which a detached session has no client to take one from."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":256,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.Builder.sized","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.Builder.sized","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-builder-sized"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.Builder.withoutSize","name":"withoutSize","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec.Builder","signatures":[{"raw":"public Builder withoutSize()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Asks tmux not to give the session a size at all."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":262,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.Builder.withoutSize","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.Builder.withoutSize","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-builder-withoutsize"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.Builder.detachOthers","name":"detachOthers","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec.Builder","signatures":[{"raw":"public Builder detachOthers()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Detaches any other client already on this session."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":268,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.Builder.detachOthers","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.Builder.detachOthers","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-builder-detachothers"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.Builder.clientFlags","name":"clientFlags","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec.Builder","signatures":[{"raw":"public Builder clientFlags(String... flags)","params":[{"name":"flags","type":"String","variadic":"positional"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Sets the client flags tmux applies, which it reads as one comma-separated list."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":274,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.Builder.clientFlags","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.Builder.clientFlags","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-builder-clientflags"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.Builder.build","name":"build","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec.Builder","signatures":[{"raw":"public SessionSpec build()","params":[],"returns":"SessionSpec","typeScopeBoundary":false}],"doc":{"summary":"The finished spec."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":280,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.Builder.build","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.Builder.build","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-builder-build"},{"id":"io.github.libtmux.Shell.Shell","name":"Shell","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"A shell command run by tmux, and a tmux command chosen by a shell command's exit status.","body":"tmux expands {@code #(...)} in these strings before a shell sees them. Pass an interpolated\nvalue through {@link TmuxFormats#literal} unless that expansion is what you want."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Shell.java","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Shell","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Shell.Shell","product":"core","slug":"io-github-libtmux-shell-shell"},{"id":"io.github.libtmux.Shell.Shell.Shell","name":"Shell","kind":"method","modifiers":[],"parent":"io.github.libtmux.Shell.Shell","signatures":[{"raw":"Shell(Server server)","params":[{"name":"server","type":"Server"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Shell.java","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Shell.Shell","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Shell.Shell.Shell","product":"core","slug":"io-github-libtmux-shell-shell-shell"},{"id":"io.github.libtmux.Shell.Shell.run","name":"run","kind":"method","modifiers":[],"parent":"io.github.libtmux.Shell.Shell","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void run(String command)","params":[{"name":"command","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Runs a shell command for its effect. Nothing is claimed about what it printed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Shell.java","line":33,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Shell.run","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Shell.Shell.run","product":"core","slug":"io-github-libtmux-shell-shell-run"},{"id":"io.github.libtmux.Shell.Shell.capturing","name":"capturing","kind":"method","modifiers":[],"parent":"io.github.libtmux.Shell.Shell","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.MUTATION)\n public List capturing(String command)","params":[{"name":"command","type":"String"}],"returns":"List","typeScopeBoundary":false,"raises":[{"type":"UnsupportedFeatureException","doc":"on tmux 3.3a and 3.4, which run the command and report nothing"}]}],"doc":{"summary":"Runs a shell command and answers with what it printed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Shell.java","line":45,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Shell.capturing","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Shell.Shell.capturing","product":"core","slug":"io-github-libtmux-shell-shell-capturing"},{"id":"io.github.libtmux.Shell.Shell.choose","name":"choose","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Shell.Shell","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void choose(String condition, String whenTrue)","params":[{"name":"condition","type":"String","doc":"a shell command, judged by its exit status"},{"name":"whenTrue","type":"String","doc":"the tmux command to run when the condition succeeds"}],"returns":"void","typeScopeBoundary":false},{"raw":"@Operation(Kind.MUTATION)\n public void choose(String condition, String whenTrue, String whenFalse)","params":[{"name":"condition","type":"String"},{"name":"whenTrue","type":"String"},{"name":"whenFalse","type":"String","doc":"the tmux command to run when the condition does not succeed"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Runs one tmux command when a shell command succeeds."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Shell.java","line":64,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Shell.choose","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Shell.Shell.choose","product":"core","slug":"io-github-libtmux-shell-shell-choose"},{"id":"io.github.libtmux.snapshot.ClientState.ClientState","name":"ClientState","kind":"class","modifiers":[],"signatures":[{"raw":"public record ClientState(String name, Optional session)","params":[{"name":"name","type":"String","doc":"the client's terminal name, which is how tmux addresses it"},{"name":"session","type":"Optional","doc":"the session it was attached to, if any"}]}],"typeScopeBoundary":false,"doc":{"summary":"A client as one capture saw it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ClientState.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ClientState","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ClientState.ClientState","product":"core","slug":"io-github-libtmux-snapshot-clientstate-clientstate"},{"id":"io.github.libtmux.snapshot.ClientState.ClientState.name","name":"name","kind":"method","parent":"io.github.libtmux.snapshot.ClientState.ClientState","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"the client's terminal name, which is how tmux addresses it"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ClientState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ClientState.name","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ClientState.ClientState.name","product":"core","slug":"io-github-libtmux-snapshot-clientstate-clientstate-name"},{"id":"io.github.libtmux.snapshot.ClientState.ClientState.session","name":"session","kind":"method","parent":"io.github.libtmux.snapshot.ClientState.ClientState","modifiers":[],"signatures":[{"params":[],"returns":"Optional"}],"doc":{"summary":"the session it was attached to, if any"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ClientState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ClientState.session","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ClientState.ClientState.session","product":"core","slug":"io-github-libtmux-snapshot-clientstate-clientstate-session"},{"id":"io.github.libtmux.snapshot.PaneState.PaneState","name":"PaneState","kind":"class","modifiers":[],"signatures":[{"raw":"public record PaneState(\n WindowContext context,\n PaneId id,\n int index,\n boolean active,\n String currentCommand,\n Dimensions size,\n PanePosition position,\n String title,\n String currentPath,\n OptionalLong pid,\n PaneEdges edges,\n Optional floating)","params":[{"name":"context","type":"WindowContext","doc":"the winlink the pane was reached through"},{"name":"id","type":"PaneId","doc":"the pane's stable id"},{"name":"index","type":"int","doc":"the pane's position, which shifts as neighbours come and go"},{"name":"active","type":"boolean","doc":"whether it was the active pane of its window"},{"name":"currentCommand","type":"String","doc":"the command tmux reported running in it"},{"name":"size","type":"Dimensions","doc":"how large the pane was, in terminal cells"},{"name":"position","type":"PanePosition","doc":"where the pane's top-left corner sat in its window, in terminal cells"},{"name":"title","type":"String","doc":"the pane title, which a program inside it can change"},{"name":"currentPath","type":"String","doc":"the working directory tmux reported for it, as text. Not a {@link java.nio.file.Path}: a directory name is bytes to tmux, and converting one this JVM's encoding cannot represent throws — which, in a capture, would lose every other pane over one pane's directory. {@code Pane.currentPath()} converts on request instead"},{"name":"pid","type":"OptionalLong","doc":"the process id of the program running in it, or empty when tmux reports no process at all — never a literal zero, so a caller cannot mistake the sentinel for a real pid"},{"name":"edges","type":"PaneEdges","doc":"which sides of its window the pane touches"},{"name":"floating","type":"Optional","doc":"whether the pane floats, or empty when the running tmux cannot say. Before 3.7 the format expands to nothing at all, and reporting that as {@code false} would be indistinguishable from a tmux that looked and found the pane was not floating."}]}],"typeScopeBoundary":false,"doc":{"summary":"A pane as one capture saw it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/PaneState.java","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.PaneState","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.PaneState.PaneState","product":"core","slug":"io-github-libtmux-snapshot-panestate-panestate"},{"id":"io.github.libtmux.snapshot.PaneState.PaneState.context","name":"context","kind":"method","parent":"io.github.libtmux.snapshot.PaneState.PaneState","modifiers":[],"signatures":[{"params":[],"returns":"WindowContext"}],"doc":{"summary":"the winlink the pane was reached through"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/PaneState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.PaneState.context","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.PaneState.PaneState.context","product":"core","slug":"io-github-libtmux-snapshot-panestate-panestate-context"},{"id":"io.github.libtmux.snapshot.PaneState.PaneState.id","name":"id","kind":"method","parent":"io.github.libtmux.snapshot.PaneState.PaneState","modifiers":[],"signatures":[{"params":[],"returns":"PaneId"}],"doc":{"summary":"the pane's stable id"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/PaneState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.PaneState.id","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.PaneState.PaneState.id","product":"core","slug":"io-github-libtmux-snapshot-panestate-panestate-id"},{"id":"io.github.libtmux.snapshot.PaneState.PaneState.index","name":"index","kind":"method","parent":"io.github.libtmux.snapshot.PaneState.PaneState","modifiers":[],"signatures":[{"params":[],"returns":"int"}],"doc":{"summary":"the pane's position, which shifts as neighbours come and go"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/PaneState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.PaneState.index","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.PaneState.PaneState.index","product":"core","slug":"io-github-libtmux-snapshot-panestate-panestate-index"},{"id":"io.github.libtmux.snapshot.PaneState.PaneState.active","name":"active","kind":"method","parent":"io.github.libtmux.snapshot.PaneState.PaneState","modifiers":[],"signatures":[{"params":[],"returns":"boolean"}],"doc":{"summary":"whether it was the active pane of its window"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/PaneState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.PaneState.active","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.PaneState.PaneState.active","product":"core","slug":"io-github-libtmux-snapshot-panestate-panestate-active"},{"id":"io.github.libtmux.snapshot.PaneState.PaneState.currentCommand","name":"currentCommand","kind":"method","parent":"io.github.libtmux.snapshot.PaneState.PaneState","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"the command tmux reported running in it"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/PaneState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.PaneState.currentCommand","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.PaneState.PaneState.currentCommand","product":"core","slug":"io-github-libtmux-snapshot-panestate-panestate-currentcommand"},{"id":"io.github.libtmux.snapshot.PaneState.PaneState.size","name":"size","kind":"method","parent":"io.github.libtmux.snapshot.PaneState.PaneState","modifiers":[],"signatures":[{"params":[],"returns":"Dimensions"}],"doc":{"summary":"how large the pane was, in terminal cells"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/PaneState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.PaneState.size","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.PaneState.PaneState.size","product":"core","slug":"io-github-libtmux-snapshot-panestate-panestate-size"},{"id":"io.github.libtmux.snapshot.PaneState.PaneState.position","name":"position","kind":"method","parent":"io.github.libtmux.snapshot.PaneState.PaneState","modifiers":[],"signatures":[{"params":[],"returns":"PanePosition"}],"doc":{"summary":"where the pane's top-left corner sat in its window, in terminal cells"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/PaneState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.PaneState.position","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.PaneState.PaneState.position","product":"core","slug":"io-github-libtmux-snapshot-panestate-panestate-position"},{"id":"io.github.libtmux.snapshot.PaneState.PaneState.title","name":"title","kind":"method","parent":"io.github.libtmux.snapshot.PaneState.PaneState","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"the pane title, which a program inside it can change"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/PaneState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.PaneState.title","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.PaneState.PaneState.title","product":"core","slug":"io-github-libtmux-snapshot-panestate-panestate-title"},{"id":"io.github.libtmux.snapshot.PaneState.PaneState.currentPath","name":"currentPath","kind":"method","parent":"io.github.libtmux.snapshot.PaneState.PaneState","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"the working directory tmux reported for it, as text. Not a {@link java.nio.file.Path}: a directory name is bytes to tmux, and converting one this JVM's encoding cannot represent throws — which, in a capture, would lose every other pane over one pane's directory. {@code Pane.currentPath()} converts on request instead"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/PaneState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.PaneState.currentPath","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.PaneState.PaneState.currentPath","product":"core","slug":"io-github-libtmux-snapshot-panestate-panestate-currentpath"},{"id":"io.github.libtmux.snapshot.PaneState.PaneState.pid","name":"pid","kind":"method","parent":"io.github.libtmux.snapshot.PaneState.PaneState","modifiers":[],"signatures":[{"params":[],"returns":"OptionalLong"}],"doc":{"summary":"the process id of the program running in it, or empty when tmux reports no process at all — never a literal zero, so a caller cannot mistake the sentinel for a real pid"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/PaneState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.PaneState.pid","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.PaneState.PaneState.pid","product":"core","slug":"io-github-libtmux-snapshot-panestate-panestate-pid"},{"id":"io.github.libtmux.snapshot.PaneState.PaneState.edges","name":"edges","kind":"method","parent":"io.github.libtmux.snapshot.PaneState.PaneState","modifiers":[],"signatures":[{"params":[],"returns":"PaneEdges"}],"doc":{"summary":"which sides of its window the pane touches"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/PaneState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.PaneState.edges","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.PaneState.PaneState.edges","product":"core","slug":"io-github-libtmux-snapshot-panestate-panestate-edges"},{"id":"io.github.libtmux.snapshot.PaneState.PaneState.floating","name":"floating","kind":"method","parent":"io.github.libtmux.snapshot.PaneState.PaneState","modifiers":[],"signatures":[{"params":[],"returns":"Optional"}],"doc":{"summary":"whether the pane floats, or empty when the running tmux cannot say. Before 3.7 the format expands to nothing at all, and reporting that as {@code false} would be indistinguishable from a tmux that looked and found the pane was not floating."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/PaneState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.PaneState.floating","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.PaneState.PaneState.floating","product":"core","slug":"io-github-libtmux-snapshot-panestate-panestate-floating"},{"id":"io.github.libtmux.snapshot.ServerMirror.ServerMirror","name":"ServerMirror","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"A live copy of one tmux server's sessions, windows, panes and clients, rebuilt whenever tmux announces a change.","body":"A control client attached through an anchor session hears what tmux announces. Any\nannouncement, or a {@link Delivery.Gap} in them, starts a fresh {@link Server#snapshot()} — never\na patch of the last one, since an announcement says that something changed, not everything that\ndid. Announcements that arrive while a snapshot is being taken collapse into one more rebuild, and\na rebuild that finds nothing different publishes nothing. Each published {@link View} carries an\nepoch one above the last, counted by this mirror; it is not a number tmux keeps.\n\ntmux keeps no history of what it announced. When the control client ends, the mirror finds\nthe anchor session again by its id and attaches through it with a fresh snapshot; if the session\nhas gone, the mirror ends with {@link TargetGoneException}, and if the server has, with the\nfailure that said so. A change tmux does not announce to this client, such as a pane retitled in\nanother session, is seen at the next rebuild, or within {@code refreshEvery} when one is given.\n\nThread-safe. One virtual thread per mirror listens and rebuilds; {@link #close()} ends it and\nthe control client with it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerMirror.java","line":41,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerMirror","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerMirror.ServerMirror","product":"core","slug":"io-github-libtmux-snapshot-servermirror-servermirror"},{"id":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.View","name":"View","kind":"class","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerMirror.ServerMirror","signatures":[{"raw":"public record View(long epoch, ServerSnapshot snapshot)","params":[{"name":"epoch","type":"long","doc":"how many views this mirror published before this one"},{"name":"snapshot","type":"ServerSnapshot","doc":"the server as the rebuild captured it"}]}],"typeScopeBoundary":true,"doc":{"summary":"One published state of the server."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerMirror.java","line":49,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerMirror.View","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.View","product":"core","slug":"io-github-libtmux-snapshot-servermirror-servermirror-view"},{"id":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.View.epoch","name":"epoch","kind":"method","parent":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.View","modifiers":[],"signatures":[{"params":[],"returns":"long"}],"doc":{"summary":"how many views this mirror published before this one"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerMirror.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerMirror.View.epoch","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.View.epoch","product":"core","slug":"io-github-libtmux-snapshot-servermirror-servermirror-view-epoch"},{"id":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.View.snapshot","name":"snapshot","kind":"method","parent":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.View","modifiers":[],"signatures":[{"params":[],"returns":"ServerSnapshot"}],"doc":{"summary":"the server as the rebuild captured it"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerMirror.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerMirror.View.snapshot","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.View.snapshot","product":"core","slug":"io-github-libtmux-snapshot-servermirror-servermirror-view-snapshot"},{"id":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.open","name":"open","kind":"method","modifiers":["static","overload"],"parent":"io.github.libtmux.snapshot.ServerMirror.ServerMirror","signatures":[{"raw":"@Operation(Kind.LIFECYCLE)\n public static ServerMirror open(Session anchor)","params":[{"name":"anchor","type":"Session"}],"returns":"ServerMirror","typeScopeBoundary":true,"raises":[{"type":"TargetGoneException","doc":"if the anchor session or its server has gone"}]},{"raw":"@Operation(Kind.LIFECYCLE)\n public static ServerMirror open(Session anchor, Duration refreshEvery)","params":[{"name":"anchor","type":"Session"},{"name":"refreshEvery","type":"Duration","doc":"how long a quiet mirror waits before rebuilding anyway; zero never does"}],"returns":"ServerMirror","typeScopeBoundary":true,"raises":[{"type":"IllegalArgumentException","doc":"if {@code refreshEvery} is negative"}]}],"doc":{"summary":"Mirrors the server {@code anchor} belongs to, listening through a control client attached to {@code anchor}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerMirror.java","line":96,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerMirror.open","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.open","product":"core","slug":"io-github-libtmux-snapshot-servermirror-servermirror-open"},{"id":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.current","name":"current","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerMirror.ServerMirror","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public View current()","params":[],"returns":"View","typeScopeBoundary":false}],"doc":{"summary":"The latest published view."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerMirror.java","line":121,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerMirror.current","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.current","product":"core","slug":"io-github-libtmux-snapshot-servermirror-servermirror-current"},{"id":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.awaitNewer","name":"awaitNewer","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerMirror.ServerMirror","signatures":[{"raw":"@Operation(Kind.WAIT)\n public Optional awaitNewer(long epoch, Duration timeout) throws InterruptedException","params":[{"name":"epoch","type":"long"},{"name":"timeout","type":"Duration"}],"returns":"Optional","typeScopeBoundary":false,"returnsDoc":"the newer view, or empty when {@code timeout} passed first or the mirror ended; {@link #isEnded()} and {@link #cause()} tell those apart","raises":[{"type":"InterruptedException","doc":"if the waiting thread is interrupted"}]}],"doc":{"summary":"Waits for a view newer than {@code epoch}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerMirror.java","line":138,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerMirror.awaitNewer","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.awaitNewer","product":"core","slug":"io-github-libtmux-snapshot-servermirror-servermirror-awaitnewer"},{"id":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.onNewer","name":"onNewer","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerMirror.ServerMirror","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public void onNewer(long epoch, Runnable callback)","params":[{"name":"epoch","type":"long"},{"name":"callback","type":"Runnable"}],"returns":"void","typeScopeBoundary":false,"raises":[{"type":"IllegalStateException","doc":"if a callback is already armed"}]}],"doc":{"summary":"Arms a one-shot wakeup for when a view newer than {@code epoch} is published or the mirror ends.","body":"Runs {@code callback} at once, on this thread, when such a view already exists or the mirror\nhas ended; otherwise once, on the mirror's own thread. The callback must not block."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerMirror.java","line":160,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerMirror.onNewer","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.onNewer","product":"core","slug":"io-github-libtmux-snapshot-servermirror-servermirror-onnewer"},{"id":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.clearNewer","name":"clearNewer","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerMirror.ServerMirror","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public void clearNewer()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Disarms the callback {@link #onNewer} armed, if one is armed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerMirror.java","line":183,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerMirror.clearNewer","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.clearNewer","product":"core","slug":"io-github-libtmux-snapshot-servermirror-servermirror-clearnewer"},{"id":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.isEnded","name":"isEnded","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerMirror.ServerMirror","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public boolean isEnded()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether this mirror has stopped publishing, because it was closed or its anchor has gone."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerMirror.java","line":194,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerMirror.isEnded","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.isEnded","product":"core","slug":"io-github-libtmux-snapshot-servermirror-servermirror-isended"},{"id":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.cause","name":"cause","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerMirror.ServerMirror","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Optional cause()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"Why this mirror ended, when something other than {@link #close()} ended it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerMirror.java","line":205,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerMirror.cause","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.cause","product":"core","slug":"io-github-libtmux-snapshot-servermirror-servermirror-cause"},{"id":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.close","name":"close","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerMirror.ServerMirror","signatures":[{"raw":"@Override\n @Operation(Kind.LIFECYCLE)\n public void close()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Stops listening and detaches the control client. The last view stays readable. Idempotent."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerMirror.java","line":216,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerMirror.close","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.close","product":"core","slug":"io-github-libtmux-snapshot-servermirror-servermirror-close"},{"id":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot","name":"ServerSnapshot","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"One tmux hierarchy, as it was at one moment.","body":"Every question below is answered from what was captured, so traversing a snapshot issues no\ncommands and cannot observe a half-changed server. It claims a moment rather than current truth:\ntmux offers no transaction across separate listings, and pretending otherwise would be a promise\nthis cannot keep."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerSnapshot.java","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerSnapshot","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot","product":"core","slug":"io-github-libtmux-snapshot-serversnapshot-serversnapshot"},{"id":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.of","name":"of","kind":"method","modifiers":["static","overload"],"parent":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot","signatures":[{"raw":"public static ServerSnapshot of(\n Instant capturedAt,\n long serverPid,\n TmuxVersion serverVersion,\n List sessions,\n List windows,\n List panes,\n List clients)","params":[{"name":"capturedAt","type":"Instant"},{"name":"serverPid","type":"long"},{"name":"serverVersion","type":"TmuxVersion"},{"name":"sessions","type":"List"},{"name":"windows","type":"List"},{"name":"panes","type":"List"},{"name":"clients","type":"List"}],"returns":"ServerSnapshot","typeScopeBoundary":true},{"raw":"public static ServerSnapshot of(\n Instant capturedAt,\n long serverPid,\n long serverStartTime,\n TmuxVersion serverVersion,\n List sessions,\n List windows,\n List panes,\n List clients)","params":[{"name":"capturedAt","type":"Instant"},{"name":"serverPid","type":"long"},{"name":"serverStartTime","type":"long"},{"name":"serverVersion","type":"TmuxVersion"},{"name":"sessions","type":"List"},{"name":"windows","type":"List"},{"name":"panes","type":"List"},{"name":"clients","type":"List"}],"returns":"ServerSnapshot","typeScopeBoundary":true}],"doc":{"summary":"Assembles a capture tied to the live tmux process and version that produced it, with no start time: a handle made from it is fenced by the process id alone."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerSnapshot.java","line":107,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerSnapshot.of","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.of","product":"core","slug":"io-github-libtmux-snapshot-serversnapshot-serversnapshot-of"},{"id":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.capturedAt","name":"capturedAt","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot","signatures":[{"raw":"public Instant capturedAt()","params":[],"returns":"Instant","typeScopeBoundary":false}],"doc":{"summary":"When this capture was taken."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerSnapshot.java","line":235,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerSnapshot.capturedAt","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.capturedAt","product":"core","slug":"io-github-libtmux-snapshot-serversnapshot-serversnapshot-capturedat"},{"id":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.serverPid","name":"serverPid","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot","signatures":[{"raw":"public OptionalLong serverPid()","params":[],"returns":"OptionalLong","typeScopeBoundary":false}],"doc":{"summary":"The tmux process that produced this capture, absent when assembled from detached state."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerSnapshot.java","line":240,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerSnapshot.serverPid","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.serverPid","product":"core","slug":"io-github-libtmux-snapshot-serversnapshot-serversnapshot-serverpid"},{"id":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.serverStartTime","name":"serverStartTime","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot","signatures":[{"raw":"public OptionalLong serverStartTime()","params":[],"returns":"OptionalLong","typeScopeBoundary":false}],"doc":{"summary":"When the tmux process that produced this capture started, in seconds since the epoch, as {@code #{start_time}} reports it. Absent when the capture was assembled without it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerSnapshot.java","line":248,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerSnapshot.serverStartTime","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.serverStartTime","product":"core","slug":"io-github-libtmux-snapshot-serversnapshot-serversnapshot-serverstarttime"},{"id":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.serverVersion","name":"serverVersion","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot","signatures":[{"raw":"public Optional serverVersion()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The tmux version that produced this capture, absent when assembled from detached state."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerSnapshot.java","line":253,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerSnapshot.serverVersion","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.serverVersion","product":"core","slug":"io-github-libtmux-snapshot-serversnapshot-serversnapshot-serverversion"},{"id":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.sessions","name":"sessions","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot","signatures":[{"raw":"@ReadOnly\n public List sessions()","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"Every session, in tmux's order."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerSnapshot.java","line":258,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerSnapshot.sessions","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.sessions","product":"core","slug":"io-github-libtmux-snapshot-serversnapshot-serversnapshot-sessions"},{"id":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.windows","name":"windows","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot","signatures":[{"raw":"@ReadOnly\n public List windows()","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"Every winlink, in tmux's order, including a window linked into more than one session twice."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerSnapshot.java","line":264,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerSnapshot.windows","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.windows","product":"core","slug":"io-github-libtmux-snapshot-serversnapshot-serversnapshot-windows"},{"id":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.panes","name":"panes","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot","signatures":[{"raw":"@ReadOnly\n public List panes()","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"Every pane, in tmux's order."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerSnapshot.java","line":270,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerSnapshot.panes","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.panes","product":"core","slug":"io-github-libtmux-snapshot-serversnapshot-serversnapshot-panes"},{"id":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.clients","name":"clients","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot","signatures":[{"raw":"@ReadOnly\n public List clients()","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"Every attached client."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerSnapshot.java","line":276,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerSnapshot.clients","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.clients","product":"core","slug":"io-github-libtmux-snapshot-serversnapshot-serversnapshot-clients"},{"id":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.session","name":"session","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot","signatures":[{"raw":"public Optional session(SessionId id)","params":[{"name":"id","type":"SessionId"}],"returns":"Optional","typeScopeBoundary":false},{"raw":"public Optional session(String name)","params":[{"name":"name","type":"String"}],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The session with this id, if the capture saw it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerSnapshot.java","line":282,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerSnapshot.session","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.session","product":"core","slug":"io-github-libtmux-snapshot-serversnapshot-serversnapshot-session"},{"id":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.window","name":"window","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot","signatures":[{"raw":"public Optional window(WindowContext context)","params":[{"name":"context","type":"WindowContext"}],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The winlink at this exact position, if the capture saw it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerSnapshot.java","line":292,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerSnapshot.window","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.window","product":"core","slug":"io-github-libtmux-snapshot-serversnapshot-serversnapshot-window"},{"id":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.windowsOf","name":"windowsOf","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot","signatures":[{"raw":"@ReadOnly\n public List windowsOf(SessionId session)","params":[{"name":"session","type":"SessionId"}],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"The winlinks in one session, in order. Empty when the capture never saw that session."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerSnapshot.java","line":297,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerSnapshot.windowsOf","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.windowsOf","product":"core","slug":"io-github-libtmux-snapshot-serversnapshot-serversnapshot-windowsof"},{"id":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.panesOf","name":"panesOf","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot","signatures":[{"raw":"@ReadOnly\n public List panesOf(WindowContext context)","params":[{"name":"context","type":"WindowContext"}],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"The panes under one winlink, in order. Empty when the capture never saw that winlink."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerSnapshot.java","line":303,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerSnapshot.panesOf","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.panesOf","product":"core","slug":"io-github-libtmux-snapshot-serversnapshot-serversnapshot-panesof"},{"id":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerSnapshot.java","line":308,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerSnapshot.toString","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.toString","product":"core","slug":"io-github-libtmux-snapshot-serversnapshot-serversnapshot-tostring"},{"id":"io.github.libtmux.snapshot.SessionState.SessionState","name":"SessionState","kind":"class","modifiers":[],"signatures":[{"raw":"public record SessionState(SessionId id, String name, boolean attached, int windows)","params":[{"name":"id","type":"SessionId","doc":"the session's stable id"},{"name":"name","type":"String","doc":"the session name, which a user may change at any time"},{"name":"attached","type":"boolean","doc":"whether a client was attached to it"},{"name":"windows","type":"int","doc":"how many windows it contained"}]}],"typeScopeBoundary":false,"doc":{"summary":"A session as one capture saw it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/SessionState.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.SessionState","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.SessionState.SessionState","product":"core","slug":"io-github-libtmux-snapshot-sessionstate-sessionstate"},{"id":"io.github.libtmux.snapshot.SessionState.SessionState.id","name":"id","kind":"method","parent":"io.github.libtmux.snapshot.SessionState.SessionState","modifiers":[],"signatures":[{"params":[],"returns":"SessionId"}],"doc":{"summary":"the session's stable id"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/SessionState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.SessionState.id","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.SessionState.SessionState.id","product":"core","slug":"io-github-libtmux-snapshot-sessionstate-sessionstate-id"},{"id":"io.github.libtmux.snapshot.SessionState.SessionState.name","name":"name","kind":"method","parent":"io.github.libtmux.snapshot.SessionState.SessionState","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"the session name, which a user may change at any time"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/SessionState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.SessionState.name","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.SessionState.SessionState.name","product":"core","slug":"io-github-libtmux-snapshot-sessionstate-sessionstate-name"},{"id":"io.github.libtmux.snapshot.SessionState.SessionState.attached","name":"attached","kind":"method","parent":"io.github.libtmux.snapshot.SessionState.SessionState","modifiers":[],"signatures":[{"params":[],"returns":"boolean"}],"doc":{"summary":"whether a client was attached to it"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/SessionState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.SessionState.attached","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.SessionState.SessionState.attached","product":"core","slug":"io-github-libtmux-snapshot-sessionstate-sessionstate-attached"},{"id":"io.github.libtmux.snapshot.SessionState.SessionState.windows","name":"windows","kind":"method","parent":"io.github.libtmux.snapshot.SessionState.SessionState","modifiers":[],"signatures":[{"params":[],"returns":"int"}],"doc":{"summary":"how many windows it contained"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/SessionState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.SessionState.windows","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.SessionState.SessionState.windows","product":"core","slug":"io-github-libtmux-snapshot-sessionstate-sessionstate-windows"},{"id":"io.github.libtmux.snapshot.WindowContext.WindowContext","name":"WindowContext","kind":"class","modifiers":[],"signatures":[{"raw":"public record WindowContext(SessionId session, WindowIndex index, WindowId window)","params":[{"name":"session","type":"SessionId","doc":"the session this link belongs to"},{"name":"index","type":"WindowIndex","doc":"where the window sits in that session"},{"name":"window","type":"WindowId","doc":"the underlying window, shared across links"}]}],"typeScopeBoundary":false,"doc":{"summary":"One tmux winlink: a window as it appears in one session, at one index.","body":"The unit relations are keyed on. A window linked into two sessions has one {@link WindowId}\nand two contexts, and tmux treats those two positions as distinct."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/WindowContext.java","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.WindowContext","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.WindowContext.WindowContext","product":"core","slug":"io-github-libtmux-snapshot-windowcontext-windowcontext"},{"id":"io.github.libtmux.snapshot.WindowContext.WindowContext.session","name":"session","kind":"method","parent":"io.github.libtmux.snapshot.WindowContext.WindowContext","modifiers":[],"signatures":[{"params":[],"returns":"SessionId"}],"doc":{"summary":"the session this link belongs to"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/WindowContext.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.WindowContext.session","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.WindowContext.WindowContext.session","product":"core","slug":"io-github-libtmux-snapshot-windowcontext-windowcontext-session"},{"id":"io.github.libtmux.snapshot.WindowContext.WindowContext.index","name":"index","kind":"method","parent":"io.github.libtmux.snapshot.WindowContext.WindowContext","modifiers":[],"signatures":[{"params":[],"returns":"WindowIndex"}],"doc":{"summary":"where the window sits in that session"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/WindowContext.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.WindowContext.index","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.WindowContext.WindowContext.index","product":"core","slug":"io-github-libtmux-snapshot-windowcontext-windowcontext-index"},{"id":"io.github.libtmux.snapshot.WindowContext.WindowContext.window","name":"window","kind":"method","parent":"io.github.libtmux.snapshot.WindowContext.WindowContext","modifiers":[],"signatures":[{"params":[],"returns":"WindowId"}],"doc":{"summary":"the underlying window, shared across links"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/WindowContext.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.WindowContext.window","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.WindowContext.WindowContext.window","product":"core","slug":"io-github-libtmux-snapshot-windowcontext-windowcontext-window"},{"id":"io.github.libtmux.snapshot.WindowState.WindowState","name":"WindowState","kind":"class","modifiers":[],"signatures":[{"raw":"public record WindowState(\n WindowContext context,\n String name,\n boolean active,\n int panes,\n boolean linked,\n Dimensions size,\n String layout)","params":[{"name":"context","type":"WindowContext","doc":"which session and index this link occupies"},{"name":"name","type":"String","doc":"the window name"},{"name":"active","type":"boolean","doc":"whether it was the active window of its session"},{"name":"panes","type":"int","doc":"how many panes it contained"},{"name":"linked","type":"boolean","doc":"whether the window is linked into more than one session"},{"name":"size","type":"Dimensions","doc":"how large the window was, in terminal cells"},{"name":"layout","type":"String","doc":"tmux's own serialized layout, which can be handed back to select-layout"}]}],"typeScopeBoundary":false,"doc":{"summary":"A window as one capture saw it, at one of its positions."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/WindowState.java","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.WindowState","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.WindowState.WindowState","product":"core","slug":"io-github-libtmux-snapshot-windowstate-windowstate"},{"id":"io.github.libtmux.snapshot.WindowState.WindowState.context","name":"context","kind":"method","parent":"io.github.libtmux.snapshot.WindowState.WindowState","modifiers":[],"signatures":[{"params":[],"returns":"WindowContext"}],"doc":{"summary":"which session and index this link occupies"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/WindowState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.WindowState.context","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.WindowState.WindowState.context","product":"core","slug":"io-github-libtmux-snapshot-windowstate-windowstate-context"},{"id":"io.github.libtmux.snapshot.WindowState.WindowState.name","name":"name","kind":"method","parent":"io.github.libtmux.snapshot.WindowState.WindowState","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"the window name"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/WindowState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.WindowState.name","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.WindowState.WindowState.name","product":"core","slug":"io-github-libtmux-snapshot-windowstate-windowstate-name"},{"id":"io.github.libtmux.snapshot.WindowState.WindowState.active","name":"active","kind":"method","parent":"io.github.libtmux.snapshot.WindowState.WindowState","modifiers":[],"signatures":[{"params":[],"returns":"boolean"}],"doc":{"summary":"whether it was the active window of its session"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/WindowState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.WindowState.active","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.WindowState.WindowState.active","product":"core","slug":"io-github-libtmux-snapshot-windowstate-windowstate-active"},{"id":"io.github.libtmux.snapshot.WindowState.WindowState.panes","name":"panes","kind":"method","parent":"io.github.libtmux.snapshot.WindowState.WindowState","modifiers":[],"signatures":[{"params":[],"returns":"int"}],"doc":{"summary":"how many panes it contained"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/WindowState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.WindowState.panes","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.WindowState.WindowState.panes","product":"core","slug":"io-github-libtmux-snapshot-windowstate-windowstate-panes"},{"id":"io.github.libtmux.snapshot.WindowState.WindowState.linked","name":"linked","kind":"method","parent":"io.github.libtmux.snapshot.WindowState.WindowState","modifiers":[],"signatures":[{"params":[],"returns":"boolean"}],"doc":{"summary":"whether the window is linked into more than one session"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/WindowState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.WindowState.linked","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.WindowState.WindowState.linked","product":"core","slug":"io-github-libtmux-snapshot-windowstate-windowstate-linked"},{"id":"io.github.libtmux.snapshot.WindowState.WindowState.size","name":"size","kind":"method","parent":"io.github.libtmux.snapshot.WindowState.WindowState","modifiers":[],"signatures":[{"params":[],"returns":"Dimensions"}],"doc":{"summary":"how large the window was, in terminal cells"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/WindowState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.WindowState.size","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.WindowState.WindowState.size","product":"core","slug":"io-github-libtmux-snapshot-windowstate-windowstate-size"},{"id":"io.github.libtmux.snapshot.WindowState.WindowState.layout","name":"layout","kind":"method","parent":"io.github.libtmux.snapshot.WindowState.WindowState","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"tmux's own serialized layout, which can be handed back to select-layout"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/WindowState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.WindowState.layout","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.WindowState.WindowState.layout","product":"core","slug":"io-github-libtmux-snapshot-windowstate-windowstate-layout"},{"id":"io.github.libtmux.SnapshotCapture.SnapshotCapture","name":"SnapshotCapture","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Reads a whole tmux server into one snapshot.","body":"One server-wide listing per kind of object, so ordering and membership stay tmux's decision\nrather than being re-derived from another listing's rows.\n\nTwo commands: who the server is, then the listings as one group fenced against both halves of\nthat answer, its pid and its version. tmux runs a group in the server, so rows cannot come from\ntwo of them, and a server that is not the one probed is refused before a listing runs rather than\ndetected afterwards. Retrying is {@link Server#snapshot()}'s decision, not this one's."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SnapshotCapture","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SnapshotCapture.SnapshotCapture","product":"core","slug":"io-github-libtmux-snapshotcapture-snapshotcapture"},{"id":"io.github.libtmux.SnapshotCapture.SnapshotCapture.SnapshotCapture","name":"SnapshotCapture","kind":"method","modifiers":[],"parent":"io.github.libtmux.SnapshotCapture.SnapshotCapture","signatures":[{"raw":"SnapshotCapture(Server server)","params":[{"name":"server","type":"Server"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java","line":94,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SnapshotCapture.SnapshotCapture","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SnapshotCapture.SnapshotCapture.SnapshotCapture","product":"core","slug":"io-github-libtmux-snapshotcapture-snapshotcapture-snapshotcapture"},{"id":"io.github.libtmux.SnapshotCapture.SnapshotCapture.attempt","name":"attempt","kind":"method","modifiers":[],"parent":"io.github.libtmux.SnapshotCapture.SnapshotCapture","signatures":[{"raw":"Optional attempt()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"One attempt, empty when the server was replaced under it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java","line":99,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SnapshotCapture.attempt","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SnapshotCapture.SnapshotCapture.attempt","product":"core","slug":"io-github-libtmux-snapshotcapture-snapshotcapture-attempt"},{"id":"io.github.libtmux.SnapshotCapture.SnapshotCapture.process","name":"process","kind":"method","modifiers":[],"parent":"io.github.libtmux.SnapshotCapture.SnapshotCapture","signatures":[{"raw":"Optional process()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"Reads process identity and version together so neither can come from a different server."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java","line":123,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SnapshotCapture.process","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SnapshotCapture.SnapshotCapture.process","product":"core","slug":"io-github-libtmux-snapshotcapture-snapshotcapture-process"},{"id":"io.github.libtmux.SnapshotCapture.SnapshotCapture.processForCreation","name":"processForCreation","kind":"method","modifiers":[],"parent":"io.github.libtmux.SnapshotCapture.SnapshotCapture","signatures":[{"raw":"Optional processForCreation()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"As {@link #process}, except a live daemon this client cannot actually talk to is never folded into \"no daemon\" - used only by {@link SessionCreation#versionForCreation}, the one caller for which that distinction matters.","body":"tmux reports both the same way from a client's side: \"no server running\"/\"(No such file or\ndirectory)\" for a socket nothing is listening on, and \"server exited unexpectedly\" for a\ndaemon that refused this client's handshake - confirmed against the matrix, a 3.2a client\nagainst a 3.7c daemon on the same socket fails the second way, rc 1. {@link #process} still\nfolds both into \"no daemon\" for every other caller, which asks \"is there a server I can read\nfrom\" and for which a daemon this client cannot use is no more usable than none at all."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java","line":139,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SnapshotCapture.processForCreation","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SnapshotCapture.SnapshotCapture.processForCreation","product":"core","slug":"io-github-libtmux-snapshotcapture-snapshotcapture-processforcreation"},{"id":"io.github.libtmux.SnapshotCapture.SnapshotCapture.oneSession","name":"oneSession","kind":"method","modifiers":[],"parent":"io.github.libtmux.SnapshotCapture.SnapshotCapture","signatures":[{"raw":"Optional oneSession(String target, String field)","params":[{"name":"target","type":"String","doc":"the session name or id passed to {@code -t}"},{"name":"field","type":"String","doc":"{@code session_name} or {@code session_id}"}],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"One session, its windows, and its panes. Empty when that session is absent. Other sessions are not read."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java","line":224,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SnapshotCapture.oneSession","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SnapshotCapture.SnapshotCapture.oneSession","product":"core","slug":"io-github-libtmux-snapshotcapture-snapshotcapture-onesession"},{"id":"io.github.libtmux.SnapshotCapture.SnapshotCapture.sessionsNamed","name":"sessionsNamed","kind":"method","modifiers":[],"parent":"io.github.libtmux.SnapshotCapture.SnapshotCapture","signatures":[{"raw":"Optional sessionsNamed(String name)","params":[{"name":"name","type":"String"}],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The sessions stored under any name tmux may keep for this one, read in one fenced call, and an empty capture when there are none. Empty when a candidate cannot sit inside a format, and the caller reads the whole server instead."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java","line":240,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SnapshotCapture.sessionsNamed","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SnapshotCapture.SnapshotCapture.sessionsNamed","product":"core","slug":"io-github-libtmux-snapshotcapture-snapshotcapture-sessionsnamed"},{"id":"io.github.libtmux.SnapshotCapture.SnapshotCapture.sessionsWhere","name":"sessionsWhere","kind":"method","modifiers":[],"parent":"io.github.libtmux.SnapshotCapture.SnapshotCapture","signatures":[{"raw":"ServerSnapshot sessionsWhere(String format, String... command)","params":[{"name":"format","type":"String"},{"name":"command","type":"String","variadic":"positional","doc":"{@code list-sessions}, {@code list-windows -a}, or {@code list-panes -a}"}],"returns":"ServerSnapshot","typeScopeBoundary":false}],"doc":{"summary":"The sessions holding a row that {@code format} selects in this listing, read in full in one fenced call, and a capture holding nothing when none does.","body":"Nothing is a real answer: every operator {@link io.github.libtmux.query.TmuxFilters} writes\nexists from the oldest supported tmux, so a format it lowers is never one tmux cannot evaluate.\nA window or pane format is lifted to its session by looping that session's windows and panes,\nso the one call that reads the sessions also decides which ones to read."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java","line":266,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SnapshotCapture.sessionsWhere","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SnapshotCapture.SnapshotCapture.sessionsWhere","product":"core","slug":"io-github-libtmux-snapshotcapture-snapshotcapture-sessionswhere"},{"id":"io.github.libtmux.SnapshotCapture.SnapshotCapture.sessionsHolding","name":"sessionsHolding","kind":"method","modifiers":[],"parent":"io.github.libtmux.SnapshotCapture.SnapshotCapture","signatures":[{"raw":"Optional sessionsHolding(PaneId id)","params":[{"name":"id","type":"PaneId"}],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The sessions holding this pane, with their windows and panes, in one fenced call. Empty when no session holds it.","body":"The filter loops each listed row's own session, so every listing keeps whole sessions, and a\nwindow linked into two sessions brings both. tmux evaluates this loop inside {@code -f} the same\nway on every release from 3.2a; see {@code docs/decisions/0005-pushdown-lowering-is-exact-or-refused.md}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java","line":339,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SnapshotCapture.sessionsHolding","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SnapshotCapture.SnapshotCapture.sessionsHolding","product":"core","slug":"io-github-libtmux-snapshotcapture-snapshotcapture-sessionsholding"},{"id":"io.github.libtmux.SnapshotCapture.SnapshotCapture.ServerProcess","name":"ServerProcess","kind":"class","modifiers":[],"parent":"io.github.libtmux.SnapshotCapture.SnapshotCapture","signatures":[{"raw":"record ServerProcess(long pid, TmuxVersion version, long startTime)","params":[{"name":"pid","type":"long"},{"name":"version","type":"TmuxVersion"},{"name":"startTime","type":"long"}]}],"typeScopeBoundary":true,"doc":{"summary":"The server a capture reads, named by its process and when that process started."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java","line":455,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SnapshotCapture.ServerProcess","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SnapshotCapture.SnapshotCapture.ServerProcess","product":"core","slug":"io-github-libtmux-snapshotcapture-snapshotcapture-serverprocess"},{"id":"io.github.libtmux.SnapshotCapture.SnapshotCapture.ServerProcess.pid","name":"pid","kind":"method","parent":"io.github.libtmux.SnapshotCapture.SnapshotCapture.ServerProcess","modifiers":[],"signatures":[{"params":[],"returns":"long"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SnapshotCapture.ServerProcess.pid","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SnapshotCapture.SnapshotCapture.ServerProcess.pid","product":"core","slug":"io-github-libtmux-snapshotcapture-snapshotcapture-serverprocess-pid"},{"id":"io.github.libtmux.SnapshotCapture.SnapshotCapture.ServerProcess.version","name":"version","kind":"method","parent":"io.github.libtmux.SnapshotCapture.SnapshotCapture.ServerProcess","modifiers":[],"signatures":[{"params":[],"returns":"TmuxVersion"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SnapshotCapture.ServerProcess.version","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SnapshotCapture.SnapshotCapture.ServerProcess.version","product":"core","slug":"io-github-libtmux-snapshotcapture-snapshotcapture-serverprocess-version"},{"id":"io.github.libtmux.SnapshotCapture.SnapshotCapture.ServerProcess.startTime","name":"startTime","kind":"method","parent":"io.github.libtmux.SnapshotCapture.SnapshotCapture.ServerProcess","modifiers":[],"signatures":[{"params":[],"returns":"long"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SnapshotCapture.ServerProcess.startTime","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SnapshotCapture.SnapshotCapture.ServerProcess.startTime","product":"core","slug":"io-github-libtmux-snapshotcapture-snapshotcapture-serverprocess-starttime"},{"id":"io.github.libtmux.SplitDirection.SplitDirection","name":"SplitDirection","kind":"enum","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Where a new pane goes relative to the one being split.","body":"Separate from {@link Direction}, which moves and grows existing panes with {@code -U -D -L -R}.\nSplitting speaks a different dialect: an axis, and whether the new pane comes first."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitDirection.java","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitDirection","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitDirection.SplitDirection","product":"core","slug":"io-github-libtmux-splitdirection-splitdirection"},{"id":"io.github.libtmux.SplitDirection.SplitDirection.BELOW","name":"BELOW","kind":"constant","modifiers":[],"parent":"io.github.libtmux.SplitDirection.SplitDirection","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Below the target, which is what tmux does when asked for nothing."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitDirection.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitDirection.BELOW","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitDirection.SplitDirection.BELOW","product":"core","slug":"io-github-libtmux-splitdirection-splitdirection-below"},{"id":"io.github.libtmux.SplitDirection.SplitDirection.ABOVE","name":"ABOVE","kind":"constant","modifiers":[],"parent":"io.github.libtmux.SplitDirection.SplitDirection","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitDirection.java","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitDirection.ABOVE","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitDirection.SplitDirection.ABOVE","product":"core","slug":"io-github-libtmux-splitdirection-splitdirection-above"},{"id":"io.github.libtmux.SplitDirection.SplitDirection.RIGHT","name":"RIGHT","kind":"constant","modifiers":[],"parent":"io.github.libtmux.SplitDirection.SplitDirection","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitDirection.java","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitDirection.RIGHT","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitDirection.SplitDirection.RIGHT","product":"core","slug":"io-github-libtmux-splitdirection-splitdirection-right"},{"id":"io.github.libtmux.SplitDirection.SplitDirection.LEFT","name":"LEFT","kind":"constant","modifiers":[],"parent":"io.github.libtmux.SplitDirection.SplitDirection","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitDirection.java","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitDirection.LEFT","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitDirection.SplitDirection.LEFT","product":"core","slug":"io-github-libtmux-splitdirection-splitdirection-left"},{"id":"io.github.libtmux.SplitDirection.SplitDirection.SplitDirection","name":"SplitDirection","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitDirection.SplitDirection","signatures":[{"raw":"SplitDirection(String axis, boolean first)","params":[{"name":"axis","type":"String"},{"name":"first","type":"boolean"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitDirection.java","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitDirection.SplitDirection","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitDirection.SplitDirection.SplitDirection","product":"core","slug":"io-github-libtmux-splitdirection-splitdirection-splitdirection"},{"id":"io.github.libtmux.SplitDirection.SplitDirection.flags","name":"flags","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitDirection.SplitDirection","signatures":[{"raw":"List flags()","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"The tmux flags that place a pane this way."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitDirection.java","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitDirection.flags","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitDirection.SplitDirection.flags","product":"core","slug":"io-github-libtmux-splitdirection-splitdirection-flags"},{"id":"io.github.libtmux.SplitSpec.SplitSpec","name":"SplitSpec","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"How a pane should be split.","body":"A description rather than an action: it can be built once, named, and applied to as many panes\nas it suits. Nothing here contacts tmux, so a spec can be assembled on a machine that has none,\nand the version rules it depends on are checked when it is applied rather than when it is written\n— the same spec is legal against one server and not another.\n\nA builder-built class rather than a record for the reason {@link ServerConfig} gives: a\nrecord's canonical constructor is public API, and tmux keeps adding flags to {@code split-window}\n— six of them in 3.7 alone.","examples":[{"lang":"java","code":"Pane side = pane.split(s -> s.toRight().percent(30));\n\nSplitSpec sidebar = SplitSpec.builder().toRight().percent(25).build();\nleft.split(sidebar);\nright.split(sidebar);"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec","product":"core","slug":"io-github-libtmux-splitspec-splitspec"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.builder","name":"builder","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.SplitSpec.SplitSpec","signatures":[{"raw":"public static Builder builder()","params":[],"returns":"Builder","typeScopeBoundary":true}],"doc":{"summary":"A builder holding tmux's own defaults: below the target, half its size, running a shell."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":78,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.builder","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.builder","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-zmnf"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.direction","name":"direction","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec","signatures":[{"raw":"public SplitDirection direction()","params":[],"returns":"SplitDirection","typeScopeBoundary":false}],"doc":{"summary":"Where the new pane goes."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":83,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.direction","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.direction","product":"core","slug":"io-github-libtmux-splitspec-splitspec-direction"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.size","name":"size","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec","signatures":[{"raw":"public Optional size()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"How big the new pane should be, or empty to let tmux halve the target."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":88,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.size","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.size","product":"core","slug":"io-github-libtmux-splitspec-splitspec-size"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.start","name":"start","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec","signatures":[{"raw":"public PaneStart start()","params":[],"returns":"PaneStart","typeScopeBoundary":false}],"doc":{"summary":"What runs in the new pane."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":93,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.start","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.start","product":"core","slug":"io-github-libtmux-splitspec-splitspec-start"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.directory","name":"directory","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec","signatures":[{"raw":"public Optional directory()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"Where the new pane starts, or empty to inherit."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":98,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.directory","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.directory","product":"core","slug":"io-github-libtmux-splitspec-splitspec-directory"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.environment","name":"environment","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec","signatures":[{"raw":"@ReadOnly\n public Map environment()","params":[],"returns":"Map","typeScopeBoundary":false}],"doc":{"summary":"Variables set for the new pane, in the order they were given."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":103,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.environment","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.environment","product":"core","slug":"io-github-libtmux-splitspec-splitspec-environment"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.detached","name":"detached","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec","signatures":[{"raw":"public boolean detached()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether the new pane is left unfocused.","body":"False by default, which is what {@code split-window} itself does. A session created through\n{@link SessionSpec} is the opposite, because tmux cannot make one without attaching unless it\nis told to detach."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":115,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.detached","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.detached","product":"core","slug":"io-github-libtmux-splitspec-splitspec-detached"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.fullWindow","name":"fullWindow","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec","signatures":[{"raw":"public boolean fullWindow()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether the split spans the whole window rather than just the target pane."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":120,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.fullWindow","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.fullWindow","product":"core","slug":"io-github-libtmux-splitspec-splitspec-fullwindow"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.zoomed","name":"zoomed","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec","signatures":[{"raw":"public boolean zoomed()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether the new pane is zoomed on arrival."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":125,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.zoomed","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.zoomed","product":"core","slug":"io-github-libtmux-splitspec-splitspec-zoomed"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.keepOnExit","name":"keepOnExit","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec","signatures":[{"raw":"public boolean keepOnExit()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether the pane stays after its command exits. Requires tmux 3.7."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":130,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.keepOnExit","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.keepOnExit","product":"core","slug":"io-github-libtmux-splitspec-splitspec-keeponexit"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.exitMessage","name":"exitMessage","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec","signatures":[{"raw":"public Optional exitMessage()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"What a kept pane shows once its command has exited. Requires tmux 3.7."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":135,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.exitMessage","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.exitMessage","product":"core","slug":"io-github-libtmux-splitspec-splitspec-exitmessage"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.style","name":"style","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec","signatures":[{"raw":"public Optional style()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The new pane's {@code window-style}. Requires tmux 3.7."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":140,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.style","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.style","product":"core","slug":"io-github-libtmux-splitspec-splitspec-style"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.activeBorderStyle","name":"activeBorderStyle","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec","signatures":[{"raw":"public Optional activeBorderStyle()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The new pane's {@code pane-active-border-style}. Requires tmux 3.7."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":145,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.activeBorderStyle","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.activeBorderStyle","product":"core","slug":"io-github-libtmux-splitspec-splitspec-activeborderstyle"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.inactiveBorderStyle","name":"inactiveBorderStyle","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec","signatures":[{"raw":"public Optional inactiveBorderStyle()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The new pane's {@code pane-border-style}. Requires tmux 3.7."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":150,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.inactiveBorderStyle","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.inactiveBorderStyle","product":"core","slug":"io-github-libtmux-splitspec-splitspec-inactiveborderstyle"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.argv","name":"argv","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec","signatures":[{"raw":"List argv(String target, String format, TmuxVersion running)","params":[{"name":"target","type":"String","doc":"what to split, as a tmux target"},{"name":"format","type":"String","doc":"the row format the caller will read the result back with"},{"name":"running","type":"TmuxVersion","doc":"the version of the server about to run this"}],"returns":"List","typeScopeBoundary":false,"raises":[{"type":"UnsupportedFeatureException","doc":"if the spec asks for something {@code running} does not have"}]}],"doc":{"summary":"The command that performs this split, reporting the new pane through {@code format}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":162,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.argv","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.argv","product":"core","slug":"io-github-libtmux-splitspec-splitspec-argv"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":272,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.toString","product":"core","slug":"io-github-libtmux-splitspec-splitspec-tostring"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder","name":"Builder","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.SplitSpec.SplitSpec","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Collects the choices, each named for what it does rather than for the field it sets."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":279,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-kfol"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.below","name":"below","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder below()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Puts the new pane below the target, which is what tmux does by default."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":298,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.below","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.below","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-below"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.above","name":"above","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder above()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Puts the new pane above the target."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":304,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.above","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.above","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-above"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.toRight","name":"toRight","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder toRight()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Puts the new pane to the right of the target."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":310,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.toRight","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.toRight","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-toright"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.toLeft","name":"toLeft","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder toLeft()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Puts the new pane to the left of the target."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":316,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.toLeft","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.toLeft","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-toleft"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.cells","name":"cells","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder cells(int count)","params":[{"name":"count","type":"int"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Gives the new pane this many terminal cells."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":322,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.cells","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.cells","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-cells"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.percent","name":"percent","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder percent(int share)","params":[{"name":"share","type":"int"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Gives the new pane this share of what is being split."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":328,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.percent","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.percent","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-percent"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.running","name":"running","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder running(String... argv)","params":[{"name":"argv","type":"String","variadic":"positional"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Runs a command, which closes the pane when it exits unless {@link #keepOnExit} is set.","body":"A command that exits fast enough races {@link Pane#split}'s own read-back: tmux can\ndestroy the pane before the second listing that confirms it runs, and the split then\nthrows {@code TargetGoneException} even though tmux made the pane and ran the\ncommand in it. {@link #keepOnExit} removes the race by keeping the pane there to be read.\n\ntmux also reports the pane before its process has become this command, so a read at once\ncan still see the process about to exec it: wait for the command with {@link Pane#await(java.util.function.Predicate, java.time.Duration)}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":344,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.running","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.running","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-running"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.empty","name":"empty","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder empty()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Creates a pane with no process in it. Requires tmux 3.7."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":350,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.empty","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.empty","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-empty"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.start","name":"start","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder start(PaneStart start)","params":[{"name":"start","type":"PaneStart"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Sets what runs, for a caller holding a {@link PaneStart} already."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":356,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.start","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.start","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-start"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.in","name":"in","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder in(Path directory)","params":[{"name":"directory","type":"Path"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Starts the new pane in this directory, resolved against this process's when relative."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":362,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.in","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.in","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-in"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.env","name":"env","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder env(String name, String value)","params":[{"name":"name","type":"String"},{"name":"value","type":"String"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Sets one variable in the new pane's environment."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":368,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.env","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.env","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-env"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.environment","name":"environment","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder environment(Map variables)","params":[{"name":"variables","type":"Map"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Adds several variables to the new pane's environment, keeping any already set."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":374,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.environment","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.environment","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-environment"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.detached","name":"detached","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder detached()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Leaves the target pane focused, where tmux would move to the new one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":380,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.detached","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.detached","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-detached"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.fullWindow","name":"fullWindow","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder fullWindow()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Splits the whole window rather than just the target pane."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":386,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.fullWindow","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.fullWindow","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-fullwindow"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.zoomed","name":"zoomed","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder zoomed()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Zooms the new pane on arrival."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":392,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.zoomed","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.zoomed","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-zoomed"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.keepOnExit","name":"keepOnExit","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder keepOnExit()","params":[],"returns":"Builder","typeScopeBoundary":false},{"raw":"public Builder keepOnExit(String message)","params":[{"name":"message","type":"String"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Keeps the pane after its command exits. Requires tmux 3.7."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":398,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.keepOnExit","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.keepOnExit","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-keeponexit"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.style","name":"style","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder style(String style)","params":[{"name":"style","type":"String"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Sets the new pane's {@code window-style}. Requires tmux 3.7."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":411,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.style","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.style","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-style"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.activeBorderStyle","name":"activeBorderStyle","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder activeBorderStyle(String style)","params":[{"name":"style","type":"String"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Sets the new pane's {@code pane-active-border-style}. Requires tmux 3.7."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":417,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.activeBorderStyle","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.activeBorderStyle","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-activeborderstyle"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.inactiveBorderStyle","name":"inactiveBorderStyle","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder inactiveBorderStyle(String style)","params":[{"name":"style","type":"String"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Sets the new pane's {@code pane-border-style}. Requires tmux 3.7."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":423,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.inactiveBorderStyle","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.inactiveBorderStyle","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-inactiveborderstyle"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.build","name":"build","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public SplitSpec build()","params":[],"returns":"SplitSpec","typeScopeBoundary":false}],"doc":{"summary":"The finished spec."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":429,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.build","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.build","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-build"},{"id":"io.github.libtmux.TargetIds.TargetIds","name":"TargetIds","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Shared validation for the sigil-prefixed ids tmux hands out."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TargetIds.java","line":6,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TargetIds","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TargetIds.TargetIds","product":"core","slug":"io-github-libtmux-targetids-targetids"},{"id":"io.github.libtmux.TargetIds.TargetIds.require","name":"require","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.TargetIds.TargetIds","signatures":[{"raw":"static void require(String value, char sigil, String kind)","params":[{"name":"value","type":"String"},{"name":"sigil","type":"char"},{"name":"kind","type":"String"}],"returns":"void","typeScopeBoundary":true}],"doc":{"summary":"Rejects anything tmux would not read as an id of this kind.","body":"A bare {@code 0} is the case worth catching: tmux would accept it as a target and resolve\nit as a name or an index, silently addressing something else."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TargetIds.java","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TargetIds.require","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TargetIds.TargetIds.require","product":"core","slug":"io-github-libtmux-targetids-targetids-require"},{"id":"io.github.libtmux.TextOutcome.TextOutcome","name":"TextOutcome","kind":"enum","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Why a wait for text on a pane ended.","body":"Separate from {@link WakeReason}, which answers for a tmux channel, because this wait reads a\nscreen rather than blocking on a signal and so can end a way a channel never does: with the text\nalready there. A pane that has said {@code ready} since an hour ago must not answer a wait for\n{@code ready} the way output that just arrived does, and it must not be reported as a timeout\neither — a caller told only \"not found\" would go looking for text that is in plain sight.\n\n{@link Pane#await(java.util.function.Predicate, Duration)} keeps {@link WakeReason}: a caller\nwrote that condition and can test it before waiting, so the library is not the only thing that can\nsee it was already true."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TextOutcome.java","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TextOutcome","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TextOutcome.TextOutcome","product":"core","slug":"io-github-libtmux-textoutcome-textoutcome"},{"id":"io.github.libtmux.TextOutcome.TextOutcome.APPEARED","name":"APPEARED","kind":"constant","modifiers":[],"parent":"io.github.libtmux.TextOutcome.TextOutcome","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"The text appeared while the wait was running."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TextOutcome.java","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TextOutcome.APPEARED","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TextOutcome.TextOutcome.APPEARED","product":"core","slug":"io-github-libtmux-textoutcome-textoutcome-appeared"},{"id":"io.github.libtmux.TextOutcome.TextOutcome.PRESENT_AT_ENTRY","name":"PRESENT_AT_ENTRY","kind":"constant","modifiers":[],"parent":"io.github.libtmux.TextOutcome.TextOutcome","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"The first look already showed the text, so this wait did not see it arrive.","body":"Exactly that, and no more. It may be output from a command the caller started a moment ago\nand that finished before the first read, or it may have been on the pane for an hour — a\nscreen cannot tell those apart, and reporting them as the same thing would be the claim this\noutcome exists to avoid. A caller that needs the difference should not be reading a screen:\nappend {@code ; tmux wait-for -S name} to its own command and block on {@link Server#channel},\nwhich is exact.\n\nAn echo of what this library typed is never what is found here; that is the caller's own\nquestion coming back, and it is discounted."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TextOutcome.java","line":34,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TextOutcome.PRESENT_AT_ENTRY","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TextOutcome.TextOutcome.PRESENT_AT_ENTRY","product":"core","slug":"io-github-libtmux-textoutcome-textoutcome-present_at_entry"},{"id":"io.github.libtmux.TextOutcome.TextOutcome.TIMED_OUT","name":"TIMED_OUT","kind":"constant","modifiers":[],"parent":"io.github.libtmux.TextOutcome.TextOutcome","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"The deadline passed with the text absent."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TextOutcome.java","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TextOutcome.TIMED_OUT","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TextOutcome.TextOutcome.TIMED_OUT","product":"core","slug":"io-github-libtmux-textoutcome-textoutcome-timed_out"},{"id":"io.github.libtmux.TextOutcome.TextOutcome.SERVER_GONE","name":"SERVER_GONE","kind":"constant","modifiers":[],"parent":"io.github.libtmux.TextOutcome.TextOutcome","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"The server went away underneath the wait, so nothing it was guarding can be relied on."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TextOutcome.java","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TextOutcome.SERVER_GONE","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TextOutcome.TextOutcome.SERVER_GONE","product":"core","slug":"io-github-libtmux-textoutcome-textoutcome-server_gone"},{"id":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment","name":"TmuxEnvironment","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"What tmux tells a program running inside one of its panes.","body":"tmux exports {@code TMUX} as {@code ,,} and {@code TMUX_PANE} as\nthe pane's id. That is how a process discovers the server it is already inside, without being told\nwhere to look.\n\nReading is separated from the environment itself, so the parsing is testable without a process\never having to be started inside tmux: {@link #of} takes the variables, {@link #current} is the\none-line wrapper that fetches them.\n\nA class rather than a record for the reason {@link ServerConfig} gives — and because the pane\nis genuinely absent sometimes, which an {@link Optional} accessor says better than a nullable\nrecord component.","examples":[{"lang":"java","code":"TmuxEnvironment here = TmuxEnvironment.current().orElseThrow();\n\ntry (Server server = Server.open(here.config())) {\n Session mine = server.sessions().stream()\n .filter(session -> session.id().equals(here.session()))\n .findFirst()\n .orElseThrow();\n}"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxEnvironment.java","line":34,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxEnvironment","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment","product":"core","slug":"io-github-libtmux-tmuxenvironment-tmuxenvironment"},{"id":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment.current","name":"current","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment","signatures":[{"raw":"public static Optional current()","params":[],"returns":"Optional","typeScopeBoundary":true,"returnsDoc":"what tmux said, or empty when this is not running inside tmux"}],"doc":{"summary":"Reads this process's own environment."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxEnvironment.java","line":53,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxEnvironment.current","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment.current","product":"core","slug":"io-github-libtmux-tmuxenvironment-tmuxenvironment-current"},{"id":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment.of","name":"of","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment","signatures":[{"raw":"public static Optional of(Map environment)","params":[{"name":"environment","type":"Map","doc":"the variables to read, typically {@code System.getenv()}"}],"returns":"Optional","typeScopeBoundary":true,"returnsDoc":"what tmux said, or empty when {@code TMUX} is absent or unreadable"}],"doc":{"summary":"Reads a set of environment variables."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxEnvironment.java","line":63,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxEnvironment.of","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment.of","product":"core","slug":"io-github-libtmux-tmuxenvironment-tmuxenvironment-of"},{"id":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment.socket","name":"socket","kind":"method","modifiers":[],"parent":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment","signatures":[{"raw":"public Path socket()","params":[],"returns":"Path","typeScopeBoundary":false}],"doc":{"summary":"The socket the server is listening on."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxEnvironment.java","line":97,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxEnvironment.socket","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment.socket","product":"core","slug":"io-github-libtmux-tmuxenvironment-tmuxenvironment-socket"},{"id":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment.serverPid","name":"serverPid","kind":"method","modifiers":[],"parent":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment","signatures":[{"raw":"public long serverPid()","params":[],"returns":"long","typeScopeBoundary":false}],"doc":{"summary":"The process id of the tmux server, which is not the pane's process."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxEnvironment.java","line":102,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxEnvironment.serverPid","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment.serverPid","product":"core","slug":"io-github-libtmux-tmuxenvironment-tmuxenvironment-serverpid"},{"id":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment.session","name":"session","kind":"method","modifiers":[],"parent":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment","signatures":[{"raw":"public SessionId session()","params":[],"returns":"SessionId","typeScopeBoundary":false}],"doc":{"summary":"The session this process is running in."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxEnvironment.java","line":107,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxEnvironment.session","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment.session","product":"core","slug":"io-github-libtmux-tmuxenvironment-tmuxenvironment-session"},{"id":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment.pane","name":"pane","kind":"method","modifiers":[],"parent":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment","signatures":[{"raw":"public Optional pane()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The pane this process is running in, absent when {@code TMUX_PANE} was not set."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxEnvironment.java","line":112,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxEnvironment.pane","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment.pane","product":"core","slug":"io-github-libtmux-tmuxenvironment-tmuxenvironment-pane"},{"id":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment.config","name":"config","kind":"method","modifiers":[],"parent":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment","signatures":[{"raw":"public ServerConfig config()","params":[],"returns":"ServerConfig","typeScopeBoundary":false}],"doc":{"summary":"A config addressing this server, ready for {@link Server#open}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxEnvironment.java","line":117,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxEnvironment.config","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment.config","product":"core","slug":"io-github-libtmux-tmuxenvironment-tmuxenvironment-config"},{"id":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxEnvironment.java","line":123,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxEnvironment.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment.toString","product":"core","slug":"io-github-libtmux-tmuxenvironment-tmuxenvironment-tostring"},{"id":"io.github.libtmux.TmuxFormats.TmuxFormats","name":"TmuxFormats","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Values handed to a tmux argument position that expands formats.","body":"tmux expands {@code #{...}} and {@code #(...)} in many argument positions, and {@code #(...)}\nruns a shell command. For the arguments this library composes itself — a window name, a pane\ntitle, a working directory — it applies {@link #literal} at the construction boundary, so a\ncaller's {@code #} stays a {@code #}.\n\nIt cannot do that for an argument the caller composes: {@link Pane#pipeTo},\n{@link Window#displayPopup}, {@link Shell#run}, {@link Shell#capturing} and {@link Shell#choose}\nall take a whole shell command, where format expansion is a documented\ntmux feature a caller may want — {@code #{pane_id}} in a filename, for instance. A caller\ninterpolating an untrusted value into one of those needs {@link #literal} on that value, which is\nwhy this is public.\n\nShell quoting does not substitute for it. tmux expands the format *before* the shell\nsees the string, so a {@code #(...)} inside single quotes still runs. Measured on tmux 3.7d, with\nthe interpolated value quoted as a careful caller would quote it: {@code run-shell} executed it,\nand {@code pipe-pane -O} executed it as soon as the pane produced output."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxFormats.java","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxFormats","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxFormats.TmuxFormats","product":"core","slug":"io-github-libtmux-tmuxformats-tmuxformats"},{"id":"io.github.libtmux.TmuxFormats.TmuxFormats.literal","name":"literal","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.TmuxFormats.TmuxFormats","signatures":[{"raw":"public static String literal(String value)","params":[{"name":"value","type":"String","doc":"a value to be read as text rather than expanded"}],"returns":"String","typeScopeBoundary":true,"returnsDoc":"the value with every {@code #} doubled"}],"doc":{"summary":"Makes one caller value literal at one construction boundary.","body":"Doubling {@code #} is tmux's own escape for it, so the value arrives as itself."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxFormats.java","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxFormats.literal","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxFormats.TmuxFormats.literal","product":"core","slug":"io-github-libtmux-tmuxformats-tmuxformats-literal"},{"id":"io.github.libtmux.TmuxFormats.TmuxFormats.printed","name":"printed","kind":"method","modifiers":["static","overload"],"parent":"io.github.libtmux.TmuxFormats.TmuxFormats","signatures":[{"raw":"static String printed(String line, TmuxVersion version)","params":[{"name":"line","type":"String"},{"name":"version","type":"TmuxVersion"}],"returns":"String","typeScopeBoundary":true},{"raw":"static java.util.List printed(java.util.List lines, TmuxVersion version)","params":[{"name":"lines","type":"java.util.List"},{"name":"version","type":"TmuxVersion"}],"returns":"java.util.List","typeScopeBoundary":true}],"doc":{"summary":"Text as tmux held it, from a line it printed.","body":"tmux 3.4 alone puts a backslash before every {@code $} that an ASCII letter, {@code _}, or\n`{` follows, in everything it prints: formats, listings, and {@code show-options\n-v}. 3.5 stopped ({@code 692ce59b}). Each escape is exactly one backslash in that position, so\nremoving it restores the text on 3.4 and changes nothing elsewhere.\n\n3.4 through 3.5a also print a control character as a C escape or three octal digits,\n{@code \\033} for ESC, and leave a backslash as it is. That is not undone: {@code \\033} could as well be those\nfour characters, which a {@code terminal-overrides} entry often holds, so the text is left as\ntmux printed it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxFormats.java","line":59,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxFormats.printed","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxFormats.TmuxFormats.printed","product":"core","slug":"io-github-libtmux-tmuxformats-tmuxformats-printed"},{"id":"io.github.libtmux.TmuxFormats.TmuxFormats.storedNames","name":"storedNames","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.TmuxFormats.TmuxFormats","signatures":[{"raw":"static java.util.List storedNames(String name, TmuxVersion version)","params":[{"name":"name","type":"String"},{"name":"version","type":"TmuxVersion"}],"returns":"java.util.List","typeScopeBoundary":true}],"doc":{"summary":"The names to look for when a caller names a session: the one this release stores for it, then the name exactly as given, which is what {@link Session#name} already reports.","body":"tmux doubles each backslash; 3.2a through 3.4 put a backslash before a {@code $} that a\nletter, {@code _}, or `{` follows; 3.2a through 3.6 store {@code .} and {@code :}\nas {@code _} and a control character as a C escape or three octal digits. 3.7 and later refuse\ncontrol characters. The stored form is an escaping, so it names at most one session; only a\nname that is itself some other name's stored form is ambiguous, and the stored form wins."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxFormats.java","line":83,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxFormats.storedNames","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxFormats.TmuxFormats.storedNames","product":"core","slug":"io-github-libtmux-tmuxformats-tmuxformats-storednames"},{"id":"io.github.libtmux.TmuxVersion.TmuxVersion","name":"TmuxVersion","kind":"class","modifiers":[],"signatures":[{"raw":"public record TmuxVersion(int major, int minor, String patch, boolean development, String preRelease)\n implements Comparable","params":[{"name":"major","type":"int","doc":"the major number"},{"name":"minor","type":"int","doc":"the minor number"},{"name":"patch","type":"String","doc":"the patch letter, or empty for an unlettered release"},{"name":"development","type":"boolean","doc":"whether this is a {@code next-M.m} build rather than the release {@code M.m} itself"},{"name":"preRelease","type":"String","doc":"the release candidate this is, such as {@code rc} or {@code rc2}, or empty for a release"}]}],"typeScopeBoundary":false,"doc":{"summary":"A released tmux version, ordered the way tmux releases are.","body":"tmux numbers a patch release with a letter rather than a third number: 3.7a follows 3.7, and\n3.2a follows 3.2. Comparing the text alone gets that wrong in both directions, and a feature gate\nthat gets it wrong reads a format the running tmux does not have.\n\nBetween releases, tmux reports itself as {@code next-M.m}: a development build tracking toward\nthe release named, not that release itself. It has everything the previous release shipped and\nnothing later's patches guarantee, so it sorts strictly between the two — above every patch of the\nrelease before it, below the release it names and every patch of that.\n\nA release candidate, {@code 3.8-rc}, compares equal to the release it names. tmux freezes\nfeatures at the candidate, so it has everything the release will and differs only in fixes —\nmeasured, not assumed: a 3.8 candidate writes JSON layouts and empties a dead pane's pid exactly\nas 3.8 does, and a feature gated on 3.8 works on it. It is not {@code equals} to the release, and\nit is written back exactly as tmux wrote it, which matters beyond display: every capture is\nfenced on the version tmux reports, and a candidate printed as {@code 3.8} failed that fence on\nevery read."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxVersion.java","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxVersion","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxVersion.TmuxVersion","product":"core","slug":"io-github-libtmux-tmuxversion-tmuxversion"},{"id":"io.github.libtmux.TmuxVersion.TmuxVersion.TmuxVersion","name":"TmuxVersion","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.TmuxVersion.TmuxVersion","signatures":[{"raw":"public TmuxVersion(int major, int minor, String patch, boolean development)","params":[{"name":"major","type":"int"},{"name":"minor","type":"int"},{"name":"patch","type":"String"},{"name":"development","type":"boolean"}],"typeScopeBoundary":false},{"raw":"public TmuxVersion(int major, int minor, String patch)","params":[{"name":"major","type":"int"},{"name":"minor","type":"int"},{"name":"patch","type":"String"}],"typeScopeBoundary":false}],"doc":{"summary":"A release or a development build, without a release candidate."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxVersion.java","line":46,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxVersion.TmuxVersion","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxVersion.TmuxVersion.TmuxVersion","product":"core","slug":"io-github-libtmux-tmuxversion-tmuxversion-tmuxversion"},{"id":"io.github.libtmux.TmuxVersion.TmuxVersion.parse","name":"parse","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.TmuxVersion.TmuxVersion","signatures":[{"raw":"public static TmuxVersion parse(String reported)","params":[{"name":"reported","type":"String"}],"returns":"TmuxVersion","typeScopeBoundary":true,"raises":[{"type":"IllegalArgumentException","doc":"if the text does not begin with a release number, optionally preceded by {@code next-}; a build that reports something else is one this cannot make version decisions about"}]}],"doc":{"summary":"Reads what tmux reports for {@code #{version}}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxVersion.java","line":62,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxVersion.parse","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxVersion.TmuxVersion.parse","product":"core","slug":"io-github-libtmux-tmuxversion-tmuxversion-parse"},{"id":"io.github.libtmux.TmuxVersion.TmuxVersion.atLeast","name":"atLeast","kind":"method","modifiers":[],"parent":"io.github.libtmux.TmuxVersion.TmuxVersion","signatures":[{"raw":"public boolean atLeast(TmuxVersion other)","params":[{"name":"other","type":"TmuxVersion"}],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether this version has everything the given one has."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxVersion.java","line":76,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxVersion.atLeast","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxVersion.TmuxVersion.atLeast","product":"core","slug":"io-github-libtmux-tmuxversion-tmuxversion-atleast"},{"id":"io.github.libtmux.TmuxVersion.TmuxVersion.compareTo","name":"compareTo","kind":"method","modifiers":[],"parent":"io.github.libtmux.TmuxVersion.TmuxVersion","signatures":[{"raw":"@Override\n public int compareTo(TmuxVersion other)","params":[{"name":"other","type":"TmuxVersion"}],"returns":"int","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxVersion.java","line":80,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxVersion.compareTo","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxVersion.TmuxVersion.compareTo","product":"core","slug":"io-github-libtmux-tmuxversion-tmuxversion-compareto"},{"id":"io.github.libtmux.TmuxVersion.TmuxVersion.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.TmuxVersion.TmuxVersion","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxVersion.java","line":100,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxVersion.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxVersion.TmuxVersion.toString","product":"core","slug":"io-github-libtmux-tmuxversion-tmuxversion-tostring"},{"id":"io.github.libtmux.TmuxVersion.TmuxVersion.major","name":"major","kind":"method","parent":"io.github.libtmux.TmuxVersion.TmuxVersion","modifiers":[],"signatures":[{"params":[],"returns":"int"}],"doc":{"summary":"the major number"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxVersion.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxVersion.major","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxVersion.TmuxVersion.major","product":"core","slug":"io-github-libtmux-tmuxversion-tmuxversion-major"},{"id":"io.github.libtmux.TmuxVersion.TmuxVersion.minor","name":"minor","kind":"method","parent":"io.github.libtmux.TmuxVersion.TmuxVersion","modifiers":[],"signatures":[{"params":[],"returns":"int"}],"doc":{"summary":"the minor number"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxVersion.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxVersion.minor","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxVersion.TmuxVersion.minor","product":"core","slug":"io-github-libtmux-tmuxversion-tmuxversion-minor"},{"id":"io.github.libtmux.TmuxVersion.TmuxVersion.patch","name":"patch","kind":"method","parent":"io.github.libtmux.TmuxVersion.TmuxVersion","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"the patch letter, or empty for an unlettered release"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxVersion.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxVersion.patch","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxVersion.TmuxVersion.patch","product":"core","slug":"io-github-libtmux-tmuxversion-tmuxversion-patch"},{"id":"io.github.libtmux.TmuxVersion.TmuxVersion.development","name":"development","kind":"method","parent":"io.github.libtmux.TmuxVersion.TmuxVersion","modifiers":[],"signatures":[{"params":[],"returns":"boolean"}],"doc":{"summary":"whether this is a {@code next-M.m} build rather than the release {@code M.m} itself"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxVersion.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxVersion.development","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxVersion.TmuxVersion.development","product":"core","slug":"io-github-libtmux-tmuxversion-tmuxversion-development"},{"id":"io.github.libtmux.TmuxVersion.TmuxVersion.preRelease","name":"preRelease","kind":"method","parent":"io.github.libtmux.TmuxVersion.TmuxVersion","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"the release candidate this is, such as {@code rc} or {@code rc2}, or empty for a release"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxVersion.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxVersion.preRelease","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxVersion.TmuxVersion.preRelease","product":"core","slug":"io-github-libtmux-tmuxversion-tmuxversion-prerelease"},{"id":"io.github.libtmux.transport.CommandRequest.CommandRequest","name":"CommandRequest","kind":"class","modifiers":[],"signatures":[{"raw":"public record CommandRequest(\n @ReadOnly List endpoint, @ReadOnly List> commands, Duration timeout, String input)","params":[{"name":"endpoint","type":"List","doc":"the tmux executable and its server selection, such as {@code [tmux, -S, path]}. tmux reads these before it parses commands, so they are passed through untouched"},{"name":"commands","type":"List>","doc":"one or more tmux commands, each an argv of literal words. tmux runs them in order and discards the rest after the first failure"},{"name":"timeout","type":"Duration","doc":"how long the caller will wait for the whole invocation"},{"name":"input","type":"String","doc":"what the commands read from tmux's standard input, empty for the commands that read none. A tmux argument is bounded by MAX_IMSGSIZE, so text too large to be one travels here instead."}]}],"typeScopeBoundary":false,"doc":{"summary":"One tmux invocation: how to reach the server, then the commands to run there.","body":"Commands are held literally. tmux ends a command at an argument whose last byte is {@code ;},\nso a value ending in one would otherwise be truncated with no error; a transport encodes for the\nparser it feeds, and {@link #commands()} answers with what the caller meant.\n\nThe timeout rides on the request instead of the transport because the same server serves both\na listing that should answer immediately and an attach that never returns."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/CommandRequest.java","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.CommandRequest","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.CommandRequest.CommandRequest","product":"core","slug":"io-github-libtmux-transport-commandrequest-commandrequest"},{"id":"io.github.libtmux.transport.CommandRequest.CommandRequest.of","name":"of","kind":"method","modifiers":["static","overload"],"parent":"io.github.libtmux.transport.CommandRequest.CommandRequest","signatures":[{"raw":"public static CommandRequest of(List endpoint, List argv, Duration timeout)","params":[{"name":"endpoint","type":"List"},{"name":"argv","type":"List"},{"name":"timeout","type":"Duration"}],"returns":"CommandRequest","typeScopeBoundary":true},{"raw":"public static CommandRequest of(List endpoint, List argv, Duration timeout, String input)","params":[{"name":"endpoint","type":"List"},{"name":"argv","type":"List"},{"name":"timeout","type":"Duration"},{"name":"input","type":"String"}],"returns":"CommandRequest","typeScopeBoundary":true}],"doc":{"summary":"A request for one command, which is every request but a batch."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/CommandRequest.java","line":56,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.CommandRequest.of","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.CommandRequest.CommandRequest.of","product":"core","slug":"io-github-libtmux-transport-commandrequest-commandrequest-of"},{"id":"io.github.libtmux.transport.CommandRequest.CommandRequest.idempotence","name":"idempotence","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.CommandRequest.CommandRequest","signatures":[{"raw":"public Idempotence idempotence()","params":[],"returns":"Idempotence","typeScopeBoundary":false}],"doc":{"summary":"Whether sending this request twice leaves tmux as sending it once does: {@link Idempotence#IDEMPOTENT} only when every command in it reads."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/CommandRequest.java","line":69,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.CommandRequest.idempotence","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.CommandRequest.CommandRequest.idempotence","product":"core","slug":"io-github-libtmux-transport-commandrequest-commandrequest-idempotence"},{"id":"io.github.libtmux.transport.CommandRequest.CommandRequest.commandLine","name":"commandLine","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.CommandRequest.CommandRequest","signatures":[{"raw":"@ReadOnly\n public List commandLine()","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"The full argv to hand a process builder, encoded for tmux's own argv parser."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/CommandRequest.java","line":74,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.CommandRequest.commandLine","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.CommandRequest.CommandRequest.commandLine","product":"core","slug":"io-github-libtmux-transport-commandrequest-commandrequest-commandline"},{"id":"io.github.libtmux.transport.CommandRequest.CommandRequest.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.CommandRequest.CommandRequest","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"Counts only. Commands carry pane content and socket paths, and this value reaches log lines and failed assertions."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/CommandRequest.java","line":87,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.CommandRequest.toString","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.CommandRequest.CommandRequest.toString","product":"core","slug":"io-github-libtmux-transport-commandrequest-commandrequest-tostring"},{"id":"io.github.libtmux.transport.CommandRequest.CommandRequest.endpoint","name":"endpoint","kind":"method","parent":"io.github.libtmux.transport.CommandRequest.CommandRequest","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"doc":{"summary":"the tmux executable and its server selection, such as {@code [tmux, -S, path]}. tmux reads these before it parses commands, so they are passed through untouched"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/CommandRequest.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.CommandRequest.endpoint","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.CommandRequest.CommandRequest.endpoint","product":"core","slug":"io-github-libtmux-transport-commandrequest-commandrequest-endpoint"},{"id":"io.github.libtmux.transport.CommandRequest.CommandRequest.commands","name":"commands","kind":"method","parent":"io.github.libtmux.transport.CommandRequest.CommandRequest","modifiers":[],"signatures":[{"params":[],"returns":"List>"}],"doc":{"summary":"one or more tmux commands, each an argv of literal words. tmux runs them in order and discards the rest after the first failure"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/CommandRequest.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.CommandRequest.commands","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.CommandRequest.CommandRequest.commands","product":"core","slug":"io-github-libtmux-transport-commandrequest-commandrequest-commands"},{"id":"io.github.libtmux.transport.CommandRequest.CommandRequest.timeout","name":"timeout","kind":"method","parent":"io.github.libtmux.transport.CommandRequest.CommandRequest","modifiers":[],"signatures":[{"params":[],"returns":"Duration"}],"doc":{"summary":"how long the caller will wait for the whole invocation"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/CommandRequest.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.CommandRequest.timeout","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.CommandRequest.CommandRequest.timeout","product":"core","slug":"io-github-libtmux-transport-commandrequest-commandrequest-timeout"},{"id":"io.github.libtmux.transport.CommandRequest.CommandRequest.input","name":"input","kind":"method","parent":"io.github.libtmux.transport.CommandRequest.CommandRequest","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"what the commands read from tmux's standard input, empty for the commands that read none. A tmux argument is bounded by MAX_IMSGSIZE, so text too large to be one travels here instead."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/CommandRequest.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.CommandRequest.input","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.CommandRequest.CommandRequest.input","product":"core","slug":"io-github-libtmux-transport-commandrequest-commandrequest-input"},{"id":"io.github.libtmux.transport.CommandResult.CommandResult","name":"CommandResult","kind":"class","modifiers":[],"signatures":[{"raw":"public record CommandResult(\n int exitCode,\n @ReadOnly List stdout,\n @ReadOnly List stderr)","params":[{"name":"exitCode","type":"int","doc":"the process exit status"},{"name":"stdout","type":"List","doc":"stdout split at LF, preserving carriage returns and interior blanks"},{"name":"stderr","type":"List","doc":"stderr split into lines, with blanks dropped"}]}],"typeScopeBoundary":false,"doc":{"summary":"One completed invocation.","body":"A nonzero exit is data, not a failure. tmux reports an ordinary \"no such pane\" the same way it\nreports a real problem, so only a higher-level method knows which one should raise."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/CommandResult.java","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.CommandResult","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.CommandResult.CommandResult","product":"core","slug":"io-github-libtmux-transport-commandresult-commandresult"},{"id":"io.github.libtmux.transport.CommandResult.CommandResult.succeeded","name":"succeeded","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.CommandResult.CommandResult","signatures":[{"raw":"public boolean succeeded()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether tmux reported success."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/CommandResult.java","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.CommandResult.succeeded","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.CommandResult.CommandResult.succeeded","product":"core","slug":"io-github-libtmux-transport-commandresult-commandresult-succeeded"},{"id":"io.github.libtmux.transport.CommandResult.CommandResult.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.CommandResult.CommandResult","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"Counts only, because both channels carry captured terminal content."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/CommandResult.java","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.CommandResult.toString","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.CommandResult.CommandResult.toString","product":"core","slug":"io-github-libtmux-transport-commandresult-commandresult-tostring"},{"id":"io.github.libtmux.transport.CommandResult.CommandResult.exitCode","name":"exitCode","kind":"method","parent":"io.github.libtmux.transport.CommandResult.CommandResult","modifiers":[],"signatures":[{"params":[],"returns":"int"}],"doc":{"summary":"the process exit status"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/CommandResult.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.CommandResult.exitCode","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.CommandResult.CommandResult.exitCode","product":"core","slug":"io-github-libtmux-transport-commandresult-commandresult-exitcode"},{"id":"io.github.libtmux.transport.CommandResult.CommandResult.stdout","name":"stdout","kind":"method","parent":"io.github.libtmux.transport.CommandResult.CommandResult","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"doc":{"summary":"stdout split at LF, preserving carriage returns and interior blanks"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/CommandResult.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.CommandResult.stdout","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.CommandResult.CommandResult.stdout","product":"core","slug":"io-github-libtmux-transport-commandresult-commandresult-stdout"},{"id":"io.github.libtmux.transport.CommandResult.CommandResult.stderr","name":"stderr","kind":"method","parent":"io.github.libtmux.transport.CommandResult.CommandResult","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"doc":{"summary":"stderr split into lines, with blanks dropped"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/CommandResult.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.CommandResult.stderr","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.CommandResult.CommandResult.stderr","product":"core","slug":"io-github-libtmux-transport-commandresult-commandresult-stderr"},{"id":"io.github.libtmux.transport.ControlCarrier.ControlCarrier","name":"ControlCarrier","kind":"interface","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Starts a long-lived tmux process in a transport's realm.","body":"A control client stays attached, so it cannot borrow a command permit. It still has to be\nstarted by the same carrier as the commands, or a custom transport's realm is silently ignored\nand the client attaches to whatever the local machine calls tmux."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/ControlCarrier.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.ControlCarrier","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.ControlCarrier.ControlCarrier","product":"core","slug":"io-github-libtmux-transport-controlcarrier-controlcarrier"},{"id":"io.github.libtmux.transport.ControlCarrier.ControlCarrier.start","name":"start","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.ControlCarrier.ControlCarrier","signatures":[{"raw":"Process start(List command) throws IOException;","params":[{"name":"command","type":"List","doc":"the tmux invocation, arguments already separate"}],"returns":"Process","typeScopeBoundary":false,"returnsDoc":"the running process","raises":[{"type":"IOException","doc":"if the process cannot be started"}]}],"doc":{"summary":"Starts the process. The caller owns it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/ControlCarrier.java","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.ControlCarrier.start","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.ControlCarrier.ControlCarrier.start","product":"core","slug":"io-github-libtmux-transport-controlcarrier-controlcarrier-start"},{"id":"io.github.libtmux.transport.DispatchOutcome.DispatchOutcome","name":"DispatchOutcome","kind":"enum","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"How certain the transport is that tmux applied a request."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/DispatchOutcome.java","line":4,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.DispatchOutcome","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.DispatchOutcome.DispatchOutcome","product":"core","slug":"io-github-libtmux-transport-dispatchoutcome-dispatchoutcome"},{"id":"io.github.libtmux.transport.DispatchOutcome.DispatchOutcome.NOT_DISPATCHED","name":"NOT_DISPATCHED","kind":"constant","modifiers":[],"parent":"io.github.libtmux.transport.DispatchOutcome.DispatchOutcome","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"The process never started, so tmux cannot have applied anything."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/DispatchOutcome.java","line":6,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.DispatchOutcome.NOT_DISPATCHED","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.DispatchOutcome.DispatchOutcome.NOT_DISPATCHED","product":"core","slug":"io-github-libtmux-transport-dispatchoutcome-dispatchoutcome-not_dispatched"},{"id":"io.github.libtmux.transport.DispatchOutcome.DispatchOutcome.COMPLETE","name":"COMPLETE","kind":"constant","modifiers":[],"parent":"io.github.libtmux.transport.DispatchOutcome.DispatchOutcome","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"The process ran to completion and both channels were drained."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/DispatchOutcome.java","line":8,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.DispatchOutcome.COMPLETE","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.DispatchOutcome.DispatchOutcome.COMPLETE","product":"core","slug":"io-github-libtmux-transport-dispatchoutcome-dispatchoutcome-complete"},{"id":"io.github.libtmux.transport.DispatchOutcome.DispatchOutcome.UNKNOWN","name":"UNKNOWN","kind":"constant","modifiers":[],"parent":"io.github.libtmux.transport.DispatchOutcome.DispatchOutcome","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"tmux may already have applied the command; the result is not knowable."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/DispatchOutcome.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.DispatchOutcome.UNKNOWN","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.DispatchOutcome.DispatchOutcome.UNKNOWN","product":"core","slug":"io-github-libtmux-transport-dispatchoutcome-dispatchoutcome-unknown"},{"id":"io.github.libtmux.transport.DispatchOutcome.DispatchOutcome.canRetryVerbatim","name":"canRetryVerbatim","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.DispatchOutcome.DispatchOutcome","signatures":[{"raw":"public boolean canRetryVerbatim(Idempotence idempotence)","params":[{"name":"idempotence","type":"Idempotence","doc":"whether every command in the request only reads"}],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether the exact same request may be sent again after this outcome.","body":"A request that never reached tmux may always be resent. One that may have reached it may be\nresent only when it changes nothing. One that completed is not a dispatch question at all:\nwhether to act on tmux's answer is the caller's decision, so this answers {@code false}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/DispatchOutcome.java","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.DispatchOutcome.canRetryVerbatim","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.DispatchOutcome.DispatchOutcome.canRetryVerbatim","product":"core","slug":"io-github-libtmux-transport-dispatchoutcome-dispatchoutcome-canretryverbatim"},{"id":"io.github.libtmux.transport.Idempotence.Idempotence","name":"Idempotence","kind":"enum","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Whether running a request twice leaves tmux as running it once does.","body":"Decided from the commands themselves: a request is idempotent only when every command in it\nreads and changes nothing. Anything this library cannot tell is a read counts as a change, so a\nfailure never reports a mutation as safe to resend."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/Idempotence.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.Idempotence","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.Idempotence.Idempotence","product":"core","slug":"io-github-libtmux-transport-idempotence-idempotence"},{"id":"io.github.libtmux.transport.Idempotence.Idempotence.IDEMPOTENT","name":"IDEMPOTENT","kind":"constant","modifiers":[],"parent":"io.github.libtmux.transport.Idempotence.Idempotence","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Every command only reads; sending it again cannot change tmux."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/Idempotence.java","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.Idempotence.IDEMPOTENT","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.Idempotence.Idempotence.IDEMPOTENT","product":"core","slug":"io-github-libtmux-transport-idempotence-idempotence-idempotent"},{"id":"io.github.libtmux.transport.Idempotence.Idempotence.NOT_IDEMPOTENT","name":"NOT_IDEMPOTENT","kind":"constant","modifiers":[],"parent":"io.github.libtmux.transport.Idempotence.Idempotence","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"At least one command may change tmux, so a second send may apply it twice."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/Idempotence.java","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.Idempotence.NOT_IDEMPOTENT","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.Idempotence.Idempotence.NOT_IDEMPOTENT","product":"core","slug":"io-github-libtmux-transport-idempotence-idempotence-not_idempotent"},{"id":"io.github.libtmux.transport.Idempotence.Idempotence.of","name":"of","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.transport.Idempotence.Idempotence","signatures":[{"raw":"public static Idempotence of(List> commands)","params":[{"name":"commands","type":"List>"}],"returns":"Idempotence","typeScopeBoundary":true}],"doc":{"summary":"The idempotence of a request made of {@code commands}, each an argv."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/Idempotence.java","line":55,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.Idempotence.of","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.Idempotence.Idempotence.of","product":"core","slug":"io-github-libtmux-transport-idempotence-idempotence-of"},{"id":"io.github.libtmux.transport.OperationObserver.OperationObserver","name":"OperationObserver","kind":"interface","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Receives one {@link OperationReport} after each command.","body":"The transport still throws on failure. This does not retry. A report whose {@link\nOperationReport#certainty() certainty} is {@link DispatchOutcome#NOT_DISPATCHED} was never\napplied. {@link DispatchOutcome#UNKNOWN} must not be sent again blindly."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OperationObserver.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OperationObserver","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OperationObserver.OperationObserver","product":"core","slug":"io-github-libtmux-transport-operationobserver-operationobserver"},{"id":"io.github.libtmux.transport.OperationObserver.OperationObserver.accept","name":"accept","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.OperationObserver.OperationObserver","signatures":[{"raw":"void accept(OperationReport report);","params":[{"name":"report","type":"OperationReport"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Called once, after the command ends, on the thread that ran it.","body":"An exception thrown here does not change the command's result, since the command has\nalready run: failing it would invite a retry of something tmux may have done. The exception is\nlogged at {@code WARNING}, with its stack trace, by the logger of the transport or control\nclient that ran the command."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OperationObserver.java","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OperationObserver.accept","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OperationObserver.OperationObserver.accept","product":"core","slug":"io-github-libtmux-transport-operationobserver-operationobserver-accept"},{"id":"io.github.libtmux.transport.OperationReport.OperationReport","name":"OperationReport","kind":"class","modifiers":[],"signatures":[{"raw":"public record OperationReport(\n long id,\n @ReadOnly List verbs,\n DispatchOutcome certainty,\n OptionalInt exitCode,\n int stdoutLines,\n int stderrLines,\n String boundedError,\n Duration queued,\n Duration elapsed)","params":[{"name":"id","type":"long","doc":"a counter for this transport, so one call can be told from the next"},{"name":"verbs","type":"List","doc":"the commands, without their arguments"},{"name":"certainty","type":"DispatchOutcome","doc":"whether tmux never started, finished, or might have applied the command"},{"name":"exitCode","type":"OptionalInt","doc":"the process exit status, empty when the process did not finish"},{"name":"stdoutLines","type":"int","doc":"how many stdout lines came back"},{"name":"stderrLines","type":"int","doc":"how many stderr lines came back"},{"name":"boundedError","type":"String","doc":"stderr text, at most {@link #ERROR_LIMIT} characters"},{"name":"queued","type":"Duration","doc":"how long the call waited for a free process or writer slot"},{"name":"elapsed","type":"Duration","doc":"how long the command itself ran after that wait"}]}],"typeScopeBoundary":false,"doc":{"summary":"One command a transport finished or failed to finish.","body":"The verbs are the first word of each command. Arguments, standard input, and stdout are not\nhere: they carry session names, socket paths, and whatever a caller typed. {@link #boundedError()}\nis stderr, cut off, and {@link #toString()} leaves it out."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OperationReport.java","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OperationReport","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OperationReport.OperationReport","product":"core","slug":"io-github-libtmux-transport-operationreport-operationreport"},{"id":"io.github.libtmux.transport.OperationReport.OperationReport.ERROR_LIMIT","name":"ERROR_LIMIT","kind":"attribute","modifiers":["static","readonly"],"parent":"io.github.libtmux.transport.OperationReport.OperationReport","signatures":[],"typeScopeBoundary":true,"type":"int","value":"240","doc":{"summary":"How much stderr text a report keeps."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OperationReport.java","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OperationReport.ERROR_LIMIT","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OperationReport.OperationReport.ERROR_LIMIT","product":"core","slug":"io-github-libtmux-transport-operationreport-operationreport-error_limit"},{"id":"io.github.libtmux.transport.OperationReport.OperationReport.bound","name":"bound","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.transport.OperationReport.OperationReport","signatures":[{"raw":"public static String bound(List stderr)","params":[{"name":"stderr","type":"List"}],"returns":"String","typeScopeBoundary":true}],"doc":{"summary":"Joins stderr lines and cuts them at {@link #ERROR_LIMIT}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OperationReport.java","line":52,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OperationReport.bound","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OperationReport.OperationReport.bound","product":"core","slug":"io-github-libtmux-transport-operationreport-operationreport-bound"},{"id":"io.github.libtmux.transport.OperationReport.OperationReport.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.OperationReport.OperationReport","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"Counts and timings only. The error text stays on {@link #boundedError()}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OperationReport.java","line":57,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OperationReport.toString","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OperationReport.OperationReport.toString","product":"core","slug":"io-github-libtmux-transport-operationreport-operationreport-tostring"},{"id":"io.github.libtmux.transport.OperationReport.OperationReport.id","name":"id","kind":"method","parent":"io.github.libtmux.transport.OperationReport.OperationReport","modifiers":[],"signatures":[{"params":[],"returns":"long"}],"doc":{"summary":"a counter for this transport, so one call can be told from the next"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OperationReport.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OperationReport.id","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OperationReport.OperationReport.id","product":"core","slug":"io-github-libtmux-transport-operationreport-operationreport-id"},{"id":"io.github.libtmux.transport.OperationReport.OperationReport.verbs","name":"verbs","kind":"method","parent":"io.github.libtmux.transport.OperationReport.OperationReport","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"doc":{"summary":"the commands, without their arguments"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OperationReport.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OperationReport.verbs","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OperationReport.OperationReport.verbs","product":"core","slug":"io-github-libtmux-transport-operationreport-operationreport-verbs"},{"id":"io.github.libtmux.transport.OperationReport.OperationReport.certainty","name":"certainty","kind":"method","parent":"io.github.libtmux.transport.OperationReport.OperationReport","modifiers":[],"signatures":[{"params":[],"returns":"DispatchOutcome"}],"doc":{"summary":"whether tmux never started, finished, or might have applied the command"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OperationReport.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OperationReport.certainty","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OperationReport.OperationReport.certainty","product":"core","slug":"io-github-libtmux-transport-operationreport-operationreport-certainty"},{"id":"io.github.libtmux.transport.OperationReport.OperationReport.exitCode","name":"exitCode","kind":"method","parent":"io.github.libtmux.transport.OperationReport.OperationReport","modifiers":[],"signatures":[{"params":[],"returns":"OptionalInt"}],"doc":{"summary":"the process exit status, empty when the process did not finish"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OperationReport.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OperationReport.exitCode","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OperationReport.OperationReport.exitCode","product":"core","slug":"io-github-libtmux-transport-operationreport-operationreport-exitcode"},{"id":"io.github.libtmux.transport.OperationReport.OperationReport.stdoutLines","name":"stdoutLines","kind":"method","parent":"io.github.libtmux.transport.OperationReport.OperationReport","modifiers":[],"signatures":[{"params":[],"returns":"int"}],"doc":{"summary":"how many stdout lines came back"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OperationReport.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OperationReport.stdoutLines","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OperationReport.OperationReport.stdoutLines","product":"core","slug":"io-github-libtmux-transport-operationreport-operationreport-stdoutlines"},{"id":"io.github.libtmux.transport.OperationReport.OperationReport.stderrLines","name":"stderrLines","kind":"method","parent":"io.github.libtmux.transport.OperationReport.OperationReport","modifiers":[],"signatures":[{"params":[],"returns":"int"}],"doc":{"summary":"how many stderr lines came back"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OperationReport.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OperationReport.stderrLines","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OperationReport.OperationReport.stderrLines","product":"core","slug":"io-github-libtmux-transport-operationreport-operationreport-stderrlines"},{"id":"io.github.libtmux.transport.OperationReport.OperationReport.boundedError","name":"boundedError","kind":"method","parent":"io.github.libtmux.transport.OperationReport.OperationReport","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"stderr text, at most {@link #ERROR_LIMIT} characters"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OperationReport.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OperationReport.boundedError","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OperationReport.OperationReport.boundedError","product":"core","slug":"io-github-libtmux-transport-operationreport-operationreport-boundederror"},{"id":"io.github.libtmux.transport.OperationReport.OperationReport.queued","name":"queued","kind":"method","parent":"io.github.libtmux.transport.OperationReport.OperationReport","modifiers":[],"signatures":[{"params":[],"returns":"Duration"}],"doc":{"summary":"how long the call waited for a free process or writer slot"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OperationReport.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OperationReport.queued","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OperationReport.OperationReport.queued","product":"core","slug":"io-github-libtmux-transport-operationreport-operationreport-queued"},{"id":"io.github.libtmux.transport.OperationReport.OperationReport.elapsed","name":"elapsed","kind":"method","parent":"io.github.libtmux.transport.OperationReport.OperationReport","modifiers":[],"signatures":[{"params":[],"returns":"Duration"}],"doc":{"summary":"how long the command itself ran after that wait"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OperationReport.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OperationReport.elapsed","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OperationReport.OperationReport.elapsed","product":"core","slug":"io-github-libtmux-transport-operationreport-operationreport-elapsed"},{"id":"io.github.libtmux.transport.OutputDecoder.OutputDecoder","name":"OutputDecoder","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Turns a drained pipe into lines while preserving tmux values.","body":"tmux emits pane content, so the bytes are not guaranteed to be UTF-8. A malformed byte is\nescaped as {@code \\xNN} rather than replaced with U+FFFD, which keeps the original byte\nrecoverable and matches what CPython's {@code backslashreplace} produces.\n\ntmux frames stdout with LF; CR is value data, including before LF. Stdout keeps interior blank\nlines and drops trailing ones. Diagnostic stderr normalizes CRLF and CR to LF and drops all blanks."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OutputDecoder.java","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OutputDecoder","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OutputDecoder.OutputDecoder","product":"core","slug":"io-github-libtmux-transport-outputdecoder-outputdecoder"},{"id":"io.github.libtmux.transport.OutputDecoder.OutputDecoder.stdoutLines","name":"stdoutLines","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.transport.OutputDecoder.OutputDecoder","signatures":[{"raw":"static List stdoutLines(byte[] bytes)","params":[{"name":"bytes","type":"byte[]"}],"returns":"List","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OutputDecoder.java","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OutputDecoder.stdoutLines","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OutputDecoder.OutputDecoder.stdoutLines","product":"core","slug":"io-github-libtmux-transport-outputdecoder-outputdecoder-stdoutlines"},{"id":"io.github.libtmux.transport.OutputDecoder.OutputDecoder.stderrLines","name":"stderrLines","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.transport.OutputDecoder.OutputDecoder","signatures":[{"raw":"static List stderrLines(byte[] bytes)","params":[{"name":"bytes","type":"byte[]"}],"returns":"List","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OutputDecoder.java","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OutputDecoder.stderrLines","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OutputDecoder.OutputDecoder.stderrLines","product":"core","slug":"io-github-libtmux-transport-outputdecoder-outputdecoder-stderrlines"},{"id":"io.github.libtmux.transport.ProcessTransport.ProcessTransport","name":"ProcessTransport","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The default transport: one child process per call, drained by a bounded pool of platform threads.","body":"A caller takes one admission permit before launching, and the pool holds exactly three workers\nper permit, so holding a permit means both drains and the input pump are already free. Without\nthat coupling a caller can start a child whose pipes nobody is reading, or block forever writing\nto one that stopped reading.\n\nA request declared as waiting also takes one of all but one admission permits. The remaining\nprocess stays available for the ordinary request that observes or releases those waits, without\nincreasing the total process or pump bound. An additional waiter is refused before dispatch, so\nits caller knows it was never registered.\n\nThe caller itself may be a virtual thread: {@code Process.waitFor} releases its carrier. The\ndrains stay platform threads, although on JDK 25 neither a monitor nor a pipe read pins a virtual\nthread any more. A virtual thread is always a daemon, and a drain has to finish the reply it is\nreading rather than be dropped at exit; and a library does not own the scheduler, where a\ncaller's CPU-bound task that never blocks keeps its carrier and a drain waiting behind it lets\nthe pipe fill.\n\nLaunching and closing are ordered by an explicit gate rather than a flag, because checking a\nflag and then acting on it lets a caller start a child after {@code close()} has already decided\nthere was nothing left to destroy."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java","line":66,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.ProcessTransport","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.ProcessTransport.ProcessTransport","product":"core","slug":"io-github-libtmux-transport-processtransport-processtransport"},{"id":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.ProcessTransport","name":"ProcessTransport","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.transport.ProcessTransport.ProcessTransport","signatures":[{"raw":"public ProcessTransport()","params":[],"typeScopeBoundary":false},{"raw":"public ProcessTransport(int maxConcurrentProcesses)","params":[{"name":"maxConcurrentProcesses","type":"int","doc":"how many tmux processes may run at once ({@code executeWaiting} requires at least two)"}],"typeScopeBoundary":false},{"raw":"public ProcessTransport(int maxConcurrentProcesses, int maxOutputBytes)","params":[{"name":"maxConcurrentProcesses","type":"int","doc":"how many tmux processes may run at once"},{"name":"maxOutputBytes","type":"int","doc":"maximum bytes accepted from each output channel of one process"}],"typeScopeBoundary":false}],"doc":{"summary":"A transport allowing four concurrent tmux processes."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java","line":106,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.ProcessTransport.ProcessTransport","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.ProcessTransport","product":"core","slug":"io-github-libtmux-transport-processtransport-processtransport-processtransport"},{"id":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.controlCarrier","name":"controlCarrier","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.ProcessTransport.ProcessTransport","signatures":[{"raw":"@Override\n public Optional controlCarrier()","params":[],"returns":"Optional","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java","line":161,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.ProcessTransport.controlCarrier","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.controlCarrier","product":"core","slug":"io-github-libtmux-transport-processtransport-processtransport-controlcarrier"},{"id":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.admissionBound","name":"admissionBound","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.ProcessTransport.ProcessTransport","signatures":[{"raw":"@Override\n public int admissionBound()","params":[],"returns":"int","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java","line":169,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.ProcessTransport.admissionBound","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.admissionBound","product":"core","slug":"io-github-libtmux-transport-processtransport-processtransport-admissionbound"},{"id":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.observe","name":"observe","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.ProcessTransport.ProcessTransport","signatures":[{"raw":"@Override\n public void observe(OperationObserver observer)","params":[{"name":"observer","type":"OperationObserver"}],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java","line":174,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.ProcessTransport.observe","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.observe","product":"core","slug":"io-github-libtmux-transport-processtransport-processtransport-observe"},{"id":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.execute","name":"execute","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.ProcessTransport.ProcessTransport","signatures":[{"raw":"@Override\n public CommandResult execute(CommandRequest request)","params":[{"name":"request","type":"CommandRequest"}],"returns":"CommandResult","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java","line":179,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.ProcessTransport.execute","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.execute","product":"core","slug":"io-github-libtmux-transport-processtransport-processtransport-execute"},{"id":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.executeWaiting","name":"executeWaiting","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.ProcessTransport.ProcessTransport","signatures":[{"raw":"@Override\n public CommandResult executeWaiting(CommandRequest request)","params":[{"name":"request","type":"CommandRequest"}],"returns":"CommandResult","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java","line":184,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.ProcessTransport.executeWaiting","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.executeWaiting","product":"core","slug":"io-github-libtmux-transport-processtransport-processtransport-executewaiting"},{"id":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.close","name":"close","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.ProcessTransport.ProcessTransport","signatures":[{"raw":"@Override\n public void close()","params":[],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java","line":331,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.ProcessTransport.close","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.close","product":"core","slug":"io-github-libtmux-transport-processtransport-processtransport-close"},{"id":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.ProcessStarter","name":"ProcessStarter","kind":"interface","modifiers":[],"parent":"io.github.libtmux.transport.ProcessTransport.ProcessTransport","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java","line":733,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.ProcessTransport.ProcessStarter","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.ProcessStarter","product":"core","slug":"io-github-libtmux-transport-processtransport-processtransport-processstarter"},{"id":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.ProcessStarter.start","name":"start","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.ProcessStarter","signatures":[{"raw":"Process start(List command) throws IOException;","params":[{"name":"command","type":"List"}],"returns":"Process","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java","line":735,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.ProcessTransport.ProcessStarter.start","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.ProcessStarter.start","product":"core","slug":"io-github-libtmux-transport-processtransport-processtransport-processstarter-start"},{"id":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.ResourceNotReclaimed","name":"ResourceNotReclaimed","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.transport.ProcessTransport.ProcessTransport","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"A worker could not be recovered. Distinct from {@link IllegalStateException}, which this transport reserves for use after close."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java","line":801,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.ProcessTransport.ResourceNotReclaimed","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.ResourceNotReclaimed","product":"core","slug":"io-github-libtmux-transport-processtransport-processtransport-resourcenotreclaimed"},{"id":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.ResourceNotReclaimed.ResourceNotReclaimed","name":"ResourceNotReclaimed","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.ResourceNotReclaimed","signatures":[{"raw":"ResourceNotReclaimed(String message)","params":[{"name":"message","type":"String"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java","line":804,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.ProcessTransport.ResourceNotReclaimed.ResourceNotReclaimed","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.ResourceNotReclaimed.ResourceNotReclaimed","product":"core","slug":"io-github-libtmux-transport-processtransport-processtransport-resourcenotreclaimed-resourcenotreclaimed"},{"id":"io.github.libtmux.transport.TmuxTransport.TmuxTransport","name":"TmuxTransport","kind":"interface","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Runs one tmux command and blocks until it has an answer.","body":"Implementations are thread-safe and {@link #close()} is idempotent. A call begun before close\neither completes under the documented contract or fails with its dispatch certainty intact; a\ncall begun after close fails with {@link io.github.libtmux.exception.ServerClosedException}, an\n{@link IllegalStateException}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/TmuxTransport.java","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.TmuxTransport","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.TmuxTransport.TmuxTransport","product":"core","slug":"io-github-libtmux-transport-tmuxtransport-tmuxtransport"},{"id":"io.github.libtmux.transport.TmuxTransport.TmuxTransport.execute","name":"execute","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.TmuxTransport.TmuxTransport","signatures":[{"raw":"CommandResult execute(CommandRequest request);","params":[{"name":"request","type":"CommandRequest","doc":"what to run, what it reads, and how long to wait"}],"returns":"CommandResult","typeScopeBoundary":false,"returnsDoc":"the exit status and both channels; a nonzero exit is a result, not a failure","raises":[{"type":"DispatchException","doc":"if the command could not be run to completion, carrying how certain it is that tmux applied it"},{"type":"IllegalStateException","doc":"if this transport is closed"}]}],"doc":{"summary":"Runs the request to completion.","body":"An implementation writes {@link CommandRequest#input()} to tmux's standard input and\ncloses it. A command that reads standard input and is given none reads end of file, which\ntmux reports as success over an empty result rather than as a failure."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/TmuxTransport.java","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.TmuxTransport.execute","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.TmuxTransport.TmuxTransport.execute","product":"core","slug":"io-github-libtmux-transport-tmuxtransport-tmuxtransport-execute"},{"id":"io.github.libtmux.transport.TmuxTransport.TmuxTransport.executeWaiting","name":"executeWaiting","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.TmuxTransport.TmuxTransport","signatures":[{"raw":"default CommandResult executeWaiting(CommandRequest request)","params":[{"name":"request","type":"CommandRequest"}],"returns":"CommandResult","typeScopeBoundary":false}],"doc":{"summary":"Runs a request expected to remain blocked until another request through this transport releases it.","body":"The default shares ordinary admission. A transport with bounded concurrency may override\nthis to keep release and observation requests from queuing behind every waiter."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/TmuxTransport.java","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.TmuxTransport.executeWaiting","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.TmuxTransport.TmuxTransport.executeWaiting","product":"core","slug":"io-github-libtmux-transport-tmuxtransport-tmuxtransport-executewaiting"},{"id":"io.github.libtmux.transport.TmuxTransport.TmuxTransport.realm","name":"realm","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.TmuxTransport.TmuxTransport","signatures":[{"raw":"default String realm()","params":[],"returns":"String","typeScopeBoundary":false,"returnsDoc":"a stable realm name; the default is the local process's own view of the filesystem"}],"doc":{"summary":"Names the execution realm this transport reaches tmux through.","body":"Entity identity is scoped by it. Two unrelated realms can both hold a server at the same\nsocket path, and entities from them must not compare equal, so a transport that reaches a\ndifferent machine, container or user should return something stable and distinct."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/TmuxTransport.java","line":51,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.TmuxTransport.realm","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.TmuxTransport.TmuxTransport.realm","product":"core","slug":"io-github-libtmux-transport-tmuxtransport-tmuxtransport-realm"},{"id":"io.github.libtmux.transport.TmuxTransport.TmuxTransport.controlCarrier","name":"controlCarrier","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.TmuxTransport.TmuxTransport","signatures":[{"raw":"default Optional controlCarrier()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"How this transport starts a process that stays attached.","body":"Empty when the transport cannot. A command-only fake is in that set, and so is any realm\nthat has not said how its processes are born. Callers that need a control client then fail\ninstead of starting one on the local machine."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/TmuxTransport.java","line":62,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.TmuxTransport.controlCarrier","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.TmuxTransport.TmuxTransport.controlCarrier","product":"core","slug":"io-github-libtmux-transport-tmuxtransport-tmuxtransport-controlcarrier"},{"id":"io.github.libtmux.transport.TmuxTransport.TmuxTransport.observe","name":"observe","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.TmuxTransport.TmuxTransport","signatures":[{"raw":"default void observe(OperationObserver observer)","params":[{"name":"observer","type":"OperationObserver"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Receives a report after each command this transport runs.","body":"The default ignores it. A transport that cannot see its own commands leaves the observer\nunset rather than inventing timings."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/TmuxTransport.java","line":72,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.TmuxTransport.observe","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.TmuxTransport.TmuxTransport.observe","product":"core","slug":"io-github-libtmux-transport-tmuxtransport-tmuxtransport-observe"},{"id":"io.github.libtmux.transport.TmuxTransport.TmuxTransport.admissionBound","name":"admissionBound","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.TmuxTransport.TmuxTransport","signatures":[{"raw":"default int admissionBound()","params":[],"returns":"int","typeScopeBoundary":false,"returnsDoc":"the bound, or {@link Integer#MAX_VALUE} for a transport that sets none"}],"doc":{"summary":"How many requests this transport runs at once; the rest wait for a turn."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/TmuxTransport.java","line":79,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.TmuxTransport.admissionBound","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.TmuxTransport.TmuxTransport.admissionBound","product":"core","slug":"io-github-libtmux-transport-tmuxtransport-tmuxtransport-admissionbound"},{"id":"io.github.libtmux.transport.TmuxTransport.TmuxTransport.close","name":"close","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.TmuxTransport.TmuxTransport","signatures":[{"raw":"@Override\n void close();","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Releases every resource and destroys every child still running. Idempotent."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/TmuxTransport.java","line":84,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.TmuxTransport.close","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.TmuxTransport.TmuxTransport.close","product":"core","slug":"io-github-libtmux-transport-tmuxtransport-tmuxtransport-close"},{"id":"io.github.libtmux.TypedText.TypedText","name":"TypedText","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Discounts input recorded by this library when reading a pane's output.","body":"Create one instance per wait. Each read refreshes pending input and retains submitted echoes\nalready observed, even after the shared record expires. This mutable view is not thread-safe."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TypedText.java","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TypedText","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TypedText.TypedText","product":"core","slug":"io-github-libtmux-typedtext-typedtext"},{"id":"io.github.libtmux.TypedText.TypedText.in","name":"in","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.TypedText.TypedText","signatures":[{"raw":"public static TypedText in(Pane pane)","params":[{"name":"pane","type":"Pane"}],"returns":"TypedText","typeScopeBoundary":true}],"doc":{"summary":"What this library has typed into the pane recently enough to still be on its screen."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TypedText.java","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TypedText.in","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TypedText.TypedText.in","product":"core","slug":"io-github-libtmux-typedtext-typedtext-in"},{"id":"io.github.libtmux.TypedText.TypedText.withoutEcho","name":"withoutEcho","kind":"method","modifiers":[],"parent":"io.github.libtmux.TypedText.TypedText","signatures":[{"raw":"@ReadOnly\n public List withoutEcho(List lines)","params":[{"name":"lines","type":"List"}],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"The lines with each recorded echo taken out, wherever it stands as an echo does.","body":"An occurrence is taken out only where it is not part of a longer word on either side. That is\nwhat keeps the answer when the answer merely contains the question — {@code id} comes off\n{@code $ id} and stays inside {@code uid=1000} — while still taking out every copy of an echo a\nshell drew more than once, and one a shell drew something straight after. A row the echo shared\nwith real output keeps that output.\n\nWhat no rule can do is tell an echo from output that repeats the whole typed line as a line\nof its own. Wait for something the command prints rather than something it says.\n\nThe lines are scanned as one string, so an echo the terminal broke across rows is still\nfound. Pass lines with wrapping already rejoined when the text being watched for can itself be\nbroken across rows. A shell redraw or truncated capture that retains only part of an echo\ncannot be recognized reliably."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TypedText.java","line":54,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TypedText.withoutEcho","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TypedText.TypedText.withoutEcho","product":"core","slug":"io-github-libtmux-typedtext-typedtext-withoutecho"},{"id":"io.github.libtmux.TypedText.TypedText.isEmpty","name":"isEmpty","kind":"method","modifiers":[],"parent":"io.github.libtmux.TypedText.TypedText","signatures":[{"raw":"public boolean isEmpty()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether anything typed into the pane is live enough, right now, to still be discounted."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TypedText.java","line":70,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TypedText.isEmpty","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TypedText.TypedText.isEmpty","product":"core","slug":"io-github-libtmux-typedtext-typedtext-isempty"},{"id":"io.github.libtmux.TypedText.TypedText.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.TypedText.TypedText","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/TypedText.java","line":78,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TypedText.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TypedText.TypedText.toString","product":"core","slug":"io-github-libtmux-typedtext-typedtext-tostring"},{"id":"io.github.libtmux.WakeReason.WakeReason","name":"WakeReason","kind":"enum","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Why a wait on a tmux channel ended.","body":"An enum rather than a boolean, and rather than nothing at all, because tmux's own\n{@code wait-for} cannot distinguish these: it exits successfully both when the channel is\nsignalled and when the server dies underneath the waiter."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WakeReason.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WakeReason","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WakeReason.WakeReason","product":"core","slug":"io-github-libtmux-wakereason-wakereason"},{"id":"io.github.libtmux.WakeReason.WakeReason.SIGNALLED","name":"SIGNALLED","kind":"constant","modifiers":[],"parent":"io.github.libtmux.WakeReason.WakeReason","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"The channel was signalled."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WakeReason.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WakeReason.SIGNALLED","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WakeReason.WakeReason.SIGNALLED","product":"core","slug":"io-github-libtmux-wakereason-wakereason-signalled"},{"id":"io.github.libtmux.WakeReason.WakeReason.TIMED_OUT","name":"TIMED_OUT","kind":"constant","modifiers":[],"parent":"io.github.libtmux.WakeReason.WakeReason","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Nothing signalled the channel before the caller's deadline."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WakeReason.java","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WakeReason.TIMED_OUT","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WakeReason.WakeReason.TIMED_OUT","product":"core","slug":"io-github-libtmux-wakereason-wakereason-timed_out"},{"id":"io.github.libtmux.WakeReason.WakeReason.SERVER_GONE","name":"SERVER_GONE","kind":"constant","modifiers":[],"parent":"io.github.libtmux.WakeReason.WakeReason","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"The server is gone. tmux reports this as a successful wake, so it is checked for rather than believed; a caller cannot rely on anything the wait was guarding."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WakeReason.java","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WakeReason.SERVER_GONE","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WakeReason.WakeReason.SERVER_GONE","product":"core","slug":"io-github-libtmux-wakereason-wakereason-server_gone"},{"id":"io.github.libtmux.Window.Window","name":"Window","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"One tmux window at one of its positions, as one capture saw it.","body":"Identity is the winlink: the server, the session, the index and the window. A window linked\ninto two sessions is one window and two handles, because tmux orders and addresses those\npositions separately. {@link #id()} stays available for asking whether two links are the same\nunderlying window.\n\nA method named for a captured field returns what {@link #info()} holds and does no I/O;\n{@link #refresh()} reads again. Every other method asks tmux now."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window","product":"core","slug":"io-github-libtmux-window-window"},{"id":"io.github.libtmux.Window.Window.Window","name":"Window","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"Window(Server server, ServerSnapshot snapshot, WindowState state)","params":[{"name":"server","type":"Server"},{"name":"snapshot","type":"ServerSnapshot"},{"name":"state","type":"WindowState"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.Window","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.Window","product":"core","slug":"io-github-libtmux-window-window-window"},{"id":"io.github.libtmux.Window.Window.info","name":"info","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public WindowState info()","params":[],"returns":"WindowState","typeScopeBoundary":false}],"doc":{"summary":"The fields this capture stored. A later rename is not visible here."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":44,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.info","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.info","product":"core","slug":"io-github-libtmux-window-window-info"},{"id":"io.github.libtmux.Window.Window.id","name":"id","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public WindowId id()","params":[],"returns":"WindowId","typeScopeBoundary":false}],"doc":{"summary":"The underlying window, shared by every link to it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":50,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.id","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.id","product":"core","slug":"io-github-libtmux-window-window-id"},{"id":"io.github.libtmux.Window.Window.index","name":"index","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public WindowIndex index()","params":[],"returns":"WindowIndex","typeScopeBoundary":false}],"doc":{"summary":"Where this link sits in its session."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":56,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.index","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.index","product":"core","slug":"io-github-libtmux-window-window-index"},{"id":"io.github.libtmux.Window.Window.context","name":"context","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public WindowContext context()","params":[],"returns":"WindowContext","typeScopeBoundary":false}],"doc":{"summary":"The winlink this handle addresses."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":62,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.context","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.context","product":"core","slug":"io-github-libtmux-window-window-context"},{"id":"io.github.libtmux.Window.Window.name","name":"name","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public String name()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The window name."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":68,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.name","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.name","product":"core","slug":"io-github-libtmux-window-window-name"},{"id":"io.github.libtmux.Window.Window.active","name":"active","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public boolean active()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether this was its session's active window when captured."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":74,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.active","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.active","product":"core","slug":"io-github-libtmux-window-window-active"},{"id":"io.github.libtmux.Window.Window.linked","name":"linked","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public boolean linked()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether the underlying window is linked into more than one session."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":80,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.linked","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.linked","product":"core","slug":"io-github-libtmux-window-window-linked"},{"id":"io.github.libtmux.Window.Window.size","name":"size","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Dimensions size()","params":[],"returns":"Dimensions","typeScopeBoundary":false}],"doc":{"summary":"How large the window was when captured, in terminal cells."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":86,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.size","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.size","product":"core","slug":"io-github-libtmux-window-window-size"},{"id":"io.github.libtmux.Window.Window.layout","name":"layout","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public WindowLayout layout()","params":[],"returns":"WindowLayout","typeScopeBoundary":false}],"doc":{"summary":"tmux's own layout for this window, in whichever form this server writes it.","body":"Classic before tmux 3.8 and JSON from it, and the type says which. Hand it back with {@link\n#applyLayout(WindowLayout)}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":97,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.layout","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.layout","product":"core","slug":"io-github-libtmux-window-window-layout"},{"id":"io.github.libtmux.Window.Window.activePane","name":"activePane","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Optional activePane()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The pane tmux had active here. A pure read of the capture.","body":"Empty only when the capture holds no pane marked active for this window, which a complete\ncapture of a live window does not."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":108,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.activePane","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.activePane","product":"core","slug":"io-github-libtmux-window-window-activepane"},{"id":"io.github.libtmux.Window.Window.select","name":"select","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void select()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Makes this the active window of its session."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":114,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.select","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.select","product":"core","slug":"io-github-libtmux-window-window-select"},{"id":"io.github.libtmux.Window.Window.server","name":"server","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Server server()","params":[],"returns":"Server","typeScopeBoundary":false}],"doc":{"summary":"The server this window lives on."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":120,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.server","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.server","product":"core","slug":"io-github-libtmux-window-window-server"},{"id":"io.github.libtmux.Window.Window.snapshot","name":"snapshot","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"ServerSnapshot snapshot()","params":[],"returns":"ServerSnapshot","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":125,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.snapshot","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.snapshot","product":"core","slug":"io-github-libtmux-window-window-snapshot"},{"id":"io.github.libtmux.Window.Window.session","name":"session","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Session session()","params":[],"returns":"Session","typeScopeBoundary":false}],"doc":{"summary":"The session this link belongs to. A pure read of the capture."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":130,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.session","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.session","product":"core","slug":"io-github-libtmux-window-window-session"},{"id":"io.github.libtmux.Window.Window.hooks","name":"hooks","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Hooks hooks()","params":[],"returns":"Hooks","typeScopeBoundary":false}],"doc":{"summary":"This window's own hooks, which every link to it shares."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":139,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.hooks","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.hooks","product":"core","slug":"io-github-libtmux-window-window-hooks"},{"id":"io.github.libtmux.Window.Window.options","name":"options","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Options options()","params":[],"returns":"Options","typeScopeBoundary":false}],"doc":{"summary":"This window's own options, which every link to it shares."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":145,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.options","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.options","product":"core","slug":"io-github-libtmux-window-window-options"},{"id":"io.github.libtmux.Window.Window.panes","name":"panes","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.CAPTURED)\n public List panes()","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"This link's panes, in tmux's order. A pure read of the capture.","examples":[{"lang":"console","intro":"List all panes, then the panes captured for one window. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/build.gradle.kts","code":"plugins {\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"java","intro":"Save this complete program as src/main/java/ListPanes.java. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/java/io/github/libtmux/examples/api/java/ListPanes.java","code":"package io.github.libtmux.examples.api.java;\n\nimport io.github.libtmux.Server;\nimport io.github.libtmux.ServerConfig;\nimport io.github.libtmux.ServerEndpoint;\nimport java.nio.file.Path;\n\n/** List all panes, then the panes captured for one window. */\npublic final class ListPanes {\n private ListPanes() {}\n\n public static void main(String[] args) {\n try {\n if (args.length != 3) {\n throw new IllegalArgumentException(\"expected: tmux-binary socket-path config-file\");\n }\n var config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build();\n try (Server server = Server.open(config)) {\n System.out.println(\"panes=\" + server.panes().size());\n var session = server.session(\"work-one\").orElseThrow();\n var window = session.windows().stream()\n .filter(item -> item.name().equals(\"editor\"))\n .findFirst()\n .orElseThrow();\n System.out.println(\"window-panes=\" + window.panes().size());\n }\n } catch (Exception error) {\n if (error instanceof InterruptedException) Thread.currentThread().interrupt();\n System.err.println(\"Example failed: \" + error.getMessage());\n System.exit(1);\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.java.ListPanes && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"panes=4\nwindow-panes=2\n"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":151,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.panes","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.panes","product":"core","slug":"io-github-libtmux-window-window-panes"},{"id":"io.github.libtmux.Window.Window.split","name":"split","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public Pane split()","params":[],"returns":"Pane","typeScopeBoundary":false,"returnsDoc":"the pane that appeared"},{"raw":"@Operation(Kind.MUTATION)\n public Pane split(Consumer configure)","params":[{"name":"configure","type":"Consumer","doc":"receives a builder holding tmux's defaults"}],"returns":"Pane","typeScopeBoundary":false,"returnsDoc":"the pane that appeared","raises":[{"type":"UnsupportedFeatureException","doc":"if the spec asks for something this server does not have"}]},{"raw":"@Operation(Kind.MUTATION)\n public Pane split(SplitSpec spec)","params":[{"name":"spec","type":"SplitSpec"}],"returns":"Pane","typeScopeBoundary":false,"returnsDoc":"the pane that appeared","raises":[{"type":"UnsupportedFeatureException","doc":"if the spec asks for something this server does not have"}]}],"doc":{"summary":"Splits this window's active pane in half, putting the new one below it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":164,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.split","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.split","product":"core","slug":"io-github-libtmux-window-window-split"},{"id":"io.github.libtmux.Window.Window.expand","name":"expand","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.READ)\n public String expand(String format)","params":[{"name":"format","type":"String","doc":"a tmux format, usually of the shape {@code #{name}}"}],"returns":"String","typeScopeBoundary":false,"returnsDoc":"the expansion, whole when it spans lines and empty when the format expanded to nothing"}],"doc":{"summary":"Expands a tmux format in this window's context, and answers with what it came to.","body":"The same escape hatch {@link Pane#expand} gives, resolved against this window."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":203,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.expand","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.expand","product":"core","slug":"io-github-libtmux-window-window-expand"},{"id":"io.github.libtmux.Window.Window.rename","name":"rename","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@CheckReturnValue\n @Operation(Kind.MUTATION)\n public Window rename(String name)","params":[{"name":"name","type":"String"}],"returns":"Window","typeScopeBoundary":false}],"doc":{"summary":"Renames this window and returns its replacement capture.","body":"Retain the result to read the changed name. This handle keeps its original captured state.\n\nA {@code :} or {@code .} is kept as written on every supported release but 3.7, which\nrefuses the name. A kept delimiter cannot then address the window, since a target splits on\nboth. Unlike a session name, a window name is never rewritten."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":222,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.rename","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.rename","product":"core","slug":"io-github-libtmux-window-window-rename"},{"id":"io.github.libtmux.Window.Window.linkTo","name":"linkTo","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void linkTo(Session session)","params":[{"name":"session","type":"Session"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Links this window into another session, so one window sits in both."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":230,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.linkTo","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.linkTo","product":"core","slug":"io-github-libtmux-window-window-linkto"},{"id":"io.github.libtmux.Window.Window.unlink","name":"unlink","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void unlink()","params":[],"returns":"void","typeScopeBoundary":false,"raises":[{"type":"LibTmuxException","doc":"if this is the window's only link, which tmux refuses to remove"}]}],"doc":{"summary":"Removes this link, leaving the window wherever else it is linked."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":244,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.unlink","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.unlink","product":"core","slug":"io-github-libtmux-window-window-unlink"},{"id":"io.github.libtmux.Window.Window.moveTo","name":"moveTo","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void moveTo(Session session)","params":[{"name":"session","type":"Session"}],"returns":"void","typeScopeBoundary":false},{"raw":"@Operation(Kind.MUTATION)\n public void moveTo(Session session, int index)","params":[{"name":"session","type":"Session"},{"name":"index","type":"int"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Moves this window into another session."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":250,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.moveTo","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.moveTo","product":"core","slug":"io-github-libtmux-window-window-moveto"},{"id":"io.github.libtmux.Window.Window.resizeTo","name":"resizeTo","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void resizeTo(Dimensions size)","params":[{"name":"size","type":"Dimensions"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Resizes this window in terminal cells."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":275,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.resizeTo","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.resizeTo","product":"core","slug":"io-github-libtmux-window-window-resizeto"},{"id":"io.github.libtmux.Window.Window.synchronizePanes","name":"synchronizePanes","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void synchronizePanes()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Copies input to one pane into every pane in this window, until {@link #stopSynchronizingPanes}.","body":"A verb pair rather than a boolean parameter, so a call site says which it means — as\n{@link Pane#pipeTo} and {@link Pane#stopPiping} already do for the other state a window\ncarries."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":297,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.synchronizePanes","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.synchronizePanes","product":"core","slug":"io-github-libtmux-window-window-synchronizepanes"},{"id":"io.github.libtmux.Window.Window.stopSynchronizingPanes","name":"stopSynchronizingPanes","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void stopSynchronizingPanes()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Stops copying input between this window's panes."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":303,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.stopSynchronizingPanes","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.stopSynchronizingPanes","product":"core","slug":"io-github-libtmux-window-window-stopsynchronizingpanes"},{"id":"io.github.libtmux.Window.Window.rotate","name":"rotate","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void rotate()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Rotates the panes within this window."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":309,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.rotate","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.rotate","product":"core","slug":"io-github-libtmux-window-window-rotate"},{"id":"io.github.libtmux.Window.Window.selectLayout","name":"selectLayout","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void selectLayout(Layout layout)","params":[{"name":"layout","type":"Layout"}],"returns":"void","typeScopeBoundary":false,"raises":[{"type":"UnsupportedFeatureException","doc":"if the layout arrived after the release this server runs"}]}],"doc":{"summary":"Rearranges this window's panes into one of tmux's built-in layouts."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":319,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.selectLayout","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.selectLayout","product":"core","slug":"io-github-libtmux-window-window-selectlayout"},{"id":"io.github.libtmux.Window.Window.nextLayout","name":"nextLayout","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void nextLayout()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Moves to the next built-in layout, as tmux's own binding does."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":327,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.nextLayout","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.nextLayout","product":"core","slug":"io-github-libtmux-window-window-nextlayout"},{"id":"io.github.libtmux.Window.Window.previousLayout","name":"previousLayout","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void previousLayout()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Moves to the previous built-in layout, as tmux's own binding does."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":333,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.previousLayout","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.previousLayout","product":"core","slug":"io-github-libtmux-window-window-previouslayout"},{"id":"io.github.libtmux.Window.Window.applyLayout","name":"applyLayout","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void applyLayout(WindowLayout layout)","params":[{"name":"layout","type":"WindowLayout"}],"returns":"void","typeScopeBoundary":false,"raises":[{"type":"IllegalArgumentException","doc":"if the string is not a layout tmux wrote"},{"type":"UnsupportedFeatureException","doc":"if it is JSON-shaped but this server predates JSON layouts"}]},{"raw":"@Operation(Kind.MUTATION)\n public void applyLayout(String layout)","params":[{"name":"layout","type":"String"}],"returns":"void","typeScopeBoundary":false,"raises":[{"type":"IllegalArgumentException","doc":"if the string is not a layout tmux wrote"},{"type":"UnsupportedFeatureException","doc":"if it is JSON-shaped but this server predates JSON layouts"}]}],"doc":{"summary":"Restores an exact arrangement previously read from {@link #layout()}.","body":"The string is checked here rather than by tmux, because tmux 3.3a does not survive being\nhanded one it cannot parse: it ends the server and every session on the socket. Every other\nsupported release answers {@code invalid layout}. The classic form carries tmux's own\nchecksum, so a wrong one is detectable without asking; since 3.8 tmux may instead hand back\nJSON, which carries no checksum, so that shape is only trusted from a server new enough to\nhave written it.\n\n\"Exact\" holds in full only for a JSON layout, since that is the one form carrying each\npane's id. A classic string — every release before 3.8, or an older reader against a newer\nserver — restores the geometry but names no pane, so which process lands in which cell can\ndiffer from where it started; whether it does depends on whether the pane list still happens\nto match the order the layout was saved in. Confirmed by hand on 3.2a and 3.7c."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":358,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.applyLayout","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.applyLayout","product":"core","slug":"io-github-libtmux-window-window-applylayout"},{"id":"io.github.libtmux.Window.Window.respawn","name":"respawn","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void respawn()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Kills what is running in this window and starts it again."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":380,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.respawn","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.respawn","product":"core","slug":"io-github-libtmux-window-window-respawn"},{"id":"io.github.libtmux.Window.Window.displayPopup","name":"displayPopup","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void displayPopup(String shellCommand)","params":[{"name":"shellCommand","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Shows a popup over this window, running a command in it.","body":"tmux draws a popup for a client, so this needs one attached; on a detached session tmux\nreports that it has no current client.\n\ntmux expands {@code #(...)} in this command before a shell sees it, and shell quoting does\nnot prevent that. Pass any interpolated value through {@link TmuxFormats#literal} unless you\nmean it to be expanded."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":395,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.displayPopup","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.displayPopup","product":"core","slug":"io-github-libtmux-window-window-displaypopup"},{"id":"io.github.libtmux.Window.Window.kill","name":"kill","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void kill()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Closes this window."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":401,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.kill","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.kill","product":"core","slug":"io-github-libtmux-window-window-kill"},{"id":"io.github.libtmux.Window.Window.refresh","name":"refresh","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@CheckReturnValue\n @Operation(Kind.READ)\n public Window refresh()","params":[],"returns":"Window","typeScopeBoundary":false,"raises":[{"type":"TargetGoneException","doc":"if this window is no longer linked here, from a server that still answers"},{"type":"ServerUnavailableException","doc":"if no daemon is running"}]}],"doc":{"summary":"Takes a new capture and returns this winlink as it is now."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":413,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.refresh","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.refresh","product":"core","slug":"io-github-libtmux-window-window-refresh"},{"id":"io.github.libtmux.Window.Window.equals","name":"equals","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Override\n public boolean equals(Object other)","params":[{"name":"other","type":"Object"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":432,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.equals","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.equals","product":"core","slug":"io-github-libtmux-window-window-equals"},{"id":"io.github.libtmux.Window.Window.hashCode","name":"hashCode","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Override\n public int hashCode()","params":[],"returns":"int","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":439,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.hashCode","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.hashCode","product":"core","slug":"io-github-libtmux-window-window-hashcode"},{"id":"io.github.libtmux.Window.Window.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":444,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.toString","product":"core","slug":"io-github-libtmux-window-window-tostring"},{"id":"io.github.libtmux.WindowId.WindowId","name":"WindowId","kind":"class","modifiers":[],"signatures":[{"raw":"public record WindowId(String value)","params":[{"name":"value","type":"String","doc":"the id including its {@code @} sigil"}]}],"typeScopeBoundary":false,"doc":{"summary":"A tmux window id, such as {@code @1}.","body":"Identifies the window itself, not where it sits. A window linked into two sessions has one id\nand two positions, so this is what to compare when asking whether two links are the same window."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowId.java","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowId","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowId.WindowId","product":"core","slug":"io-github-libtmux-windowid-windowid"},{"id":"io.github.libtmux.WindowId.WindowId.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowId.WindowId","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowId.java","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowId.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowId.WindowId.toString","product":"core","slug":"io-github-libtmux-windowid-windowid-tostring"},{"id":"io.github.libtmux.WindowId.WindowId.value","name":"value","kind":"method","parent":"io.github.libtmux.WindowId.WindowId","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"the id including its {@code @} sigil"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowId.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowId.value","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowId.WindowId.value","product":"core","slug":"io-github-libtmux-windowid-windowid-value"},{"id":"io.github.libtmux.WindowIndex.WindowIndex","name":"WindowIndex","kind":"class","modifiers":[],"signatures":[{"raw":"public record WindowIndex(int value)","params":[{"name":"value","type":"int","doc":"the index, as tmux reports it"}]}],"typeScopeBoundary":false,"doc":{"summary":"Where a window sits in one session.","body":"A position, not an identity: tmux renumbering moves a window to a different index, and the\nsame window linked into two sessions can hold a different index in each."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowIndex.java","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowIndex","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowIndex.WindowIndex","product":"core","slug":"io-github-libtmux-windowindex-windowindex"},{"id":"io.github.libtmux.WindowIndex.WindowIndex.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowIndex.WindowIndex","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowIndex.java","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowIndex.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowIndex.WindowIndex.toString","product":"core","slug":"io-github-libtmux-windowindex-windowindex-tostring"},{"id":"io.github.libtmux.WindowIndex.WindowIndex.value","name":"value","kind":"method","parent":"io.github.libtmux.WindowIndex.WindowIndex","modifiers":[],"signatures":[{"params":[],"returns":"int"}],"doc":{"summary":"the index, as tmux reports it"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowIndex.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowIndex.value","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowIndex.WindowIndex.value","product":"core","slug":"io-github-libtmux-windowindex-windowindex-value"},{"id":"io.github.libtmux.WindowLayout.WindowLayout","name":"WindowLayout","kind":"interface","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"A window's layout as tmux reported it, in whichever of its two forms it used.","body":"tmux writes a layout in its classic checksummed form — {@code c3a4,80x24,0,0,1} — on every\nrelease before 3.8, and as JSON from 3.8, which also names the pane in each cell. The same window\ntherefore reports a differently shaped string depending on the server, and a caller that parses it\nneeds to know which it has. This says, so the compiler can carry what used to be a comment:\n\nEither form is an opaque token to hand back to tmux, which {@link Window#applyLayout(WindowLayout)}\ndoes; parsing one is tmux's job, and {@link #value()} is the text for a caller who wants to anyway.","examples":[{"lang":"java","code":"switch (window.layout()) {\n case WindowLayout.Json json -> restorePanes(json.value());\n case WindowLayout.Classic classic -> restoreGeometry(classic.value());\n}"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowLayout.java","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowLayout","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowLayout.WindowLayout","product":"core","slug":"io-github-libtmux-windowlayout-windowlayout"},{"id":"io.github.libtmux.WindowLayout.WindowLayout.value","name":"value","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowLayout.WindowLayout","signatures":[{"raw":"String value();","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The layout exactly as tmux reported it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowLayout.java","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowLayout.value","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowLayout.WindowLayout.value","product":"core","slug":"io-github-libtmux-windowlayout-windowlayout-value"},{"id":"io.github.libtmux.WindowLayout.WindowLayout.Classic","name":"Classic","kind":"class","modifiers":[],"parent":"io.github.libtmux.WindowLayout.WindowLayout","signatures":[{"raw":"record Classic(String value) implements WindowLayout","params":[{"name":"value","type":"String"}]}],"typeScopeBoundary":true,"doc":{"summary":"The checksummed form every release writes before 3.8. It carries geometry and no pane ids."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowLayout.java","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowLayout.Classic","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowLayout.WindowLayout.Classic","product":"core","slug":"io-github-libtmux-windowlayout-windowlayout-classic"},{"id":"io.github.libtmux.WindowLayout.WindowLayout.Classic.value","name":"value","kind":"method","parent":"io.github.libtmux.WindowLayout.WindowLayout.Classic","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowLayout.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowLayout.Classic.value","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowLayout.WindowLayout.Classic.value","product":"core","slug":"io-github-libtmux-windowlayout-windowlayout-classic-value"},{"id":"io.github.libtmux.WindowLayout.WindowLayout.Json","name":"Json","kind":"class","modifiers":[],"parent":"io.github.libtmux.WindowLayout.WindowLayout","signatures":[{"raw":"record Json(String value) implements WindowLayout","params":[{"name":"value","type":"String"}]}],"typeScopeBoundary":true,"doc":{"summary":"The JSON form tmux writes from 3.8, which names the pane in each cell."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowLayout.java","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowLayout.Json","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowLayout.WindowLayout.Json","product":"core","slug":"io-github-libtmux-windowlayout-windowlayout-json"},{"id":"io.github.libtmux.WindowLayout.WindowLayout.Json.value","name":"value","kind":"method","parent":"io.github.libtmux.WindowLayout.WindowLayout.Json","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowLayout.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowLayout.Json.value","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowLayout.WindowLayout.Json.value","product":"core","slug":"io-github-libtmux-windowlayout-windowlayout-json-value"},{"id":"io.github.libtmux.WindowLayout.WindowLayout.of","name":"of","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.WindowLayout.WindowLayout","signatures":[{"raw":"static WindowLayout of(String reported)","params":[{"name":"reported","type":"String"}],"returns":"WindowLayout","typeScopeBoundary":true}],"doc":{"summary":"Which form a reported layout is in.","body":"Decided as tmux decides it, on whether the first non-blank character opens a JSON object —\n{@code layout_construct} in {@code layout-custom.c} dispatches on nothing more."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowLayout.java","line":50,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowLayout.of","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowLayout.WindowLayout.of","product":"core","slug":"io-github-libtmux-windowlayout-windowlayout-of"},{"id":"io.github.libtmux.WindowPlacement.WindowPlacement","name":"WindowPlacement","kind":"enum","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Where a new window is inserted relative to the current one.","body":"Absent rather than a third constant when the caller does not care: tmux picking the next free\nindex is a different thing from being asked for a particular side, and a {@code DEFAULT} member\nwould have no flag to produce."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowPlacement.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowPlacement","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowPlacement.WindowPlacement","product":"core","slug":"io-github-libtmux-windowplacement-windowplacement"},{"id":"io.github.libtmux.WindowPlacement.WindowPlacement.AFTER","name":"AFTER","kind":"constant","modifiers":[],"parent":"io.github.libtmux.WindowPlacement.WindowPlacement","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowPlacement.java","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowPlacement.AFTER","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowPlacement.WindowPlacement.AFTER","product":"core","slug":"io-github-libtmux-windowplacement-windowplacement-after"},{"id":"io.github.libtmux.WindowPlacement.WindowPlacement.BEFORE","name":"BEFORE","kind":"constant","modifiers":[],"parent":"io.github.libtmux.WindowPlacement.WindowPlacement","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowPlacement.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowPlacement.BEFORE","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowPlacement.WindowPlacement.BEFORE","product":"core","slug":"io-github-libtmux-windowplacement-windowplacement-before"},{"id":"io.github.libtmux.WindowPlacement.WindowPlacement.WindowPlacement","name":"WindowPlacement","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowPlacement.WindowPlacement","signatures":[{"raw":"WindowPlacement(String flag)","params":[{"name":"flag","type":"String"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowPlacement.java","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowPlacement.WindowPlacement","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowPlacement.WindowPlacement.WindowPlacement","product":"core","slug":"io-github-libtmux-windowplacement-windowplacement-windowplacement"},{"id":"io.github.libtmux.WindowPlacement.WindowPlacement.flag","name":"flag","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowPlacement.WindowPlacement","signatures":[{"raw":"String flag()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The tmux flag that places a window this way."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowPlacement.java","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowPlacement.flag","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowPlacement.WindowPlacement.flag","product":"core","slug":"io-github-libtmux-windowplacement-windowplacement-flag"},{"id":"io.github.libtmux.WindowSpec.WindowSpec","name":"WindowSpec","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"How a window should be made.","body":"The shape {@link SplitSpec} uses, for the same reasons: a description that contacts nothing, so\nit can be named, reused, and applied wherever it fits.","examples":[{"lang":"java","code":"Window logs = session.newWindow(w -> w.named(\"logs\").running(\"journalctl\", \"-f\"));"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec","product":"core","slug":"io-github-libtmux-windowspec-windowspec"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.builder","name":"builder","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.WindowSpec.WindowSpec","signatures":[{"raw":"public static Builder builder()","params":[],"returns":"Builder","typeScopeBoundary":true}],"doc":{"summary":"A builder holding tmux's own defaults: a detached window at the end, running a shell."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":49,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.builder","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.builder","product":"core","slug":"io-github-libtmux-windowspec-windowspec-builder-1sop"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.name","name":"name","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec","signatures":[{"raw":"public Optional name()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The name the window is created with, or empty to let tmux choose."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":54,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.name","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.name","product":"core","slug":"io-github-libtmux-windowspec-windowspec-name"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.directory","name":"directory","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec","signatures":[{"raw":"public Optional directory()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"Where the window's first pane starts, or empty to inherit."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":59,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.directory","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.directory","product":"core","slug":"io-github-libtmux-windowspec-windowspec-directory"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.environment","name":"environment","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec","signatures":[{"raw":"@ReadOnly\n public Map environment()","params":[],"returns":"Map","typeScopeBoundary":false}],"doc":{"summary":"Variables set for the new window, in the order they were given."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":64,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.environment","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.environment","product":"core","slug":"io-github-libtmux-windowspec-windowspec-environment"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.detached","name":"detached","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec","signatures":[{"raw":"public boolean detached()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether the window is left unselected.","body":"False by default, which is what {@code new-window} itself does."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":74,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.detached","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.detached","product":"core","slug":"io-github-libtmux-windowspec-windowspec-detached"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.placement","name":"placement","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec","signatures":[{"raw":"public Optional placement()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"Where the window is inserted, or empty for tmux's own choice of index."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":79,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.placement","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.placement","product":"core","slug":"io-github-libtmux-windowspec-windowspec-placement"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.index","name":"index","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec","signatures":[{"raw":"public Optional index()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The index the window is created at, or empty for the next one tmux has free."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":84,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.index","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.index","product":"core","slug":"io-github-libtmux-windowspec-windowspec-index"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.replaceExisting","name":"replaceExisting","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec","signatures":[{"raw":"public boolean replaceExisting()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether a window already at the target index is destroyed to make room.","body":"Only means anything alongside {@link Builder#atIndex}: tmux has nothing to replace when it\nis choosing the index itself."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":94,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.replaceExisting","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.replaceExisting","product":"core","slug":"io-github-libtmux-windowspec-windowspec-replaceexisting"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.reuseExisting","name":"reuseExisting","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec","signatures":[{"raw":"public boolean reuseExisting()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether a window that already carries this name is selected instead of a second being made."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":99,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.reuseExisting","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.reuseExisting","product":"core","slug":"io-github-libtmux-windowspec-windowspec-reuseexisting"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.command","name":"command","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec","signatures":[{"raw":"@ReadOnly\n public List command()","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"What the window's first pane runs, empty for the session's shell."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":104,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.command","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.command","product":"core","slug":"io-github-libtmux-windowspec-windowspec-command"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.argv","name":"argv","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec","signatures":[{"raw":"List argv(String target, String format)","params":[{"name":"target","type":"String","doc":"the session, or the index, to create in"},{"name":"format","type":"String","doc":"the row format the caller will read the result back with"}],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"The command that makes this window, reporting it through {@code format}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":115,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.argv","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.argv","product":"core","slug":"io-github-libtmux-windowspec-windowspec-argv"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":157,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.toString","product":"core","slug":"io-github-libtmux-windowspec-windowspec-tostring"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.Builder","name":"Builder","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.WindowSpec.WindowSpec","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Collects the choices, each named for what it does rather than for the field it sets."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":163,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.Builder","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.Builder","product":"core","slug":"io-github-libtmux-windowspec-windowspec-builder-1f6n"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.Builder.named","name":"named","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec.Builder","signatures":[{"raw":"public Builder named(String name)","params":[{"name":"name","type":"String"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Names the window, where tmux would otherwise name it after what runs in it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":178,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.Builder.named","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.Builder.named","product":"core","slug":"io-github-libtmux-windowspec-windowspec-builder-named"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.Builder.after","name":"after","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec.Builder","signatures":[{"raw":"public Builder after()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Puts the window immediately after the current one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":184,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.Builder.after","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.Builder.after","product":"core","slug":"io-github-libtmux-windowspec-windowspec-builder-after"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.Builder.before","name":"before","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec.Builder","signatures":[{"raw":"public Builder before()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Puts the window immediately before the current one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":190,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.Builder.before","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.Builder.before","product":"core","slug":"io-github-libtmux-windowspec-windowspec-builder-before"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.Builder.running","name":"running","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec.Builder","signatures":[{"raw":"public Builder running(String... argv)","params":[{"name":"argv","type":"String","variadic":"positional"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Runs a command instead of the session's shell. tmux reports the window before the command has started, so wait for its pane's command with {@link Pane#await(java.util.function.Predicate, java.time.Duration)} rather than reading it at once."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":199,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.Builder.running","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.Builder.running","product":"core","slug":"io-github-libtmux-windowspec-windowspec-builder-running"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.Builder.in","name":"in","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec.Builder","signatures":[{"raw":"public Builder in(Path directory)","params":[{"name":"directory","type":"Path"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Starts the window in this directory. A relative one resolves against this process's working directory, on every release: tmux 3.2a would resolve it against the server's."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":212,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.Builder.in","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.Builder.in","product":"core","slug":"io-github-libtmux-windowspec-windowspec-builder-in"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.Builder.env","name":"env","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec.Builder","signatures":[{"raw":"public Builder env(String name, String value)","params":[{"name":"name","type":"String"},{"name":"value","type":"String"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Sets one variable in the new window's environment."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":218,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.Builder.env","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.Builder.env","product":"core","slug":"io-github-libtmux-windowspec-windowspec-builder-env"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.Builder.environment","name":"environment","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec.Builder","signatures":[{"raw":"public Builder environment(Map variables)","params":[{"name":"variables","type":"Map"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Adds several variables to the new window's environment, keeping any already set."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":224,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.Builder.environment","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.Builder.environment","product":"core","slug":"io-github-libtmux-windowspec-windowspec-builder-environment"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.Builder.detached","name":"detached","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec.Builder","signatures":[{"raw":"public Builder detached()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Leaves the current window selected, where tmux would move to the new one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":230,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.Builder.detached","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.Builder.detached","product":"core","slug":"io-github-libtmux-windowspec-windowspec-builder-detached"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.Builder.atIndex","name":"atIndex","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec.Builder","signatures":[{"raw":"public Builder atIndex(int index)","params":[{"name":"index","type":"int"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Creates the window at a chosen index rather than the next one tmux has free."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":236,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.Builder.atIndex","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.Builder.atIndex","product":"core","slug":"io-github-libtmux-windowspec-windowspec-builder-atindex"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.Builder.replaceExisting","name":"replaceExisting","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec.Builder","signatures":[{"raw":"public Builder replaceExisting()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Destroys whatever window already sits at the index chosen by {@link #atIndex}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":245,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.Builder.replaceExisting","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.Builder.replaceExisting","product":"core","slug":"io-github-libtmux-windowspec-windowspec-builder-replaceexisting"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.Builder.reuseExisting","name":"reuseExisting","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec.Builder","signatures":[{"raw":"public Builder reuseExisting()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Selects a window that already carries this name rather than making a second.","body":"tmux reports nothing when it reuses one, so the answer comes from a lookup. Every other\ncreating call in this library is told what it made; this is the exception."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":256,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.Builder.reuseExisting","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.Builder.reuseExisting","product":"core","slug":"io-github-libtmux-windowspec-windowspec-builder-reuseexisting"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.Builder.build","name":"build","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec.Builder","signatures":[{"raw":"public WindowSpec build()","params":[],"returns":"WindowSpec","typeScopeBoundary":false}],"doc":{"summary":"The finished spec."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":262,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.Builder.build","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.Builder.build","product":"core","slug":"io-github-libtmux-windowspec-windowspec-builder-build"},{"id":"io.github.libtmux.Client_.Client_","name":"Client_","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Typed fields of {@link Client}."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Client_.java","line":8,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client_","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client_.Client_","product":"core","slug":"io-github-libtmux-client_-client_"},{"id":"io.github.libtmux.Client_.Client_.name","name":"name","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Client_.Client_","signatures":[{"raw":"public static Fields.TextField name()","params":[],"returns":"Fields.TextField","typeScopeBoundary":true}],"doc":{"summary":"The client's terminal name, which is how tmux addresses it."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Client_.java","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client_.name","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client_.Client_.name","product":"core","slug":"io-github-libtmux-client_-client_-name"},{"id":"io.github.libtmux.Client_.Client_.session","name":"session","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Client_.Client_","signatures":[{"raw":"public static Fields.ToOneRef session()","params":[],"returns":"Fields.ToOneRef","typeScopeBoundary":true}],"doc":{"summary":"The session this client was attached to, if any."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Client_.java","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client_.session","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client_.Client_.session","product":"core","slug":"io-github-libtmux-client_-client_-session"},{"id":"io.github.libtmux.Pane_.Pane_","name":"Pane_","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Typed fields of {@link Pane}."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Pane_.java","line":8,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane_","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane_.Pane_","product":"core","slug":"io-github-libtmux-pane_-pane_"},{"id":"io.github.libtmux.Pane_.Pane_.id","name":"id","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Pane_.Pane_","signatures":[{"raw":"public static Fields.TextField id()","params":[],"returns":"Fields.TextField","typeScopeBoundary":true}],"doc":{"summary":"The pane id."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Pane_.java","line":43,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane_.id","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane_.Pane_.id","product":"core","slug":"io-github-libtmux-pane_-pane_-id"},{"id":"io.github.libtmux.Pane_.Pane_.command","name":"command","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Pane_.Pane_","signatures":[{"raw":"public static Fields.TextField command()","params":[],"returns":"Fields.TextField","typeScopeBoundary":true}],"doc":{"summary":"The command tmux reported running in the pane."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Pane_.java","line":50,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane_.command","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane_.Pane_.command","product":"core","slug":"io-github-libtmux-pane_-pane_-command"},{"id":"io.github.libtmux.Pane_.Pane_.index","name":"index","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Pane_.Pane_","signatures":[{"raw":"public static Fields.NumberField index()","params":[],"returns":"Fields.NumberField","typeScopeBoundary":true}],"doc":{"summary":"The pane's position in its window."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Pane_.java","line":57,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane_.index","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane_.Pane_.index","product":"core","slug":"io-github-libtmux-pane_-pane_-index"},{"id":"io.github.libtmux.Pane_.Pane_.active","name":"active","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Pane_.Pane_","signatures":[{"raw":"public static Fields.FlagField active()","params":[],"returns":"Fields.FlagField","typeScopeBoundary":true}],"doc":{"summary":"Whether this was its window's active pane."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Pane_.java","line":64,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane_.active","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane_.Pane_.active","product":"core","slug":"io-github-libtmux-pane_-pane_-active"},{"id":"io.github.libtmux.Pane_.Pane_.title","name":"title","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Pane_.Pane_","signatures":[{"raw":"public static Fields.TextField title()","params":[],"returns":"Fields.TextField","typeScopeBoundary":true}],"doc":{"summary":"The pane's title, which a program running in it can set."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Pane_.java","line":71,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane_.title","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane_.Pane_.title","product":"core","slug":"io-github-libtmux-pane_-pane_-title"},{"id":"io.github.libtmux.Pane_.Pane_.path","name":"path","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Pane_.Pane_","signatures":[{"raw":"public static Fields.TextField path()","params":[],"returns":"Fields.TextField","typeScopeBoundary":true}],"doc":{"summary":"The pane's working directory, as the text tmux reported."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Pane_.java","line":78,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane_.path","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane_.Pane_.path","product":"core","slug":"io-github-libtmux-pane_-pane_-path"},{"id":"io.github.libtmux.Pane_.Pane_.width","name":"width","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Pane_.Pane_","signatures":[{"raw":"public static Fields.NumberField width()","params":[],"returns":"Fields.NumberField","typeScopeBoundary":true}],"doc":{"summary":"The pane's width, in cells."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Pane_.java","line":85,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane_.width","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane_.Pane_.width","product":"core","slug":"io-github-libtmux-pane_-pane_-width"},{"id":"io.github.libtmux.Pane_.Pane_.height","name":"height","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Pane_.Pane_","signatures":[{"raw":"public static Fields.NumberField height()","params":[],"returns":"Fields.NumberField","typeScopeBoundary":true}],"doc":{"summary":"The pane's height, in cells."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Pane_.java","line":92,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane_.height","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane_.Pane_.height","product":"core","slug":"io-github-libtmux-pane_-pane_-height"},{"id":"io.github.libtmux.Pane_.Pane_.left","name":"left","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Pane_.Pane_","signatures":[{"raw":"public static Fields.NumberField left()","params":[],"returns":"Fields.NumberField","typeScopeBoundary":true}],"doc":{"summary":"The column of the pane's left edge in its window."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Pane_.java","line":99,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane_.left","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane_.Pane_.left","product":"core","slug":"io-github-libtmux-pane_-pane_-left"},{"id":"io.github.libtmux.Pane_.Pane_.top","name":"top","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Pane_.Pane_","signatures":[{"raw":"public static Fields.NumberField top()","params":[],"returns":"Fields.NumberField","typeScopeBoundary":true}],"doc":{"summary":"The row of the pane's top edge in its window."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Pane_.java","line":106,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane_.top","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane_.Pane_.top","product":"core","slug":"io-github-libtmux-pane_-pane_-top"},{"id":"io.github.libtmux.Pane_.Pane_.atTop","name":"atTop","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Pane_.Pane_","signatures":[{"raw":"public static Fields.FlagField atTop()","params":[],"returns":"Fields.FlagField","typeScopeBoundary":true}],"doc":{"summary":"Whether the pane touches the top of its window."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Pane_.java","line":113,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane_.atTop","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane_.Pane_.atTop","product":"core","slug":"io-github-libtmux-pane_-pane_-attop"},{"id":"io.github.libtmux.Pane_.Pane_.atBottom","name":"atBottom","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Pane_.Pane_","signatures":[{"raw":"public static Fields.FlagField atBottom()","params":[],"returns":"Fields.FlagField","typeScopeBoundary":true}],"doc":{"summary":"Whether the pane touches the bottom of its window."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Pane_.java","line":120,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane_.atBottom","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane_.Pane_.atBottom","product":"core","slug":"io-github-libtmux-pane_-pane_-atbottom"},{"id":"io.github.libtmux.Pane_.Pane_.atLeft","name":"atLeft","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Pane_.Pane_","signatures":[{"raw":"public static Fields.FlagField atLeft()","params":[],"returns":"Fields.FlagField","typeScopeBoundary":true}],"doc":{"summary":"Whether the pane touches the left of its window."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Pane_.java","line":127,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane_.atLeft","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane_.Pane_.atLeft","product":"core","slug":"io-github-libtmux-pane_-pane_-atleft"},{"id":"io.github.libtmux.Pane_.Pane_.atRight","name":"atRight","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Pane_.Pane_","signatures":[{"raw":"public static Fields.FlagField atRight()","params":[],"returns":"Fields.FlagField","typeScopeBoundary":true}],"doc":{"summary":"Whether the pane touches the right of its window."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Pane_.java","line":134,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane_.atRight","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane_.Pane_.atRight","product":"core","slug":"io-github-libtmux-pane_-pane_-atright"},{"id":"io.github.libtmux.Session_.Session_","name":"Session_","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Typed fields of {@link Session}, for building an expression that can be read as well as run.","body":"Each field exposes only the operators its type supports, so asking a flag to start with a\nstring does not compile. Every field names a tmux format, so a backend model can bind the handle\nbefore translating the expression into tmux's own {@code -f} filter."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Session_.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session_","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session_.Session_","product":"core","slug":"io-github-libtmux-session_-session_"},{"id":"io.github.libtmux.Session_.Session_.id","name":"id","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Session_.Session_","signatures":[{"raw":"public static Fields.TextField id()","params":[],"returns":"Fields.TextField","typeScopeBoundary":true}],"doc":{"summary":"The session id, as text, so it can be compared and listed."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Session_.java","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session_.id","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session_.Session_.id","product":"core","slug":"io-github-libtmux-session_-session_-id"},{"id":"io.github.libtmux.Session_.Session_.name","name":"name","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Session_.Session_","signatures":[{"raw":"public static Fields.TextField name()","params":[],"returns":"Fields.TextField","typeScopeBoundary":true}],"doc":{"summary":"The session name."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Session_.java","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session_.name","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session_.Session_.name","product":"core","slug":"io-github-libtmux-session_-session_-name"},{"id":"io.github.libtmux.Session_.Session_.attached","name":"attached","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Session_.Session_","signatures":[{"raw":"public static Fields.FlagField attached()","params":[],"returns":"Fields.FlagField","typeScopeBoundary":true}],"doc":{"summary":"Whether a client was attached when this was captured."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Session_.java","line":43,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session_.attached","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session_.Session_.attached","product":"core","slug":"io-github-libtmux-session_-session_-attached"},{"id":"io.github.libtmux.Session_.Session_.windowCount","name":"windowCount","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Session_.Session_","signatures":[{"raw":"public static Fields.NumberField windowCount()","params":[],"returns":"Fields.NumberField","typeScopeBoundary":true}],"doc":{"summary":"How many windows this session holds."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Session_.java","line":50,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session_.windowCount","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session_.Session_.windowCount","product":"core","slug":"io-github-libtmux-session_-session_-windowcount"},{"id":"io.github.libtmux.Session_.Session_.windows","name":"windows","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Session_.Session_","signatures":[{"raw":"public static Fields.ToManyRef windows()","params":[],"returns":"Fields.ToManyRef","typeScopeBoundary":true}],"doc":{"summary":"This session's windows."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Session_.java","line":57,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session_.windows","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session_.Session_.windows","product":"core","slug":"io-github-libtmux-session_-session_-windows"},{"id":"io.github.libtmux.Window_.Window_","name":"Window_","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Typed fields of {@link Window}."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Window_.java","line":8,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window_","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window_.Window_","product":"core","slug":"io-github-libtmux-window_-window_"},{"id":"io.github.libtmux.Window_.Window_.id","name":"id","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Window_.Window_","signatures":[{"raw":"public static Fields.TextField id()","params":[],"returns":"Fields.TextField","typeScopeBoundary":true}],"doc":{"summary":"The underlying window id, shared by every link to it."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Window_.java","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window_.id","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window_.Window_.id","product":"core","slug":"io-github-libtmux-window_-window_-id"},{"id":"io.github.libtmux.Window_.Window_.name","name":"name","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Window_.Window_","signatures":[{"raw":"public static Fields.TextField name()","params":[],"returns":"Fields.TextField","typeScopeBoundary":true}],"doc":{"summary":"The window name."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Window_.java","line":42,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window_.name","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window_.Window_.name","product":"core","slug":"io-github-libtmux-window_-window_-name"},{"id":"io.github.libtmux.Window_.Window_.index","name":"index","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Window_.Window_","signatures":[{"raw":"public static Fields.NumberField index()","params":[],"returns":"Fields.NumberField","typeScopeBoundary":true}],"doc":{"summary":"Where this link sits in its session."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Window_.java","line":49,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window_.index","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window_.Window_.index","product":"core","slug":"io-github-libtmux-window_-window_-index"},{"id":"io.github.libtmux.Window_.Window_.active","name":"active","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Window_.Window_","signatures":[{"raw":"public static Fields.FlagField active()","params":[],"returns":"Fields.FlagField","typeScopeBoundary":true}],"doc":{"summary":"Whether this was its session's active window."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Window_.java","line":56,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window_.active","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window_.Window_.active","product":"core","slug":"io-github-libtmux-window_-window_-active"},{"id":"io.github.libtmux.Window_.Window_.linked","name":"linked","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Window_.Window_","signatures":[{"raw":"public static Fields.FlagField linked()","params":[],"returns":"Fields.FlagField","typeScopeBoundary":true}],"doc":{"summary":"Whether the underlying window is linked into more than one session."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Window_.java","line":63,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window_.linked","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window_.Window_.linked","product":"core","slug":"io-github-libtmux-window_-window_-linked"},{"id":"io.github.libtmux.Window_.Window_.width","name":"width","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Window_.Window_","signatures":[{"raw":"public static Fields.NumberField width()","params":[],"returns":"Fields.NumberField","typeScopeBoundary":true}],"doc":{"summary":"The window's width, in cells."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Window_.java","line":70,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window_.width","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window_.Window_.width","product":"core","slug":"io-github-libtmux-window_-window_-width"},{"id":"io.github.libtmux.Window_.Window_.height","name":"height","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Window_.Window_","signatures":[{"raw":"public static Fields.NumberField height()","params":[],"returns":"Fields.NumberField","typeScopeBoundary":true}],"doc":{"summary":"The window's height, in cells."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Window_.java","line":77,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window_.height","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window_.Window_.height","product":"core","slug":"io-github-libtmux-window_-window_-height"},{"id":"io.github.libtmux.Window_.Window_.paneCount","name":"paneCount","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Window_.Window_","signatures":[{"raw":"public static Fields.NumberField paneCount()","params":[],"returns":"Fields.NumberField","typeScopeBoundary":true}],"doc":{"summary":"How many panes this link holds."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Window_.java","line":84,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window_.paneCount","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window_.Window_.paneCount","product":"core","slug":"io-github-libtmux-window_-window_-panecount"},{"id":"io.github.libtmux.Window_.Window_.panes","name":"panes","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Window_.Window_","signatures":[{"raw":"public static Fields.ToManyRef panes()","params":[],"returns":"Fields.ToManyRef","typeScopeBoundary":true}],"doc":{"summary":"This link's panes."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Window_.java","line":91,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window_.panes","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window_.Window_.panes","product":"core","slug":"io-github-libtmux-window_-window_-panes"},{"id":"io.github.libtmux.Window_.Window_.session","name":"session","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Window_.Window_","signatures":[{"raw":"public static Fields.ToOneRef session()","params":[],"returns":"Fields.ToOneRef","typeScopeBoundary":true}],"doc":{"summary":"The session this link belongs to."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Window_.java","line":98,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window_.session","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window_.Window_.session","product":"core","slug":"io-github-libtmux-window_-window_-session"},{"id":"io.github.libtmux.workspace.PaneSpec.PaneSpec","name":"PaneSpec","kind":"class","modifiers":[],"signatures":[{"raw":"public record PaneSpec(List commands)","params":[{"name":"commands","type":"List","doc":"the commands to send, in order; a pane with none is left at its shell"}]}],"typeScopeBoundary":false,"doc":{"summary":"One pane and what to run in it."},"source":{"file":"libtmux-workspace/src/main/java/io/github/libtmux/workspace/PaneSpec.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.workspace.PaneSpec","namespace":"io.github.libtmux.workspace","publicId":"io.github.libtmux.workspace.PaneSpec.PaneSpec","product":"workspace","apiScope":"exported","slug":"io-github-libtmux-workspace-panespec-panespec"},{"id":"io.github.libtmux.workspace.PaneSpec.PaneSpec.commands","name":"commands","kind":"method","parent":"io.github.libtmux.workspace.PaneSpec.PaneSpec","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"doc":{"summary":"the commands to send, in order; a pane with none is left at its shell"},"source":{"file":"libtmux-workspace/src/main/java/io/github/libtmux/workspace/PaneSpec.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.workspace.PaneSpec.commands","namespace":"io.github.libtmux.workspace","publicId":"io.github.libtmux.workspace.PaneSpec.PaneSpec.commands","product":"workspace","apiScope":"exported","slug":"io-github-libtmux-workspace-panespec-panespec-commands"},{"id":"io.github.libtmux.workspace.WindowSpec.WindowSpec","name":"WindowSpec","kind":"class","modifiers":[],"signatures":[{"raw":"public record WindowSpec(String name, Optional layout, List panes)","params":[{"name":"name","type":"String","doc":"the window name"},{"name":"layout","type":"Optional","doc":"the tmux layout to apply once the panes exist, if the file asked for one"},{"name":"panes","type":"List","doc":"the panes to create, in order; a window always has at least one"}]}],"typeScopeBoundary":false,"doc":{"summary":"One window, its panes, and how they are arranged."},"source":{"file":"libtmux-workspace/src/main/java/io/github/libtmux/workspace/WindowSpec.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.workspace.WindowSpec","namespace":"io.github.libtmux.workspace","publicId":"io.github.libtmux.workspace.WindowSpec.WindowSpec","product":"workspace","apiScope":"exported","slug":"io-github-libtmux-workspace-windowspec-windowspec"},{"id":"io.github.libtmux.workspace.WindowSpec.WindowSpec.name","name":"name","kind":"method","parent":"io.github.libtmux.workspace.WindowSpec.WindowSpec","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"the window name"},"source":{"file":"libtmux-workspace/src/main/java/io/github/libtmux/workspace/WindowSpec.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.workspace.WindowSpec.name","namespace":"io.github.libtmux.workspace","publicId":"io.github.libtmux.workspace.WindowSpec.WindowSpec.name","product":"workspace","apiScope":"exported","slug":"io-github-libtmux-workspace-windowspec-windowspec-name"},{"id":"io.github.libtmux.workspace.WindowSpec.WindowSpec.layout","name":"layout","kind":"method","parent":"io.github.libtmux.workspace.WindowSpec.WindowSpec","modifiers":[],"signatures":[{"params":[],"returns":"Optional"}],"doc":{"summary":"the tmux layout to apply once the panes exist, if the file asked for one"},"source":{"file":"libtmux-workspace/src/main/java/io/github/libtmux/workspace/WindowSpec.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.workspace.WindowSpec.layout","namespace":"io.github.libtmux.workspace","publicId":"io.github.libtmux.workspace.WindowSpec.WindowSpec.layout","product":"workspace","apiScope":"exported","slug":"io-github-libtmux-workspace-windowspec-windowspec-layout"},{"id":"io.github.libtmux.workspace.WindowSpec.WindowSpec.panes","name":"panes","kind":"method","parent":"io.github.libtmux.workspace.WindowSpec.WindowSpec","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"doc":{"summary":"the panes to create, in order; a window always has at least one"},"source":{"file":"libtmux-workspace/src/main/java/io/github/libtmux/workspace/WindowSpec.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.workspace.WindowSpec.panes","namespace":"io.github.libtmux.workspace","publicId":"io.github.libtmux.workspace.WindowSpec.WindowSpec.panes","product":"workspace","apiScope":"exported","slug":"io-github-libtmux-workspace-windowspec-windowspec-panes"},{"id":"io.github.libtmux.workspace.Workspace.Workspace","name":"Workspace","kind":"class","modifiers":[],"signatures":[{"raw":"public record Workspace(String sessionName, List windows)","params":[{"name":"sessionName","type":"String","doc":"the session to create"},{"name":"windows","type":"List","doc":"the windows to create, in order"}]}],"typeScopeBoundary":false,"doc":{"summary":"A session described in a file, before anything has been built."},"source":{"file":"libtmux-workspace/src/main/java/io/github/libtmux/workspace/Workspace.java","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.workspace.Workspace","namespace":"io.github.libtmux.workspace","publicId":"io.github.libtmux.workspace.Workspace.Workspace","product":"workspace","apiScope":"exported","slug":"io-github-libtmux-workspace-workspace-workspace"},{"id":"io.github.libtmux.workspace.Workspace.Workspace.sessionName","name":"sessionName","kind":"method","parent":"io.github.libtmux.workspace.Workspace.Workspace","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"the session to create"},"source":{"file":"libtmux-workspace/src/main/java/io/github/libtmux/workspace/Workspace.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.workspace.Workspace.sessionName","namespace":"io.github.libtmux.workspace","publicId":"io.github.libtmux.workspace.Workspace.Workspace.sessionName","product":"workspace","apiScope":"exported","slug":"io-github-libtmux-workspace-workspace-workspace-sessionname"},{"id":"io.github.libtmux.workspace.Workspace.Workspace.windows","name":"windows","kind":"method","parent":"io.github.libtmux.workspace.Workspace.Workspace","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"doc":{"summary":"the windows to create, in order"},"source":{"file":"libtmux-workspace/src/main/java/io/github/libtmux/workspace/Workspace.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.workspace.Workspace.windows","namespace":"io.github.libtmux.workspace","publicId":"io.github.libtmux.workspace.Workspace.Workspace.windows","product":"workspace","apiScope":"exported","slug":"io-github-libtmux-workspace-workspace-workspace-windows"},{"id":"io.github.libtmux.workspace.WorkspaceApplier.WorkspaceApplier","name":"WorkspaceApplier","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Applies a validated workspace as one session and attempts to remove it after a failure."},"source":{"file":"libtmux-workspace/src/main/java/io/github/libtmux/workspace/WorkspaceApplier.java","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.workspace.WorkspaceApplier","namespace":"io.github.libtmux.workspace","publicId":"io.github.libtmux.workspace.WorkspaceApplier.WorkspaceApplier","product":"workspace","apiScope":"internal","slug":"io-github-libtmux-workspace-workspaceapplier-workspaceapplier"},{"id":"io.github.libtmux.workspace.WorkspaceApplier.WorkspaceApplier.build","name":"build","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.workspace.WorkspaceApplier.WorkspaceApplier","signatures":[{"raw":"static Session build(Server server, Workspace workspace)","params":[{"name":"server","type":"Server"},{"name":"workspace","type":"Workspace"}],"returns":"Session","typeScopeBoundary":true}],"source":{"file":"libtmux-workspace/src/main/java/io/github/libtmux/workspace/WorkspaceApplier.java","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.workspace.WorkspaceApplier.build","namespace":"io.github.libtmux.workspace","publicId":"io.github.libtmux.workspace.WorkspaceApplier.WorkspaceApplier.build","product":"workspace","apiScope":"internal","slug":"io-github-libtmux-workspace-workspaceapplier-workspaceapplier-build"},{"id":"io.github.libtmux.workspace.WorkspaceBuilder.WorkspaceBuilder","name":"WorkspaceBuilder","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Builds a tmux session from a written description.","body":"Reads the shape of a tmuxp workspace file. Full runtime compatibility with tmuxp is not the\naim; starting from a file somebody already has is.\n\nReading and building are separate. A file that describes something tmux would refuse is\nrejected while it is still text, before any session exists to leave half-built.\n\nThe {@code tmux-workspace} command is a separate implementation with a wider document\nlanguage and its own behaviour around building; see this package's documentation for what\ndiffers. Code against this class for what this class does."},"source":{"file":"libtmux-workspace/src/main/java/io/github/libtmux/workspace/WorkspaceBuilder.java","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.workspace.WorkspaceBuilder","namespace":"io.github.libtmux.workspace","publicId":"io.github.libtmux.workspace.WorkspaceBuilder.WorkspaceBuilder","product":"workspace","apiScope":"exported","slug":"io-github-libtmux-workspace-workspacebuilder-workspacebuilder"},{"id":"io.github.libtmux.workspace.WorkspaceBuilder.WorkspaceBuilder.read","name":"read","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.workspace.WorkspaceBuilder.WorkspaceBuilder","signatures":[{"raw":"public static Workspace read(Path file)","params":[{"name":"file","type":"Path"}],"returns":"Workspace","typeScopeBoundary":true}],"doc":{"summary":"Reads a workspace from a file."},"source":{"file":"libtmux-workspace/src/main/java/io/github/libtmux/workspace/WorkspaceBuilder.java","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.workspace.WorkspaceBuilder.read","namespace":"io.github.libtmux.workspace","publicId":"io.github.libtmux.workspace.WorkspaceBuilder.WorkspaceBuilder.read","product":"workspace","apiScope":"exported","slug":"io-github-libtmux-workspace-workspacebuilder-workspacebuilder-read"},{"id":"io.github.libtmux.workspace.WorkspaceBuilder.WorkspaceBuilder.parse","name":"parse","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.workspace.WorkspaceBuilder.WorkspaceBuilder","signatures":[{"raw":"public static Workspace parse(String yaml)","params":[{"name":"yaml","type":"String"}],"returns":"Workspace","typeScopeBoundary":true,"raises":[{"type":"IllegalArgumentException","doc":"if the description is one tmux could not build, including a layout name tmux would not recognise"}]}],"doc":{"summary":"Reads a workspace from YAML text."},"source":{"file":"libtmux-workspace/src/main/java/io/github/libtmux/workspace/WorkspaceBuilder.java","line":42,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.workspace.WorkspaceBuilder.parse","namespace":"io.github.libtmux.workspace","publicId":"io.github.libtmux.workspace.WorkspaceBuilder.WorkspaceBuilder.parse","product":"workspace","apiScope":"exported","slug":"io-github-libtmux-workspace-workspacebuilder-workspacebuilder-parse"},{"id":"io.github.libtmux.workspace.WorkspaceBuilder.WorkspaceBuilder.build","name":"build","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.workspace.WorkspaceBuilder.WorkspaceBuilder","signatures":[{"raw":"public static Session build(Server server, Workspace workspace)","params":[{"name":"server","type":"Server"},{"name":"workspace","type":"Workspace"}],"returns":"Session","typeScopeBoundary":true,"returnsDoc":"the session, from a capture taken once everything exists"}],"doc":{"summary":"Creates the described session on a server."},"source":{"file":"libtmux-workspace/src/main/java/io/github/libtmux/workspace/WorkspaceBuilder.java","line":51,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.workspace.WorkspaceBuilder.build","namespace":"io.github.libtmux.workspace","publicId":"io.github.libtmux.workspace.WorkspaceBuilder.WorkspaceBuilder.build","product":"workspace","apiScope":"exported","slug":"io-github-libtmux-workspace-workspacebuilder-workspacebuilder-build"},{"id":"io.github.libtmux.workspace.WorkspaceParser.WorkspaceParser","name":"WorkspaceParser","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Converts the supported YAML shape into immutable workspace values."},"source":{"file":"libtmux-workspace/src/main/java/io/github/libtmux/workspace/WorkspaceParser.java","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.workspace.WorkspaceParser","namespace":"io.github.libtmux.workspace","publicId":"io.github.libtmux.workspace.WorkspaceParser.WorkspaceParser","product":"workspace","apiScope":"internal","slug":"io-github-libtmux-workspace-workspaceparser-workspaceparser"},{"id":"io.github.libtmux.workspace.WorkspaceParser.WorkspaceParser.parse","name":"parse","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.workspace.WorkspaceParser.WorkspaceParser","signatures":[{"raw":"static Workspace parse(String yaml)","params":[{"name":"yaml","type":"String"}],"returns":"Workspace","typeScopeBoundary":true}],"source":{"file":"libtmux-workspace/src/main/java/io/github/libtmux/workspace/WorkspaceParser.java","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.workspace.WorkspaceParser.parse","namespace":"io.github.libtmux.workspace","publicId":"io.github.libtmux.workspace.WorkspaceParser.WorkspaceParser.parse","product":"workspace","apiScope":"internal","slug":"io-github-libtmux-workspace-workspaceparser-workspaceparser-parse"},{"id":"io.github.libtmux.jackson.FilterJson.FilterJson","name":"FilterJson","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The versioned wire form of a filter expression.","body":"Writing and reading both require a model. Expressions hold executable accessors and navigators,\nwhile documents carry only their ids; the model is the authority that binds one to the other.\nRegex operands retain {@link java.util.regex.Pattern} syntax and flag bits.\n\nEverything unrecognised fails. An expression read wrongly does not announce itself — it\nsilently matches the wrong things, and a caller who wanted a filter gets one, just not theirs."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterJson.java","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterJson","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterJson.FilterJson","product":"core","slug":"io-github-libtmux-jackson-filterjson-filterjson"},{"id":"io.github.libtmux.jackson.FilterJson.FilterJson.SCHEMA","name":"SCHEMA","kind":"attribute","modifiers":["static","readonly"],"parent":"io.github.libtmux.jackson.FilterJson.FilterJson","signatures":[],"typeScopeBoundary":true,"type":"String","value":"\"libtmux.filter/1\"","doc":{"summary":"The schema this version reads and writes. Immutable once published."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterJson.java","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterJson.SCHEMA","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterJson.FilterJson.SCHEMA","product":"core","slug":"io-github-libtmux-jackson-filterjson-filterjson-schema"},{"id":"io.github.libtmux.jackson.FilterJson.FilterJson.write","name":"write","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.jackson.FilterJson.FilterJson","signatures":[{"raw":"public static ObjectNode write(FilterExpr expression, FilterModel model)","params":[{"name":"expression","type":"FilterExpr"},{"name":"model","type":"FilterModel"}],"returns":"ObjectNode","typeParamNames":["T"],"typeScopeBoundary":true,"typeParams":["T"],"typeParameters":[{"name":"T"}],"raises":[{"type":"SchemaException","doc":"if any field or relation is not the exact handle declared by the model"}]}],"doc":{"summary":"Writes an expression as a document for the model that declared all of its fields and relations."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterJson.java","line":46,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterJson.write","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterJson.FilterJson.write","product":"core","slug":"io-github-libtmux-jackson-filterjson-filterjson-write"},{"id":"io.github.libtmux.jackson.FilterJson.FilterJson.writeString","name":"writeString","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.jackson.FilterJson.FilterJson","signatures":[{"raw":"public static String writeString(FilterExpr expression, FilterModel model)","params":[{"name":"expression","type":"FilterExpr"},{"name":"model","type":"FilterModel"}],"returns":"String","typeParamNames":["T"],"typeScopeBoundary":true,"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"doc":{"summary":"Writes an expression as compact JSON text."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterJson.java","line":55,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterJson.writeString","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterJson.FilterJson.writeString","product":"core","slug":"io-github-libtmux-jackson-filterjson-filterjson-writestring"},{"id":"io.github.libtmux.jackson.FilterJson.FilterJson.read","name":"read","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.jackson.FilterJson.FilterJson","signatures":[{"raw":"public static FilterExpr read(JsonNode document, FilterModel model)","params":[{"name":"document","type":"JsonNode"},{"name":"model","type":"FilterModel"}],"returns":"FilterExpr","typeParamNames":["T"],"typeScopeBoundary":true,"typeParams":["T"],"typeParameters":[{"name":"T"}],"raises":[{"type":"SchemaException","doc":"if the schema version, the model, a field, a relation, an operator or a node shape is not one this version knows"}]}],"doc":{"summary":"Reads a document back as an expression over the given model."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterJson.java","line":65,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterJson.read","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterJson.FilterJson.read","product":"core","slug":"io-github-libtmux-jackson-filterjson-filterjson-read"},{"id":"io.github.libtmux.jackson.FilterJson.FilterJson.readString","name":"readString","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.jackson.FilterJson.FilterJson","signatures":[{"raw":"public static FilterExpr readString(String json, FilterModel model)","params":[{"name":"json","type":"String"},{"name":"model","type":"FilterModel"}],"returns":"FilterExpr","typeParamNames":["T"],"typeScopeBoundary":true,"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"doc":{"summary":"Reads a document from JSON text."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterJson.java","line":80,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterJson.readString","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterJson.FilterJson.readString","product":"core","slug":"io-github-libtmux-jackson-filterjson-filterjson-readstring"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel","name":"FilterModel","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"typeParams":["T"],"typeParamNames":["T"],"typeParameters":[{"name":"T","doc":"the entity this model describes"}],"doc":{"summary":"What a document's field and relation ids mean.","body":"Expressions carry executable field and relation handles, while documents carry only their ids.\nThis model binds those forms and gives each nested relation its target model."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","line":22,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.named","name":"named","kind":"method","modifiers":["static","overload"],"parent":"io.github.libtmux.jackson.FilterModel.FilterModel","signatures":[{"raw":"public static Builder named(String id)","params":[{"name":"id","type":"String"}],"returns":"Builder","typeParamNames":["T"],"typeScopeBoundary":true,"typeParams":["T"],"typeParameters":[{"name":"T"}]},{"raw":"public static Builder named(String id, Class entityType)","params":[{"name":"id","type":"String"},{"name":"entityType","type":"Class"}],"returns":"Builder","typeParamNames":["T"],"typeScopeBoundary":true,"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"doc":{"summary":"Starts a caller-owned model. Its id must identify the caller's namespace."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","line":39,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.named","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.named","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-named"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.builtIn","name":"builtIn","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.jackson.FilterModel.FilterModel","signatures":[{"raw":"static Builder builtIn(String id)","params":[{"name":"id","type":"String"}],"returns":"Builder","typeParamNames":["T"],"typeScopeBoundary":true,"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","line":57,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.builtIn","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.builtIn","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-builtin"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.id","name":"id","kind":"method","modifiers":[],"parent":"io.github.libtmux.jackson.FilterModel.FilterModel","signatures":[{"raw":"public String id()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The id documents name this model by."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","line":66,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.id","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.id","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-id"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.fieldNames","name":"fieldNames","kind":"method","modifiers":[],"parent":"io.github.libtmux.jackson.FilterModel.FilterModel","signatures":[{"raw":"public Set fieldNames()","params":[],"returns":"Set","typeScopeBoundary":false}],"doc":{"summary":"Every field a document may compare on, in declaration order."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","line":71,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.fieldNames","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.fieldNames","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-fieldnames"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.relationNames","name":"relationNames","kind":"method","modifiers":[],"parent":"io.github.libtmux.jackson.FilterModel.FilterModel","signatures":[{"raw":"public Set relationNames()","params":[],"returns":"Set","typeScopeBoundary":false}],"doc":{"summary":"Every relation a document may navigate."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","line":76,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.relationNames","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.relationNames","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-relationnames"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.field","name":"field","kind":"method","modifiers":[],"parent":"io.github.libtmux.jackson.FilterModel.FilterModel","signatures":[{"raw":"FieldRef field(String fieldId)","params":[{"name":"fieldId","type":"String"}],"returns":"FieldRef","typeScopeBoundary":false}],"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","line":82,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.field","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.field","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-field"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.toMany","name":"toMany","kind":"method","modifiers":[],"parent":"io.github.libtmux.jackson.FilterModel.FilterModel","signatures":[{"raw":"Relation toMany(String relation)","params":[{"name":"relation","type":"String"}],"returns":"Relation","typeScopeBoundary":false}],"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","line":90,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.toMany","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.toMany","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-tomany"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.toOne","name":"toOne","kind":"method","modifiers":[],"parent":"io.github.libtmux.jackson.FilterModel.FilterModel","signatures":[{"raw":"Relation toOne(String relation)","params":[{"name":"relation","type":"String"}],"returns":"Relation","typeScopeBoundary":false}],"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","line":94,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.toOne","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.toOne","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-toone"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.Relation","name":"Relation","kind":"class","modifiers":[],"parent":"io.github.libtmux.jackson.FilterModel.FilterModel","signatures":[{"raw":"record Relation(\n Fields.@Nullable ToManyRef toMany,\n Fields.@Nullable ToOneRef toOne,\n Supplier> targetModel)","params":[{"name":"toMany","type":"Fields.@Nullable ToManyRef"},{"name":"toOne","type":"Fields.@Nullable ToOneRef"},{"name":"targetModel","type":"Supplier>"}],"typeParamNames":["T","R"],"typeParams":["T","R"],"typeParameters":[{"name":"T"},{"name":"R"}]}],"typeScopeBoundary":true,"typeParams":["T","R"],"typeParamNames":["T","R"],"typeParameters":[{"name":"T"},{"name":"R"}],"doc":{"summary":"A relation handle paired with the model its far side is described by."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","line":107,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.Relation","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.Relation","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-relation"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.Relation.target","name":"target","kind":"method","modifiers":[],"parent":"io.github.libtmux.jackson.FilterModel.FilterModel.Relation","signatures":[{"raw":"FilterModel target()","params":[],"returns":"FilterModel","typeScopeBoundary":false}],"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","line":116,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.Relation.target","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.Relation.target","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-relation-target"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.Relation.toMany","name":"toMany","kind":"method","parent":"io.github.libtmux.jackson.FilterModel.FilterModel.Relation","modifiers":[],"signatures":[{"params":[],"returns":"Fields.@Nullable ToManyRef"}],"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.Relation.toMany","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.Relation.toMany","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-relation-tomany"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.Relation.toOne","name":"toOne","kind":"method","parent":"io.github.libtmux.jackson.FilterModel.FilterModel.Relation","modifiers":[],"signatures":[{"params":[],"returns":"Fields.@Nullable ToOneRef"}],"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.Relation.toOne","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.Relation.toOne","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-relation-toone"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.Relation.targetModel","name":"targetModel","kind":"method","parent":"io.github.libtmux.jackson.FilterModel.FilterModel.Relation","modifiers":[],"signatures":[{"params":[],"returns":"Supplier>"}],"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.Relation.targetModel","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.Relation.targetModel","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-relation-targetmodel"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.Builder","name":"Builder","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.jackson.FilterModel.FilterModel","signatures":[],"typeScopeBoundary":true,"typeParams":["T"],"typeParamNames":["T"],"typeParameters":[{"name":"T"}],"doc":{"summary":"Collects the exact handles and unique ids a document may name."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","line":122,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.Builder","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.Builder","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-builder"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.Builder.field","name":"field","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.jackson.FilterModel.FilterModel.Builder","signatures":[{"raw":"public Builder field(Fields.TextField field)","params":[{"name":"field","type":"Fields.TextField"}],"returns":"Builder","typeScopeBoundary":false},{"raw":"public Builder field(Fields.NumberField field)","params":[{"name":"field","type":"Fields.NumberField"}],"returns":"Builder","typeScopeBoundary":false},{"raw":"public Builder field(Fields.FlagField field)","params":[{"name":"field","type":"Fields.FlagField"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Declares a text field by the handle a metamodel already mints."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","line":134,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.Builder.field","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.Builder.field","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-builder-field"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.Builder.toMany","name":"toMany","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.jackson.FilterModel.FilterModel.Builder","signatures":[{"raw":"public Builder toMany(Fields.ToManyRef relation, FilterModel target)","params":[{"name":"relation","type":"Fields.ToManyRef"},{"name":"target","type":"FilterModel"}],"returns":"Builder","typeParamNames":["R"],"typeScopeBoundary":false,"typeParams":["R"],"typeParameters":[{"name":"R"}]},{"raw":"public Builder toMany(Fields.ToManyRef relation, Supplier> target)","params":[{"name":"relation","type":"Fields.ToManyRef"},{"name":"target","type":"Supplier>"}],"returns":"Builder","typeParamNames":["R"],"typeScopeBoundary":false,"typeParams":["R"],"typeParameters":[{"name":"R"}]}],"doc":{"summary":"Declares a to-many relation and the model describing what it reaches."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","line":149,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.Builder.toMany","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.Builder.toMany","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-builder-tomany"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.Builder.toOne","name":"toOne","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.jackson.FilterModel.FilterModel.Builder","signatures":[{"raw":"public Builder toOne(Fields.ToOneRef relation, FilterModel target)","params":[{"name":"relation","type":"Fields.ToOneRef"},{"name":"target","type":"FilterModel"}],"returns":"Builder","typeParamNames":["R"],"typeScopeBoundary":false,"typeParams":["R"],"typeParameters":[{"name":"R"}]},{"raw":"public Builder toOne(Fields.ToOneRef relation, Supplier> target)","params":[{"name":"relation","type":"Fields.ToOneRef"},{"name":"target","type":"Supplier>"}],"returns":"Builder","typeParamNames":["R"],"typeScopeBoundary":false,"typeParams":["R"],"typeParameters":[{"name":"R"}]}],"doc":{"summary":"Declares a to-one relation and the model describing what it reaches."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","line":163,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.Builder.toOne","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.Builder.toOne","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-builder-toone"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.Builder.build","name":"build","kind":"method","modifiers":[],"parent":"io.github.libtmux.jackson.FilterModel.FilterModel.Builder","signatures":[{"raw":"public FilterModel build()","params":[],"returns":"FilterModel","typeScopeBoundary":false}],"doc":{"summary":"Builds the model."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","line":190,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.Builder.build","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.Builder.build","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-builder-build"},{"id":"io.github.libtmux.jackson.LibTmuxModels.LibTmuxModels","name":"LibTmuxModels","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The wire ids for this library's own entities.","body":"The ids are tmux's format names, which is what makes a document readable by something that is\nnot this library: another implementation already knows what {@code pane_current_command} means."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/LibTmuxModels.java","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.LibTmuxModels","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.LibTmuxModels.LibTmuxModels","product":"core","slug":"io-github-libtmux-jackson-libtmuxmodels-libtmuxmodels"},{"id":"io.github.libtmux.jackson.LibTmuxModels.LibTmuxModels.pane","name":"pane","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.jackson.LibTmuxModels.LibTmuxModels","signatures":[{"raw":"public static FilterModel pane()","params":[],"returns":"FilterModel","typeScopeBoundary":true}],"doc":{"summary":"The model documents name {@code pane}."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/LibTmuxModels.java","line":62,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.LibTmuxModels.pane","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.LibTmuxModels.LibTmuxModels.pane","product":"core","slug":"io-github-libtmux-jackson-libtmuxmodels-libtmuxmodels-pane"},{"id":"io.github.libtmux.jackson.LibTmuxModels.LibTmuxModels.window","name":"window","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.jackson.LibTmuxModels.LibTmuxModels","signatures":[{"raw":"public static FilterModel window()","params":[],"returns":"FilterModel","typeScopeBoundary":true}],"doc":{"summary":"The model documents name {@code window}, reaching panes."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/LibTmuxModels.java","line":67,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.LibTmuxModels.window","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.LibTmuxModels.LibTmuxModels.window","product":"core","slug":"io-github-libtmux-jackson-libtmuxmodels-libtmuxmodels-window"},{"id":"io.github.libtmux.jackson.LibTmuxModels.LibTmuxModels.session","name":"session","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.jackson.LibTmuxModels.LibTmuxModels","signatures":[{"raw":"public static FilterModel session()","params":[],"returns":"FilterModel","typeScopeBoundary":true}],"doc":{"summary":"The model documents name {@code session}, reaching windows."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/LibTmuxModels.java","line":72,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.LibTmuxModels.session","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.LibTmuxModels.LibTmuxModels.session","product":"core","slug":"io-github-libtmux-jackson-libtmuxmodels-libtmuxmodels-session"},{"id":"io.github.libtmux.jackson.LibTmuxModels.LibTmuxModels.client","name":"client","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.jackson.LibTmuxModels.LibTmuxModels","signatures":[{"raw":"public static FilterModel client()","params":[],"returns":"FilterModel","typeScopeBoundary":true}],"doc":{"summary":"The model documents name {@code client}, reaching its session."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/LibTmuxModels.java","line":77,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.LibTmuxModels.client","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.LibTmuxModels.LibTmuxModels.client","product":"core","slug":"io-github-libtmux-jackson-libtmuxmodels-libtmuxmodels-client"},{"id":"io.github.libtmux.jackson.SchemaException.SchemaException","name":"SchemaException","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"A document could not be read as the expression it claims to be.","body":"Every failure here is a refusal rather than a best effort. An expression read wrongly does not\nannounce itself: it silently matches the wrong things, which is worse than not loading at all. An\n{@link IllegalArgumentException}, since the fault is in the document, not in talking to tmux."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/SchemaException.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.SchemaException","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.SchemaException.SchemaException","product":"core","slug":"io-github-libtmux-jackson-schemaexception-schemaexception"},{"id":"io.github.libtmux.jackson.SchemaException.SchemaException.SchemaException","name":"SchemaException","kind":"method","modifiers":[],"parent":"io.github.libtmux.jackson.SchemaException.SchemaException","signatures":[{"raw":"public SchemaException(String message)","params":[{"name":"message","type":"String"}],"typeScopeBoundary":false}],"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/SchemaException.java","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.SchemaException.SchemaException","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.SchemaException.SchemaException.SchemaException","product":"core","slug":"io-github-libtmux-jackson-schemaexception-schemaexception-schemaexception"},{"id":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient","name":"FakeControlClient","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"A {@code tmux -C} client of a {@link FakeTmux}, as the process a control client talks to.","body":"It reads one command line at a time, has the fake answer it, and writes the reply block tmux\nwould: {@code %begin}, the output, then {@code %end} or {@code %error}. Pushed output and\nnotifications are written between replies, never inside one, as tmux writes them. It ends, with\n{@code %exit}, when the fake restarts or the client closes its input."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeControlClient.java","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeControlClient","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient","product":"core","slug":"io-github-libtmux-junit5-fakecontrolclient-fakecontrolclient"},{"id":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.FakeControlClient","name":"FakeControlClient","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient","signatures":[{"raw":"FakeControlClient(Function>, CommandResult> answer)","params":[{"name":"answer","type":"Function>, CommandResult>"}],"typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeControlClient.java","line":39,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.FakeControlClient","product":"core","slug":"io-github-libtmux-junit5-fakecontrolclient-fakecontrolclient-fakecontrolclient"},{"id":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.push","name":"push","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient","signatures":[{"raw":"void push(String line)","params":[{"name":"line","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Writes an unprompted line, such as {@code %output}, between replies."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeControlClient.java","line":55,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeControlClient.push","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.push","product":"core","slug":"io-github-libtmux-junit5-fakecontrolclient-fakecontrolclient-push"},{"id":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.end","name":"end","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient","signatures":[{"raw":"void end()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Ends the client as a server that went away does."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeControlClient.java","line":60,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeControlClient.end","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.end","product":"core","slug":"io-github-libtmux-junit5-fakecontrolclient-fakecontrolclient-end"},{"id":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.parse","name":"parse","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient","signatures":[{"raw":"static List> parse(String line)","params":[{"name":"line","type":"String"}],"returns":"List>","typeScopeBoundary":true}],"doc":{"summary":"A command line as tmux's parser reads the ones this library writes: each argument single quoted, a quote as {@code '\\''}, a newline or return as {@code \"\\n\"} or {@code \"\\r\"}, and an unquoted {@code ;} between commands."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeControlClient.java","line":83,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeControlClient.parse","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.parse","product":"core","slug":"io-github-libtmux-junit5-fakecontrolclient-fakecontrolclient-parse"},{"id":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.getOutputStream","name":"getOutputStream","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient","signatures":[{"raw":"@Override\n public OutputStream getOutputStream()","params":[],"returns":"OutputStream","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeControlClient.java","line":188,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeControlClient.getOutputStream","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.getOutputStream","product":"core","slug":"io-github-libtmux-junit5-fakecontrolclient-fakecontrolclient-getoutputstream"},{"id":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.getInputStream","name":"getInputStream","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient","signatures":[{"raw":"@Override\n public InputStream getInputStream()","params":[],"returns":"InputStream","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeControlClient.java","line":193,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeControlClient.getInputStream","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.getInputStream","product":"core","slug":"io-github-libtmux-junit5-fakecontrolclient-fakecontrolclient-getinputstream"},{"id":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.getErrorStream","name":"getErrorStream","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient","signatures":[{"raw":"@Override\n public InputStream getErrorStream()","params":[],"returns":"InputStream","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeControlClient.java","line":198,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeControlClient.getErrorStream","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.getErrorStream","product":"core","slug":"io-github-libtmux-junit5-fakecontrolclient-fakecontrolclient-geterrorstream"},{"id":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.waitFor","name":"waitFor","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient","signatures":[{"raw":"@Override\n public int waitFor() throws InterruptedException","params":[],"returns":"int","typeScopeBoundary":false},{"raw":"@Override\n public boolean waitFor(long timeout, TimeUnit unit) throws InterruptedException","params":[{"name":"timeout","type":"long"},{"name":"unit","type":"TimeUnit"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeControlClient.java","line":203,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeControlClient.waitFor","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.waitFor","product":"core","slug":"io-github-libtmux-junit5-fakecontrolclient-fakecontrolclient-waitfor"},{"id":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.exitValue","name":"exitValue","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient","signatures":[{"raw":"@Override\n public int exitValue()","params":[],"returns":"int","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeControlClient.java","line":214,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeControlClient.exitValue","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.exitValue","product":"core","slug":"io-github-libtmux-junit5-fakecontrolclient-fakecontrolclient-exitvalue"},{"id":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.isAlive","name":"isAlive","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient","signatures":[{"raw":"@Override\n public boolean isAlive()","params":[],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeControlClient.java","line":222,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeControlClient.isAlive","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.isAlive","product":"core","slug":"io-github-libtmux-junit5-fakecontrolclient-fakecontrolclient-isalive"},{"id":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.destroy","name":"destroy","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient","signatures":[{"raw":"@Override\n public void destroy()","params":[],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeControlClient.java","line":227,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeControlClient.destroy","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.destroy","product":"core","slug":"io-github-libtmux-junit5-fakecontrolclient-fakecontrolclient-destroy"},{"id":"io.github.libtmux.junit5.FakePane.FakePane","name":"FakePane","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"One pane in a {@link FakeWindow}."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakePane.java","line":4,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakePane","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakePane.FakePane","product":"core","slug":"io-github-libtmux-junit5-fakepane-fakepane"},{"id":"io.github.libtmux.junit5.FakePane.FakePane.id","name":"id","kind":"attribute","modifiers":["readonly"],"parent":"io.github.libtmux.junit5.FakePane.FakePane","signatures":[],"typeScopeBoundary":false,"type":"String","source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakePane.java","line":5,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakePane.id","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakePane.FakePane.id","product":"core","slug":"io-github-libtmux-junit5-fakepane-fakepane-id"},{"id":"io.github.libtmux.junit5.FakePane.FakePane.index","name":"index","kind":"attribute","modifiers":["readonly"],"parent":"io.github.libtmux.junit5.FakePane.FakePane","signatures":[],"typeScopeBoundary":false,"type":"int","source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakePane.java","line":6,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakePane.index","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakePane.FakePane.index","product":"core","slug":"io-github-libtmux-junit5-fakepane-fakepane-index"},{"id":"io.github.libtmux.junit5.FakePane.FakePane.command","name":"command","kind":"attribute","modifiers":["readonly"],"parent":"io.github.libtmux.junit5.FakePane.FakePane","signatures":[],"typeScopeBoundary":false,"type":"String","source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakePane.java","line":7,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakePane.command","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakePane.FakePane.command","product":"core","slug":"io-github-libtmux-junit5-fakepane-fakepane-command"},{"id":"io.github.libtmux.junit5.FakePane.FakePane.directory","name":"directory","kind":"attribute","modifiers":["readonly"],"parent":"io.github.libtmux.junit5.FakePane.FakePane","signatures":[],"typeScopeBoundary":false,"type":"String","source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakePane.java","line":8,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakePane.directory","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakePane.FakePane.directory","product":"core","slug":"io-github-libtmux-junit5-fakepane-fakepane-directory"},{"id":"io.github.libtmux.junit5.FakePane.FakePane.pid","name":"pid","kind":"attribute","modifiers":["readonly"],"parent":"io.github.libtmux.junit5.FakePane.FakePane","signatures":[],"typeScopeBoundary":false,"type":"long","source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakePane.java","line":9,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakePane.pid","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakePane.FakePane.pid","product":"core","slug":"io-github-libtmux-junit5-fakepane-fakepane-pid"},{"id":"io.github.libtmux.junit5.FakePane.FakePane.title","name":"title","kind":"attribute","modifiers":[],"parent":"io.github.libtmux.junit5.FakePane.FakePane","signatures":[],"typeScopeBoundary":false,"type":"String","value":"\"\"","source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakePane.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakePane.title","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakePane.FakePane.title","product":"core","slug":"io-github-libtmux-junit5-fakepane-fakepane-title"},{"id":"io.github.libtmux.junit5.FakePane.FakePane.FakePane","name":"FakePane","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakePane.FakePane","signatures":[{"raw":"FakePane(String id, int index, String command, String directory, long pid)","params":[{"name":"id","type":"String"},{"name":"index","type":"int"},{"name":"command","type":"String"},{"name":"directory","type":"String"},{"name":"pid","type":"long"}],"typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakePane.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakePane.FakePane","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakePane.FakePane.FakePane","product":"core","slug":"io-github-libtmux-junit5-fakepane-fakepane-fakepane"},{"id":"io.github.libtmux.junit5.FakeSession.FakeSession","name":"FakeSession","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"One session in a {@link FakeTmux}, holding its windows in creation order."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeSession.java","line":7,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeSession","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeSession.FakeSession","product":"core","slug":"io-github-libtmux-junit5-fakesession-fakesession"},{"id":"io.github.libtmux.junit5.FakeSession.FakeSession.id","name":"id","kind":"attribute","modifiers":["readonly"],"parent":"io.github.libtmux.junit5.FakeSession.FakeSession","signatures":[],"typeScopeBoundary":false,"type":"String","source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeSession.java","line":8,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeSession.id","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeSession.FakeSession.id","product":"core","slug":"io-github-libtmux-junit5-fakesession-fakesession-id"},{"id":"io.github.libtmux.junit5.FakeSession.FakeSession.name","name":"name","kind":"attribute","modifiers":[],"parent":"io.github.libtmux.junit5.FakeSession.FakeSession","signatures":[],"typeScopeBoundary":false,"type":"String","source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeSession.java","line":9,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeSession.name","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeSession.FakeSession.name","product":"core","slug":"io-github-libtmux-junit5-fakesession-fakesession-name"},{"id":"io.github.libtmux.junit5.FakeSession.FakeSession.windows","name":"windows","kind":"attribute","modifiers":["readonly"],"parent":"io.github.libtmux.junit5.FakeSession.FakeSession","signatures":[],"typeScopeBoundary":false,"type":"List","value":"new ArrayList<>()","source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeSession.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeSession.windows","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeSession.FakeSession.windows","product":"core","slug":"io-github-libtmux-junit5-fakesession-fakesession-windows"},{"id":"io.github.libtmux.junit5.FakeSession.FakeSession.FakeSession","name":"FakeSession","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeSession.FakeSession","signatures":[{"raw":"FakeSession(String id, String name)","params":[{"name":"id","type":"String"},{"name":"name","type":"String"}],"typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeSession.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeSession.FakeSession","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeSession.FakeSession.FakeSession","product":"core","slug":"io-github-libtmux-junit5-fakesession-fakesession-fakesession"},{"id":"io.github.libtmux.junit5.FakeTmux.FakeTmux","name":"FakeTmux","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"A tmux server that is not there, for testing code that uses this library without starting one.","body":"It answers the way tmux answers, not the way a stub would: a listing is rendered from the\ntemplate the library sends, so a snapshot of a fake server is a real snapshot and every handle\nworks; a handle command is fenced on the server's identity and refused once the fake is replaced,\nas tmux refuses it; a group stops at its first failure. What it models is the hierarchy —\nsessions, windows, panes and their names and titles — and what each pane shows. What it does not\nmodel is a shell: keys sent to a pane are recorded, not run, and a pane shows what the test says.\n\nFor behaviour that depends on tmux itself — what a release does with a flag, how a real shell\nechoes — test against real tmux with {@link TmuxExtension} instead. This is for code whose\ninterest in tmux ends at the calls it makes.","examples":[{"lang":"java","code":"FakeTmux tmux = new FakeTmux();\nPaneId editor = tmux.addSession(\"work\");\ntmux.show(editor, \"$ make\", \"make: Nothing to be done for 'all'.\");\n\ntry (Server server = tmux.server()) {\n Pane pane = server.pane(editor).orElseThrow();\n pane.capture(); // → [$ make, make: Nothing to be done for 'all'.]\n pane.sendLine(\"make test\");\n}\n\ntmux.sent(); // every command, as the library sent it"}]},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeTmux.java","line":51,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeTmux","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeTmux.FakeTmux","product":"core","slug":"io-github-libtmux-junit5-faketmux-faketmux"},{"id":"io.github.libtmux.junit5.FakeTmux.FakeTmux.FakeTmux","name":"FakeTmux","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeTmux.FakeTmux","signatures":[{"raw":"public FakeTmux()","params":[],"typeScopeBoundary":false}],"doc":{"summary":"A fake server with no sessions, as tmux is before anything has been created."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeTmux.java","line":171,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeTmux.FakeTmux","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeTmux.FakeTmux.FakeTmux","product":"core","slug":"io-github-libtmux-junit5-faketmux-faketmux-faketmux"},{"id":"io.github.libtmux.junit5.FakeTmux.FakeTmux.server","name":"server","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeTmux.FakeTmux","signatures":[{"raw":"public Server server()","params":[],"returns":"Server","typeScopeBoundary":false}],"doc":{"summary":"A server this transport answers for.","body":"Borrowed rather than owned, so closing it leaves this fake as it is and a test can inspect\nit afterwards."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeTmux.java","line":185,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeTmux.server","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeTmux.FakeTmux.server","product":"core","slug":"io-github-libtmux-junit5-faketmux-faketmux-server"},{"id":"io.github.libtmux.junit5.FakeTmux.FakeTmux.addSession","name":"addSession","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeTmux.FakeTmux","signatures":[{"raw":"public synchronized PaneId addSession(String name)","params":[{"name":"name","type":"String"}],"returns":"PaneId","typeScopeBoundary":false,"returnsDoc":"the pane, so a test can say what it shows"}],"doc":{"summary":"Adds a session with one window and one pane running {@code sh}, as {@code new-session} makes."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeTmux.java","line":198,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeTmux.addSession","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeTmux.FakeTmux.addSession","product":"core","slug":"io-github-libtmux-junit5-faketmux-faketmux-addsession"},{"id":"io.github.libtmux.junit5.FakeTmux.FakeTmux.restart","name":"restart","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeTmux.FakeTmux","signatures":[{"raw":"public synchronized void restart()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Replaces the server, as a restart does: a new process, and nothing in it.","body":"Handles made before this are refused from now on, which is what a test of code that has to\nsurvive a server restarting under it needs to see."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeTmux.java","line":209,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeTmux.restart","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeTmux.FakeTmux.restart","product":"core","slug":"io-github-libtmux-junit5-faketmux-faketmux-restart"},{"id":"io.github.libtmux.junit5.FakeTmux.FakeTmux.show","name":"show","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeTmux.FakeTmux","signatures":[{"raw":"public synchronized void show(PaneId pane, String... lines)","params":[{"name":"pane","type":"PaneId"},{"name":"lines","type":"String","variadic":"positional"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"What the pane shows, one element per line, which is what capturing it answers."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeTmux.java","line":219,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeTmux.show","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeTmux.FakeTmux.show","product":"core","slug":"io-github-libtmux-junit5-faketmux-faketmux-show"},{"id":"io.github.libtmux.junit5.FakeTmux.FakeTmux.sent","name":"sent","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeTmux.FakeTmux","signatures":[{"raw":"public synchronized List> sent()","params":[],"returns":"List>","typeScopeBoundary":false}],"doc":{"summary":"Every command the library sent, in order, each as the words tmux would have read.","body":"Unwrapped: a command the library fenced on the server's identity or sent in a group is here\nas itself, and the plumbing that carried it is not."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeTmux.java","line":229,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeTmux.sent","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeTmux.FakeTmux.sent","product":"core","slug":"io-github-libtmux-junit5-faketmux-faketmux-sent"},{"id":"io.github.libtmux.junit5.FakeTmux.FakeTmux.sessions","name":"sessions","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeTmux.FakeTmux","signatures":[{"raw":"public synchronized List sessions()","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"The sessions the fake holds now, by id."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeTmux.java","line":234,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeTmux.sessions","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeTmux.FakeTmux.sessions","product":"core","slug":"io-github-libtmux-junit5-faketmux-faketmux-sessions"},{"id":"io.github.libtmux.junit5.FakeTmux.FakeTmux.execute","name":"execute","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeTmux.FakeTmux","signatures":[{"raw":"@Override\n public synchronized CommandResult execute(CommandRequest request)","params":[{"name":"request","type":"CommandRequest"}],"returns":"CommandResult","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeTmux.java","line":238,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeTmux.execute","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeTmux.FakeTmux.execute","product":"core","slug":"io-github-libtmux-junit5-faketmux-faketmux-execute"},{"id":"io.github.libtmux.junit5.FakeTmux.FakeTmux.controlCarrier","name":"controlCarrier","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeTmux.FakeTmux","signatures":[{"raw":"@Override\n public Optional controlCarrier()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"Control clients of this fake: {@code server.control(session)} attaches one, its commands are answered as this fake answers any other, and it hears what {@link #output} and {@link #notify} push. A restart ends every client attached, as a server that went away does."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeTmux.java","line":248,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeTmux.controlCarrier","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeTmux.FakeTmux.controlCarrier","product":"core","slug":"io-github-libtmux-junit5-faketmux-faketmux-controlcarrier"},{"id":"io.github.libtmux.junit5.FakeTmux.FakeTmux.output","name":"output","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeTmux.FakeTmux","signatures":[{"raw":"public synchronized void output(PaneId pane, String text)","params":[{"name":"pane","type":"PaneId"},{"name":"text","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Pushes what a pane wrote to every attached control client, as tmux's {@code %output}: a control byte or a backslash as three octal digits, and the rest as it is."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeTmux.java","line":267,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeTmux.output","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeTmux.FakeTmux.output","product":"core","slug":"io-github-libtmux-junit5-faketmux-faketmux-output"},{"id":"io.github.libtmux.junit5.FakeTmux.FakeTmux.notify","name":"notify","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeTmux.FakeTmux","signatures":[{"raw":"public synchronized void notify(String line)","params":[{"name":"line","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Pushes a notification line, such as {@code %window-renamed @1 logs}, to every attached client."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeTmux.java","line":285,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeTmux.notify","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeTmux.FakeTmux.notify","product":"core","slug":"io-github-libtmux-junit5-faketmux-faketmux-notify"},{"id":"io.github.libtmux.junit5.FakeTmux.FakeTmux.close","name":"close","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeTmux.FakeTmux","signatures":[{"raw":"@Override\n public void close()","params":[],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeTmux.java","line":294,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeTmux.close","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeTmux.FakeTmux.close","product":"core","slug":"io-github-libtmux-junit5-faketmux-faketmux-close"},{"id":"io.github.libtmux.junit5.FakeWindow.FakeWindow","name":"FakeWindow","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"One window in a {@link FakeSession}, holding its panes in creation order."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeWindow.java","line":7,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeWindow","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeWindow.FakeWindow","product":"core","slug":"io-github-libtmux-junit5-fakewindow-fakewindow"},{"id":"io.github.libtmux.junit5.FakeWindow.FakeWindow.id","name":"id","kind":"attribute","modifiers":["readonly"],"parent":"io.github.libtmux.junit5.FakeWindow.FakeWindow","signatures":[],"typeScopeBoundary":false,"type":"String","source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeWindow.java","line":8,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeWindow.id","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeWindow.FakeWindow.id","product":"core","slug":"io-github-libtmux-junit5-fakewindow-fakewindow-id"},{"id":"io.github.libtmux.junit5.FakeWindow.FakeWindow.index","name":"index","kind":"attribute","modifiers":["readonly"],"parent":"io.github.libtmux.junit5.FakeWindow.FakeWindow","signatures":[],"typeScopeBoundary":false,"type":"int","source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeWindow.java","line":9,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeWindow.index","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeWindow.FakeWindow.index","product":"core","slug":"io-github-libtmux-junit5-fakewindow-fakewindow-index"},{"id":"io.github.libtmux.junit5.FakeWindow.FakeWindow.name","name":"name","kind":"attribute","modifiers":[],"parent":"io.github.libtmux.junit5.FakeWindow.FakeWindow","signatures":[],"typeScopeBoundary":false,"type":"String","source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeWindow.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeWindow.name","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeWindow.FakeWindow.name","product":"core","slug":"io-github-libtmux-junit5-fakewindow-fakewindow-name"},{"id":"io.github.libtmux.junit5.FakeWindow.FakeWindow.active","name":"active","kind":"attribute","modifiers":[],"parent":"io.github.libtmux.junit5.FakeWindow.FakeWindow","signatures":[{"raw":"FakePane active()","params":[],"returns":"FakePane","typeScopeBoundary":false}],"typeScopeBoundary":false,"type":"boolean","source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeWindow.java","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeWindow.active","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeWindow.FakeWindow.active","product":"core","slug":"io-github-libtmux-junit5-fakewindow-fakewindow-active"},{"id":"io.github.libtmux.junit5.FakeWindow.FakeWindow.panes","name":"panes","kind":"attribute","modifiers":["readonly"],"parent":"io.github.libtmux.junit5.FakeWindow.FakeWindow","signatures":[],"typeScopeBoundary":false,"type":"List","value":"new ArrayList<>()","source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeWindow.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeWindow.panes","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeWindow.FakeWindow.panes","product":"core","slug":"io-github-libtmux-junit5-fakewindow-fakewindow-panes"},{"id":"io.github.libtmux.junit5.FakeWindow.FakeWindow.FakeWindow","name":"FakeWindow","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeWindow.FakeWindow","signatures":[{"raw":"FakeWindow(String id, int index, String name)","params":[{"name":"id","type":"String"},{"name":"index","type":"int"},{"name":"name","type":"String"}],"typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeWindow.java","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeWindow.FakeWindow","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeWindow.FakeWindow.FakeWindow","product":"core","slug":"io-github-libtmux-junit5-fakewindow-fakewindow-fakewindow"},{"id":"io.github.libtmux.junit5.Flags.Flags","name":"Flags","kind":"class","modifiers":[],"signatures":[{"raw":"record Flags(Map values, Set switches, List positional)","params":[{"name":"values","type":"Map"},{"name":"switches","type":"Set"},{"name":"positional","type":"List"}]}],"typeScopeBoundary":false,"doc":{"summary":"A command's flags and the words after them, read as tmux's argument parser reads them."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Flags.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Flags","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Flags.Flags","product":"core","slug":"io-github-libtmux-junit5-flags-flags"},{"id":"io.github.libtmux.junit5.Flags.Flags.parse","name":"parse","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.junit5.Flags.Flags","signatures":[{"raw":"static Flags parse(List argv)","params":[{"name":"argv","type":"List"}],"returns":"Flags","typeScopeBoundary":true}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Flags.java","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Flags.parse","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Flags.Flags.parse","product":"core","slug":"io-github-libtmux-junit5-flags-flags-parse"},{"id":"io.github.libtmux.junit5.Flags.Flags.has","name":"has","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.Flags.Flags","signatures":[{"raw":"boolean has(String flag)","params":[{"name":"flag","type":"String"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Flags.java","line":59,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Flags.has","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Flags.Flags.has","product":"core","slug":"io-github-libtmux-junit5-flags-flags-has"},{"id":"io.github.libtmux.junit5.Flags.Flags.value","name":"value","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.Flags.Flags","signatures":[{"raw":"@Nullable\n String value(String flag)","params":[{"name":"flag","type":"String"}],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Flags.java","line":63,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Flags.value","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Flags.Flags.value","product":"core","slug":"io-github-libtmux-junit5-flags-flags-value"},{"id":"io.github.libtmux.junit5.Flags.Flags.values","name":"values","kind":"method","parent":"io.github.libtmux.junit5.Flags.Flags","modifiers":[],"signatures":[{"params":[],"returns":"Map"}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Flags.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Flags.values","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Flags.Flags.values","product":"core","slug":"io-github-libtmux-junit5-flags-flags-values"},{"id":"io.github.libtmux.junit5.Flags.Flags.switches","name":"switches","kind":"method","parent":"io.github.libtmux.junit5.Flags.Flags","modifiers":[],"signatures":[{"params":[],"returns":"Set"}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Flags.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Flags.switches","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Flags.Flags.switches","product":"core","slug":"io-github-libtmux-junit5-flags-flags-switches"},{"id":"io.github.libtmux.junit5.Flags.Flags.positional","name":"positional","kind":"method","parent":"io.github.libtmux.junit5.Flags.Flags","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Flags.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Flags.positional","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Flags.Flags.positional","product":"core","slug":"io-github-libtmux-junit5-flags-flags-positional"},{"id":"io.github.libtmux.junit5.Formats.Formats","name":"Formats","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The part of tmux's format language the library sends: variables, comparisons, {@code &&} and {@code ||}, {@code ?} conditionals, and the {@code W:} and {@code P:} loops."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Formats.java","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Formats","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Formats.Formats","product":"core","slug":"io-github-libtmux-junit5-formats-formats"},{"id":"io.github.libtmux.junit5.Formats.Formats.Scope","name":"Scope","kind":"interface","modifiers":[],"parent":"io.github.libtmux.junit5.Formats.Formats","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"What a format is expanded against: a row's variables, and the rows a loop visits."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Formats.java","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Formats.Scope","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Formats.Formats.Scope","product":"core","slug":"io-github-libtmux-junit5-formats-formats-scope"},{"id":"io.github.libtmux.junit5.Formats.Formats.Scope.get","name":"get","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.Formats.Formats.Scope","signatures":[{"raw":"@Nullable\n String get(String variable);","params":[{"name":"variable","type":"String"}],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Formats.java","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Formats.Scope.get","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Formats.Formats.Scope.get","product":"core","slug":"io-github-libtmux-junit5-formats-formats-scope-get"},{"id":"io.github.libtmux.junit5.Formats.Formats.Scope.windows","name":"windows","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.Formats.Formats.Scope","signatures":[{"raw":"List windows();","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"The windows of this row's session, each at its active pane."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Formats.java","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Formats.Scope.windows","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Formats.Formats.Scope.windows","product":"core","slug":"io-github-libtmux-junit5-formats-formats-scope-windows"},{"id":"io.github.libtmux.junit5.Formats.Formats.Scope.panes","name":"panes","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.Formats.Formats.Scope","signatures":[{"raw":"List panes();","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"The panes of this row's window."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Formats.java","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Formats.Scope.panes","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Formats.Formats.Scope.panes","product":"core","slug":"io-github-libtmux-junit5-formats-formats-scope-panes"},{"id":"io.github.libtmux.junit5.Formats.Formats.literal","name":"literal","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.junit5.Formats.Formats","signatures":[{"raw":"static String literal(String value)","params":[{"name":"value","type":"String"}],"returns":"String","typeScopeBoundary":true}],"doc":{"summary":"Undoes {@code TmuxFormats.literal}: tmux reads {@code ##} in a format as one {@code #}."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Formats.java","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Formats.literal","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Formats.Formats.literal","product":"core","slug":"io-github-libtmux-junit5-formats-formats-literal"},{"id":"io.github.libtmux.junit5.Formats.Formats.expand","name":"expand","kind":"method","modifiers":["static","overload"],"parent":"io.github.libtmux.junit5.Formats.Formats","signatures":[{"raw":"static String expand(String format, Function variables)","params":[{"name":"format","type":"String"},{"name":"variables","type":"Function"}],"returns":"String","typeScopeBoundary":true},{"raw":"static String expand(String format, Scope variables)","params":[{"name":"format","type":"String"},{"name":"variables","type":"Scope"}],"returns":"String","typeScopeBoundary":true}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Formats.java","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Formats.expand","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Formats.Formats.expand","product":"core","slug":"io-github-libtmux-junit5-formats-formats-expand"},{"id":"io.github.libtmux.junit5.Formats.Formats.truthy","name":"truthy","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.junit5.Formats.Formats","signatures":[{"raw":"static boolean truthy(String value)","params":[{"name":"value","type":"String"}],"returns":"boolean","typeScopeBoundary":true}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Formats.java","line":177,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Formats.truthy","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Formats.Formats.truthy","product":"core","slug":"io-github-libtmux-junit5-formats-formats-truthy"},{"id":"io.github.libtmux.junit5.Groups.Groups","name":"Groups","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Reads a command group the way tmux's command parser reads it: words in single quotes, a quote spelled {@code '\\''}, a line break spelled {@code \"\\n\"}, commands separated by {@code ;}."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Groups.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Groups","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Groups.Groups","product":"core","slug":"io-github-libtmux-junit5-groups-groups"},{"id":"io.github.libtmux.junit5.Groups.Groups.parse","name":"parse","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.junit5.Groups.Groups","signatures":[{"raw":"static List> parse(String text)","params":[{"name":"text","type":"String"}],"returns":"List>","typeScopeBoundary":true}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Groups.java","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Groups.parse","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Groups.Groups.parse","product":"core","slug":"io-github-libtmux-junit5-groups-groups-parse"},{"id":"io.github.libtmux.junit5.NamedServerFixture.NamedServerFixture","name":"NamedServerFixture","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Owns the safe teardown of a tmux server addressed by socket name."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/NamedServerFixture.java","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.NamedServerFixture","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.NamedServerFixture.NamedServerFixture","product":"core","slug":"io-github-libtmux-junit5-namedserverfixture-namedserverfixture"},{"id":"io.github.libtmux.junit5.NamedServerFixture.NamedServerFixture.own","name":"own","kind":"method","modifiers":["static","overload"],"parent":"io.github.libtmux.junit5.NamedServerFixture.NamedServerFixture","signatures":[{"raw":"public static NamedServerFixture own(Server server, String expectedName, Path quarantine) throws IOException","params":[{"name":"server","type":"Server","doc":"the server this test started"},{"name":"expectedName","type":"String","doc":"the exact socket name the test supplied to tmux"},{"name":"quarantine","type":"Path","doc":"the {@code TMUX_TMPDIR} assigned to this test task"}],"returns":"NamedServerFixture","typeScopeBoundary":true,"returnsDoc":"cleanup bound to the reported process, path, and socket inode","raises":[{"type":"IOException","doc":"if the endpoint cannot be inspected"}]},{"raw":"public static NamedServerFixture own(Server server, Path expectedSocket, Path quarantine) throws IOException","params":[{"name":"server","type":"Server","doc":"the server this test started"},{"name":"expectedSocket","type":"Path","doc":"the exact socket path the test supplied to tmux"},{"name":"quarantine","type":"Path","doc":"the owned root that must contain the socket"}],"returns":"NamedServerFixture","typeScopeBoundary":true,"returnsDoc":"cleanup bound to the reported process, path, and socket inode","raises":[{"type":"IOException","doc":"if the endpoint cannot be inspected"}]}],"doc":{"summary":"Authenticates a live named server and takes responsibility for ending it."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/NamedServerFixture.java","line":49,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.NamedServerFixture.own","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.NamedServerFixture.NamedServerFixture.own","product":"core","slug":"io-github-libtmux-junit5-namedserverfixture-namedserverfixture-own"},{"id":"io.github.libtmux.junit5.NamedServerFixture.NamedServerFixture.socket","name":"socket","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.NamedServerFixture.NamedServerFixture","signatures":[{"raw":"public Path socket()","params":[],"returns":"Path","typeScopeBoundary":false}],"doc":{"summary":"Returns the exact socket path authenticated when ownership was taken."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/NamedServerFixture.java","line":117,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.NamedServerFixture.socket","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.NamedServerFixture.NamedServerFixture.socket","product":"core","slug":"io-github-libtmux-junit5-namedserverfixture-namedserverfixture-socket"},{"id":"io.github.libtmux.junit5.NamedServerFixture.NamedServerFixture.close","name":"close","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.NamedServerFixture.NamedServerFixture","signatures":[{"raw":"@Override\n public synchronized void close() throws IOException","params":[],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/NamedServerFixture.java","line":121,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.NamedServerFixture.close","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.NamedServerFixture.NamedServerFixture.close","product":"core","slug":"io-github-libtmux-junit5-namedserverfixture-namedserverfixture-close"},{"id":"io.github.libtmux.junit5.Target.Target","name":"Target","kind":"class","modifiers":[],"signatures":[{"raw":"record Target(FakeSession session, FakeWindow window, FakePane pane)","params":[{"name":"session","type":"FakeSession"},{"name":"window","type":"FakeWindow"},{"name":"pane","type":"FakePane"}]}],"typeScopeBoundary":false,"doc":{"summary":"A session, one of its windows, and one of that window's panes: what a command is scoped to."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Target.java","line":8,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Target","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Target.Target","product":"core","slug":"io-github-libtmux-junit5-target-target"},{"id":"io.github.libtmux.junit5.Target.Target.active","name":"active","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.junit5.Target.Target","signatures":[{"raw":"static Optional active(List sessions)","params":[{"name":"sessions","type":"List"}],"returns":"Optional","typeScopeBoundary":true}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Target.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Target.active","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Target.Target.active","product":"core","slug":"io-github-libtmux-junit5-target-target-active"},{"id":"io.github.libtmux.junit5.Target.Target.resolve","name":"resolve","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.junit5.Target.Target","signatures":[{"raw":"static Optional resolve(List sessions, @Nullable String spec)","params":[{"name":"sessions","type":"List"},{"name":"spec","type":"String"}],"returns":"Optional","typeScopeBoundary":true}],"doc":{"summary":"Resolves {@code $id}, {@code @id}, {@code %id} and {@code =name}, with any trailing separator."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Target.java","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Target.resolve","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Target.Target.resolve","product":"core","slug":"io-github-libtmux-junit5-target-target-resolve"},{"id":"io.github.libtmux.junit5.Target.Target.session","name":"session","kind":"method","parent":"io.github.libtmux.junit5.Target.Target","modifiers":[],"signatures":[{"params":[],"returns":"FakeSession"}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Target.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Target.session","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Target.Target.session","product":"core","slug":"io-github-libtmux-junit5-target-target-session"},{"id":"io.github.libtmux.junit5.Target.Target.window","name":"window","kind":"method","parent":"io.github.libtmux.junit5.Target.Target","modifiers":[],"signatures":[{"params":[],"returns":"FakeWindow"}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Target.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Target.window","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Target.Target.window","product":"core","slug":"io-github-libtmux-junit5-target-target-window"},{"id":"io.github.libtmux.junit5.Target.Target.pane","name":"pane","kind":"method","parent":"io.github.libtmux.junit5.Target.Target","modifiers":[],"signatures":[{"params":[],"returns":"FakePane"}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Target.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Target.pane","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Target.Target.pane","product":"core","slug":"io-github-libtmux-junit5-target-target-pane"},{"id":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension","name":"TmuxExtension","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Gives each test its own tmux server and guarantees it is gone afterwards.","body":"All state lives in the extension store, never in fields. JUnit reuses one declaratively\nregistered extension instance for every test in a class, so a field is shared state the moment\ntests run in parallel, and one test's teardown then reaches another test's server.\n\nThe server is started eagerly, before the test body, and the aggregate that owns it is\nregistered before any process exists. Registering afterwards leaves a window in which a failure\npartway through setup leaks a running tmux that nothing is left holding.\n\nTeardown is driven from a lifecycle callback and the aggregate is also {@link AutoCloseable}\nfor the framework's own store handling. Relying on store auto-close alone is a silent dependency\non a configuration property: with it disabled that design releases nothing and reports nothing.\nThe aggregate closes exactly once, so either path alone is sufficient."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxExtension.java","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.TmuxExtension","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension","product":"core","slug":"io-github-libtmux-junit5-tmuxextension-tmuxextension"},{"id":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.fixtureRoot","name":"fixtureRoot","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension","signatures":[{"raw":"static Path fixtureRoot()","params":[],"returns":"Path","typeScopeBoundary":true}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxExtension.java","line":114,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.TmuxExtension.fixtureRoot","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.fixtureRoot","product":"core","slug":"io-github-libtmux-junit5-tmuxextension-tmuxextension-fixtureroot"},{"id":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.reapAbandoned","name":"reapAbandoned","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension","signatures":[{"raw":"static int reapAbandoned(Path root)","params":[{"name":"root","type":"Path"}],"returns":"int","typeScopeBoundary":true}],"doc":{"summary":"Ends every tmux server under {@code root} whose owning JVM is gone, and answers how many ended. Runs while other runs are using the same root, so it may only touch abandoned servers."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxExtension.java","line":122,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.TmuxExtension.reapAbandoned","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.reapAbandoned","product":"core","slug":"io-github-libtmux-junit5-tmuxextension-tmuxextension-reapabandoned"},{"id":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.startOf","name":"startOf","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension","signatures":[{"raw":"static Optional startOf(long pid)","params":[{"name":"pid","type":"long"}],"returns":"Optional","typeScopeBoundary":true}],"doc":{"summary":"When a process started, in a form every JVM on this machine reads the same way: the kernel's own ticks since boot on Linux, and the platform's start instant elsewhere."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxExtension.java","line":228,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.TmuxExtension.startOf","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.startOf","product":"core","slug":"io-github-libtmux-junit5-tmuxextension-tmuxextension-startof"},{"id":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.deleteTree","name":"deleteTree","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension","signatures":[{"raw":"static void deleteTree(Path root)","params":[{"name":"root","type":"Path"}],"returns":"void","typeScopeBoundary":true}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxExtension.java","line":255,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.TmuxExtension.deleteTree","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.deleteTree","product":"core","slug":"io-github-libtmux-junit5-tmuxextension-tmuxextension-deletetree"},{"id":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.beforeEach","name":"beforeEach","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension","signatures":[{"raw":"@Override\n public void beforeEach(ExtensionContext context)","params":[{"name":"context","type":"ExtensionContext"}],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxExtension.java","line":272,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.TmuxExtension.beforeEach","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.beforeEach","product":"core","slug":"io-github-libtmux-junit5-tmuxextension-tmuxextension-beforeeach"},{"id":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.supportsParameter","name":"supportsParameter","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension","signatures":[{"raw":"@Override\n public boolean supportsParameter(ParameterContext parameter, ExtensionContext context)","params":[{"name":"parameter","type":"ParameterContext"},{"name":"context","type":"ExtensionContext"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxExtension.java","line":277,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.TmuxExtension.supportsParameter","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.supportsParameter","product":"core","slug":"io-github-libtmux-junit5-tmuxextension-tmuxextension-supportsparameter"},{"id":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.resolveParameter","name":"resolveParameter","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension","signatures":[{"raw":"@Override\n public Object resolveParameter(ParameterContext parameter, ExtensionContext context)","params":[{"name":"parameter","type":"ParameterContext"},{"name":"context","type":"ExtensionContext"}],"returns":"Object","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxExtension.java","line":284,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.TmuxExtension.resolveParameter","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.resolveParameter","product":"core","slug":"io-github-libtmux-junit5-tmuxextension-tmuxextension-resolveparameter"},{"id":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.afterEach","name":"afterEach","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension","signatures":[{"raw":"@Override\n public void afterEach(ExtensionContext context)","params":[{"name":"context","type":"ExtensionContext"}],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxExtension.java","line":292,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.TmuxExtension.afterEach","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.afterEach","product":"core","slug":"io-github-libtmux-junit5-tmuxextension-tmuxextension-aftereach"},{"id":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture","name":"Fixture","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"One test's server, socket and directory, released exactly once."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxExtension.java","line":309,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.TmuxExtension.Fixture","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture","product":"core","slug":"io-github-libtmux-junit5-tmuxextension-tmuxextension-fixture"},{"id":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture.start","name":"start","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture","signatures":[{"raw":"synchronized void start()","params":[],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxExtension.java","line":320,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.TmuxExtension.Fixture.start","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture.start","product":"core","slug":"io-github-libtmux-junit5-tmuxextension-tmuxextension-fixture-start"},{"id":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture.server","name":"server","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture","signatures":[{"raw":"Server server()","params":[],"returns":"Server","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxExtension.java","line":370,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.TmuxExtension.Fixture.server","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture.server","product":"core","slug":"io-github-libtmux-junit5-tmuxextension-tmuxextension-fixture-server"},{"id":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture.socket","name":"socket","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture","signatures":[{"raw":"Path socket()","params":[],"returns":"Path","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxExtension.java","line":378,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.TmuxExtension.Fixture.socket","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture.socket","product":"core","slug":"io-github-libtmux-junit5-tmuxextension-tmuxextension-fixture-socket"},{"id":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture.close","name":"close","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture","signatures":[{"raw":"@Override\n public synchronized void close()","params":[],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxExtension.java","line":386,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.TmuxExtension.Fixture.close","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture.close","product":"core","slug":"io-github-libtmux-junit5-tmuxextension-tmuxextension-fixture-close"},{"id":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture.awaitExit","name":"awaitExit","kind":"method","modifiers":["static","overload"],"parent":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture","signatures":[{"raw":"static boolean awaitExit(Server server)","params":[{"name":"server","type":"Server"}],"returns":"boolean","typeScopeBoundary":true},{"raw":"static boolean awaitExit(Server server, long timeoutMillis)","params":[{"name":"server","type":"Server"},{"name":"timeoutMillis","type":"long"}],"returns":"boolean","typeScopeBoundary":true}],"doc":{"summary":"Exit is proved by asking, not assumed from a kill that may have raced."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxExtension.java","line":415,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.TmuxExtension.Fixture.awaitExit","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture.awaitExit","product":"core","slug":"io-github-libtmux-junit5-tmuxextension-tmuxextension-fixture-awaitexit"},{"id":"io.github.libtmux.junit5.TmuxSocketPath.TmuxSocketPath","name":"TmuxSocketPath","kind":"class","modifiers":[],"signatures":[{"raw":"public record TmuxSocketPath(Path path)","params":[{"name":"path","type":"Path","doc":"the exact socket path this test's tmux was started with"}]}],"typeScopeBoundary":false,"doc":{"summary":"The socket a fixture server is listening on.","body":"A distinct type rather than a bare {@link Path} so the extension can resolve it without\nclaiming every {@code Path} parameter a test might want from some other extension."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxSocketPath.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.TmuxSocketPath","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.TmuxSocketPath.TmuxSocketPath","product":"core","slug":"io-github-libtmux-junit5-tmuxsocketpath-tmuxsocketpath"},{"id":"io.github.libtmux.junit5.TmuxSocketPath.TmuxSocketPath.path","name":"path","kind":"method","parent":"io.github.libtmux.junit5.TmuxSocketPath.TmuxSocketPath","modifiers":[],"signatures":[{"params":[],"returns":"Path"}],"doc":{"summary":"the exact socket path this test's tmux was started with"},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxSocketPath.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.TmuxSocketPath.path","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.TmuxSocketPath.TmuxSocketPath.path","product":"core","slug":"io-github-libtmux-junit5-tmuxsocketpath-tmuxsocketpath-path"},{"id":"io.github.libtmux.mcp.Main.Main","name":"Main","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Runs the tmux MCP server over stdin and stdout.","body":"An MCP client launches this as a subprocess and speaks JSON-RPC over its standard streams, so\n**nothing may write to stdout but the protocol**. Diagnostics go to stderr, which the\nclient is free to log or discard.\n\nWhich tmux server to expose is chosen the same way the library chooses it: a socket path, a\nsocket name, or tmux's own default.\n\nThe unordered toolset and named-tool environment variables resolve one immutable surface\nbefore tmux is opened. A tool outside it is neither listed nor callable.","examples":[{"lang":"java","code":"libtmux-mcp --socket /run/user/1000/tmux/default\nlibtmux-mcp --socket-name work --tmux /usr/local/bin/tmux"}]},"source":{"file":"libtmux-mcp/src/main/java/io/github/libtmux/mcp/Main.java","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.mcp.Main","namespace":"io.github.libtmux.mcp","publicId":"io.github.libtmux.mcp.Main.Main","product":"mcp","apiScope":"exported","slug":"io-github-libtmux-mcp-main-main"},{"id":"io.github.libtmux.mcp.Main.Main.main","name":"main","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.mcp.Main.Main","signatures":[{"raw":"public static void main(String[] args)","params":[{"name":"args","type":"String[]","doc":"{@code --socket PATH}, {@code --socket-name NAME}, {@code --tmux BINARY}"}],"returns":"void","typeScopeBoundary":true}],"doc":{"summary":"Serves a tmux server over stdin and stdout until the client closes them."},"source":{"file":"libtmux-mcp/src/main/java/io/github/libtmux/mcp/Main.java","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.mcp.Main.main","namespace":"io.github.libtmux.mcp","publicId":"io.github.libtmux.mcp.Main.Main.main","product":"mcp","apiScope":"exported","slug":"io-github-libtmux-mcp-main-main-main"},{"id":"io.github.libtmux.mcp.Main.Main.configure","name":"configure","kind":"method","modifiers":["static","overload"],"parent":"io.github.libtmux.mcp.Main.Main","signatures":[{"raw":"static ServerConfig configure(List args)","params":[{"name":"args","type":"List"}],"returns":"ServerConfig","typeScopeBoundary":true},{"raw":"static ServerConfig configure(List args, Map environment)","params":[{"name":"args","type":"List"},{"name":"environment","type":"Map"}],"returns":"ServerConfig","typeScopeBoundary":true}],"source":{"file":"libtmux-mcp/src/main/java/io/github/libtmux/mcp/Main.java","line":76,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.mcp.Main.configure","namespace":"io.github.libtmux.mcp","publicId":"io.github.libtmux.mcp.Main.Main.configure","product":"mcp","apiScope":"exported","slug":"io-github-libtmux-mcp-main-main-configure"},{"id":"io.github.libtmux.mcp.TmuxMcpServer.TmuxMcpServer","name":"TmuxMcpServer","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Exposes a tmux server to a model over the Model Context Protocol.","body":"Thin by design. What the tools do lives in {@link Catalog} and the classes it names, which is\nwhat gets tested against real tmux; this class describes them to a client and turns their answers\ninto protocol.\n\nThe SDK dispatches synchronous handlers on its bounded worker scheduler, not the transport I/O\nthread. Core operations remain typed and synchronous; wait and channel operations retain their\nown cancellation and timeout contracts."},"source":{"file":"libtmux-mcp/src/main/java/io/github/libtmux/mcp/TmuxMcpServer.java","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.mcp.TmuxMcpServer","namespace":"io.github.libtmux.mcp","publicId":"io.github.libtmux.mcp.TmuxMcpServer.TmuxMcpServer","product":"mcp","apiScope":"exported","slug":"io-github-libtmux-mcp-tmuxmcpserver-tmuxmcpserver"},{"id":"io.github.libtmux.mcp.TmuxMcpServer.TmuxMcpServer.overStdio","name":"overStdio","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.mcp.TmuxMcpServer.TmuxMcpServer","signatures":[{"raw":"public static McpSyncServer overStdio(Server server)","params":[{"name":"server","type":"Server"}],"returns":"McpSyncServer","typeScopeBoundary":true}],"doc":{"summary":"Serves a tmux server over stdin and stdout, which is how an MCP client launches a tool."},"source":{"file":"libtmux-mcp/src/main/java/io/github/libtmux/mcp/TmuxMcpServer.java","line":46,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.mcp.TmuxMcpServer.overStdio","namespace":"io.github.libtmux.mcp","publicId":"io.github.libtmux.mcp.TmuxMcpServer.TmuxMcpServer.overStdio","product":"mcp","apiScope":"exported","slug":"io-github-libtmux-mcp-tmuxmcpserver-tmuxmcpserver-overstdio"},{"id":"io.github.libtmux.mcp.TmuxMcpServer.TmuxMcpServer.serving","name":"serving","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.mcp.TmuxMcpServer.TmuxMcpServer","signatures":[{"raw":"public static McpSyncServer serving(Server server, McpServerTransportProvider transport)","params":[{"name":"server","type":"Server"},{"name":"transport","type":"McpServerTransportProvider"}],"returns":"McpSyncServer","typeScopeBoundary":true}],"doc":{"summary":"Serves a tmux server over a caller-supplied transport.","body":"The returned server owns the transport. Ownership transfers on entry, so failed startup\ncloses it too."},"source":{"file":"libtmux-mcp/src/main/java/io/github/libtmux/mcp/TmuxMcpServer.java","line":92,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.mcp.TmuxMcpServer.serving","namespace":"io.github.libtmux.mcp","publicId":"io.github.libtmux.mcp.TmuxMcpServer.TmuxMcpServer.serving","product":"mcp","apiScope":"exported","slug":"io-github-libtmux-mcp-tmuxmcpserver-tmuxmcpserver-serving"}],"sources":[{"product":"core","package":"io.github.libtmux:libtmux","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272","version":"0.0.1-alpha.17-SNAPSHOT"},{"product":"workspace","package":"libtmux-workspace","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272","version":"0.0.1-alpha.17-SNAPSHOT"},{"product":"mcp","package":"libtmux-mcp","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272","version":"0.0.1-alpha.17-SNAPSHOT"}],"generatedSources":{"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Client_.java":"package io.github.libtmux;\n\nimport io.github.libtmux.query.Fields;\n\n/**\n * Typed fields of {@link Client}.\n */\npublic final class Client_ {\n private static final Fields.TextField NAME = Fields.text(\"client_name\", Client::name);\n\n private static final Fields.ToOneRef SESSION = Fields.toOne(\"session\", Client::session);\n\n private Client_() {\n }\n\n /**\n * The client's terminal name, which is how tmux addresses it.\n */\n public static Fields.TextField name() {\n return NAME;\n }\n\n /**\n * The session this client was attached to, if any.\n */\n public static Fields.ToOneRef session() {\n return SESSION;\n }\n}\n","libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Pane_.java":"package io.github.libtmux;\n\nimport io.github.libtmux.query.Fields;\n\n/**\n * Typed fields of {@link Pane}.\n */\npublic final class Pane_ {\n private static final Fields.TextField ID = Fields.text(\"pane_id\", pane -> pane.id().value());\n\n private static final Fields.TextField COMMAND = Fields.text(\"pane_current_command\", Pane::currentCommand);\n\n private static final Fields.NumberField INDEX = Fields.number(\"pane_index\", Pane::index);\n\n private static final Fields.FlagField ACTIVE = Fields.flag(\"pane_active\", Pane::active);\n\n private static final Fields.TextField TITLE = Fields.text(\"pane_title\", Pane::title);\n\n private static final Fields.TextField PATH = Fields.text(\"pane_current_path\", Pane::currentPathText);\n\n private static final Fields.NumberField WIDTH = Fields.number(\"pane_width\", pane -> pane.size().width());\n\n private static final Fields.NumberField HEIGHT = Fields.number(\"pane_height\", pane -> pane.size().height());\n\n private static final Fields.NumberField LEFT = Fields.number(\"pane_left\", pane -> pane.position().left());\n\n private static final Fields.NumberField TOP = Fields.number(\"pane_top\", pane -> pane.position().top());\n\n private static final Fields.FlagField AT_TOP = Fields.flag(\"pane_at_top\", pane -> pane.edges().top());\n\n private static final Fields.FlagField AT_BOTTOM = Fields.flag(\"pane_at_bottom\", pane -> pane.edges().bottom());\n\n private static final Fields.FlagField AT_LEFT = Fields.flag(\"pane_at_left\", pane -> pane.edges().left());\n\n private static final Fields.FlagField AT_RIGHT = Fields.flag(\"pane_at_right\", pane -> pane.edges().right());\n\n private Pane_() {\n }\n\n /**\n * The pane id.\n */\n public static Fields.TextField id() {\n return ID;\n }\n\n /**\n * The command tmux reported running in the pane.\n */\n public static Fields.TextField command() {\n return COMMAND;\n }\n\n /**\n * The pane's position in its window.\n */\n public static Fields.NumberField index() {\n return INDEX;\n }\n\n /**\n * Whether this was its window's active pane.\n */\n public static Fields.FlagField active() {\n return ACTIVE;\n }\n\n /**\n * The pane's title, which a program running in it can set.\n */\n public static Fields.TextField title() {\n return TITLE;\n }\n\n /**\n * The pane's working directory, as the text tmux reported.\n */\n public static Fields.TextField path() {\n return PATH;\n }\n\n /**\n * The pane's width, in cells.\n */\n public static Fields.NumberField width() {\n return WIDTH;\n }\n\n /**\n * The pane's height, in cells.\n */\n public static Fields.NumberField height() {\n return HEIGHT;\n }\n\n /**\n * The column of the pane's left edge in its window.\n */\n public static Fields.NumberField left() {\n return LEFT;\n }\n\n /**\n * The row of the pane's top edge in its window.\n */\n public static Fields.NumberField top() {\n return TOP;\n }\n\n /**\n * Whether the pane touches the top of its window.\n */\n public static Fields.FlagField atTop() {\n return AT_TOP;\n }\n\n /**\n * Whether the pane touches the bottom of its window.\n */\n public static Fields.FlagField atBottom() {\n return AT_BOTTOM;\n }\n\n /**\n * Whether the pane touches the left of its window.\n */\n public static Fields.FlagField atLeft() {\n return AT_LEFT;\n }\n\n /**\n * Whether the pane touches the right of its window.\n */\n public static Fields.FlagField atRight() {\n return AT_RIGHT;\n }\n}\n","libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Session_.java":"package io.github.libtmux;\n\nimport io.github.libtmux.query.Fields;\n\n/**\n * Typed fields of {@link Session}, for building an expression that can be read as well as run.\n *\n *

Each field exposes only the operators its type supports, so asking a flag to start with a\n * string does not compile. Every field names a tmux format, so a backend model can bind the handle\n * before translating the expression into tmux's own {@code -f} filter.\n */\npublic final class Session_ {\n private static final Fields.TextField ID = Fields.text(\"session_id\", session -> session.id().value());\n\n private static final Fields.TextField NAME = Fields.text(\"session_name\", Session::name);\n\n private static final Fields.FlagField ATTACHED = Fields.flag(\"session_attached\", Session::attached);\n\n private static final Fields.NumberField WINDOW_COUNT = Fields.number(\"session_windows\", session -> session.windows().size());\n\n private static final Fields.ToManyRef WINDOWS = Fields.toMany(\"windows\", Session::windows);\n\n private Session_() {\n }\n\n /**\n * The session id, as text, so it can be compared and listed.\n */\n public static Fields.TextField id() {\n return ID;\n }\n\n /**\n * The session name.\n */\n public static Fields.TextField name() {\n return NAME;\n }\n\n /**\n * Whether a client was attached when this was captured.\n */\n public static Fields.FlagField attached() {\n return ATTACHED;\n }\n\n /**\n * How many windows this session holds.\n */\n public static Fields.NumberField windowCount() {\n return WINDOW_COUNT;\n }\n\n /**\n * This session's windows.\n */\n public static Fields.ToManyRef windows() {\n return WINDOWS;\n }\n}\n","libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Window_.java":"package io.github.libtmux;\n\nimport io.github.libtmux.query.Fields;\n\n/**\n * Typed fields of {@link Window}.\n */\npublic final class Window_ {\n private static final Fields.TextField ID = Fields.text(\"window_id\", window -> window.id().value());\n\n private static final Fields.TextField NAME = Fields.text(\"window_name\", Window::name);\n\n private static final Fields.NumberField INDEX = Fields.number(\"window_index\", window -> window.index().value());\n\n private static final Fields.FlagField ACTIVE = Fields.flag(\"window_active\", Window::active);\n\n private static final Fields.FlagField LINKED = Fields.flag(\"window_linked\", Window::linked);\n\n private static final Fields.NumberField WIDTH = Fields.number(\"window_width\", window -> window.size().width());\n\n private static final Fields.NumberField HEIGHT = Fields.number(\"window_height\", window -> window.size().height());\n\n private static final Fields.NumberField PANE_COUNT = Fields.number(\"window_panes\", window -> window.panes().size());\n\n private static final Fields.ToManyRef PANES = Fields.toMany(\"panes\", Window::panes);\n\n private static final Fields.ToOneRef SESSION = Fields.toOne(\"session\", window -> java.util.Optional.of(window.session()));\n\n private Window_() {\n }\n\n /**\n * The underlying window id, shared by every link to it.\n */\n public static Fields.TextField id() {\n return ID;\n }\n\n /**\n * The window name.\n */\n public static Fields.TextField name() {\n return NAME;\n }\n\n /**\n * Where this link sits in its session.\n */\n public static Fields.NumberField index() {\n return INDEX;\n }\n\n /**\n * Whether this was its session's active window.\n */\n public static Fields.FlagField active() {\n return ACTIVE;\n }\n\n /**\n * Whether the underlying window is linked into more than one session.\n */\n public static Fields.FlagField linked() {\n return LINKED;\n }\n\n /**\n * The window's width, in cells.\n */\n public static Fields.NumberField width() {\n return WIDTH;\n }\n\n /**\n * The window's height, in cells.\n */\n public static Fields.NumberField height() {\n return HEIGHT;\n }\n\n /**\n * How many panes this link holds.\n */\n public static Fields.NumberField paneCount() {\n return PANE_COUNT;\n }\n\n /**\n * This link's panes.\n */\n public static Fields.ToManyRef panes() {\n return PANES;\n }\n\n /**\n * The session this link belongs to.\n */\n public static Fields.ToOneRef session() {\n return SESSION;\n }\n}\n"},"repo":"libtmux/libtmux-java"} +{"port":"java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractor":"@libtmux/api-model@0.0.1","symbols":[{"id":"io.github.libtmux.batch.Batch.Batch","name":"Batch","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Several tmux commands in one invocation, each with an outcome of its own.","body":"tmux runs a group until a command fails and then discards the rest, so the number of replies\ncannot say which command failed: an error in the first position and an error in the last both\ncome back as one nonzero exit. Counting replies is wrong in every position but one.\n\nA marker is therefore interleaved after each operation. Markers are discarded along with\neverything else after a failure, so the last marker seen is exactly the last operation tmux ran,\nand the operations either side of that boundary are known rather than guessed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/Batch.java","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.Batch","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.Batch.Batch","product":"core","slug":"io-github-libtmux-batch-batch-batch"},{"id":"io.github.libtmux.batch.Batch.Batch.Batch","name":"Batch","kind":"method","modifiers":[],"parent":"io.github.libtmux.batch.Batch.Batch","signatures":[{"raw":"public Batch(Function>, CommandResult> dispatch)","params":[{"name":"dispatch","type":"Function>, CommandResult>","doc":"runs the assembled commands in one invocation and returns tmux's raw reply"}],"typeScopeBoundary":false}],"doc":{"summary":"Collects operations to run together."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/Batch.java","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.Batch.Batch","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.Batch.Batch.Batch","product":"core","slug":"io-github-libtmux-batch-batch-batch-batch"},{"id":"io.github.libtmux.batch.Batch.Batch.add","name":"add","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.batch.Batch.Batch","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Batch add(String... argv)","params":[{"name":"argv","type":"String","variadic":"positional"}],"returns":"Batch","typeScopeBoundary":false},{"raw":"@Operation(Kind.CAPTURED)\n public Batch add(List argv)","params":[{"name":"argv","type":"List"}],"returns":"Batch","typeScopeBoundary":false}],"doc":{"summary":"Adds one tmux command, its arguments already separate elements."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/Batch.java","line":41,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.Batch.add","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.Batch.Batch.add","product":"core","slug":"io-github-libtmux-batch-batch-batch-add"},{"id":"io.github.libtmux.batch.Batch.Batch.size","name":"size","kind":"method","modifiers":[],"parent":"io.github.libtmux.batch.Batch.Batch","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public int size()","params":[],"returns":"int","typeScopeBoundary":false}],"doc":{"summary":"How many operations have been collected."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/Batch.java","line":57,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.Batch.size","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.Batch.Batch.size","product":"core","slug":"io-github-libtmux-batch-batch-batch-size"},{"id":"io.github.libtmux.batch.Batch.Batch.length","name":"length","kind":"method","modifiers":[],"parent":"io.github.libtmux.batch.Batch.Batch","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public int length()","params":[],"returns":"int","typeScopeBoundary":false}],"doc":{"summary":"How many bytes the collected operations come to as the one command tmux parses.","body":"tmux packs a command into MAX_IMSGSIZE, 16384 bytes, and refuses a longer one with\n{@code command too long}; measured, it takes about 16300 of them. A batch taken from a handle\ntravels as this one string plus the guard that fences it, so it costs this and a little more.\nOne dispatched as separate arguments costs less, since nothing there is quoted."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/Batch.java","line":70,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.Batch.length","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.Batch.Batch.length","product":"core","slug":"io-github-libtmux-batch-batch-batch-length"},{"id":"io.github.libtmux.batch.Batch.Batch.run","name":"run","kind":"method","modifiers":[],"parent":"io.github.libtmux.batch.Batch.Batch","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public BatchResult run()","params":[],"returns":"BatchResult","typeScopeBoundary":false,"returnsDoc":"one result per operation, in submission order"}],"doc":{"summary":"Runs every collected operation in one tmux invocation."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/Batch.java","line":80,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.Batch.run","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.Batch.Batch.run","product":"core","slug":"io-github-libtmux-batch-batch-batch-run"},{"id":"io.github.libtmux.batch.BatchResult.BatchResult","name":"BatchResult","kind":"class","modifiers":[],"signatures":[{"raw":"public record BatchResult(@ReadOnly List operations)","params":[{"name":"operations","type":"List","doc":"one result per submitted operation, in submission order"}]}],"typeScopeBoundary":false,"doc":{"summary":"What became of every operation in one batch."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/BatchResult.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.BatchResult","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.BatchResult.BatchResult","product":"core","slug":"io-github-libtmux-batch-batchresult-batchresult"},{"id":"io.github.libtmux.batch.BatchResult.BatchResult.succeeded","name":"succeeded","kind":"method","modifiers":[],"parent":"io.github.libtmux.batch.BatchResult.BatchResult","signatures":[{"raw":"public boolean succeeded()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether tmux ran every operation and all of them succeeded."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/BatchResult.java","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.BatchResult.succeeded","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.BatchResult.BatchResult.succeeded","product":"core","slug":"io-github-libtmux-batch-batchresult-batchresult-succeeded"},{"id":"io.github.libtmux.batch.BatchResult.BatchResult.failure","name":"failure","kind":"method","modifiers":[],"parent":"io.github.libtmux.batch.BatchResult.BatchResult","signatures":[{"raw":"public Optional failure()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The operation that failed, if one did. Everything after it was discarded by tmux."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/BatchResult.java","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.BatchResult.failure","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.BatchResult.BatchResult.failure","product":"core","slug":"io-github-libtmux-batch-batchresult-batchresult-failure"},{"id":"io.github.libtmux.batch.BatchResult.BatchResult.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.batch.BatchResult.BatchResult","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/BatchResult.java","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.BatchResult.toString","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.BatchResult.BatchResult.toString","product":"core","slug":"io-github-libtmux-batch-batchresult-batchresult-tostring"},{"id":"io.github.libtmux.batch.BatchResult.BatchResult.operations","name":"operations","kind":"method","parent":"io.github.libtmux.batch.BatchResult.BatchResult","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"doc":{"summary":"one result per submitted operation, in submission order"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/BatchResult.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.BatchResult.operations","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.BatchResult.BatchResult.operations","product":"core","slug":"io-github-libtmux-batch-batchresult-batchresult-operations"},{"id":"io.github.libtmux.batch.OperationOutcome.OperationOutcome","name":"OperationOutcome","kind":"enum","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"What became of one operation in a batch."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/OperationOutcome.java","line":4,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.OperationOutcome","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.OperationOutcome.OperationOutcome","product":"core","slug":"io-github-libtmux-batch-operationoutcome-operationoutcome"},{"id":"io.github.libtmux.batch.OperationOutcome.OperationOutcome.COMPLETE","name":"COMPLETE","kind":"constant","modifiers":[],"parent":"io.github.libtmux.batch.OperationOutcome.OperationOutcome","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"tmux ran it and it succeeded."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/OperationOutcome.java","line":6,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.OperationOutcome.COMPLETE","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.OperationOutcome.OperationOutcome.COMPLETE","product":"core","slug":"io-github-libtmux-batch-operationoutcome-operationoutcome-complete"},{"id":"io.github.libtmux.batch.OperationOutcome.OperationOutcome.FAILED","name":"FAILED","kind":"constant","modifiers":[],"parent":"io.github.libtmux.batch.OperationOutcome.OperationOutcome","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"tmux ran it and it failed. Everything after it was discarded."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/OperationOutcome.java","line":8,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.OperationOutcome.FAILED","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.OperationOutcome.OperationOutcome.FAILED","product":"core","slug":"io-github-libtmux-batch-operationoutcome-operationoutcome-failed"},{"id":"io.github.libtmux.batch.OperationOutcome.OperationOutcome.SKIPPED","name":"SKIPPED","kind":"constant","modifiers":[],"parent":"io.github.libtmux.batch.OperationOutcome.OperationOutcome","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"tmux never reached it, because an earlier operation failed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/OperationOutcome.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.OperationOutcome.SKIPPED","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.OperationOutcome.OperationOutcome.SKIPPED","product":"core","slug":"io-github-libtmux-batch-operationoutcome-operationoutcome-skipped"},{"id":"io.github.libtmux.batch.OperationOutcome.OperationOutcome.UNKNOWN","name":"UNKNOWN","kind":"constant","modifiers":[],"parent":"io.github.libtmux.batch.OperationOutcome.OperationOutcome","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Whether tmux applied it cannot be determined."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/OperationOutcome.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.OperationOutcome.UNKNOWN","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.OperationOutcome.OperationOutcome.UNKNOWN","product":"core","slug":"io-github-libtmux-batch-operationoutcome-operationoutcome-unknown"},{"id":"io.github.libtmux.batch.OperationResult.OperationResult","name":"OperationResult","kind":"class","modifiers":[],"signatures":[{"raw":"public record OperationResult(\n @ReadOnly List argv,\n OperationOutcome outcome,\n @ReadOnly List stdout,\n @ReadOnly List stderr)","params":[{"name":"argv","type":"List","doc":"the operation as it was submitted"},{"name":"outcome","type":"OperationOutcome","doc":"what became of it"},{"name":"stdout","type":"List","doc":"the lines this operation produced, separated from its neighbours'"},{"name":"stderr","type":"List","doc":"the error text, which tmux emits without saying which operation produced it, so it is attached to the one that failed"}]}],"typeScopeBoundary":false,"doc":{"summary":"One operation's own result within a batch."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/OperationResult.java","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.OperationResult","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.OperationResult.OperationResult","product":"core","slug":"io-github-libtmux-batch-operationresult-operationresult"},{"id":"io.github.libtmux.batch.OperationResult.OperationResult.succeeded","name":"succeeded","kind":"method","modifiers":[],"parent":"io.github.libtmux.batch.OperationResult.OperationResult","signatures":[{"raw":"public boolean succeeded()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether tmux ran this operation and it succeeded."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/OperationResult.java","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.OperationResult.succeeded","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.OperationResult.OperationResult.succeeded","product":"core","slug":"io-github-libtmux-batch-operationresult-operationresult-succeeded"},{"id":"io.github.libtmux.batch.OperationResult.OperationResult.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.batch.OperationResult.OperationResult","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"Counts only: argv and output carry pane content and socket paths."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/OperationResult.java","line":33,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.OperationResult.toString","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.OperationResult.OperationResult.toString","product":"core","slug":"io-github-libtmux-batch-operationresult-operationresult-tostring"},{"id":"io.github.libtmux.batch.OperationResult.OperationResult.argv","name":"argv","kind":"method","parent":"io.github.libtmux.batch.OperationResult.OperationResult","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"doc":{"summary":"the operation as it was submitted"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/OperationResult.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.OperationResult.argv","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.OperationResult.OperationResult.argv","product":"core","slug":"io-github-libtmux-batch-operationresult-operationresult-argv"},{"id":"io.github.libtmux.batch.OperationResult.OperationResult.outcome","name":"outcome","kind":"method","parent":"io.github.libtmux.batch.OperationResult.OperationResult","modifiers":[],"signatures":[{"params":[],"returns":"OperationOutcome"}],"doc":{"summary":"what became of it"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/OperationResult.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.OperationResult.outcome","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.OperationResult.OperationResult.outcome","product":"core","slug":"io-github-libtmux-batch-operationresult-operationresult-outcome"},{"id":"io.github.libtmux.batch.OperationResult.OperationResult.stdout","name":"stdout","kind":"method","parent":"io.github.libtmux.batch.OperationResult.OperationResult","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"doc":{"summary":"the lines this operation produced, separated from its neighbours'"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/OperationResult.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.OperationResult.stdout","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.OperationResult.OperationResult.stdout","product":"core","slug":"io-github-libtmux-batch-operationresult-operationresult-stdout"},{"id":"io.github.libtmux.batch.OperationResult.OperationResult.stderr","name":"stderr","kind":"method","parent":"io.github.libtmux.batch.OperationResult.OperationResult","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"doc":{"summary":"the error text, which tmux emits without saying which operation produced it, so it is attached to the one that failed"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/batch/OperationResult.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.batch.OperationResult.stderr","namespace":"io.github.libtmux.batch","publicId":"io.github.libtmux.batch.OperationResult.OperationResult.stderr","product":"core","slug":"io-github-libtmux-batch-operationresult-operationresult-stderr"},{"id":"io.github.libtmux.BufferInfo.BufferInfo","name":"BufferInfo","kind":"class","modifiers":[],"signatures":[{"raw":"public record BufferInfo(String name, int size)","params":[{"name":"name","type":"String","doc":"the buffer name, which is how every other buffer command addresses it"},{"name":"size","type":"int","doc":"how many bytes it holds"}]}],"typeScopeBoundary":false,"doc":{"summary":"One tmux paste buffer, as a listing described it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/BufferInfo.java","line":9,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.BufferInfo","namespace":"io.github.libtmux","publicId":"io.github.libtmux.BufferInfo.BufferInfo","product":"core","slug":"io-github-libtmux-bufferinfo-bufferinfo"},{"id":"io.github.libtmux.BufferInfo.BufferInfo.name","name":"name","kind":"method","parent":"io.github.libtmux.BufferInfo.BufferInfo","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"the buffer name, which is how every other buffer command addresses it"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/BufferInfo.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.BufferInfo.name","namespace":"io.github.libtmux","publicId":"io.github.libtmux.BufferInfo.BufferInfo.name","product":"core","slug":"io-github-libtmux-bufferinfo-bufferinfo-name"},{"id":"io.github.libtmux.BufferInfo.BufferInfo.size","name":"size","kind":"method","parent":"io.github.libtmux.BufferInfo.BufferInfo","modifiers":[],"signatures":[{"params":[],"returns":"int"}],"doc":{"summary":"how many bytes it holds"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/BufferInfo.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.BufferInfo.size","namespace":"io.github.libtmux","publicId":"io.github.libtmux.BufferInfo.BufferInfo.size","product":"core","slug":"io-github-libtmux-bufferinfo-bufferinfo-size"},{"id":"io.github.libtmux.Buffers.Buffers","name":"Buffers","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The tmux server's paste buffers.","body":"Buffers are the server's, not a session's: anything copied in one session can be pasted into\nanother. They are addressed by name rather than by the stack position tmux also accepts, because\na position moves whenever anything else is copied."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Buffers.java","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Buffers","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Buffers.Buffers","product":"core","slug":"io-github-libtmux-buffers-buffers"},{"id":"io.github.libtmux.Buffers.Buffers.EXACT_NAMED_DELETE","name":"EXACT_NAMED_DELETE","kind":"attribute","modifiers":["static","readonly"],"parent":"io.github.libtmux.Buffers.Buffers","signatures":[],"typeScopeBoundary":true,"type":"TmuxVersion","value":"new TmuxVersion(3, 4, \"\")","doc":{"summary":"tmux's own history dates the fix to {@code 0f6227f4} (\"When deleting or renaming a buffer and a buffer name is specified, complain if the buffer doesn't exist instead of silently deleting or renaming the most recent buffer\", GitHub issue 3205); {@code git tag --contains} places it on {@code 3.4} and nothing earlier, so 3.3 and 3.3a both have the bug. Confirmed on the matrix: {@code set-buffer -b a x; set-buffer -b b y; delete-buffer -b nope} answers {@code unknown buffer: nope} on 3.4 and leaves both buffers, but on 3.3a it exits 0 and takes {@code b}, the one {@code delete-buffer} was never told to touch."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Buffers.java","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Buffers.EXACT_NAMED_DELETE","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Buffers.Buffers.EXACT_NAMED_DELETE","product":"core","slug":"io-github-libtmux-buffers-buffers-exact_named_delete"},{"id":"io.github.libtmux.Buffers.Buffers.Buffers","name":"Buffers","kind":"method","modifiers":[],"parent":"io.github.libtmux.Buffers.Buffers","signatures":[{"raw":"Buffers(Server server)","params":[{"name":"server","type":"Server"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Buffers.java","line":40,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Buffers.Buffers","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Buffers.Buffers.Buffers","product":"core","slug":"io-github-libtmux-buffers-buffers-buffers"},{"id":"io.github.libtmux.Buffers.Buffers.list","name":"list","kind":"method","modifiers":[],"parent":"io.github.libtmux.Buffers.Buffers","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public List list()","params":[],"returns":"List","typeScopeBoundary":false,"returnsDoc":"an immutable list, empty if the live server holds no buffers","raises":[{"type":"LibTmuxException","doc":"if the listing fails, including when no daemon is running"}]}],"doc":{"summary":"Captures every buffer the server holds, in tmux's order."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Buffers.java","line":50,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Buffers.list","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Buffers.Buffers.list","product":"core","slug":"io-github-libtmux-buffers-buffers-list"},{"id":"io.github.libtmux.Buffers.Buffers.set","name":"set","kind":"method","modifiers":[],"parent":"io.github.libtmux.Buffers.Buffers","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void set(String name, String contents)","params":[{"name":"name","type":"String"},{"name":"contents","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Puts text in a named buffer, replacing whatever was there.","body":"The contents end the options, because they are the one argument here tmux would otherwise\nread as flags: {@code set(\"clip\", \"-nfoo\")} used to rename the buffer to {@code foo} and write\nnothing, and report success."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Buffers.java","line":69,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Buffers.set","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Buffers.Buffers.set","product":"core","slug":"io-github-libtmux-buffers-buffers-set"},{"id":"io.github.libtmux.Buffers.Buffers.show","name":"show","kind":"method","modifiers":[],"parent":"io.github.libtmux.Buffers.Buffers","signatures":[{"raw":"@Operation(Kind.READ)\n public String show(String name)","params":[{"name":"name","type":"String"}],"returns":"String","typeScopeBoundary":false,"raises":[{"type":"TargetGoneException","doc":"if the server has no buffer by that name"},{"type":"ServerUnavailableException","doc":"if no daemon is running"}]}],"doc":{"summary":"What a buffer holds, without any line breaks it ends with.","body":"tmux prints a buffer as it is, and the transport drops trailing blank lines, so {@code \"a\"}\nand {@code \"a\\n\"} read the same. A marker printed after it cannot keep them: tmux writes a\nbuffer through its file stream, which a second command in the same invocation interrupts.\n{@link #save} writes the exact bytes."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Buffers.java","line":85,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Buffers.show","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Buffers.Buffers.show","product":"core","slug":"io-github-libtmux-buffers-buffers-show"},{"id":"io.github.libtmux.Buffers.Buffers.delete","name":"delete","kind":"method","modifiers":[],"parent":"io.github.libtmux.Buffers.Buffers","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void delete(String name)","params":[{"name":"name","type":"String"}],"returns":"void","typeScopeBoundary":false,"raises":[{"type":"TargetGoneException","doc":"if the server has no buffer by that name"},{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"UnsupportedFeatureException","doc":"before tmux 3.4, whose named deletion silently removes the top buffer when the name is absent"}]}],"doc":{"summary":"Removes a buffer by its exact name."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Buffers.java","line":105,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Buffers.delete","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Buffers.Buffers.delete","product":"core","slug":"io-github-libtmux-buffers-buffers-delete"},{"id":"io.github.libtmux.Buffers.Buffers.save","name":"save","kind":"method","modifiers":[],"parent":"io.github.libtmux.Buffers.Buffers","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void save(String name, Path file)","params":[{"name":"name","type":"String"},{"name":"file","type":"Path"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Writes a buffer's contents to a file."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Buffers.java","line":121,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Buffers.save","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Buffers.Buffers.save","product":"core","slug":"io-github-libtmux-buffers-buffers-save"},{"id":"io.github.libtmux.Buffers.Buffers.load","name":"load","kind":"method","modifiers":[],"parent":"io.github.libtmux.Buffers.Buffers","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void load(String name, Path file)","params":[{"name":"name","type":"String"},{"name":"file","type":"Path"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Reads a file into a named buffer."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Buffers.java","line":127,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Buffers.load","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Buffers.Buffers.load","product":"core","slug":"io-github-libtmux-buffers-buffers-load"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec","name":"CaptureSpec","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"What part of a pane to read, and how.","body":"The shape {@link SplitSpec} uses. A plain {@link Pane#capture()} reads what is on screen; this\nis how to reach the scrollback above it, or to keep what tmux otherwise strips.\n\nLines are numbered from the top of the visible area, so {@code 0} is the first row on screen\nand negatives climb into the history. {@code fromStartOfHistory()} is the whole of what tmux\nkept.","examples":[{"lang":"java","code":"List everything = pane.capture(c -> c.fromStartOfHistory());\nList lastTen = pane.capture(c -> c.from(-10));"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec","product":"core","slug":"io-github-libtmux-capturespec-capturespec"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.builder","name":"builder","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec","signatures":[{"raw":"public static Builder builder()","params":[],"returns":"Builder","typeScopeBoundary":true}],"doc":{"summary":"A builder that reads what is on screen and nothing else."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":69,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.builder","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.builder","product":"core","slug":"io-github-libtmux-capturespec-capturespec-builder-17ql"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.argv","name":"argv","kind":"method","modifiers":[],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec","signatures":[{"raw":"List argv(String target, TmuxVersion running)","params":[{"name":"target","type":"String"},{"name":"running","type":"TmuxVersion"}],"returns":"List","typeScopeBoundary":false,"raises":[{"type":"UnsupportedFeatureException","doc":"if the spec asks for something {@code running} does not have"}]}],"doc":{"summary":"The command that reads the pane."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":78,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.argv","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.argv","product":"core","slug":"io-github-libtmux-capturespec-capturespec-argv"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder","name":"Builder","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Collects the choices, each named for what it does rather than for the flag it sets."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":123,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.Builder","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder","product":"core","slug":"io-github-libtmux-capturespec-capturespec-builder-v00t"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.from","name":"from","kind":"method","modifiers":[],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder","signatures":[{"raw":"public Builder from(int line)","params":[{"name":"line","type":"int","doc":"{@code 0} is the first row on screen; negatives climb into the scrollback"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Starts at a line, counted from the top of the visible area."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":145,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.Builder.from","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.from","product":"core","slug":"io-github-libtmux-capturespec-capturespec-builder-from"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.fromStartOfHistory","name":"fromStartOfHistory","kind":"method","modifiers":[],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder","signatures":[{"raw":"public Builder fromStartOfHistory()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Starts at the oldest line tmux still has."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":151,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.Builder.fromStartOfHistory","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.fromStartOfHistory","product":"core","slug":"io-github-libtmux-capturespec-capturespec-builder-fromstartofhistory"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.to","name":"to","kind":"method","modifiers":[],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder","signatures":[{"raw":"public Builder to(int line)","params":[{"name":"line","type":"int"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Ends at a line, counted the same way as {@link #from}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":157,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.Builder.to","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.to","product":"core","slug":"io-github-libtmux-capturespec-capturespec-builder-to"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.toEndOfHistory","name":"toEndOfHistory","kind":"method","modifiers":[],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder","signatures":[{"raw":"public Builder toEndOfHistory()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Ends at the newest line, including anything below the visible area."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":163,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.Builder.toEndOfHistory","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.toEndOfHistory","product":"core","slug":"io-github-libtmux-capturespec-capturespec-builder-toendofhistory"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.withEscapeSequences","name":"withEscapeSequences","kind":"method","modifiers":[],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder","signatures":[{"raw":"public Builder withEscapeSequences()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Keeps the escape sequences that colour and position the text."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":169,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.Builder.withEscapeSequences","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.withEscapeSequences","product":"core","slug":"io-github-libtmux-capturespec-capturespec-builder-withescapesequences"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.escapingNonPrintable","name":"escapingNonPrintable","kind":"method","modifiers":[],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder","signatures":[{"raw":"public Builder escapingNonPrintable()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Writes anything unprintable as an octal escape rather than dropping it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":175,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.Builder.escapingNonPrintable","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.escapingNonPrintable","product":"core","slug":"io-github-libtmux-capturespec-capturespec-builder-escapingnonprintable"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.joiningWrappedLines","name":"joiningWrappedLines","kind":"method","modifiers":[],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder","signatures":[{"raw":"public Builder joiningWrappedLines()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Joins a line tmux wrapped back into the one line it was."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":181,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.Builder.joiningWrappedLines","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.joiningWrappedLines","product":"core","slug":"io-github-libtmux-capturespec-capturespec-builder-joiningwrappedlines"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.preservingTrailingSpace","name":"preservingTrailingSpace","kind":"method","modifiers":[],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder","signatures":[{"raw":"public Builder preservingTrailingSpace()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Keeps the spaces at the end of a line, which tmux otherwise drops."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":187,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.Builder.preservingTrailingSpace","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.preservingTrailingSpace","product":"core","slug":"io-github-libtmux-capturespec-capturespec-builder-preservingtrailingspace"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.trimmingTrailingSpace","name":"trimmingTrailingSpace","kind":"method","modifiers":[],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder","signatures":[{"raw":"public Builder trimmingTrailingSpace()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Drops trailing space and the empty lines below the content. Requires tmux 3.4."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":193,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.Builder.trimmingTrailingSpace","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.trimmingTrailingSpace","product":"core","slug":"io-github-libtmux-capturespec-capturespec-builder-trimmingtrailingspace"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.fromAlternateScreen","name":"fromAlternateScreen","kind":"method","modifiers":[],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder","signatures":[{"raw":"public Builder fromAlternateScreen()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Reads the alternate screen, which is what a full-screen program draws on."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":199,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.Builder.fromAlternateScreen","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.fromAlternateScreen","product":"core","slug":"io-github-libtmux-capturespec-capturespec-builder-fromalternatescreen"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.pendingOnly","name":"pendingOnly","kind":"method","modifiers":[],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder","signatures":[{"raw":"public Builder pendingOnly()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Reads only output tmux has not drawn yet."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":205,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.Builder.pendingOnly","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.pendingOnly","product":"core","slug":"io-github-libtmux-capturespec-capturespec-builder-pendingonly"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.fromModeScreen","name":"fromModeScreen","kind":"method","modifiers":[],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder","signatures":[{"raw":"public Builder fromModeScreen()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Reads what a mode is showing rather than the pane beneath it. Requires tmux 3.6."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":211,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.Builder.fromModeScreen","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.fromModeScreen","product":"core","slug":"io-github-libtmux-capturespec-capturespec-builder-frommodescreen"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.withHyperlinks","name":"withHyperlinks","kind":"method","modifiers":[],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder","signatures":[{"raw":"public Builder withHyperlinks()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Keeps hyperlink markers. Requires tmux 3.7."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":217,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.Builder.withHyperlinks","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.withHyperlinks","product":"core","slug":"io-github-libtmux-capturespec-capturespec-builder-withhyperlinks"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.withLineNumbers","name":"withLineNumbers","kind":"method","modifiers":[],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder","signatures":[{"raw":"public Builder withLineNumbers()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Prefixes each line with its number. Requires tmux 3.7."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":223,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.Builder.withLineNumbers","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.withLineNumbers","product":"core","slug":"io-github-libtmux-capturespec-capturespec-builder-withlinenumbers"},{"id":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.build","name":"build","kind":"method","modifiers":[],"parent":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder","signatures":[{"raw":"public CaptureSpec build()","params":[],"returns":"CaptureSpec","typeScopeBoundary":false}],"doc":{"summary":"The finished spec."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CaptureSpec.java","line":229,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CaptureSpec.Builder.build","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CaptureSpec.CaptureSpec.Builder.build","product":"core","slug":"io-github-libtmux-capturespec-capturespec-builder-build"},{"id":"io.github.libtmux.catalog.Advanced.Advanced","name":"Advanced","kind":"interface","modifiers":["annotation"],"signatures":[{"raw":"@Documented\n@Retention(RUNTIME)\n@Target({TYPE, METHOD})\npublic @interface Advanced","params":[]}],"typeScopeBoundary":false,"doc":{"summary":"Public for orchestration across processes or clients, such as the MCP server's pane reservations; not part of the surface a language facade mirrors."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/catalog/Advanced.java","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.catalog.Advanced","namespace":"io.github.libtmux.catalog","publicId":"io.github.libtmux.catalog.Advanced.Advanced","product":"core","slug":"io-github-libtmux-catalog-advanced-advanced"},{"id":"io.github.libtmux.catalog.Kind.Kind","name":"Kind","kind":"enum","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"What shape a facade needs to give one operation of the core API.","body":"A Kotlin or Scala wrapper, or a generated reference page, reads this off {@link Operation}\nrather than guessing from a method's name or return type."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/catalog/Kind.java","line":9,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.catalog.Kind","namespace":"io.github.libtmux.catalog","publicId":"io.github.libtmux.catalog.Kind.Kind","product":"core","slug":"io-github-libtmux-catalog-kind-kind"},{"id":"io.github.libtmux.catalog.Kind.Kind.CAPTURED","name":"CAPTURED","kind":"constant","modifiers":[],"parent":"io.github.libtmux.catalog.Kind.Kind","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"No tmux I/O: answers from the handle's own capture, or collects a command to send later. Field accessors, navigation within one capture, and building a batch or chain."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/catalog/Kind.java","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.catalog.Kind.CAPTURED","namespace":"io.github.libtmux.catalog","publicId":"io.github.libtmux.catalog.Kind.Kind.CAPTURED","product":"core","slug":"io-github-libtmux-catalog-kind-kind-captured"},{"id":"io.github.libtmux.catalog.Kind.Kind.READ","name":"READ","kind":"constant","modifiers":[],"parent":"io.github.libtmux.catalog.Kind.Kind","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Contacts tmux and changes nothing: listings, captures, {@code show-*}, expansion, liveness, lookups."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/catalog/Kind.java","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.catalog.Kind.READ","namespace":"io.github.libtmux.catalog","publicId":"io.github.libtmux.catalog.Kind.Kind.READ","product":"core","slug":"io-github-libtmux-catalog-kind-kind-read"},{"id":"io.github.libtmux.catalog.Kind.Kind.MUTATION","name":"MUTATION","kind":"constant","modifiers":[],"parent":"io.github.libtmux.catalog.Kind.Kind","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Changes tmux state: sending keys, renaming, killing, splitting, setting options, pasting, resizing."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/catalog/Kind.java","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.catalog.Kind.MUTATION","namespace":"io.github.libtmux.catalog","publicId":"io.github.libtmux.catalog.Kind.Kind.MUTATION","product":"core","slug":"io-github-libtmux-catalog-kind-kind-mutation"},{"id":"io.github.libtmux.catalog.Kind.Kind.WAIT","name":"WAIT","kind":"constant","modifiers":[],"parent":"io.github.libtmux.catalog.Kind.Kind","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Blocks until something else happens; the waiting itself changes nothing."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/catalog/Kind.java","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.catalog.Kind.WAIT","namespace":"io.github.libtmux.catalog","publicId":"io.github.libtmux.catalog.Kind.Kind.WAIT","product":"core","slug":"io-github-libtmux-catalog-kind-kind-wait"},{"id":"io.github.libtmux.catalog.Kind.Kind.STREAM","name":"STREAM","kind":"constant","modifiers":[],"parent":"io.github.libtmux.catalog.Kind.Kind","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Returns a subscription, stream, or publisher of events."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/catalog/Kind.java","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.catalog.Kind.STREAM","namespace":"io.github.libtmux.catalog","publicId":"io.github.libtmux.catalog.Kind.Kind.STREAM","product":"core","slug":"io-github-libtmux-catalog-kind-kind-stream"},{"id":"io.github.libtmux.catalog.Kind.Kind.LIFECYCLE","name":"LIFECYCLE","kind":"constant","modifiers":[],"parent":"io.github.libtmux.catalog.Kind.Kind","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Opens, attaches, derives, or closes a resource."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/catalog/Kind.java","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.catalog.Kind.LIFECYCLE","namespace":"io.github.libtmux.catalog","publicId":"io.github.libtmux.catalog.Kind.Kind.LIFECYCLE","product":"core","slug":"io-github-libtmux-catalog-kind-kind-lifecycle"},{"id":"io.github.libtmux.catalog.Operation.Operation","name":"Operation","kind":"interface","modifiers":["annotation"],"signatures":[{"raw":"@Documented\n@Retention(RUNTIME)\n@Target(METHOD)\npublic @interface Operation","params":[]}],"typeScopeBoundary":false,"doc":{"summary":"Classifies one public method of the core API as a tmux operation of a given {@link Kind}.","body":"Every public method that performs or describes a tmux operation carries this, so a facade\nnever has to infer the shape of a call from its name or signature."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/catalog/Operation.java","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.catalog.Operation","namespace":"io.github.libtmux.catalog","publicId":"io.github.libtmux.catalog.Operation.Operation","product":"core","slug":"io-github-libtmux-catalog-operation-operation"},{"id":"io.github.libtmux.catalog.Operation.Operation.value","name":"value","kind":"method","modifiers":["annotation"],"parent":"io.github.libtmux.catalog.Operation.Operation","signatures":[{"raw":"Kind value();","params":[],"returns":"Kind","typeScopeBoundary":false}],"doc":{"summary":"What shape this operation gives a facade."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/catalog/Operation.java","line":22,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.catalog.Operation.value","namespace":"io.github.libtmux.catalog","publicId":"io.github.libtmux.catalog.Operation.Operation.value","product":"core","slug":"io-github-libtmux-catalog-operation-operation-value"},{"id":"io.github.libtmux.catalog.Operation.Operation.tmuxSince","name":"tmuxSince","kind":"method","modifiers":["annotation"],"parent":"io.github.libtmux.catalog.Operation.Operation","signatures":[{"raw":"String tmuxSince() default \"\";","params":[],"returns":"String","typeScopeBoundary":false}],"value":"\"\"","doc":{"summary":"The first tmux release that has this operation, when it is newer than the supported floor, 3.2a. Empty when the whole supported range has it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/catalog/Operation.java","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.catalog.Operation.tmuxSince","namespace":"io.github.libtmux.catalog","publicId":"io.github.libtmux.catalog.Operation.Operation.tmuxSince","product":"core","slug":"io-github-libtmux-catalog-operation-operation-tmuxsince"},{"id":"io.github.libtmux.Channel.Channel","name":"Channel","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"One of tmux's wait-for channels, named once.","body":"A channel is server-wide and shared by everything on it, including programs running in panes.\nNothing creates or destroys one: a name either has a signal remembered against it or does not.\n\ntmux's own {@code wait-for} has two traps, and this exists to close both. It exits successfully\nwhen the server dies under the waiter, which is indistinguishable from a real signal, so the\nserver is checked afterwards rather than believed. And a signal sent when nobody is waiting is\nremembered, satisfying the next wait whenever that happens — possibly in a later run of a\ndifferent program — so {@link #drain()} is how a caller starts from a known state on a channel\nwhose history is not its own."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Channel.java","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Channel","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Channel.Channel","product":"core","slug":"io-github-libtmux-channel-channel"},{"id":"io.github.libtmux.Channel.Channel.Channel","name":"Channel","kind":"method","modifiers":[],"parent":"io.github.libtmux.Channel.Channel","signatures":[{"raw":"Channel(Server server, String name)","params":[{"name":"server","type":"Server"},{"name":"name","type":"String"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Channel.java","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Channel.Channel","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Channel.Channel.Channel","product":"core","slug":"io-github-libtmux-channel-channel-channel"},{"id":"io.github.libtmux.Channel.Channel.name","name":"name","kind":"method","modifiers":[],"parent":"io.github.libtmux.Channel.Channel","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public String name()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The name this channel is known by on its server."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Channel.java","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Channel.name","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Channel.Channel.name","product":"core","slug":"io-github-libtmux-channel-channel-name"},{"id":"io.github.libtmux.Channel.Channel.signal","name":"signal","kind":"method","modifiers":[],"parent":"io.github.libtmux.Channel.Channel","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void signal()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Signals the channel, waking one waiter, or being remembered until something waits.","body":"{@code -S} takes no argument of its own — it says which of wait-for's three modes this is —\nso the name that follows is a positional and needs the options ended before it, exactly as\nthe wait does."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Channel.java","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Channel.signal","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Channel.Channel.signal","product":"core","slug":"io-github-libtmux-channel-channel-signal"},{"id":"io.github.libtmux.Channel.Channel.await","name":"await","kind":"method","modifiers":[],"parent":"io.github.libtmux.Channel.Channel","signatures":[{"raw":"@Operation(Kind.WAIT)\n public WakeReason await(Duration timeout) throws InterruptedException","params":[{"name":"timeout","type":"Duration","doc":"how long to wait"}],"returns":"WakeReason","typeScopeBoundary":false,"returnsDoc":"why the wait ended, which is never simply \"successfully\"","raises":[{"type":"InterruptedException","doc":"if the waiting thread is interrupted, which is a cancellation rather than a timeout and so is not reported as one"}]}],"doc":{"summary":"Waits for something to signal the channel."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Channel.java","line":60,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Channel.await","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Channel.Channel.await","product":"core","slug":"io-github-libtmux-channel-channel-await"},{"id":"io.github.libtmux.Channel.Channel.awaitReservingCapacity","name":"awaitReservingCapacity","kind":"method","modifiers":[],"parent":"io.github.libtmux.Channel.Channel","signatures":[{"raw":"@Operation(Kind.WAIT)\n public WakeReason awaitReservingCapacity(Duration timeout) throws InterruptedException","params":[{"name":"timeout","type":"Duration"}],"returns":"WakeReason","typeScopeBoundary":false,"raises":[{"type":"io.github.libtmux.exception.DispatchException","doc":"if the wait could not be dispatched"},{"type":"InterruptedException","doc":"if the waiting thread is interrupted, which is a cancellation rather than a timeout and so is not reported as one"}]}],"doc":{"summary":"Waits while preserving process capacity for a call through this server that signals it.","body":"Use this when the waiter and its release share a bounded transport. A wait released outside\nthat transport should use {@link #await}; reserving capacity for it only rejects useful\nconcurrency."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Channel.java","line":76,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Channel.awaitReservingCapacity","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Channel.Channel.awaitReservingCapacity","product":"core","slug":"io-github-libtmux-channel-channel-awaitreservingcapacity"},{"id":"io.github.libtmux.Channel.Channel.drain","name":"drain","kind":"method","modifiers":[],"parent":"io.github.libtmux.Channel.Channel","signatures":[{"raw":"@Operation(Kind.WAIT)\n public boolean drain() throws InterruptedException","params":[],"returns":"boolean","typeScopeBoundary":false,"returnsDoc":"whether a signal was there to consume","raises":[{"type":"InterruptedException","doc":"if the waiting thread is interrupted"}]}],"doc":{"summary":"Consumes a signal already waiting, so a stale one cannot satisfy a later wait."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Channel.java","line":87,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Channel.drain","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Channel.Channel.drain","product":"core","slug":"io-github-libtmux-channel-channel-drain"},{"id":"io.github.libtmux.Channel.Channel.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.Channel.Channel","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Channel.java","line":92,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Channel.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Channel.Channel.toString","product":"core","slug":"io-github-libtmux-channel-channel-tostring"},{"id":"io.github.libtmux.Client.Client","name":"Client","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"One attached tmux client, as one capture saw it.","body":"Identity is the server and the client name, which is how tmux addresses it. What it is\nattached to is state: a client can switch sessions without becoming a different client.\n\n{@link #name()}, {@link #session()}, and {@link #attachment()} return what the capture holds\nand do no I/O; {@link #refresh()} reads again. Every other method asks tmux now."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Client.java","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client.Client","product":"core","slug":"io-github-libtmux-client-client"},{"id":"io.github.libtmux.Client.Client.Client","name":"Client","kind":"method","modifiers":[],"parent":"io.github.libtmux.Client.Client","signatures":[{"raw":"Client(Server server, ServerSnapshot snapshot, ClientState state)","params":[{"name":"server","type":"Server"},{"name":"snapshot","type":"ServerSnapshot"},{"name":"state","type":"ClientState"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Client.java","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client.Client","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client.Client.Client","product":"core","slug":"io-github-libtmux-client-client-client"},{"id":"io.github.libtmux.Client.Client.name","name":"name","kind":"method","modifiers":[],"parent":"io.github.libtmux.Client.Client","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public String name()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The client's terminal name, which is how tmux addresses it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Client.java","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client.name","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client.Client.name","product":"core","slug":"io-github-libtmux-client-client-name"},{"id":"io.github.libtmux.Client.Client.detach","name":"detach","kind":"method","modifiers":[],"parent":"io.github.libtmux.Client.Client","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void detach()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Detaches this client, leaving whatever it was attached to running.","body":"Detaching is not killing: the session outlives the client, which is the reason tmux exists."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Client.java","line":46,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client.detach","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client.Client.detach","product":"core","slug":"io-github-libtmux-client-client-detach"},{"id":"io.github.libtmux.Client.Client.detachOthers","name":"detachOthers","kind":"method","modifiers":[],"parent":"io.github.libtmux.Client.Client","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void detachOthers()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Detaches every other client, leaving this one attached."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Client.java","line":52,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client.detachOthers","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client.Client.detachOthers","product":"core","slug":"io-github-libtmux-client-client-detachothers"},{"id":"io.github.libtmux.Client.Client.switchTo","name":"switchTo","kind":"method","modifiers":[],"parent":"io.github.libtmux.Client.Client","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void switchTo(Session session)","params":[{"name":"session","type":"Session"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Moves this client to another session.","body":"The client keeps its identity: switching is a change of what it is looking at, not a\ndetach and a fresh attach."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Client.java","line":63,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client.switchTo","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client.Client.switchTo","product":"core","slug":"io-github-libtmux-client-client-switchto"},{"id":"io.github.libtmux.Client.Client.redraw","name":"redraw","kind":"method","modifiers":[],"parent":"io.github.libtmux.Client.Client","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void redraw()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Asks tmux to redraw this client.","body":"Not {@link #refresh()}, which takes a new capture of what tmux knows. This one is tmux's\n{@code refresh-client}, and it changes the terminal rather than this handle."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Client.java","line":78,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client.redraw","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client.Client.redraw","product":"core","slug":"io-github-libtmux-client-client-redraw"},{"id":"io.github.libtmux.Client.Client.server","name":"server","kind":"method","modifiers":[],"parent":"io.github.libtmux.Client.Client","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Server server()","params":[],"returns":"Server","typeScopeBoundary":false}],"doc":{"summary":"The server this client is connected to."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Client.java","line":84,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client.server","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client.Client.server","product":"core","slug":"io-github-libtmux-client-client-server"},{"id":"io.github.libtmux.Client.Client.snapshot","name":"snapshot","kind":"method","modifiers":[],"parent":"io.github.libtmux.Client.Client","signatures":[{"raw":"ServerSnapshot snapshot()","params":[],"returns":"ServerSnapshot","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Client.java","line":89,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client.snapshot","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client.Client.snapshot","product":"core","slug":"io-github-libtmux-client-client-snapshot"},{"id":"io.github.libtmux.Client.Client.session","name":"session","kind":"method","modifiers":[],"parent":"io.github.libtmux.Client.Client","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Optional session()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The session this client was attached to when captured. A pure read of the capture."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Client.java","line":94,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client.session","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client.Client.session","product":"core","slug":"io-github-libtmux-client-client-session"},{"id":"io.github.libtmux.Client.Client.attachment","name":"attachment","kind":"method","modifiers":[],"parent":"io.github.libtmux.Client.Client","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Optional attachment()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"What this client was looking at when captured. A pure read: it issues no command.","body":"Empty when the capture shows the client attached to nothing, or shows a session whose\nactive window or pane the capture did not include."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Client.java","line":105,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client.attachment","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client.Client.attachment","product":"core","slug":"io-github-libtmux-client-client-attachment"},{"id":"io.github.libtmux.Client.Client.fetchAttachment","name":"fetchAttachment","kind":"method","modifiers":[],"parent":"io.github.libtmux.Client.Client","signatures":[{"raw":"@Operation(Kind.READ)\n public Optional fetchAttachment()","params":[],"returns":"Optional","typeScopeBoundary":false,"raises":[{"type":"TargetGoneException","doc":"if this client has detached"}]}],"doc":{"summary":"Takes a new capture and returns what this client is looking at now.","body":"Named to say it dispatches, unlike {@link #attachment()}. Every call is one live capture."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Client.java","line":120,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client.fetchAttachment","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client.Client.fetchAttachment","product":"core","slug":"io-github-libtmux-client-client-fetchattachment"},{"id":"io.github.libtmux.Client.Client.refresh","name":"refresh","kind":"method","modifiers":[],"parent":"io.github.libtmux.Client.Client","signatures":[{"raw":"@CheckReturnValue\n @Operation(Kind.READ)\n public Client refresh()","params":[],"returns":"Client","typeScopeBoundary":false,"raises":[{"type":"TargetGoneException","doc":"if this client has detached, or a different daemon answers on the endpoint"},{"type":"ServerUnavailableException","doc":"if no daemon is running"}]}],"doc":{"summary":"Takes a new capture and returns this client as it is now.","body":"This handle remains unchanged, as every handle's does."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Client.java","line":134,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client.refresh","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client.Client.refresh","product":"core","slug":"io-github-libtmux-client-client-refresh"},{"id":"io.github.libtmux.Client.Client.equals","name":"equals","kind":"method","modifiers":[],"parent":"io.github.libtmux.Client.Client","signatures":[{"raw":"@Override\n public boolean equals(Object other)","params":[{"name":"other","type":"Object"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Client.java","line":145,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client.equals","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client.Client.equals","product":"core","slug":"io-github-libtmux-client-client-equals"},{"id":"io.github.libtmux.Client.Client.hashCode","name":"hashCode","kind":"method","modifiers":[],"parent":"io.github.libtmux.Client.Client","signatures":[{"raw":"@Override\n public int hashCode()","params":[],"returns":"int","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Client.java","line":152,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client.hashCode","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client.Client.hashCode","product":"core","slug":"io-github-libtmux-client-client-hashcode"},{"id":"io.github.libtmux.Client.Client.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.Client.Client","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Client.java","line":157,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client.Client.toString","product":"core","slug":"io-github-libtmux-client-client-tostring"},{"id":"io.github.libtmux.ClientAttachment.ClientAttachment","name":"ClientAttachment","kind":"class","modifiers":[],"signatures":[{"raw":"public record ClientAttachment(Session session, Window activeWindow, Pane activePane)","params":[{"name":"session","type":"Session","doc":"the session the client is attached to"},{"name":"activeWindow","type":"Window","doc":"that session's active window"},{"name":"activePane","type":"Pane","doc":"that window's active pane, which is what the client's keystrokes reach"}]}],"typeScopeBoundary":false,"doc":{"summary":"What a client was looking at.","body":"All three are present together or not at all. A client attached to a session is looking at\nexactly one window of it and one pane of that window; an attachment holding only some of those\nwould describe a state tmux does not have."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ClientAttachment.java","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ClientAttachment","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ClientAttachment.ClientAttachment","product":"core","slug":"io-github-libtmux-clientattachment-clientattachment"},{"id":"io.github.libtmux.ClientAttachment.ClientAttachment.session","name":"session","kind":"method","parent":"io.github.libtmux.ClientAttachment.ClientAttachment","modifiers":[],"signatures":[{"params":[],"returns":"Session"}],"doc":{"summary":"the session the client is attached to"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ClientAttachment.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ClientAttachment.session","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ClientAttachment.ClientAttachment.session","product":"core","slug":"io-github-libtmux-clientattachment-clientattachment-session"},{"id":"io.github.libtmux.ClientAttachment.ClientAttachment.activeWindow","name":"activeWindow","kind":"method","parent":"io.github.libtmux.ClientAttachment.ClientAttachment","modifiers":[],"signatures":[{"params":[],"returns":"Window"}],"doc":{"summary":"that session's active window"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ClientAttachment.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ClientAttachment.activeWindow","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ClientAttachment.ClientAttachment.activeWindow","product":"core","slug":"io-github-libtmux-clientattachment-clientattachment-activewindow"},{"id":"io.github.libtmux.ClientAttachment.ClientAttachment.activePane","name":"activePane","kind":"method","parent":"io.github.libtmux.ClientAttachment.ClientAttachment","modifiers":[],"signatures":[{"params":[],"returns":"Pane"}],"doc":{"summary":"that window's active pane, which is what the client's keystrokes reach"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ClientAttachment.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ClientAttachment.activePane","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ClientAttachment.ClientAttachment.activePane","product":"core","slug":"io-github-libtmux-clientattachment-clientattachment-activepane"},{"id":"io.github.libtmux.CommandChain.CommandChain","name":"CommandChain","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"A sequence of tmux commands where each one acts on what the last one made.","body":"tmux moves its own current target as a group runs: a {@code new-window} makes the new window\ncurrent, a following {@code split-window} splits that window, and a following {@code send-keys}\ntypes into the pane that split produced. None of these steps names a target, and that is the\npoint — the alternative is a round trip per step to learn the id of the thing just created.\n\nThe whole chain is one tmux invocation, and every step is attributed individually, so a chain\nthat fails halfway says which step failed and which never ran."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CommandChain.java","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CommandChain","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CommandChain.CommandChain","product":"core","slug":"io-github-libtmux-commandchain-commandchain"},{"id":"io.github.libtmux.CommandChain.CommandChain.CommandChain","name":"CommandChain","kind":"method","modifiers":[],"parent":"io.github.libtmux.CommandChain.CommandChain","signatures":[{"raw":"CommandChain(Batch batch, Supplier running)","params":[{"name":"batch","type":"Batch"},{"name":"running","type":"Supplier"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/CommandChain.java","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CommandChain.CommandChain","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CommandChain.CommandChain.CommandChain","product":"core","slug":"io-github-libtmux-commandchain-commandchain-commandchain"},{"id":"io.github.libtmux.CommandChain.CommandChain.newWindow","name":"newWindow","kind":"method","modifiers":[],"parent":"io.github.libtmux.CommandChain.CommandChain","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public CommandChain newWindow(String name)","params":[{"name":"name","type":"String"}],"returns":"CommandChain","typeScopeBoundary":false}],"doc":{"summary":"Creates a window and makes it the one following steps act on."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CommandChain.java","line":34,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CommandChain.newWindow","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CommandChain.CommandChain.newWindow","product":"core","slug":"io-github-libtmux-commandchain-commandchain-newwindow"},{"id":"io.github.libtmux.CommandChain.CommandChain.renameWindow","name":"renameWindow","kind":"method","modifiers":[],"parent":"io.github.libtmux.CommandChain.CommandChain","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public CommandChain renameWindow(String name)","params":[{"name":"name","type":"String"}],"returns":"CommandChain","typeScopeBoundary":false}],"doc":{"summary":"Renames the current window."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CommandChain.java","line":40,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CommandChain.renameWindow","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CommandChain.CommandChain.renameWindow","product":"core","slug":"io-github-libtmux-commandchain-commandchain-renamewindow"},{"id":"io.github.libtmux.CommandChain.CommandChain.splitLeftRight","name":"splitLeftRight","kind":"method","modifiers":[],"parent":"io.github.libtmux.CommandChain.CommandChain","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public CommandChain splitLeftRight()","params":[],"returns":"CommandChain","typeScopeBoundary":false}],"doc":{"summary":"Splits the current pane into a left and a right one.","body":"Named for what it produces rather than for tmux's {@code -h}, which reads as though it\ndescribed the divider."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CommandChain.java","line":51,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CommandChain.splitLeftRight","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CommandChain.CommandChain.splitLeftRight","product":"core","slug":"io-github-libtmux-commandchain-commandchain-splitleftright"},{"id":"io.github.libtmux.CommandChain.CommandChain.splitTopBottom","name":"splitTopBottom","kind":"method","modifiers":[],"parent":"io.github.libtmux.CommandChain.CommandChain","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public CommandChain splitTopBottom()","params":[],"returns":"CommandChain","typeScopeBoundary":false}],"doc":{"summary":"Splits the current pane into a top and a bottom one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CommandChain.java","line":57,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CommandChain.splitTopBottom","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CommandChain.CommandChain.splitTopBottom","product":"core","slug":"io-github-libtmux-commandchain-commandchain-splittopbottom"},{"id":"io.github.libtmux.CommandChain.CommandChain.sendLine","name":"sendLine","kind":"method","modifiers":[],"parent":"io.github.libtmux.CommandChain.CommandChain","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public CommandChain sendLine(String command)","params":[{"name":"command","type":"String"}],"returns":"CommandChain","typeScopeBoundary":false}],"doc":{"summary":"Types a line into the current pane and presses Enter, which is how a command gets run."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CommandChain.java","line":63,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CommandChain.sendLine","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CommandChain.CommandChain.sendLine","product":"core","slug":"io-github-libtmux-commandchain-commandchain-sendline"},{"id":"io.github.libtmux.CommandChain.CommandChain.arrange","name":"arrange","kind":"method","modifiers":[],"parent":"io.github.libtmux.CommandChain.CommandChain","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public CommandChain arrange(String layout)","params":[{"name":"layout","type":"String"}],"returns":"CommandChain","typeScopeBoundary":false,"raises":[{"type":"IllegalArgumentException","doc":"if tmux would not recognise the layout, which on some versions ends the whole server rather than the command"},{"type":"UnsupportedFeatureException","doc":"if the layout name arrived after this release, which tmux cannot tell from any other name it does not know"}]}],"doc":{"summary":"Arranges the current window."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CommandChain.java","line":76,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CommandChain.arrange","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CommandChain.CommandChain.arrange","product":"core","slug":"io-github-libtmux-commandchain-commandchain-arrange"},{"id":"io.github.libtmux.CommandChain.CommandChain.then","name":"then","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.CommandChain.CommandChain","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public CommandChain then(String... argv)","params":[{"name":"argv","type":"String","variadic":"positional"}],"returns":"CommandChain","typeScopeBoundary":false},{"raw":"@Operation(Kind.CAPTURED)\n public CommandChain then(List argv)","params":[{"name":"argv","type":"List"}],"returns":"CommandChain","typeScopeBoundary":false}],"doc":{"summary":"Adds any tmux command, for whatever this class does not name."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CommandChain.java","line":82,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CommandChain.then","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CommandChain.CommandChain.then","product":"core","slug":"io-github-libtmux-commandchain-commandchain-then"},{"id":"io.github.libtmux.CommandChain.CommandChain.run","name":"run","kind":"method","modifiers":[],"parent":"io.github.libtmux.CommandChain.CommandChain","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public BatchResult run()","params":[],"returns":"BatchResult","typeScopeBoundary":false}],"doc":{"summary":"Runs the whole chain in one tmux invocation, attributing each step."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/CommandChain.java","line":96,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.CommandChain.run","namespace":"io.github.libtmux","publicId":"io.github.libtmux.CommandChain.CommandChain.run","product":"core","slug":"io-github-libtmux-commandchain-commandchain-run"},{"id":"io.github.libtmux.Commands.Commands","name":"Commands","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The commands this tmux knows, read without starting a server to answer."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Commands.java","line":9,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Commands","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Commands.Commands","product":"core","slug":"io-github-libtmux-commands-commands"},{"id":"io.github.libtmux.Commands.Commands.Commands","name":"Commands","kind":"method","modifiers":[],"parent":"io.github.libtmux.Commands.Commands","signatures":[{"raw":"Commands(Server server)","params":[{"name":"server","type":"Server"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Commands.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Commands.Commands","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Commands.Commands.Commands","product":"core","slug":"io-github-libtmux-commands-commands-commands"},{"id":"io.github.libtmux.Commands.Commands.list","name":"list","kind":"method","modifiers":[],"parent":"io.github.libtmux.Commands.Commands","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public List list()","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"Every command, as tmux prints it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Commands.java","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Commands.list","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Commands.Commands.list","product":"core","slug":"io-github-libtmux-commands-commands-list"},{"id":"io.github.libtmux.control.ControlClient.ControlClient","name":"ControlClient","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"A tmux client that stays attached and answers one command at a time.","body":"This is what a semicolon group cannot be. tmux discards a group after its first failure, so a\nclient has to infer which command failed; here each request is independent, so a failure\ndiscards nothing behind it.\n\nReplies arrive in request order, so the writer sends one request at a time and matches its\nreply by position. A reply is the first block tmux writes for the request: an acknowledgement,\nwhich work the command deferred may outlive. What that command queued, as {@code if-shell}\nqueues its branch, and what a hook ran, arrive as blocks of their own, and none of them is taken\nfor the next request's reply. A deadline before the writer picks a request writes nothing; a\ndeadline after that point ends the client because the next reply could no longer be attributed\nsafely.\n\nThe reader and writer are platform threads. A library does not own the virtual-thread\nscheduler: a caller's CPU-bound task that never blocks keeps its carrier, and either thread\nunable to run stops the client from making progress. The reader only\nresolves replies and fills bounded subscription buffers; subscriber code runs on the thread that\npulls a value.\n\n**Threads.** {@link #send} may be called from several threads at once: requests\nqueue in the order they arrive and each caller gets its own reply. A subscription is read by one\nthread at a time.\n\n**Close it.** The client holds an attached tmux client, which is what makes tmux\npush output to it, and closing is what detaches that client and stops its threads. A client that\nis forgotten does not hold the JVM open — its threads are daemons — and the attached tmux client\nexits once the JVM does, because it reads its commands from a pipe that closes with it. Until then\nit is listed among the session's clients like any other."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlClient.java","line":69,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlClient","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlClient.ControlClient","product":"core","slug":"io-github-libtmux-control-controlclient-controlclient"},{"id":"io.github.libtmux.control.ControlClient.ControlClient.attachUnfenced","name":"attachUnfenced","kind":"method","modifiers":["static","overload"],"parent":"io.github.libtmux.control.ControlClient.ControlClient","signatures":[{"raw":"@Operation(Kind.LIFECYCLE)\n public static ControlClient attachUnfenced(ServerConfig config, SessionId session)","params":[{"name":"config","type":"ServerConfig","doc":"which tmux and which server"},{"name":"session","type":"SessionId","doc":"the session to attach to"}],"returns":"ControlClient","typeScopeBoundary":true},{"raw":"@Operation(Kind.LIFECYCLE)\n public static ControlClient attachUnfenced(ServerConfig config, SessionId session, Duration timeout)","params":[{"name":"config","type":"ServerConfig","doc":"which tmux and which server"},{"name":"session","type":"SessionId","doc":"the session to attach to"},{"name":"timeout","type":"Duration","doc":"how long to wait for the client to become ready"}],"returns":"ControlClient","typeScopeBoundary":true}],"doc":{"summary":"Attaches a control client to whatever server now answers this endpoint.","body":"Attaching is what makes tmux push {@code %output}: a control client that never attaches is\ntold about command replies and nothing else.\n\nThis does not check which tmux process answered. A socket can be taken over by a new\nserver that reuses the same session id. {@link io.github.libtmux.Server#control} attaches to\nthe process a capture already named; prefer it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlClient.java","line":141,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlClient.attachUnfenced","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlClient.ControlClient.attachUnfenced","product":"core","slug":"io-github-libtmux-control-controlclient-controlclient-attachunfenced"},{"id":"io.github.libtmux.control.ControlClient.ControlClient.attach","name":"attach","kind":"method","modifiers":["static","overload"],"parent":"io.github.libtmux.control.ControlClient.ControlClient","signatures":[{"raw":"@Operation(Kind.LIFECYCLE)\n public static ControlClient attach(\n ServerConfig config, SessionId session, long serverPid, String serverVersion, Duration timeout)","params":[{"name":"config","type":"ServerConfig"},{"name":"session","type":"SessionId"},{"name":"serverPid","type":"long","doc":"the tmux process a capture recorded"},{"name":"serverVersion","type":"String","doc":"the version text that process reported, compared as text"},{"name":"timeout","type":"Duration"}],"returns":"ControlClient","typeScopeBoundary":true},{"raw":"@Operation(Kind.LIFECYCLE)\n public static ControlClient attach(\n ControlCarrier carrier,\n ServerConfig config,\n SessionId session,\n long serverPid,\n java.util.OptionalLong serverStartTime,\n String serverVersion,\n Duration timeout)","params":[{"name":"carrier","type":"ControlCarrier"},{"name":"config","type":"ServerConfig"},{"name":"session","type":"SessionId"},{"name":"serverPid","type":"long"},{"name":"serverStartTime","type":"java.util.OptionalLong","doc":"when the captured process started, as {@code #{start_time}} reported it; compared when present, since a restarted tmux can be given the same pid and version"},{"name":"serverVersion","type":"String"},{"name":"timeout","type":"Duration"}],"returns":"ControlClient","typeScopeBoundary":true}],"doc":{"summary":"Attaches, then leaves unless the live server is still the process that was captured.","body":"A pid can be reused, so the version tmux reports is part of the check. A mismatch detaches\nbefore this client changes the server: layout refresh runs only after the check passes."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlClient.java","line":170,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlClient.attach","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlClient.ControlClient.attach","product":"core","slug":"io-github-libtmux-control-controlclient-controlclient-attach"},{"id":"io.github.libtmux.control.ControlClient.ControlClient.send","name":"send","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.control.ControlClient.ControlClient","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public ControlReply send(String... argv)","params":[{"name":"argv","type":"String","variadic":"positional"}],"returns":"ControlReply","typeScopeBoundary":false},{"raw":"@Operation(Kind.MUTATION)\n public ControlReply send(List argv)","params":[{"name":"argv","type":"List"}],"returns":"ControlReply","typeScopeBoundary":false},{"raw":"@Operation(Kind.MUTATION)\n public ControlReply send(List argv, Duration timeout)","params":[{"name":"argv","type":"List","doc":"the command, its arguments already separate elements"},{"name":"timeout","type":"Duration","doc":"how long to wait for tmux to answer"}],"returns":"ControlReply","typeScopeBoundary":false,"returnsDoc":"tmux's reply","raises":[{"type":"DispatchException","doc":"if the request cannot complete; its {@link DispatchException#outcome() outcome} is {@link DispatchOutcome#NOT_DISPATCHED} until the writer picks the request and {@link DispatchOutcome#UNKNOWN} afterwards"}]}],"doc":{"summary":"Runs one command and waits for its reply."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlClient.java","line":311,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlClient.send","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlClient.ControlClient.send","product":"core","slug":"io-github-libtmux-control-controlclient-controlclient-send"},{"id":"io.github.libtmux.control.ControlClient.ControlClient.isAlive","name":"isAlive","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlClient.ControlClient","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public boolean isAlive()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether the client is still running.","body":"A control client is a client of the server it talks to, so it ends when that server does.\nA carrier holding one needs to tell \"this command failed\" from \"there is no longer anything\nto send commands to\", which are the same exception until this is asked."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlClient.java","line":408,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlClient.isAlive","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlClient.ControlClient.isAlive","product":"core","slug":"io-github-libtmux-control-controlclient-controlclient-isalive"},{"id":"io.github.libtmux.control.ControlClient.ControlClient.subscribeOutput","name":"subscribeOutput","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlClient.ControlClient","signatures":[{"raw":"@Operation(Kind.STREAM)\n public EventSubscription subscribeOutput(int capacity)","params":[{"name":"capacity","type":"int","doc":"how many values this subscriber can retain before its oldest value is dropped"}],"returns":"EventSubscription","typeScopeBoundary":false,"returnsDoc":"a pull subscription owned by the caller","raises":[{"type":"IllegalArgumentException","doc":"if {@code capacity} is not positive"},{"type":"IllegalStateException","doc":"if the client has ended"}]}],"doc":{"summary":"Subscribes to terminal output tmux pushes."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlClient.java","line":421,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlClient.subscribeOutput","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlClient.ControlClient.subscribeOutput","product":"core","slug":"io-github-libtmux-control-controlclient-controlclient-subscribeoutput"},{"id":"io.github.libtmux.control.ControlClient.ControlClient.subscribeEvents","name":"subscribeEvents","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlClient.ControlClient","signatures":[{"raw":"@Operation(Kind.STREAM)\n public EventSubscription subscribeEvents(int capacity)","params":[{"name":"capacity","type":"int","doc":"how many values this subscriber can retain before its oldest value is dropped"}],"returns":"EventSubscription","typeScopeBoundary":false,"returnsDoc":"a pull subscription owned by the caller","raises":[{"type":"IllegalArgumentException","doc":"if {@code capacity} is not positive"},{"type":"IllegalStateException","doc":"if the client has ended"}]}],"doc":{"summary":"Subscribes to state changes tmux volunteers."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlClient.java","line":434,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlClient.subscribeEvents","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlClient.ControlClient.subscribeEvents","product":"core","slug":"io-github-libtmux-control-controlclient-controlclient-subscribeevents"},{"id":"io.github.libtmux.control.ControlClient.ControlClient.watch","name":"watch","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlClient.ControlClient","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public ControlReply watch(String name, String target, String format)","params":[{"name":"name","type":"String","doc":"what to call it; registering the same name again replaces the old one"},{"name":"target","type":"String","doc":"{@code %*} for every pane, {@code @*} for every window, a specific {@code %id} or {@code @id}, or the attached session (pass {@code \"\"} - see below)"},{"name":"format","type":"String","doc":"a tmux format, such as {@code #{pane_current_command}}"}],"returns":"ControlReply","typeScopeBoundary":false}],"doc":{"summary":"Asks tmux to report a format whenever its value changes.","body":"tmux re-expands the format about once a second and writes a {@code subscription-changed}\nevent only when the result differs from last time, so the comparison happens in the server and\na client that subscribes does nothing at all between changes. This is what makes watching a\nserver cost nothing while it is idle."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlClient.java","line":452,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlClient.watch","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlClient.ControlClient.watch","product":"core","slug":"io-github-libtmux-control-controlclient-controlclient-watch"},{"id":"io.github.libtmux.control.ControlClient.ControlClient.unwatch","name":"unwatch","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlClient.ControlClient","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public ControlReply unwatch(String name)","params":[{"name":"name","type":"String"}],"returns":"ControlReply","typeScopeBoundary":false}],"doc":{"summary":"Stops a watch. tmux reads a name with no colon in it as one to remove."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlClient.java","line":471,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlClient.unwatch","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlClient.ControlClient.unwatch","product":"core","slug":"io-github-libtmux-control-controlclient-controlclient-unwatch"},{"id":"io.github.libtmux.control.ControlClient.ControlClient.close","name":"close","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlClient.ControlClient","signatures":[{"raw":"@Operation(Kind.LIFECYCLE)\n @Override\n public void close()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Ends the client, rejecting queued requests and resolving picked requests as uncertain."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlClient.java","line":477,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlClient.close","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlClient.ControlClient.close","product":"core","slug":"io-github-libtmux-control-controlclient-controlclient-close"},{"id":"io.github.libtmux.control.ControlClient.ControlClient.line","name":"line","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.control.ControlClient.ControlClient","signatures":[{"raw":"static String line(List argv)","params":[{"name":"argv","type":"List"}],"returns":"String","typeScopeBoundary":true}],"doc":{"summary":"tmux parses a control-mode request as one line, so an argument has to survive its lexer. Single quotes preserve everything except a single quote, which is closed, escaped and reopened."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlClient.java","line":524,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlClient.line","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlClient.ControlClient.line","product":"core","slug":"io-github-libtmux-control-controlclient-controlclient-line"},{"id":"io.github.libtmux.control.ControlClient.ControlClient.standardError","name":"standardError","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlClient.ControlClient","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public String standardError()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The error text captured from this control process, at most 4096 bytes.","body":"Empty when the process wrote none. {@link #standardErrorTruncated()} says the stream\ncontinued past that bound. The text is whatever had been read when this is called."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlClient.java","line":580,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlClient.standardError","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlClient.ControlClient.standardError","product":"core","slug":"io-github-libtmux-control-controlclient-controlclient-standarderror"},{"id":"io.github.libtmux.control.ControlClient.ControlClient.standardErrorTruncated","name":"standardErrorTruncated","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlClient.ControlClient","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public boolean standardErrorTruncated()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether {@link #standardError()} stopped before the process finished writing it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlClient.java","line":588,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlClient.standardErrorTruncated","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlClient.ControlClient.standardErrorTruncated","product":"core","slug":"io-github-libtmux-control-controlclient-controlclient-standarderrortruncated"},{"id":"io.github.libtmux.control.ControlClient.ControlClient.unescape","name":"unescape","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.control.ControlClient.ControlClient","signatures":[{"raw":"static byte[] unescape(byte[] line, int from)","params":[{"name":"line","type":"byte[]"},{"name":"from","type":"int"}],"returns":"byte[]","typeScopeBoundary":true}],"doc":{"summary":"tmux writes a control byte or a backslash as a three-digit octal escape, and the rest raw."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlClient.java","line":721,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlClient.unescape","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlClient.ControlClient.unescape","product":"core","slug":"io-github-libtmux-control-controlclient-controlclient-unescape"},{"id":"io.github.libtmux.control.ControlEvent.ControlEvent","name":"ControlEvent","kind":"class","modifiers":[],"signatures":[{"raw":"public record ControlEvent(\n String kind, @ReadOnly List fields, Optional value, Notification notification)","params":[{"name":"kind","type":"String","doc":"the notification name, such as {@code window-add} or {@code subscription-changed}"},{"name":"fields","type":"List","doc":"the words that followed it, before any {@code :} separator"},{"name":"value","type":"Optional","doc":"what followed a {@code :} separator, which only a subscription carries"},{"name":"notification","type":"Notification","doc":"the same notification, typed"}]}],"typeScopeBoundary":false,"doc":{"summary":"Something tmux volunteered, rather than an answer to a request.","body":"A control client is told about changes as they happen — a window appearing, a session being\nrenamed, a layout moving — without anything asking. That is the difference between watching a\nserver and polling one.\n\nTwo readings of one line. {@link #notification()} is typed, for matching on: a sealed set of\nwhat tmux sends, with a {@link Notification.Unknown} case so that a notification a newer tmux adds\nstill arrives rather than being dropped. {@link #kind()}, {@link #fields()} and {@link #value()}\nare what tmux wrote, word by word, for anything the typed reading does not cover."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlEvent.java","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlEvent","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlEvent.ControlEvent","product":"core","slug":"io-github-libtmux-control-controlevent-controlevent"},{"id":"io.github.libtmux.control.ControlEvent.ControlEvent.ControlEvent","name":"ControlEvent","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlEvent.ControlEvent","signatures":[{"raw":"public ControlEvent(String kind, List fields, Optional value)","params":[{"name":"kind","type":"String"},{"name":"fields","type":"List"},{"name":"value","type":"Optional"}],"typeScopeBoundary":false}],"doc":{"summary":"An event from its words, with the typed reading taken from them.","body":"A name is rejoined from the words with single spaces, so one tmux wrote with a run of them\nreads back with one. {@link #parse} reads the line tmux wrote and has no such loss."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlEvent.java","line":39,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlEvent.ControlEvent","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlEvent.ControlEvent.ControlEvent","product":"core","slug":"io-github-libtmux-control-controlevent-controlevent-controlevent"},{"id":"io.github.libtmux.control.ControlEvent.ControlEvent.parse","name":"parse","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.control.ControlEvent.ControlEvent","signatures":[{"raw":"static Optional parse(String line)","params":[{"name":"line","type":"String","doc":"the line as tmux wrote it, leading {@code %} and all"}],"returns":"Optional","typeScopeBoundary":true,"returnsDoc":"the event, or empty when the line is not a notification"}],"doc":{"summary":"Reads one notification line."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlEvent.java","line":49,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlEvent.parse","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlEvent.ControlEvent.parse","product":"core","slug":"io-github-libtmux-control-controlevent-controlevent-parse"},{"id":"io.github.libtmux.control.ControlEvent.ControlEvent.subscription","name":"subscription","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlEvent.ControlEvent","signatures":[{"raw":"public Optional subscription()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The name a subscription was registered under, for an event that came from one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlEvent.java","line":74,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlEvent.subscription","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlEvent.ControlEvent.subscription","product":"core","slug":"io-github-libtmux-control-controlevent-controlevent-subscription"},{"id":"io.github.libtmux.control.ControlEvent.ControlEvent.paneId","name":"paneId","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlEvent.ControlEvent","signatures":[{"raw":"public Optional paneId()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The first field naming a pane, which is how an event says which pane it is about."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlEvent.java","line":79,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlEvent.paneId","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlEvent.ControlEvent.paneId","product":"core","slug":"io-github-libtmux-control-controlevent-controlevent-paneid"},{"id":"io.github.libtmux.control.ControlEvent.ControlEvent.windowId","name":"windowId","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlEvent.ControlEvent","signatures":[{"raw":"public Optional windowId()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The first field naming a window."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlEvent.java","line":87,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlEvent.windowId","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlEvent.ControlEvent.windowId","product":"core","slug":"io-github-libtmux-control-controlevent-controlevent-windowid"},{"id":"io.github.libtmux.control.ControlEvent.ControlEvent.kind","name":"kind","kind":"method","parent":"io.github.libtmux.control.ControlEvent.ControlEvent","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"the notification name, such as {@code window-add} or {@code subscription-changed}"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlEvent.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlEvent.kind","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlEvent.ControlEvent.kind","product":"core","slug":"io-github-libtmux-control-controlevent-controlevent-kind"},{"id":"io.github.libtmux.control.ControlEvent.ControlEvent.fields","name":"fields","kind":"method","parent":"io.github.libtmux.control.ControlEvent.ControlEvent","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"doc":{"summary":"the words that followed it, before any {@code :} separator"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlEvent.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlEvent.fields","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlEvent.ControlEvent.fields","product":"core","slug":"io-github-libtmux-control-controlevent-controlevent-fields"},{"id":"io.github.libtmux.control.ControlEvent.ControlEvent.value","name":"value","kind":"method","parent":"io.github.libtmux.control.ControlEvent.ControlEvent","modifiers":[],"signatures":[{"params":[],"returns":"Optional"}],"doc":{"summary":"what followed a {@code :} separator, which only a subscription carries"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlEvent.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlEvent.value","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlEvent.ControlEvent.value","product":"core","slug":"io-github-libtmux-control-controlevent-controlevent-value"},{"id":"io.github.libtmux.control.ControlEvent.ControlEvent.notification","name":"notification","kind":"method","parent":"io.github.libtmux.control.ControlEvent.ControlEvent","modifiers":[],"signatures":[{"params":[],"returns":"Notification"}],"doc":{"summary":"the same notification, typed"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlEvent.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlEvent.notification","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlEvent.ControlEvent.notification","product":"core","slug":"io-github-libtmux-control-controlevent-controlevent-notification"},{"id":"io.github.libtmux.control.ControlLineReader.ControlLineReader","name":"ControlLineReader","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Reads bounded physical lines from a control client's byte stream."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlLineReader.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlLineReader","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlLineReader.ControlLineReader","product":"core","slug":"io-github-libtmux-control-controllinereader-controllinereader"},{"id":"io.github.libtmux.control.ControlLineReader.ControlLineReader.ControlLineReader","name":"ControlLineReader","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlLineReader.ControlLineReader","signatures":[{"raw":"ControlLineReader(InputStream source, int maxBytes)","params":[{"name":"source","type":"InputStream"},{"name":"maxBytes","type":"int"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlLineReader.java","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlLineReader.ControlLineReader","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlLineReader.ControlLineReader.ControlLineReader","product":"core","slug":"io-github-libtmux-control-controllinereader-controllinereader-controllinereader"},{"id":"io.github.libtmux.control.ControlLineReader.ControlLineReader.Line","name":"Line","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.ControlLineReader.ControlLineReader","signatures":[{"raw":"@SuppressWarnings(\"ArrayRecordComponent\") // Internal: read once by the thread that made it.\n record Line(String text, int encodedBytes, byte[] bytes)","params":[{"name":"text","type":"String"},{"name":"encodedBytes","type":"int"},{"name":"bytes","type":"byte[]"}]}],"typeScopeBoundary":true,"doc":{"summary":"A line as text, its length on the wire, and its bytes without the line ending."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlLineReader.java","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlLineReader.Line","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlLineReader.ControlLineReader.Line","product":"core","slug":"io-github-libtmux-control-controllinereader-controllinereader-line"},{"id":"io.github.libtmux.control.ControlLineReader.ControlLineReader.Line.text","name":"text","kind":"method","parent":"io.github.libtmux.control.ControlLineReader.ControlLineReader.Line","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlLineReader.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlLineReader.Line.text","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlLineReader.ControlLineReader.Line.text","product":"core","slug":"io-github-libtmux-control-controllinereader-controllinereader-line-text"},{"id":"io.github.libtmux.control.ControlLineReader.ControlLineReader.Line.encodedBytes","name":"encodedBytes","kind":"method","parent":"io.github.libtmux.control.ControlLineReader.ControlLineReader.Line","modifiers":[],"signatures":[{"params":[],"returns":"int"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlLineReader.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlLineReader.Line.encodedBytes","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlLineReader.ControlLineReader.Line.encodedBytes","product":"core","slug":"io-github-libtmux-control-controllinereader-controllinereader-line-encodedbytes"},{"id":"io.github.libtmux.control.ControlLineReader.ControlLineReader.Line.bytes","name":"bytes","kind":"method","parent":"io.github.libtmux.control.ControlLineReader.ControlLineReader.Line","modifiers":[],"signatures":[{"params":[],"returns":"byte[]"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlLineReader.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlLineReader.Line.bytes","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlLineReader.ControlLineReader.Line.bytes","product":"core","slug":"io-github-libtmux-control-controllinereader-controllinereader-line-bytes"},{"id":"io.github.libtmux.control.ControlLineReader.ControlLineReader.readLine","name":"readLine","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlLineReader.ControlLineReader","signatures":[{"raw":"@Nullable\n Line readLine() throws IOException","params":[],"returns":"Line","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlLineReader.java","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlLineReader.readLine","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlLineReader.ControlLineReader.readLine","product":"core","slug":"io-github-libtmux-control-controllinereader-controllinereader-readline"},{"id":"io.github.libtmux.control.ControlLineReader.ControlLineReader.close","name":"close","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlLineReader.ControlLineReader","signatures":[{"raw":"@Override\n public void close() throws IOException","params":[],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlLineReader.java","line":58,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlLineReader.close","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlLineReader.ControlLineReader.close","product":"core","slug":"io-github-libtmux-control-controllinereader-controllinereader-close"},{"id":"io.github.libtmux.control.ControlProtocol.ControlProtocol","name":"ControlProtocol","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Frames control-mode replies and encodes requests for tmux's command parser."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlProtocol.java","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlProtocol","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlProtocol.ControlProtocol","product":"core","slug":"io-github-libtmux-control-controlprotocol-controlprotocol"},{"id":"io.github.libtmux.control.ControlProtocol.ControlProtocol.DEFAULT_MAX_REPLY_BYTES","name":"DEFAULT_MAX_REPLY_BYTES","kind":"attribute","modifiers":["static","readonly"],"parent":"io.github.libtmux.control.ControlProtocol.ControlProtocol","signatures":[],"typeScopeBoundary":true,"type":"int","value":"16 * 1024 * 1024","source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlProtocol.java","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlProtocol.DEFAULT_MAX_REPLY_BYTES","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlProtocol.ControlProtocol.DEFAULT_MAX_REPLY_BYTES","product":"core","slug":"io-github-libtmux-control-controlprotocol-controlprotocol-default_max_reply_bytes"},{"id":"io.github.libtmux.control.ControlProtocol.ControlProtocol.ControlProtocol","name":"ControlProtocol","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.control.ControlProtocol.ControlProtocol","signatures":[{"raw":"ControlProtocol()","params":[],"typeScopeBoundary":false},{"raw":"ControlProtocol(int maxReplyBytes)","params":[{"name":"maxReplyBytes","type":"int"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlProtocol.java","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlProtocol.ControlProtocol","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlProtocol.ControlProtocol.ControlProtocol","product":"core","slug":"io-github-libtmux-control-controlprotocol-controlprotocol-controlprotocol"},{"id":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Result","name":"Result","kind":"interface","modifiers":[],"parent":"io.github.libtmux.control.ControlProtocol.ControlProtocol","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlProtocol.java","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlProtocol.Result","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Result","product":"core","slug":"io-github-libtmux-control-controlprotocol-controlprotocol-result"},{"id":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Awaiting","name":"Awaiting","kind":"enum","modifiers":[],"parent":"io.github.libtmux.control.ControlProtocol.ControlProtocol","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlProtocol.java","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlProtocol.Awaiting","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Awaiting","product":"core","slug":"io-github-libtmux-control-controlprotocol-controlprotocol-awaiting"},{"id":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Awaiting.INSTANCE","name":"INSTANCE","kind":"constant","modifiers":[],"parent":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Awaiting","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlProtocol.java","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlProtocol.Awaiting.INSTANCE","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Awaiting.INSTANCE","product":"core","slug":"io-github-libtmux-control-controlprotocol-controlprotocol-awaiting-instance"},{"id":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Notification","name":"Notification","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.ControlProtocol.ControlProtocol","signatures":[{"raw":"record Notification(String line) implements Result","params":[{"name":"line","type":"String"}]}],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlProtocol.java","line":41,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlProtocol.Notification","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Notification","product":"core","slug":"io-github-libtmux-control-controlprotocol-controlprotocol-notification"},{"id":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Notification.line","name":"line","kind":"method","parent":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Notification","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlProtocol.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlProtocol.Notification.line","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Notification.line","product":"core","slug":"io-github-libtmux-control-controlprotocol-controlprotocol-notification-line"},{"id":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Reply","name":"Reply","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.ControlProtocol.ControlProtocol","signatures":[{"raw":"record Reply(OperationOutcome outcome, @ReadOnly List lines, boolean requested) implements Result","params":[{"name":"outcome","type":"OperationOutcome"},{"name":"lines","type":"List"},{"name":"requested","type":"boolean"}]}],"typeScopeBoundary":true,"doc":{"summary":"One reply block. {@code requested} is tmux's guard flag: set for a command this client wrote, and for any that command queued, and clear for what a hook ran."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlProtocol.java","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlProtocol.Reply","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Reply","product":"core","slug":"io-github-libtmux-control-controlprotocol-controlprotocol-reply"},{"id":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Reply.outcome","name":"outcome","kind":"method","parent":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Reply","modifiers":[],"signatures":[{"params":[],"returns":"OperationOutcome"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlProtocol.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlProtocol.Reply.outcome","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Reply.outcome","product":"core","slug":"io-github-libtmux-control-controlprotocol-controlprotocol-reply-outcome"},{"id":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Reply.lines","name":"lines","kind":"method","parent":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Reply","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlProtocol.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlProtocol.Reply.lines","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Reply.lines","product":"core","slug":"io-github-libtmux-control-controlprotocol-controlprotocol-reply-lines"},{"id":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Reply.requested","name":"requested","kind":"method","parent":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Reply","modifiers":[],"signatures":[{"params":[],"returns":"boolean"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlProtocol.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlProtocol.Reply.requested","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlProtocol.ControlProtocol.Reply.requested","product":"core","slug":"io-github-libtmux-control-controlprotocol-controlprotocol-reply-requested"},{"id":"io.github.libtmux.control.ControlProtocol.ControlProtocol.accept","name":"accept","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.control.ControlProtocol.ControlProtocol","signatures":[{"raw":"Result accept(String line)","params":[{"name":"line","type":"String"}],"returns":"Result","typeScopeBoundary":false},{"raw":"Result accept(String line, int encodedBytes)","params":[{"name":"line","type":"String"},{"name":"encodedBytes","type":"int"}],"returns":"Result","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlProtocol.java","line":54,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlProtocol.accept","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlProtocol.ControlProtocol.accept","product":"core","slug":"io-github-libtmux-control-controlprotocol-controlprotocol-accept"},{"id":"io.github.libtmux.control.ControlProtocol.ControlProtocol.line","name":"line","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.control.ControlProtocol.ControlProtocol","signatures":[{"raw":"static String line(List argv)","params":[{"name":"argv","type":"List"}],"returns":"String","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlProtocol.java","line":98,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlProtocol.line","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlProtocol.ControlProtocol.line","product":"core","slug":"io-github-libtmux-control-controlprotocol-controlprotocol-line"},{"id":"io.github.libtmux.control.ControlProtocol.ControlProtocol.LimitExceeded","name":"LimitExceeded","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.control.ControlProtocol.ControlProtocol","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlProtocol.java","line":113,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlProtocol.LimitExceeded","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlProtocol.ControlProtocol.LimitExceeded","product":"core","slug":"io-github-libtmux-control-controlprotocol-controlprotocol-limitexceeded"},{"id":"io.github.libtmux.control.ControlProtocol.ControlProtocol.LimitExceeded.LimitExceeded","name":"LimitExceeded","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlProtocol.ControlProtocol.LimitExceeded","signatures":[{"raw":"LimitExceeded(int limit)","params":[{"name":"limit","type":"int"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlProtocol.java","line":116,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlProtocol.LimitExceeded.LimitExceeded","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlProtocol.ControlProtocol.LimitExceeded.LimitExceeded","product":"core","slug":"io-github-libtmux-control-controlprotocol-controlprotocol-limitexceeded-limitexceeded"},{"id":"io.github.libtmux.control.ControlReply.ControlReply","name":"ControlReply","kind":"class","modifiers":[],"signatures":[{"raw":"public record ControlReply(\n OperationOutcome outcome, @ReadOnly List lines)","params":[{"name":"outcome","type":"OperationOutcome","doc":"what tmux said became of it; never {@code SKIPPED}, because control-mode requests are independent and a failure discards nothing behind it"},{"name":"lines","type":"List","doc":"the lines tmux produced between the reply's own begin and end markers"}]}],"typeScopeBoundary":false,"doc":{"summary":"One command's reply in control mode."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlReply.java","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlReply","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlReply.ControlReply","product":"core","slug":"io-github-libtmux-control-controlreply-controlreply"},{"id":"io.github.libtmux.control.ControlReply.ControlReply.succeeded","name":"succeeded","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlReply.ControlReply","signatures":[{"raw":"public boolean succeeded()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether tmux ran the command and it succeeded."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlReply.java","line":22,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlReply.succeeded","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlReply.ControlReply.succeeded","product":"core","slug":"io-github-libtmux-control-controlreply-controlreply-succeeded"},{"id":"io.github.libtmux.control.ControlReply.ControlReply.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlReply.ControlReply","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"Counts only: reply lines carry pane content."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlReply.java","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlReply.toString","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlReply.ControlReply.toString","product":"core","slug":"io-github-libtmux-control-controlreply-controlreply-tostring"},{"id":"io.github.libtmux.control.ControlReply.ControlReply.outcome","name":"outcome","kind":"method","parent":"io.github.libtmux.control.ControlReply.ControlReply","modifiers":[],"signatures":[{"params":[],"returns":"OperationOutcome"}],"doc":{"summary":"what tmux said became of it; never {@code SKIPPED}, because control-mode requests are independent and a failure discards nothing behind it"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlReply.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlReply.outcome","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlReply.ControlReply.outcome","product":"core","slug":"io-github-libtmux-control-controlreply-controlreply-outcome"},{"id":"io.github.libtmux.control.ControlReply.ControlReply.lines","name":"lines","kind":"method","parent":"io.github.libtmux.control.ControlReply.ControlReply","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"doc":{"summary":"the lines tmux produced between the reply's own begin and end markers"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlReply.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlReply.lines","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlReply.ControlReply.lines","product":"core","slug":"io-github-libtmux-control-controlreply-controlreply-lines"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter","name":"ControlWriter","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Owns the process-pipe write and the FIFO that attributes replies to requests.","body":"A request's reply is the first block tmux writes for it: an acknowledgement, which deferred\nwork may outlive. But tmux answers every command another one queues with a block of its own, as\n{@code if-shell} queues its branch and {@code run-shell} reports its job, numbered like any other.\nSo each request line is followed by a second, {@code display-message -p} of a marker unique to it:\ntmux runs that after everything the request queued, whether the request failed or not. Blocks\nbetween a reply and its marker belong to the request already answered, and are not handed to\nthe next one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":34,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.DEFAULT_CAPACITY","name":"DEFAULT_CAPACITY","kind":"attribute","modifiers":["static","readonly"],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter","signatures":[],"typeScopeBoundary":true,"type":"int","value":"64","source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.DEFAULT_CAPACITY","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.DEFAULT_CAPACITY","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-default_capacity"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.ControlWriter","name":"ControlWriter","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter","signatures":[{"raw":"ControlWriter(BufferedWriter output, int capacity, Consumer failed)","params":[{"name":"output","type":"BufferedWriter"},{"name":"capacity","type":"int"},{"name":"failed","type":"Consumer"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":50,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.ControlWriter","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.ControlWriter","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-controlwriter"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.expectInitial","name":"expectInitial","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter","signatures":[{"raw":"Request expectInitial(Duration timeout)","params":[{"name":"timeout","type":"Duration"}],"returns":"Request","typeScopeBoundary":false}],"doc":{"summary":"Records the attach request dispatched by the process invocation."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":64,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.expectInitial","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.expectInitial","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-expectinitial"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.start","name":"start","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter","signatures":[{"raw":"void start()","params":[],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":73,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.start","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.start","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-start"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.exchange","name":"exchange","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter","signatures":[{"raw":"ControlReply exchange(String line, Duration timeout)","params":[{"name":"line","type":"String"},{"name":"timeout","type":"Duration"}],"returns":"ControlReply","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":77,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.exchange","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.exchange","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-exchange"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.takeTiming","name":"takeTiming","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter","signatures":[{"raw":"long[] takeTiming(long elapsed)","params":[{"name":"elapsed","type":"long"}],"returns":"long[]","typeScopeBoundary":false}],"doc":{"summary":"Queue time, then run time, for the last exchange on this thread; {@code elapsed} as run time when this thread made none."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":110,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.takeTiming","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.takeTiming","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-taketiming"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.complete","name":"complete","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter","signatures":[{"raw":"void complete(OperationOutcome outcome, List lines, boolean requested)","params":[{"name":"outcome","type":"OperationOutcome"},{"name":"lines","type":"List"},{"name":"requested","type":"boolean","doc":"tmux's guard flag: clear for a block a hook ran, which answers no request"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Called by the reader for each reply block, in the order tmux wrote them."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":121,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.complete","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.complete","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-complete"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.readerEnded","name":"readerEnded","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter","signatures":[{"raw":"void readerEnded()","params":[],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":148,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.readerEnded","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.readerEnded","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-readerended"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.close","name":"close","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter","signatures":[{"raw":"void close()","params":[],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":152,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.close","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.close","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-close"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.join","name":"join","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter","signatures":[{"raw":"void join(long timeoutMillis) throws InterruptedException","params":[{"name":"timeoutMillis","type":"long"}],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":156,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.join","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.join","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-join"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.await","name":"await","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter","signatures":[{"raw":"ControlReply await(Request request)","params":[{"name":"request","type":"Request"}],"returns":"ControlReply","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":170,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.await","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.await","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-await"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.Request","name":"Request","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":329,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.Request","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.Request","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-request"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.pick","name":"pick","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter.Request","signatures":[{"raw":"boolean pick()","params":[],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":356,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.Request.pick","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.pick","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-request-pick"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.timing","name":"timing","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter.Request","signatures":[{"raw":"long[] timing(long now)","params":[{"name":"now","type":"long"}],"returns":"long[]","typeScopeBoundary":false}],"doc":{"summary":"Queue time, then run time, up to now. A request never picked spent all of it queued."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":366,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.Request.timing","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.timing","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-request-timing"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.cancel","name":"cancel","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter.Request","signatures":[{"raw":"boolean cancel(DispatchException reason)","params":[{"name":"reason","type":"DispatchException"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":373,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.Request.cancel","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.cancel","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-request-cancel"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.complete","name":"complete","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter.Request","signatures":[{"raw":"void complete(ControlReply reply)","params":[{"name":"reply","type":"ControlReply"}],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":377,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.Request.complete","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.complete","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-request-complete"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.fail","name":"fail","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter.Request","signatures":[{"raw":"boolean fail(DispatchException reason)","params":[{"name":"reason","type":"DispatchException"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":381,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.Request.fail","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.fail","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-request-fail"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.claimFailure","name":"claimFailure","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter.Request","signatures":[{"raw":"boolean claimFailure()","params":[],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":389,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.Request.claimFailure","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.claimFailure","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-request-claimfailure"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.publishFailure","name":"publishFailure","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter.Request","signatures":[{"raw":"void publishFailure(DispatchException reason)","params":[{"name":"reason","type":"DispatchException"}],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":393,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.Request.publishFailure","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.publishFailure","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-request-publishfailure"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.isDone","name":"isDone","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter.Request","signatures":[{"raw":"boolean isDone()","params":[],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":406,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.Request.isDone","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.isDone","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-request-isdone"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.remainingNanos","name":"remainingNanos","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter.Request","signatures":[{"raw":"long remainingNanos()","params":[],"returns":"long","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":410,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.Request.remainingNanos","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.remainingNanos","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-request-remainingnanos"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.await","name":"await","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter.Request","signatures":[{"raw":"boolean await() throws InterruptedException","params":[],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":415,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.Request.await","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.await","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-request-await"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.answer","name":"answer","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter.Request","signatures":[{"raw":"ControlReply answer()","params":[],"returns":"ControlReply","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":419,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.Request.answer","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.answer","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-request-answer"},{"id":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.awaitTerminal","name":"awaitTerminal","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.ControlWriter.ControlWriter.Request","signatures":[{"raw":"void awaitTerminal()","params":[],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/ControlWriter.java","line":430,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.ControlWriter.Request.awaitTerminal","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.ControlWriter.ControlWriter.Request.awaitTerminal","product":"core","slug":"io-github-libtmux-control-controlwriter-controlwriter-request-awaitterminal"},{"id":"io.github.libtmux.control.Delivery.Delivery","name":"Delivery","kind":"interface","modifiers":[],"signatures":[],"typeScopeBoundary":false,"typeParams":["T"],"typeParamNames":["T"],"typeParameters":[{"name":"T","doc":"the event type"}],"doc":{"summary":"One step in a control subscription.","body":"A {@link Gap} sits in the sequence where events were discarded, ahead of the events that\nsurvived. It is not a side total: the next read is the gap, and the one after it is whatever\nremains."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Delivery.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Delivery","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Delivery.Delivery","product":"core","slug":"io-github-libtmux-control-delivery-delivery"},{"id":"io.github.libtmux.control.Delivery.Delivery.kept","name":"kept","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.control.Delivery.Delivery","signatures":[{"raw":"static T kept(Delivery step)","params":[{"name":"step","type":"Delivery","doc":"the subscription's next step"}],"returns":"T","typeParamNames":["T"],"typeScopeBoundary":true,"typeParams":["T"],"typeParameters":[{"name":"T","doc":"the event type"}],"returnsDoc":"the event","raises":[{"type":"IllegalStateException","doc":"if {@code step} is a gap"}]}],"doc":{"summary":"The event a strict reader kept. A gap fails the read."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Delivery.java","line":22,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Delivery.kept","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Delivery.Delivery.kept","product":"core","slug":"io-github-libtmux-control-delivery-delivery-kept"},{"id":"io.github.libtmux.control.Delivery.Delivery.Event","name":"Event","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Delivery.Delivery","signatures":[{"raw":"record Event(T value) implements Delivery","params":[{"name":"value","type":"T","doc":"the event"}],"typeParamNames":["T"],"typeParams":["T"],"typeParameters":[{"name":"T","doc":"the event type"}]}],"typeScopeBoundary":true,"typeParams":["T"],"typeParamNames":["T"],"typeParameters":[{"name":"T","doc":"the event type"}],"doc":{"summary":"An event the subscription kept."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Delivery.java","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Delivery.Event","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Delivery.Delivery.Event","product":"core","slug":"io-github-libtmux-control-delivery-delivery-event"},{"id":"io.github.libtmux.control.Delivery.Delivery.Event.value","name":"value","kind":"method","parent":"io.github.libtmux.control.Delivery.Delivery.Event","modifiers":[],"signatures":[{"params":[],"returns":"T"}],"doc":{"summary":"the event"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Delivery.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Delivery.Event.value","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Delivery.Delivery.Event.value","product":"core","slug":"io-github-libtmux-control-delivery-delivery-event-value"},{"id":"io.github.libtmux.control.Delivery.Delivery.Gap","name":"Gap","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Delivery.Delivery","signatures":[{"raw":"record Gap(long missed) implements Delivery","params":[{"name":"missed","type":"long","doc":"the number discarded, at least one"}],"typeParamNames":["T"],"typeParams":["T"],"typeParameters":[{"name":"T","doc":"the event type"}]}],"typeScopeBoundary":true,"typeParams":["T"],"typeParamNames":["T"],"typeParameters":[{"name":"T","doc":"the event type"}],"doc":{"summary":"How many events were discarded since the previous read because the buffer was full."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Delivery.java","line":43,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Delivery.Gap","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Delivery.Delivery.Gap","product":"core","slug":"io-github-libtmux-control-delivery-delivery-gap"},{"id":"io.github.libtmux.control.Delivery.Delivery.Gap.missed","name":"missed","kind":"method","parent":"io.github.libtmux.control.Delivery.Delivery.Gap","modifiers":[],"signatures":[{"params":[],"returns":"long"}],"doc":{"summary":"the number discarded, at least one"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Delivery.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Delivery.Gap.missed","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Delivery.Delivery.Gap.missed","product":"core","slug":"io-github-libtmux-control-delivery-delivery-gap-missed"},{"id":"io.github.libtmux.control.EventSubscription.EventSubscription","name":"EventSubscription","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"typeParams":["T"],"typeParamNames":["T"],"typeParameters":[{"name":"T","doc":"the event type"}],"doc":{"summary":"Pulls events volunteered by one control client.","body":"Each subscription owns a fixed-capacity buffer. When that buffer is full, the next event\nreplaces its oldest event. The read that follows is a {@link Delivery.Gap} naming how many were\ndiscarded since the previous read, and only then the events that remain. {@link #droppedCount()}\nis the total across the subscription's life. Another subscription has its own buffer and its own\ngaps. The control protocol reader only offers values to these buffers, and never runs subscriber\ncode beyond a {@link #onReady readiness callback}.\n\nOne reader at a time. Public operations are thread-safe, and reads from different threads one\nafter another are fine — a coroutine or a fiber moves between threads — but a read that overlaps\nanother, or any read once {@link #stream()} or {@link #publisher()} has taken the subscription, is\nrefused with {@link IllegalStateException}: two readers would split one sequence and its gaps\nbetween them. For a second reader, subscribe again; each subscription gets every event.\n\n{@link #next()} blocks. {@link #poll()} never does, and {@link #onReady(Runnable)} arms a\none-shot wakeup for when there is something to poll, so an event loop or a coroutine can read\nwithout holding a thread while nothing arrives.\n\nA subscription does not reconnect. When it ends, {@link #next()} returns empty. {@link\n#cause()} is empty when the caller closed it, and set when the control client ended it. Attach\nagain from the captured session and read a snapshot; nothing already missed is replayed.\n\nEnding is terminal and wakes threads blocked in {@link #next()}. A caller's {@link #close()}\ndiscards buffered events: the caller has chosen not to read them, so they are not overflow and do\nnot increment the loss count. When the control client ends a subscription, what it had already\ndelivered stays readable, a pending gap first, and only then does a read return empty with\n{@link #cause()} set."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/EventSubscription.java","line":53,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.EventSubscription","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.EventSubscription.EventSubscription","product":"core","slug":"io-github-libtmux-control-eventsubscription-eventsubscription"},{"id":"io.github.libtmux.control.EventSubscription.EventSubscription.EventSubscription","name":"EventSubscription","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.EventSubscription.EventSubscription","signatures":[{"raw":"EventSubscription(int capacity, Consumer> onClose)","params":[{"name":"capacity","type":"int"},{"name":"onClose","type":"Consumer>"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/EventSubscription.java","line":74,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.EventSubscription.EventSubscription","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.EventSubscription.EventSubscription.EventSubscription","product":"core","slug":"io-github-libtmux-control-eventsubscription-eventsubscription-eventsubscription"},{"id":"io.github.libtmux.control.EventSubscription.EventSubscription.offer","name":"offer","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.EventSubscription.EventSubscription","signatures":[{"raw":"void offer(T event)","params":[{"name":"event","type":"T"}],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/EventSubscription.java","line":82,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.EventSubscription.offer","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.EventSubscription.EventSubscription.offer","product":"core","slug":"io-github-libtmux-control-eventsubscription-eventsubscription-offer"},{"id":"io.github.libtmux.control.EventSubscription.EventSubscription.droppedCount","name":"droppedCount","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.EventSubscription.EventSubscription","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public long droppedCount()","params":[],"returns":"long","typeScopeBoundary":false,"returnsDoc":"the monotonic loss count"}],"doc":{"summary":"Returns the exact number of events discarded because this subscription's buffer was full."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/EventSubscription.java","line":118,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.EventSubscription.droppedCount","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.EventSubscription.EventSubscription.droppedCount","product":"core","slug":"io-github-libtmux-control-eventsubscription-eventsubscription-droppedcount"},{"id":"io.github.libtmux.control.EventSubscription.EventSubscription.cause","name":"cause","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.EventSubscription.EventSubscription","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Optional cause()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"Why this subscription ended, when the control client ended it.","body":"Empty when the subscription is still open, and empty when the caller closed it. A client\nthat died sets this before the read returns empty."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/EventSubscription.java","line":134,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.EventSubscription.cause","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.EventSubscription.EventSubscription.cause","product":"core","slug":"io-github-libtmux-control-eventsubscription-eventsubscription-cause"},{"id":"io.github.libtmux.control.EventSubscription.EventSubscription.next","name":"next","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.control.EventSubscription.EventSubscription","signatures":[{"raw":"@Operation(Kind.WAIT)\n public Optional> next() throws InterruptedException","params":[],"returns":"Optional>","typeScopeBoundary":false,"returnsDoc":"the next gap or event, or empty when the subscription has closed and no gap is waiting","raises":[{"type":"IllegalStateException","doc":"if another read is in progress, or a stream or publisher owns this subscription"},{"type":"InterruptedException","doc":"if the waiting thread is interrupted"}]},{"raw":"@Operation(Kind.WAIT)\n public Optional> next(Duration timeout) throws InterruptedException","params":[{"name":"timeout","type":"Duration","doc":"how long to wait, zero to inspect the buffer without waiting"}],"returns":"Optional>","typeScopeBoundary":false,"returnsDoc":"the next gap or event, or empty when none arrived before the deadline","raises":[{"type":"IllegalArgumentException","doc":"if {@code timeout} is negative"},{"type":"IllegalStateException","doc":"if another read is in progress, or a stream or publisher owns this subscription"},{"type":"InterruptedException","doc":"if the waiting thread is interrupted"}]}],"doc":{"summary":"Waits until the next step arrives or this subscription closes."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/EventSubscription.java","line":152,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.EventSubscription.next","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.EventSubscription.EventSubscription.next","product":"core","slug":"io-github-libtmux-control-eventsubscription-eventsubscription-next"},{"id":"io.github.libtmux.control.EventSubscription.EventSubscription.poll","name":"poll","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.EventSubscription.EventSubscription","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Optional> poll()","params":[],"returns":"Optional>","typeScopeBoundary":false,"returnsDoc":"the next gap or event, or empty when none is buffered; after the subscription has ended, empty once what it held is read","raises":[{"type":"IllegalStateException","doc":"if another read is in progress, or a stream or publisher owns this subscription"}]}],"doc":{"summary":"Returns the next step if one is waiting, without blocking."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/EventSubscription.java","line":189,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.EventSubscription.poll","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.EventSubscription.EventSubscription.poll","product":"core","slug":"io-github-libtmux-control-eventsubscription-eventsubscription-poll"},{"id":"io.github.libtmux.control.EventSubscription.EventSubscription.onReady","name":"onReady","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.EventSubscription.EventSubscription","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public void onReady(Runnable callback)","params":[{"name":"callback","type":"Runnable"}],"returns":"void","typeScopeBoundary":false,"raises":[{"type":"IllegalStateException","doc":"if a callback is already armed, or a stream or publisher owns this subscription"}]}],"doc":{"summary":"Arms a one-shot wakeup for when this subscription has something to read, or has ended.","body":"Runs {@code callback} at once, on this thread, when a step is already waiting or the\nsubscription has ended. Otherwise it runs once, on the control client's reader thread, when the\nfirst step arrives or the subscription ends, and is then disarmed: drain with {@link #poll()}\nuntil it is empty, then arm again. Checking and arming happen under the lock that delivery\ntakes, so a step cannot slip between them unannounced.\n\nThe callback runs on the thread delivering events, so it must not block: resume a waiting\ncoroutine, complete a promise, and return. One that throws is logged and ignored, and delivery\ncontinues."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/EventSubscription.java","line":220,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.EventSubscription.onReady","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.EventSubscription.EventSubscription.onReady","product":"core","slug":"io-github-libtmux-control-eventsubscription-eventsubscription-onready"},{"id":"io.github.libtmux.control.EventSubscription.EventSubscription.clearReady","name":"clearReady","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.EventSubscription.EventSubscription","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public void clearReady()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Disarms the readiness callback, if one is armed. For a reader that stopped waiting."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/EventSubscription.java","line":245,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.EventSubscription.clearReady","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.EventSubscription.EventSubscription.clearReady","product":"core","slug":"io-github-libtmux-control-eventsubscription-eventsubscription-clearready"},{"id":"io.github.libtmux.control.EventSubscription.EventSubscription.stream","name":"stream","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.EventSubscription.EventSubscription","signatures":[{"raw":"@Operation(Kind.STREAM)\n public java.util.stream.Stream> stream()","params":[],"returns":"java.util.stream.Stream>","typeScopeBoundary":false,"raises":[{"type":"io.github.libtmux.exception.LibTmuxException","doc":"from the stream if the reading thread is interrupted; its interrupt status is set again"}]}],"doc":{"summary":"The steps still to come, in order, each read by the thread consuming the stream.","body":"Pull-only: a step is read when the stream asks for one, and events that arrive meanwhile\nwait in this subscription's buffer, so its capacity alone decides what becomes a {@link\nDelivery.Gap}. The stream ends when this subscription closes. When the control client ended\nit, the stream fails with {@link #cause()}. Closing the stream closes this subscription, and\nclosing this subscription from another thread ends a stream that is waiting.","examples":[{"lang":"java","code":"try (Stream> steps = subscription.stream()) {\n steps.map(Delivery::kept).forEach(output -> System.out.print(output.data()));\n}"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/EventSubscription.java","line":366,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.EventSubscription.stream","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.EventSubscription.EventSubscription.stream","product":"core","slug":"io-github-libtmux-control-eventsubscription-eventsubscription-stream"},{"id":"io.github.libtmux.control.EventSubscription.EventSubscription.publisher","name":"publisher","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.control.EventSubscription.EventSubscription","signatures":[{"raw":"@Operation(Kind.STREAM)\n public Flow.Publisher> publisher()","params":[],"returns":"Flow.Publisher>","typeScopeBoundary":false},{"raw":"@Operation(Kind.STREAM)\n public Flow.Publisher> publisher(Executor executor)","params":[{"name":"executor","type":"Executor","doc":"where each blocking read for the subscriber runs; one that runs a task on the calling thread makes {@link Flow.Subscription#request request} block on tmux, which the Reactive Streams rules forbid"}],"returns":"Flow.Publisher>","typeScopeBoundary":false}],"doc":{"summary":"A {@link Flow.Publisher} view of this subscription's steps, delivered as demand allows.","body":"Reads that wait for the next step run on a fresh virtual thread, started only while a\nsubscriber has outstanding demand, so a subscriber that never asks never blocks anything. Use\n{@link #publisher(Executor)} to read somewhere else instead.\n\n@see #publisher(Executor)"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/EventSubscription.java","line":406,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.EventSubscription.publisher","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.EventSubscription.EventSubscription.publisher","product":"core","slug":"io-github-libtmux-control-eventsubscription-eventsubscription-publisher"},{"id":"io.github.libtmux.control.EventSubscription.EventSubscription.isClosed","name":"isClosed","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.EventSubscription.EventSubscription","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public boolean isClosed()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether this subscription has reached its terminal state.","body":"This distinguishes a timed read that expired from one that returned empty because the\nsubscription ended. A pending gap can still be read after the subscription has closed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/EventSubscription.java","line":685,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.EventSubscription.isClosed","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.EventSubscription.EventSubscription.isClosed","product":"core","slug":"io-github-libtmux-control-eventsubscription-eventsubscription-isclosed"},{"id":"io.github.libtmux.control.EventSubscription.EventSubscription.close","name":"close","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.EventSubscription.EventSubscription","signatures":[{"raw":"@Operation(Kind.LIFECYCLE)\n @Override\n public void close()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Discards buffered events, removes this subscriber, and wakes every waiting reader."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/EventSubscription.java","line":696,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.EventSubscription.close","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.EventSubscription.EventSubscription.close","product":"core","slug":"io-github-libtmux-control-eventsubscription-eventsubscription-close"},{"id":"io.github.libtmux.control.EventSubscription.EventSubscription.end","name":"end","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.EventSubscription.EventSubscription","signatures":[{"raw":"void end(@Nullable Throwable failure)","params":[{"name":"failure","type":"Throwable"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Ends this subscription as the control client saw it end, recording why. Unlike {@link #close()}, events already delivered stay readable."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/EventSubscription.java","line":706,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.EventSubscription.end","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.EventSubscription.EventSubscription.end","product":"core","slug":"io-github-libtmux-control-eventsubscription-eventsubscription-end"},{"id":"io.github.libtmux.control.EventSubscription.EventSubscription.finish","name":"finish","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.EventSubscription.EventSubscription","signatures":[{"raw":"void finish()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Ends this subscription as a producer with nothing more to send: not a failure, and nothing is discarded."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/EventSubscription.java","line":711,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.EventSubscription.finish","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.EventSubscription.EventSubscription.finish","product":"core","slug":"io-github-libtmux-control-eventsubscription-eventsubscription-finish"},{"id":"io.github.libtmux.control.Notification.Notification","name":"Notification","kind":"interface","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"What a control-mode notification says, typed, for matching on.","body":"Sealed, with {@link Unknown} as the case for everything else. tmux adds notifications between\nreleases, and a closed set with nowhere to put a new one would drop it; here a notification this\nlibrary does not model yet still arrives, as {@code Unknown}, and {@link ControlEvent#kind()} and\n{@link ControlEvent#fields()} still carry what tmux wrote.\n\nThe forms are tmux's own, from {@code control-notify.c}. A name — of a window, a session, a\nclient — is everything after the id, spaces included, as tmux writes it.","examples":[{"lang":"java","code":"switch (event.notification()) {\n case Notification.WindowRenamed(WindowId window, String name, boolean attached) -> relabel(window, name);\n case Notification.SessionsChanged changed -> refreshSessions();\n default -> {}\n}"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification","product":"core","slug":"io-github-libtmux-control-notification-notification"},{"id":"io.github.libtmux.control.Notification.Notification.WindowAdded","name":"WindowAdded","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record WindowAdded(WindowId window, boolean attached) implements Notification","params":[{"name":"window","type":"WindowId"},{"name":"attached","type":"boolean"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %window-add}: a window was created; {@code attached} is false for {@code unlinked-window-add}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.WindowAdded","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.WindowAdded","product":"core","slug":"io-github-libtmux-control-notification-notification-windowadded"},{"id":"io.github.libtmux.control.Notification.Notification.WindowAdded.window","name":"window","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.WindowAdded","modifiers":[],"signatures":[{"params":[],"returns":"WindowId"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.WindowAdded.window","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.WindowAdded.window","product":"core","slug":"io-github-libtmux-control-notification-notification-windowadded-window"},{"id":"io.github.libtmux.control.Notification.Notification.WindowAdded.attached","name":"attached","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.WindowAdded","modifiers":[],"signatures":[{"params":[],"returns":"boolean"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.WindowAdded.attached","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.WindowAdded.attached","product":"core","slug":"io-github-libtmux-control-notification-notification-windowadded-attached"},{"id":"io.github.libtmux.control.Notification.Notification.WindowClosed","name":"WindowClosed","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record WindowClosed(WindowId window, boolean attached) implements Notification","params":[{"name":"window","type":"WindowId"},{"name":"attached","type":"boolean"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %window-close}: a window was destroyed; {@code attached} as for {@link WindowAdded}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":34,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.WindowClosed","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.WindowClosed","product":"core","slug":"io-github-libtmux-control-notification-notification-windowclosed"},{"id":"io.github.libtmux.control.Notification.Notification.WindowClosed.window","name":"window","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.WindowClosed","modifiers":[],"signatures":[{"params":[],"returns":"WindowId"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.WindowClosed.window","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.WindowClosed.window","product":"core","slug":"io-github-libtmux-control-notification-notification-windowclosed-window"},{"id":"io.github.libtmux.control.Notification.Notification.WindowClosed.attached","name":"attached","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.WindowClosed","modifiers":[],"signatures":[{"params":[],"returns":"boolean"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.WindowClosed.attached","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.WindowClosed.attached","product":"core","slug":"io-github-libtmux-control-notification-notification-windowclosed-attached"},{"id":"io.github.libtmux.control.Notification.Notification.WindowRenamed","name":"WindowRenamed","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record WindowRenamed(WindowId window, String name, boolean attached) implements Notification","params":[{"name":"window","type":"WindowId"},{"name":"name","type":"String"},{"name":"attached","type":"boolean"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %window-renamed}: a window has a new name; {@code attached} as for {@link WindowAdded}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.WindowRenamed","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.WindowRenamed","product":"core","slug":"io-github-libtmux-control-notification-notification-windowrenamed"},{"id":"io.github.libtmux.control.Notification.Notification.WindowRenamed.window","name":"window","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.WindowRenamed","modifiers":[],"signatures":[{"params":[],"returns":"WindowId"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.WindowRenamed.window","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.WindowRenamed.window","product":"core","slug":"io-github-libtmux-control-notification-notification-windowrenamed-window"},{"id":"io.github.libtmux.control.Notification.Notification.WindowRenamed.name","name":"name","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.WindowRenamed","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.WindowRenamed.name","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.WindowRenamed.name","product":"core","slug":"io-github-libtmux-control-notification-notification-windowrenamed-name"},{"id":"io.github.libtmux.control.Notification.Notification.WindowRenamed.attached","name":"attached","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.WindowRenamed","modifiers":[],"signatures":[{"params":[],"returns":"boolean"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.WindowRenamed.attached","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.WindowRenamed.attached","product":"core","slug":"io-github-libtmux-control-notification-notification-windowrenamed-attached"},{"id":"io.github.libtmux.control.Notification.Notification.WindowPaneChanged","name":"WindowPaneChanged","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record WindowPaneChanged(WindowId window, PaneId pane) implements Notification","params":[{"name":"window","type":"WindowId"},{"name":"pane","type":"PaneId"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %window-pane-changed}: a window's active pane changed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":40,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.WindowPaneChanged","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.WindowPaneChanged","product":"core","slug":"io-github-libtmux-control-notification-notification-windowpanechanged"},{"id":"io.github.libtmux.control.Notification.Notification.WindowPaneChanged.window","name":"window","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.WindowPaneChanged","modifiers":[],"signatures":[{"params":[],"returns":"WindowId"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.WindowPaneChanged.window","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.WindowPaneChanged.window","product":"core","slug":"io-github-libtmux-control-notification-notification-windowpanechanged-window"},{"id":"io.github.libtmux.control.Notification.Notification.WindowPaneChanged.pane","name":"pane","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.WindowPaneChanged","modifiers":[],"signatures":[{"params":[],"returns":"PaneId"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.WindowPaneChanged.pane","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.WindowPaneChanged.pane","product":"core","slug":"io-github-libtmux-control-notification-notification-windowpanechanged-pane"},{"id":"io.github.libtmux.control.Notification.Notification.LayoutChanged","name":"LayoutChanged","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record LayoutChanged(WindowId window, WindowLayout layout) implements Notification","params":[{"name":"window","type":"WindowId"},{"name":"layout","type":"WindowLayout"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %layout-change}: a window's layout changed, in whichever form tmux reports it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":43,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.LayoutChanged","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.LayoutChanged","product":"core","slug":"io-github-libtmux-control-notification-notification-layoutchanged"},{"id":"io.github.libtmux.control.Notification.Notification.LayoutChanged.window","name":"window","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.LayoutChanged","modifiers":[],"signatures":[{"params":[],"returns":"WindowId"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.LayoutChanged.window","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.LayoutChanged.window","product":"core","slug":"io-github-libtmux-control-notification-notification-layoutchanged-window"},{"id":"io.github.libtmux.control.Notification.Notification.LayoutChanged.layout","name":"layout","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.LayoutChanged","modifiers":[],"signatures":[{"params":[],"returns":"WindowLayout"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.LayoutChanged.layout","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.LayoutChanged.layout","product":"core","slug":"io-github-libtmux-control-notification-notification-layoutchanged-layout"},{"id":"io.github.libtmux.control.Notification.Notification.SessionChanged","name":"SessionChanged","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record SessionChanged(SessionId session, String name) implements Notification","params":[{"name":"session","type":"SessionId"},{"name":"name","type":"String"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %session-changed}: the attached client is now attached to this session."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":46,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.SessionChanged","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.SessionChanged","product":"core","slug":"io-github-libtmux-control-notification-notification-sessionchanged"},{"id":"io.github.libtmux.control.Notification.Notification.SessionChanged.session","name":"session","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.SessionChanged","modifiers":[],"signatures":[{"params":[],"returns":"SessionId"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.SessionChanged.session","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.SessionChanged.session","product":"core","slug":"io-github-libtmux-control-notification-notification-sessionchanged-session"},{"id":"io.github.libtmux.control.Notification.Notification.SessionChanged.name","name":"name","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.SessionChanged","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.SessionChanged.name","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.SessionChanged.name","product":"core","slug":"io-github-libtmux-control-notification-notification-sessionchanged-name"},{"id":"io.github.libtmux.control.Notification.Notification.SessionRenamed","name":"SessionRenamed","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record SessionRenamed(SessionId session, String name) implements Notification","params":[{"name":"session","type":"SessionId"},{"name":"name","type":"String"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %session-renamed}: a session has a new name."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":49,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.SessionRenamed","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.SessionRenamed","product":"core","slug":"io-github-libtmux-control-notification-notification-sessionrenamed"},{"id":"io.github.libtmux.control.Notification.Notification.SessionRenamed.session","name":"session","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.SessionRenamed","modifiers":[],"signatures":[{"params":[],"returns":"SessionId"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.SessionRenamed.session","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.SessionRenamed.session","product":"core","slug":"io-github-libtmux-control-notification-notification-sessionrenamed-session"},{"id":"io.github.libtmux.control.Notification.Notification.SessionRenamed.name","name":"name","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.SessionRenamed","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.SessionRenamed.name","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.SessionRenamed.name","product":"core","slug":"io-github-libtmux-control-notification-notification-sessionrenamed-name"},{"id":"io.github.libtmux.control.Notification.Notification.SessionsChanged","name":"SessionsChanged","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record SessionsChanged() implements Notification","params":[]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %sessions-changed}: a session was created or destroyed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":52,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.SessionsChanged","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.SessionsChanged","product":"core","slug":"io-github-libtmux-control-notification-notification-sessionschanged"},{"id":"io.github.libtmux.control.Notification.Notification.SessionWindowChanged","name":"SessionWindowChanged","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record SessionWindowChanged(SessionId session, WindowId window) implements Notification","params":[{"name":"session","type":"SessionId"},{"name":"window","type":"WindowId"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %session-window-changed}: a session's current window changed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":55,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.SessionWindowChanged","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.SessionWindowChanged","product":"core","slug":"io-github-libtmux-control-notification-notification-sessionwindowchanged"},{"id":"io.github.libtmux.control.Notification.Notification.SessionWindowChanged.session","name":"session","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.SessionWindowChanged","modifiers":[],"signatures":[{"params":[],"returns":"SessionId"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.SessionWindowChanged.session","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.SessionWindowChanged.session","product":"core","slug":"io-github-libtmux-control-notification-notification-sessionwindowchanged-session"},{"id":"io.github.libtmux.control.Notification.Notification.SessionWindowChanged.window","name":"window","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.SessionWindowChanged","modifiers":[],"signatures":[{"params":[],"returns":"WindowId"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.SessionWindowChanged.window","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.SessionWindowChanged.window","product":"core","slug":"io-github-libtmux-control-notification-notification-sessionwindowchanged-window"},{"id":"io.github.libtmux.control.Notification.Notification.ClientSessionChanged","name":"ClientSessionChanged","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record ClientSessionChanged(String client, SessionId session, String name) implements Notification","params":[{"name":"client","type":"String"},{"name":"session","type":"SessionId"},{"name":"name","type":"String"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %client-session-changed}: another client is now attached to this session."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":58,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.ClientSessionChanged","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.ClientSessionChanged","product":"core","slug":"io-github-libtmux-control-notification-notification-clientsessionchanged"},{"id":"io.github.libtmux.control.Notification.Notification.ClientSessionChanged.client","name":"client","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.ClientSessionChanged","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.ClientSessionChanged.client","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.ClientSessionChanged.client","product":"core","slug":"io-github-libtmux-control-notification-notification-clientsessionchanged-client"},{"id":"io.github.libtmux.control.Notification.Notification.ClientSessionChanged.session","name":"session","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.ClientSessionChanged","modifiers":[],"signatures":[{"params":[],"returns":"SessionId"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.ClientSessionChanged.session","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.ClientSessionChanged.session","product":"core","slug":"io-github-libtmux-control-notification-notification-clientsessionchanged-session"},{"id":"io.github.libtmux.control.Notification.Notification.ClientSessionChanged.name","name":"name","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.ClientSessionChanged","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.ClientSessionChanged.name","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.ClientSessionChanged.name","product":"core","slug":"io-github-libtmux-control-notification-notification-clientsessionchanged-name"},{"id":"io.github.libtmux.control.Notification.Notification.ClientDetached","name":"ClientDetached","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record ClientDetached(String client) implements Notification","params":[{"name":"client","type":"String"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %client-detached}: a client detached."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":61,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.ClientDetached","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.ClientDetached","product":"core","slug":"io-github-libtmux-control-notification-notification-clientdetached"},{"id":"io.github.libtmux.control.Notification.Notification.ClientDetached.client","name":"client","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.ClientDetached","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.ClientDetached.client","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.ClientDetached.client","product":"core","slug":"io-github-libtmux-control-notification-notification-clientdetached-client"},{"id":"io.github.libtmux.control.Notification.Notification.PaneModeChanged","name":"PaneModeChanged","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record PaneModeChanged(PaneId pane) implements Notification","params":[{"name":"pane","type":"PaneId"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %pane-mode-changed}: a pane entered or left a mode."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":64,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.PaneModeChanged","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.PaneModeChanged","product":"core","slug":"io-github-libtmux-control-notification-notification-panemodechanged"},{"id":"io.github.libtmux.control.Notification.Notification.PaneModeChanged.pane","name":"pane","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.PaneModeChanged","modifiers":[],"signatures":[{"params":[],"returns":"PaneId"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.PaneModeChanged.pane","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.PaneModeChanged.pane","product":"core","slug":"io-github-libtmux-control-notification-notification-panemodechanged-pane"},{"id":"io.github.libtmux.control.Notification.Notification.PasteBufferChanged","name":"PasteBufferChanged","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record PasteBufferChanged(String buffer) implements Notification","params":[{"name":"buffer","type":"String"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %paste-buffer-changed}: a paste buffer was created or changed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":67,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.PasteBufferChanged","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.PasteBufferChanged","product":"core","slug":"io-github-libtmux-control-notification-notification-pastebufferchanged"},{"id":"io.github.libtmux.control.Notification.Notification.PasteBufferChanged.buffer","name":"buffer","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.PasteBufferChanged","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.PasteBufferChanged.buffer","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.PasteBufferChanged.buffer","product":"core","slug":"io-github-libtmux-control-notification-notification-pastebufferchanged-buffer"},{"id":"io.github.libtmux.control.Notification.Notification.PasteBufferDeleted","name":"PasteBufferDeleted","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record PasteBufferDeleted(String buffer) implements Notification","params":[{"name":"buffer","type":"String"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %paste-buffer-deleted}: a paste buffer was deleted."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":70,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.PasteBufferDeleted","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.PasteBufferDeleted","product":"core","slug":"io-github-libtmux-control-notification-notification-pastebufferdeleted"},{"id":"io.github.libtmux.control.Notification.Notification.PasteBufferDeleted.buffer","name":"buffer","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.PasteBufferDeleted","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.PasteBufferDeleted.buffer","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.PasteBufferDeleted.buffer","product":"core","slug":"io-github-libtmux-control-notification-notification-pastebufferdeleted-buffer"},{"id":"io.github.libtmux.control.Notification.Notification.SubscriptionChanged","name":"SubscriptionChanged","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record SubscriptionChanged(\n String name, String value, Optional session, Optional window, Optional pane)\n implements Notification","params":[{"name":"name","type":"String","doc":"what the subscription was registered under"},{"name":"value","type":"String","doc":"what the format expanded to"},{"name":"session","type":"Optional","doc":"the session it is about, when tmux named one"},{"name":"window","type":"Optional","doc":"the window, when tmux named one"},{"name":"pane","type":"Optional","doc":"the pane, when tmux named one"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %subscription-changed}: a watched format has a new value."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":81,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.SubscriptionChanged","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.SubscriptionChanged","product":"core","slug":"io-github-libtmux-control-notification-notification-subscriptionchanged"},{"id":"io.github.libtmux.control.Notification.Notification.SubscriptionChanged.name","name":"name","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.SubscriptionChanged","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"what the subscription was registered under"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.SubscriptionChanged.name","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.SubscriptionChanged.name","product":"core","slug":"io-github-libtmux-control-notification-notification-subscriptionchanged-name"},{"id":"io.github.libtmux.control.Notification.Notification.SubscriptionChanged.value","name":"value","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.SubscriptionChanged","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"what the format expanded to"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.SubscriptionChanged.value","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.SubscriptionChanged.value","product":"core","slug":"io-github-libtmux-control-notification-notification-subscriptionchanged-value"},{"id":"io.github.libtmux.control.Notification.Notification.SubscriptionChanged.session","name":"session","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.SubscriptionChanged","modifiers":[],"signatures":[{"params":[],"returns":"Optional"}],"doc":{"summary":"the session it is about, when tmux named one"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.SubscriptionChanged.session","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.SubscriptionChanged.session","product":"core","slug":"io-github-libtmux-control-notification-notification-subscriptionchanged-session"},{"id":"io.github.libtmux.control.Notification.Notification.SubscriptionChanged.window","name":"window","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.SubscriptionChanged","modifiers":[],"signatures":[{"params":[],"returns":"Optional"}],"doc":{"summary":"the window, when tmux named one"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.SubscriptionChanged.window","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.SubscriptionChanged.window","product":"core","slug":"io-github-libtmux-control-notification-notification-subscriptionchanged-window"},{"id":"io.github.libtmux.control.Notification.Notification.SubscriptionChanged.pane","name":"pane","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.SubscriptionChanged","modifiers":[],"signatures":[{"params":[],"returns":"Optional"}],"doc":{"summary":"the pane, when tmux named one"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.SubscriptionChanged.pane","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.SubscriptionChanged.pane","product":"core","slug":"io-github-libtmux-control-notification-notification-subscriptionchanged-pane"},{"id":"io.github.libtmux.control.Notification.Notification.Pause","name":"Pause","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record Pause(PaneId pane) implements Notification","params":[{"name":"pane","type":"PaneId"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %pause}: tmux stopped sending a pane's output to this client, which turned flow control on with {@code refresh-client -f pause-after=N} and fell N seconds behind. {@code refresh-client -A '%1:continue'} resumes it. tmux 3.2 and later."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":90,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.Pause","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.Pause","product":"core","slug":"io-github-libtmux-control-notification-notification-pause"},{"id":"io.github.libtmux.control.Notification.Notification.Pause.pane","name":"pane","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.Pause","modifiers":[],"signatures":[{"params":[],"returns":"PaneId"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.Pause.pane","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.Pause.pane","product":"core","slug":"io-github-libtmux-control-notification-notification-pause-pane"},{"id":"io.github.libtmux.control.Notification.Notification.Continue","name":"Continue","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record Continue(PaneId pane) implements Notification","params":[{"name":"pane","type":"PaneId"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %continue}: a paused pane's output flows to this client again. tmux 3.2 and later."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":93,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.Continue","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.Continue","product":"core","slug":"io-github-libtmux-control-notification-notification-continue"},{"id":"io.github.libtmux.control.Notification.Notification.Continue.pane","name":"pane","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.Continue","modifiers":[],"signatures":[{"params":[],"returns":"PaneId"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.Continue.pane","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.Continue.pane","product":"core","slug":"io-github-libtmux-control-notification-notification-continue-pane"},{"id":"io.github.libtmux.control.Notification.Notification.Message","name":"Message","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record Message(String text) implements Notification","params":[{"name":"text","type":"String"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %message}: text another client showed on this one with {@code display-message -c}. tmux 3.4 and later."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":96,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.Message","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.Message","product":"core","slug":"io-github-libtmux-control-notification-notification-message"},{"id":"io.github.libtmux.control.Notification.Notification.Message.text","name":"text","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.Message","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.Message.text","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.Message.text","product":"core","slug":"io-github-libtmux-control-notification-notification-message-text"},{"id":"io.github.libtmux.control.Notification.Notification.ConfigError","name":"ConfigError","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record ConfigError(String cause) implements Notification","params":[{"name":"cause","type":"String"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %config-error}: a configuration file tmux loaded for this client had an error. tmux 3.4 and later."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":99,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.ConfigError","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.ConfigError","product":"core","slug":"io-github-libtmux-control-notification-notification-configerror"},{"id":"io.github.libtmux.control.Notification.Notification.ConfigError.cause","name":"cause","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.ConfigError","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.ConfigError.cause","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.ConfigError.cause","product":"core","slug":"io-github-libtmux-control-notification-notification-configerror-cause"},{"id":"io.github.libtmux.control.Notification.Notification.Exit","name":"Exit","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record Exit(Optional reason) implements Notification","params":[{"name":"reason","type":"Optional"}]}],"typeScopeBoundary":true,"doc":{"summary":"{@code %exit}: the client is exiting, with tmux's reason when it gave one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":102,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.Exit","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.Exit","product":"core","slug":"io-github-libtmux-control-notification-notification-exit"},{"id":"io.github.libtmux.control.Notification.Notification.Exit.reason","name":"reason","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.Exit","modifiers":[],"signatures":[{"params":[],"returns":"Optional"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.Exit.reason","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.Exit.reason","product":"core","slug":"io-github-libtmux-control-notification-notification-exit-reason"},{"id":"io.github.libtmux.control.Notification.Notification.Unknown","name":"Unknown","kind":"class","modifiers":[],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"record Unknown(String kind) implements Notification","params":[{"name":"kind","type":"String"}]}],"typeScopeBoundary":true,"doc":{"summary":"A notification this library does not model; {@link ControlEvent} still carries all of it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":105,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.Unknown","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.Unknown","product":"core","slug":"io-github-libtmux-control-notification-notification-unknown"},{"id":"io.github.libtmux.control.Notification.Notification.Unknown.kind","name":"kind","kind":"method","parent":"io.github.libtmux.control.Notification.Notification.Unknown","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.Unknown.kind","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.Unknown.kind","product":"core","slug":"io-github-libtmux-control-notification-notification-unknown-kind"},{"id":"io.github.libtmux.control.Notification.Notification.read","name":"read","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.control.Notification.Notification","signatures":[{"raw":"static Notification read(String kind, String rest, Optional value)","params":[{"name":"kind","type":"String","doc":"the name without its {@code %}"},{"name":"rest","type":"String","doc":"what followed the name, as tmux wrote it, without any {@code \" : \"} value"},{"name":"value","type":"Optional","doc":"what followed {@code \" : \"}, which only a subscription carries"}],"returns":"Notification","typeScopeBoundary":true}],"doc":{"summary":"Reads one notification from its kind and the text after it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/Notification.java","line":114,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.Notification.read","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.Notification.Notification.read","product":"core","slug":"io-github-libtmux-control-notification-notification-read"},{"id":"io.github.libtmux.control.PaneOutput.PaneOutput","name":"PaneOutput","kind":"class","modifiers":[],"signatures":[{"raw":"public record PaneOutput(PaneId pane, String data, ByteBuffer bytes)","params":[{"name":"pane","type":"PaneId","doc":"the pane that produced it"},{"name":"data","type":"String","doc":"this piece as text"},{"name":"bytes","type":"ByteBuffer","doc":"this piece exactly, read-only"}]}],"typeScopeBoundary":false,"doc":{"summary":"Terminal output tmux pushed without being asked.","body":"tmux cuts a pane's output into pieces by byte count, not by character. {@code bytes} is\nexactly what one piece carried, so a pane's pieces concatenate to what it wrote. {@code data} is\nthe same output as text, decoded per pane: a character cut between two pieces arrives whole with\nthe later one, and a byte that is not UTF-8 is written {@code \\xHH}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/PaneOutput.java","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.PaneOutput","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.PaneOutput.PaneOutput","product":"core","slug":"io-github-libtmux-control-paneoutput-paneoutput"},{"id":"io.github.libtmux.control.PaneOutput.PaneOutput.PaneOutput","name":"PaneOutput","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.PaneOutput.PaneOutput","signatures":[{"raw":"public PaneOutput(PaneId pane, String data)","params":[{"name":"pane","type":"PaneId"},{"name":"data","type":"String"}],"typeScopeBoundary":false}],"doc":{"summary":"Output whose bytes are {@code data} in UTF-8."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/PaneOutput.java","line":33,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.PaneOutput.PaneOutput","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.PaneOutput.PaneOutput.PaneOutput","product":"core","slug":"io-github-libtmux-control-paneoutput-paneoutput-paneoutput"},{"id":"io.github.libtmux.control.PaneOutput.PaneOutput.bytes","name":"bytes","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.PaneOutput.PaneOutput","signatures":[{"raw":"@Override\n public ByteBuffer bytes()","params":[],"returns":"ByteBuffer","typeScopeBoundary":false}],"doc":{"summary":"This piece's bytes, read-only, positioned at the first."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/PaneOutput.java","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.PaneOutput.bytes","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.PaneOutput.PaneOutput.bytes","product":"core","slug":"io-github-libtmux-control-paneoutput-paneoutput-bytes"},{"id":"io.github.libtmux.control.PaneOutput.PaneOutput.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.control.PaneOutput.PaneOutput","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"Identifies the pane only: the data is terminal content."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/PaneOutput.java","line":44,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.PaneOutput.toString","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.PaneOutput.PaneOutput.toString","product":"core","slug":"io-github-libtmux-control-paneoutput-paneoutput-tostring"},{"id":"io.github.libtmux.control.PaneOutput.PaneOutput.pane","name":"pane","kind":"method","parent":"io.github.libtmux.control.PaneOutput.PaneOutput","modifiers":[],"signatures":[{"params":[],"returns":"PaneId"}],"doc":{"summary":"the pane that produced it"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/PaneOutput.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.PaneOutput.pane","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.PaneOutput.PaneOutput.pane","product":"core","slug":"io-github-libtmux-control-paneoutput-paneoutput-pane"},{"id":"io.github.libtmux.control.PaneOutput.PaneOutput.data","name":"data","kind":"method","parent":"io.github.libtmux.control.PaneOutput.PaneOutput","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"this piece as text"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/control/PaneOutput.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.control.PaneOutput.data","namespace":"io.github.libtmux.control","publicId":"io.github.libtmux.control.PaneOutput.PaneOutput.data","product":"core","slug":"io-github-libtmux-control-paneoutput-paneoutput-data"},{"id":"io.github.libtmux.Dimensions.Dimensions","name":"Dimensions","kind":"class","modifiers":[],"signatures":[{"raw":"public record Dimensions(int width, int height)","params":[{"name":"width","type":"int","doc":"columns"},{"name":"height","type":"int","doc":"rows"}]}],"typeScopeBoundary":false,"doc":{"summary":"How big something is, in terminal cells.","body":"A pair rather than two loose numbers, because width and height are only meaningful together and\na call site that takes them separately can transpose them without the compiler noticing."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Dimensions.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Dimensions","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Dimensions.Dimensions","product":"core","slug":"io-github-libtmux-dimensions-dimensions"},{"id":"io.github.libtmux.Dimensions.Dimensions.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.Dimensions.Dimensions","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Dimensions.java","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Dimensions.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Dimensions.Dimensions.toString","product":"core","slug":"io-github-libtmux-dimensions-dimensions-tostring"},{"id":"io.github.libtmux.Dimensions.Dimensions.width","name":"width","kind":"method","parent":"io.github.libtmux.Dimensions.Dimensions","modifiers":[],"signatures":[{"params":[],"returns":"int"}],"doc":{"summary":"columns"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Dimensions.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Dimensions.width","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Dimensions.Dimensions.width","product":"core","slug":"io-github-libtmux-dimensions-dimensions-width"},{"id":"io.github.libtmux.Dimensions.Dimensions.height","name":"height","kind":"method","parent":"io.github.libtmux.Dimensions.Dimensions","modifiers":[],"signatures":[{"params":[],"returns":"int"}],"doc":{"summary":"rows"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Dimensions.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Dimensions.height","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Dimensions.Dimensions.height","product":"core","slug":"io-github-libtmux-dimensions-dimensions-height"},{"id":"io.github.libtmux.Direction.Direction","name":"Direction","kind":"enum","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Which way to move or grow something.","body":"An enum rather than tmux's {@code -U -D -L -R} flags, so a call site says which way it means\nand a wrong direction cannot be spelled at all."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Direction.java","line":9,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Direction","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Direction.Direction","product":"core","slug":"io-github-libtmux-direction-direction"},{"id":"io.github.libtmux.Direction.Direction.UP","name":"UP","kind":"constant","modifiers":[],"parent":"io.github.libtmux.Direction.Direction","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/Direction.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Direction.UP","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Direction.Direction.UP","product":"core","slug":"io-github-libtmux-direction-direction-up"},{"id":"io.github.libtmux.Direction.Direction.DOWN","name":"DOWN","kind":"constant","modifiers":[],"parent":"io.github.libtmux.Direction.Direction","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/Direction.java","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Direction.DOWN","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Direction.Direction.DOWN","product":"core","slug":"io-github-libtmux-direction-direction-down"},{"id":"io.github.libtmux.Direction.Direction.LEFT","name":"LEFT","kind":"constant","modifiers":[],"parent":"io.github.libtmux.Direction.Direction","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/Direction.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Direction.LEFT","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Direction.Direction.LEFT","product":"core","slug":"io-github-libtmux-direction-direction-left"},{"id":"io.github.libtmux.Direction.Direction.RIGHT","name":"RIGHT","kind":"constant","modifiers":[],"parent":"io.github.libtmux.Direction.Direction","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/Direction.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Direction.RIGHT","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Direction.Direction.RIGHT","product":"core","slug":"io-github-libtmux-direction-direction-right"},{"id":"io.github.libtmux.Direction.Direction.Direction","name":"Direction","kind":"method","modifiers":[],"parent":"io.github.libtmux.Direction.Direction","signatures":[{"raw":"Direction(String flag)","params":[{"name":"flag","type":"String"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Direction.java","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Direction.Direction","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Direction.Direction.Direction","product":"core","slug":"io-github-libtmux-direction-direction-direction"},{"id":"io.github.libtmux.Direction.Direction.flag","name":"flag","kind":"method","modifiers":[],"parent":"io.github.libtmux.Direction.Direction","signatures":[{"raw":"String flag()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The tmux flag that selects this direction."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Direction.java","line":22,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Direction.flag","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Direction.Direction.flag","product":"core","slug":"io-github-libtmux-direction-direction-flag"},{"id":"io.github.libtmux.Environment.Environment","name":"Environment","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The environment tmux gives to processes it starts, at one scope.","body":"tmux keeps one environment per server and one per session, and hands the result to every\nprocess it spawns afterwards. That is what this is for: a pane opened later sees what is set here,\nso it is how a program refreshes a value that goes stale in a long-lived session — {@code\nSSH_AUTH_SOCK} after reconnecting, a token, a display.\n\nA scope is chosen when the view is obtained rather than passed to every call, as {@link\nOptions} does, so a caller cannot read one scope and write another. There are only the two scopes,\nbecause tmux has only those two.\n\nA name is in one of three states, and they are not the same question. It can be *set* to\na value, which {@link #get} answers. It can be *removed*, which is tmux's way of saying a\nnew process should not inherit it even though the server's own environment has it — {@link\n#isRemoved} answers that, and {@link #get} is empty for it. Or it can simply be absent, which is\nboth of those empty."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Environment.java","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Environment","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Environment.Environment","product":"core","slug":"io-github-libtmux-environment-environment"},{"id":"io.github.libtmux.Environment.Environment.global","name":"global","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Environment.Environment","signatures":[{"raw":"static Environment global(Server server)","params":[{"name":"server","type":"Server"}],"returns":"Environment","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Environment.java","line":69,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Environment.global","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Environment.Environment.global","product":"core","slug":"io-github-libtmux-environment-environment-global"},{"id":"io.github.libtmux.Environment.Environment.session","name":"session","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Environment.Environment","signatures":[{"raw":"static Environment session(Server server, ServerSnapshot snapshot, SessionId session)","params":[{"name":"server","type":"Server"},{"name":"snapshot","type":"ServerSnapshot"},{"name":"session","type":"SessionId"}],"returns":"Environment","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Environment.java","line":73,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Environment.session","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Environment.Environment.session","product":"core","slug":"io-github-libtmux-environment-environment-session"},{"id":"io.github.libtmux.Environment.Environment.get","name":"get","kind":"method","modifiers":[],"parent":"io.github.libtmux.Environment.Environment","signatures":[{"raw":"@Operation(Kind.READ)\n public Optional get(String name)","params":[{"name":"name","type":"String"}],"returns":"Optional","typeScopeBoundary":false,"raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if the read otherwise fails"}]}],"doc":{"summary":"The value set for this name, or empty when it is removed or absent."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Environment.java","line":83,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Environment.get","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Environment.Environment.get","product":"core","slug":"io-github-libtmux-environment-environment-get"},{"id":"io.github.libtmux.Environment.Environment.isRemoved","name":"isRemoved","kind":"method","modifiers":[],"parent":"io.github.libtmux.Environment.Environment","signatures":[{"raw":"@Operation(Kind.READ)\n public boolean isRemoved(String name)","params":[{"name":"name","type":"String"}],"returns":"boolean","typeScopeBoundary":false,"raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if the read otherwise fails"}]}],"doc":{"summary":"Whether new processes are told not to inherit this name."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Environment.java","line":94,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Environment.isRemoved","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Environment.Environment.isRemoved","product":"core","slug":"io-github-libtmux-environment-environment-isremoved"},{"id":"io.github.libtmux.Environment.Environment.all","name":"all","kind":"method","modifiers":[],"parent":"io.github.libtmux.Environment.Environment","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public Map all()","params":[],"returns":"Map","typeScopeBoundary":false}],"doc":{"summary":"Every name set at this scope, in tmux's order. Removed names are not values, so not here."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Environment.java","line":100,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Environment.all","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Environment.Environment.all","product":"core","slug":"io-github-libtmux-environment-environment-all"},{"id":"io.github.libtmux.Environment.Environment.effective","name":"effective","kind":"method","modifiers":[],"parent":"io.github.libtmux.Environment.Environment","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public Map effective()","params":[],"returns":"Map","typeScopeBoundary":false,"raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if a read otherwise fails"}]}],"doc":{"summary":"What a process started from this scope is actually handed, both scopes taken together.","body":"{@link #all} answers for one scope, which is what a caller writing to it needs and not what\na pane opened later will see: tmux gives a new process the server's environment with the\nsession's laid over it, minus whatever the session marked as not to be inherited. At the\nserver scope the two are the same thing.\n\nThe counterpart to {@link Options#effective()}, and named after it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Environment.java","line":123,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Environment.effective","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Environment.Environment.effective","product":"core","slug":"io-github-libtmux-environment-environment-effective"},{"id":"io.github.libtmux.Environment.Environment.removed","name":"removed","kind":"method","modifiers":[],"parent":"io.github.libtmux.Environment.Environment","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public Set removed()","params":[],"returns":"Set","typeScopeBoundary":false}],"doc":{"summary":"Every name this scope tells a new process not to inherit."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Environment.java","line":136,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Environment.removed","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Environment.Environment.removed","product":"core","slug":"io-github-libtmux-environment-environment-removed"},{"id":"io.github.libtmux.Environment.Environment.set","name":"set","kind":"method","modifiers":[],"parent":"io.github.libtmux.Environment.Environment","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void set(String name, String value)","params":[{"name":"name","type":"String"},{"name":"value","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Sets a name to a literal value.","body":"The value is not expanded: a {@code #{...}} in it arrives as those characters. {@link\n#setExpanded} is how to ask for the other thing."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Environment.java","line":154,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Environment.set","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Environment.Environment.set","product":"core","slug":"io-github-libtmux-environment-environment-set"},{"id":"io.github.libtmux.Environment.Environment.setExpanded","name":"setExpanded","kind":"method","modifiers":[],"parent":"io.github.libtmux.Environment.Environment","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void setExpanded(String name, String format)","params":[{"name":"name","type":"String"},{"name":"format","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Sets a name to what a tmux format expands to now."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Environment.java","line":160,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Environment.setExpanded","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Environment.Environment.setExpanded","product":"core","slug":"io-github-libtmux-environment-environment-setexpanded"},{"id":"io.github.libtmux.Environment.Environment.unset","name":"unset","kind":"method","modifiers":[],"parent":"io.github.libtmux.Environment.Environment","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void unset(String name)","params":[{"name":"name","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Removes the name from this scope, so it is neither set nor marked."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Environment.java","line":166,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Environment.unset","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Environment.Environment.unset","product":"core","slug":"io-github-libtmux-environment-environment-unset"},{"id":"io.github.libtmux.Environment.Environment.remove","name":"remove","kind":"method","modifiers":[],"parent":"io.github.libtmux.Environment.Environment","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void remove(String name)","params":[{"name":"name","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Tells processes started after this not to inherit the name.","body":"Different from {@link #unset}: the name is remembered, as removed, and tmux subtracts it\nfrom what a new process is given rather than simply not adding it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Environment.java","line":177,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Environment.remove","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Environment.Environment.remove","product":"core","slug":"io-github-libtmux-environment-environment-remove"},{"id":"io.github.libtmux.exception.CardinalityException.CardinalityException","name":"CardinalityException","kind":"class","modifiers":["abstract"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"A lookup that required exactly one match, or at most one, did not get it.","body":"Loosen or tighten the filter, or handle the case explicitly."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/CardinalityException.java","line":8,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.CardinalityException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.CardinalityException.CardinalityException","product":"core","slug":"io-github-libtmux-exception-cardinalityexception-cardinalityexception"},{"id":"io.github.libtmux.exception.CardinalityException.CardinalityException.CardinalityException","name":"CardinalityException","kind":"method","modifiers":[],"parent":"io.github.libtmux.exception.CardinalityException.CardinalityException","signatures":[{"raw":"CardinalityException(String message)","params":[{"name":"message","type":"String"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/CardinalityException.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.CardinalityException.CardinalityException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.CardinalityException.CardinalityException.CardinalityException","product":"core","slug":"io-github-libtmux-exception-cardinalityexception-cardinalityexception-cardinalityexception"},{"id":"io.github.libtmux.exception.CardinalityException.CardinalityException.NoMatch","name":"NoMatch","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.exception.CardinalityException.CardinalityException","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Nothing matched where the caller required something."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/CardinalityException.java","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.CardinalityException.NoMatch","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.CardinalityException.CardinalityException.NoMatch","product":"core","slug":"io-github-libtmux-exception-cardinalityexception-cardinalityexception-nomatch"},{"id":"io.github.libtmux.exception.CardinalityException.CardinalityException.NoMatch.NoMatch","name":"NoMatch","kind":"method","modifiers":[],"parent":"io.github.libtmux.exception.CardinalityException.CardinalityException.NoMatch","signatures":[{"raw":"public NoMatch(String message)","params":[{"name":"message","type":"String"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/CardinalityException.java","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.CardinalityException.NoMatch.NoMatch","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.CardinalityException.CardinalityException.NoMatch.NoMatch","product":"core","slug":"io-github-libtmux-exception-cardinalityexception-cardinalityexception-nomatch-nomatch"},{"id":"io.github.libtmux.exception.CardinalityException.CardinalityException.MultipleMatches","name":"MultipleMatches","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.exception.CardinalityException.CardinalityException","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"More than one thing matched where the caller required at most one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/CardinalityException.java","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.CardinalityException.MultipleMatches","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.CardinalityException.CardinalityException.MultipleMatches","product":"core","slug":"io-github-libtmux-exception-cardinalityexception-cardinalityexception-multiplematches"},{"id":"io.github.libtmux.exception.CardinalityException.CardinalityException.MultipleMatches.MultipleMatches","name":"MultipleMatches","kind":"method","modifiers":[],"parent":"io.github.libtmux.exception.CardinalityException.CardinalityException.MultipleMatches","signatures":[{"raw":"public MultipleMatches(String message, int atLeast)","params":[{"name":"message","type":"String"},{"name":"atLeast","type":"int","doc":"how many matched, at least; never less than two"}],"typeScopeBoundary":false}],"doc":{"summary":""},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/CardinalityException.java","line":33,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.CardinalityException.MultipleMatches.MultipleMatches","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.CardinalityException.CardinalityException.MultipleMatches.MultipleMatches","product":"core","slug":"io-github-libtmux-exception-cardinalityexception-cardinalityexception-multiplematches-multiplematches"},{"id":"io.github.libtmux.exception.CardinalityException.CardinalityException.MultipleMatches.atLeast","name":"atLeast","kind":"method","modifiers":[],"parent":"io.github.libtmux.exception.CardinalityException.CardinalityException.MultipleMatches","signatures":[{"raw":"public int atLeast()","params":[],"returns":"int","typeScopeBoundary":false}],"doc":{"summary":"How many matched, at least.","body":"Exact when the matches came from a capture this library holds, as a handle lookup's do.\n{@link io.github.libtmux.query.Selections} stops at the second match, since its source may be\nlazy or unbounded, so there it is two."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/CardinalityException.java","line":48,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.CardinalityException.MultipleMatches.atLeast","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.CardinalityException.CardinalityException.MultipleMatches.atLeast","product":"core","slug":"io-github-libtmux-exception-cardinalityexception-cardinalityexception-multiplematches-atleast"},{"id":"io.github.libtmux.exception.CommandRejectedException.CommandRejectedException","name":"CommandRejectedException","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"tmux ran a command to completion and refused it.","body":"The request reached a live server and tmux answered no: a duplicate session name, a target it\ncannot find, an option it does not know. Resending the same command gets the same answer, so read\n{@link #errorLines()} and change the request."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/CommandRejectedException.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.CommandRejectedException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.CommandRejectedException.CommandRejectedException","product":"core","slug":"io-github-libtmux-exception-commandrejectedexception-commandrejectedexception"},{"id":"io.github.libtmux.exception.CommandRejectedException.CommandRejectedException.CommandRejectedException","name":"CommandRejectedException","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.exception.CommandRejectedException.CommandRejectedException","signatures":[{"raw":"public CommandRejectedException(String message)","params":[{"name":"message","type":"String"}],"typeScopeBoundary":false},{"raw":"public CommandRejectedException(String message, String command, int exitCode, List errorLines)","params":[{"name":"message","type":"String"},{"name":"command","type":"String"},{"name":"exitCode","type":"int"},{"name":"errorLines","type":"List"}],"typeScopeBoundary":false}],"doc":{"summary":"A refusal of {@code command}, with tmux's exit status and the lines it printed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/CommandRejectedException.java","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.CommandRejectedException.CommandRejectedException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.CommandRejectedException.CommandRejectedException.CommandRejectedException","product":"core","slug":"io-github-libtmux-exception-commandrejectedexception-commandrejectedexception-commandrejectedexception"},{"id":"io.github.libtmux.exception.ControlEndedException.ControlEndedException","name":"ControlEndedException","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The control client ended, and anything reading from it will not resume.","body":"Attach again with {@link io.github.libtmux.Server#control} and read a snapshot: the events this\nclient did not deliver are not replayed, because tmux keeps no history of them. {@link\n#standardError()} is what the tmux process wrote to its error stream, bounded, and empty when it\nwrote nothing."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/ControlEndedException.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.ControlEndedException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.ControlEndedException.ControlEndedException","product":"core","slug":"io-github-libtmux-exception-controlendedexception-controlendedexception"},{"id":"io.github.libtmux.exception.ControlEndedException.ControlEndedException.ControlEndedException","name":"ControlEndedException","kind":"method","modifiers":[],"parent":"io.github.libtmux.exception.ControlEndedException.ControlEndedException","signatures":[{"raw":"public ControlEndedException(String standardError, boolean standardErrorTruncated, @Nullable Throwable cause)","params":[{"name":"standardError","type":"String"},{"name":"standardErrorTruncated","type":"boolean"},{"name":"cause","type":"Throwable"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/ControlEndedException.java","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.ControlEndedException.ControlEndedException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.ControlEndedException.ControlEndedException.ControlEndedException","product":"core","slug":"io-github-libtmux-exception-controlendedexception-controlendedexception-controlendedexception"},{"id":"io.github.libtmux.exception.ControlEndedException.ControlEndedException.standardError","name":"standardError","kind":"method","modifiers":[],"parent":"io.github.libtmux.exception.ControlEndedException.ControlEndedException","signatures":[{"raw":"public String standardError()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The error text captured before the process ended, possibly truncated."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/ControlEndedException.java","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.ControlEndedException.standardError","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.ControlEndedException.ControlEndedException.standardError","product":"core","slug":"io-github-libtmux-exception-controlendedexception-controlendedexception-standarderror"},{"id":"io.github.libtmux.exception.ControlEndedException.ControlEndedException.standardErrorTruncated","name":"standardErrorTruncated","kind":"method","modifiers":[],"parent":"io.github.libtmux.exception.ControlEndedException.ControlEndedException","signatures":[{"raw":"public boolean standardErrorTruncated()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether the error stream continued past the captured bound."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/ControlEndedException.java","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.ControlEndedException.standardErrorTruncated","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.ControlEndedException.ControlEndedException.standardErrorTruncated","product":"core","slug":"io-github-libtmux-exception-controlendedexception-controlendedexception-standarderrortruncated"},{"id":"io.github.libtmux.exception.DispatchException.DispatchException","name":"DispatchException","kind":"class","modifiers":["abstract"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The request did not complete, with how certain it is that tmux applied it.","body":"\"tmux never started\" and \"tmux timed out halfway\" call for opposite recovery, so the certainty\ntravels with the failure. {@link #safeToRetry()} answers the question a caller usually has: whether\nsending the exact same request again can do harm."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/DispatchException.java","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.DispatchException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.DispatchException.DispatchException","product":"core","slug":"io-github-libtmux-exception-dispatchexception-dispatchexception"},{"id":"io.github.libtmux.exception.DispatchException.DispatchException.DispatchException","name":"DispatchException","kind":"method","modifiers":[],"parent":"io.github.libtmux.exception.DispatchException.DispatchException","signatures":[{"raw":"DispatchException(String message, DispatchOutcome outcome, Idempotence idempotence, @Nullable Throwable cause)","params":[{"name":"message","type":"String"},{"name":"outcome","type":"DispatchOutcome"},{"name":"idempotence","type":"Idempotence"},{"name":"cause","type":"Throwable"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/DispatchException.java","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.DispatchException.DispatchException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.DispatchException.DispatchException.DispatchException","product":"core","slug":"io-github-libtmux-exception-dispatchexception-dispatchexception-dispatchexception"},{"id":"io.github.libtmux.exception.DispatchException.DispatchException.outcome","name":"outcome","kind":"method","modifiers":[],"parent":"io.github.libtmux.exception.DispatchException.DispatchException","signatures":[{"raw":"public DispatchOutcome outcome()","params":[],"returns":"DispatchOutcome","typeScopeBoundary":false}],"doc":{"summary":"How certain the transport is that tmux applied the request."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/DispatchException.java","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.DispatchException.outcome","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.DispatchException.DispatchException.outcome","product":"core","slug":"io-github-libtmux-exception-dispatchexception-dispatchexception-outcome"},{"id":"io.github.libtmux.exception.DispatchException.DispatchException.idempotence","name":"idempotence","kind":"method","modifiers":[],"parent":"io.github.libtmux.exception.DispatchException.DispatchException","signatures":[{"raw":"public Idempotence idempotence()","params":[],"returns":"Idempotence","typeScopeBoundary":false}],"doc":{"summary":"Whether every command in the request only reads, so running it twice changes nothing."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/DispatchException.java","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.DispatchException.idempotence","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.DispatchException.DispatchException.idempotence","product":"core","slug":"io-github-libtmux-exception-dispatchexception-dispatchexception-idempotence"},{"id":"io.github.libtmux.exception.DispatchException.DispatchException.safeToRetry","name":"safeToRetry","kind":"method","modifiers":[],"parent":"io.github.libtmux.exception.DispatchException.DispatchException","signatures":[{"raw":"public boolean safeToRetry()","params":[],"returns":"boolean","typeScopeBoundary":false,"returnsDoc":"{@link DispatchOutcome#canRetryVerbatim} for this failure's outcome and idempotence"}],"doc":{"summary":"Whether sending the exact same request again cannot apply it twice."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/DispatchException.java","line":46,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.DispatchException.safeToRetry","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.DispatchException.DispatchException.safeToRetry","product":"core","slug":"io-github-libtmux-exception-dispatchexception-dispatchexception-safetoretry"},{"id":"io.github.libtmux.exception.DispatchException.DispatchException.Failed","name":"Failed","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.exception.DispatchException.DispatchException","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"The transport failed for a reason other than a deadline: tmux could not start, or the channel broke."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/DispatchException.java","line":51,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.DispatchException.Failed","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.DispatchException.DispatchException.Failed","product":"core","slug":"io-github-libtmux-exception-dispatchexception-dispatchexception-failed"},{"id":"io.github.libtmux.exception.DispatchException.DispatchException.Failed.Failed","name":"Failed","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.exception.DispatchException.DispatchException.Failed","signatures":[{"raw":"public Failed(String message, DispatchOutcome outcome, @Nullable Throwable cause)","params":[{"name":"message","type":"String"},{"name":"outcome","type":"DispatchOutcome"},{"name":"cause","type":"Throwable"}],"typeScopeBoundary":false},{"raw":"public Failed(String message, DispatchOutcome outcome, Idempotence idempotence, @Nullable Throwable cause)","params":[{"name":"message","type":"String"},{"name":"outcome","type":"DispatchOutcome"},{"name":"idempotence","type":"Idempotence"},{"name":"cause","type":"Throwable"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/DispatchException.java","line":54,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.DispatchException.Failed.Failed","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.DispatchException.DispatchException.Failed.Failed","product":"core","slug":"io-github-libtmux-exception-dispatchexception-dispatchexception-failed-failed"},{"id":"io.github.libtmux.exception.DispatchException.DispatchException.TimedOut","name":"TimedOut","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.exception.DispatchException.DispatchException","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"The deadline passed before the request finished."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/DispatchException.java","line":64,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.DispatchException.TimedOut","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.DispatchException.DispatchException.TimedOut","product":"core","slug":"io-github-libtmux-exception-dispatchexception-dispatchexception-timedout"},{"id":"io.github.libtmux.exception.DispatchException.DispatchException.TimedOut.TimedOut","name":"TimedOut","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.exception.DispatchException.DispatchException.TimedOut","signatures":[{"raw":"public TimedOut(String message, DispatchOutcome outcome, @Nullable Throwable cause)","params":[{"name":"message","type":"String"},{"name":"outcome","type":"DispatchOutcome"},{"name":"cause","type":"Throwable"}],"typeScopeBoundary":false},{"raw":"public TimedOut(String message, DispatchOutcome outcome, Idempotence idempotence, @Nullable Throwable cause)","params":[{"name":"message","type":"String"},{"name":"outcome","type":"DispatchOutcome"},{"name":"idempotence","type":"Idempotence"},{"name":"cause","type":"Throwable"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/DispatchException.java","line":67,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.DispatchException.TimedOut.TimedOut","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.DispatchException.DispatchException.TimedOut.TimedOut","product":"core","slug":"io-github-libtmux-exception-dispatchexception-dispatchexception-timedout-timedout"},{"id":"io.github.libtmux.exception.LibTmuxException.LibTmuxException","name":"LibTmuxException","kind":"class","modifiers":["abstract"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The root of every operational failure this library raises.","body":"Unchecked, because a tmux failure can arise from any call and forcing every caller to declare\nit would say nothing. Sealed, with every branch abstract, so matching on the permitted subtypes is\nexhaustive in Java, Kotlin and Scala alike.\n\nA failure that came from a tmux command carries that command, its exit status when it has one,\nand the error lines tmux printed. Those lines, and the message that quotes them, name what tmux\nnamed — sessions, windows, panes and buffers included."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/LibTmuxException.java","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.LibTmuxException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.LibTmuxException.LibTmuxException","product":"core","slug":"io-github-libtmux-exception-libtmuxexception-libtmuxexception"},{"id":"io.github.libtmux.exception.LibTmuxException.LibTmuxException.LibTmuxException","name":"LibTmuxException","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.exception.LibTmuxException.LibTmuxException","signatures":[{"raw":"LibTmuxException(String message, @Nullable Throwable cause)","params":[{"name":"message","type":"String"},{"name":"cause","type":"Throwable"}],"typeScopeBoundary":false},{"raw":"LibTmuxException(\n String message,\n @Nullable Throwable cause,\n @Nullable String command,\n int exitCode,\n List errorLines)","params":[{"name":"message","type":"String"},{"name":"cause","type":"Throwable"},{"name":"command","type":"String"},{"name":"exitCode","type":"int"},{"name":"errorLines","type":"List"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/LibTmuxException.java","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.LibTmuxException.LibTmuxException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.LibTmuxException.LibTmuxException.LibTmuxException","product":"core","slug":"io-github-libtmux-exception-libtmuxexception-libtmuxexception-libtmuxexception"},{"id":"io.github.libtmux.exception.LibTmuxException.LibTmuxException.command","name":"command","kind":"method","modifiers":[],"parent":"io.github.libtmux.exception.LibTmuxException.LibTmuxException","signatures":[{"raw":"public Optional command()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The command that failed, when this failure came from one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/LibTmuxException.java","line":54,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.LibTmuxException.command","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.LibTmuxException.LibTmuxException.command","product":"core","slug":"io-github-libtmux-exception-libtmuxexception-libtmuxexception-command"},{"id":"io.github.libtmux.exception.LibTmuxException.LibTmuxException.exitCode","name":"exitCode","kind":"method","modifiers":[],"parent":"io.github.libtmux.exception.LibTmuxException.LibTmuxException","signatures":[{"raw":"public OptionalInt exitCode()","params":[],"returns":"OptionalInt","typeScopeBoundary":false}],"doc":{"summary":"The process exit status, when the failure has one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/LibTmuxException.java","line":59,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.LibTmuxException.exitCode","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.LibTmuxException.LibTmuxException.exitCode","product":"core","slug":"io-github-libtmux-exception-libtmuxexception-libtmuxexception-exitcode"},{"id":"io.github.libtmux.exception.LibTmuxException.LibTmuxException.errorLines","name":"errorLines","kind":"method","modifiers":[],"parent":"io.github.libtmux.exception.LibTmuxException.LibTmuxException","signatures":[{"raw":"@ReadOnly\n public List errorLines()","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"The error lines tmux printed, in full. Empty when this failure has none."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/LibTmuxException.java","line":64,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.LibTmuxException.errorLines","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.LibTmuxException.LibTmuxException.errorLines","product":"core","slug":"io-github-libtmux-exception-libtmuxexception-libtmuxexception-errorlines"},{"id":"io.github.libtmux.exception.MalformedResponseException.MalformedResponseException","name":"MalformedResponseException","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"tmux answered, and the answer did not have the shape this library asked for.","body":"A listing row with the wrong number of fields, a number that did not parse, an identity that\nwas not one row: this library's own template disagreed with what tmux sent. Check the tmux release\nis inside the supported range, and report it if it is."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/MalformedResponseException.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.MalformedResponseException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.MalformedResponseException.MalformedResponseException","product":"core","slug":"io-github-libtmux-exception-malformedresponseexception-malformedresponseexception"},{"id":"io.github.libtmux.exception.MalformedResponseException.MalformedResponseException.MalformedResponseException","name":"MalformedResponseException","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.exception.MalformedResponseException.MalformedResponseException","signatures":[{"raw":"public MalformedResponseException(String message)","params":[{"name":"message","type":"String"}],"typeScopeBoundary":false},{"raw":"public MalformedResponseException(String message, Throwable cause)","params":[{"name":"message","type":"String"},{"name":"cause","type":"Throwable"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/MalformedResponseException.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.MalformedResponseException.MalformedResponseException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.MalformedResponseException.MalformedResponseException.MalformedResponseException","product":"core","slug":"io-github-libtmux-exception-malformedresponseexception-malformedresponseexception-malformedresponseexception"},{"id":"io.github.libtmux.exception.ServerClosedException.ServerClosedException","name":"ServerClosedException","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"A handle was used after the {@link io.github.libtmux.Server} it belongs to was closed.","body":"Programmer error, so deliberately outside {@link LibTmuxException}'s sealed tree: an exhaustive\nmatch over operational failures should not have to decide about a lifecycle bug. {@link\n#outcome()} says whether tmux may have run the call that raced the close."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/ServerClosedException.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.ServerClosedException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.ServerClosedException.ServerClosedException","product":"core","slug":"io-github-libtmux-exception-serverclosedexception-serverclosedexception"},{"id":"io.github.libtmux.exception.ServerClosedException.ServerClosedException.ServerClosedException","name":"ServerClosedException","kind":"method","modifiers":[],"parent":"io.github.libtmux.exception.ServerClosedException.ServerClosedException","signatures":[{"raw":"public ServerClosedException(String message, DispatchOutcome outcome)","params":[{"name":"message","type":"String"},{"name":"outcome","type":"DispatchOutcome"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/ServerClosedException.java","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.ServerClosedException.ServerClosedException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.ServerClosedException.ServerClosedException.ServerClosedException","product":"core","slug":"io-github-libtmux-exception-serverclosedexception-serverclosedexception-serverclosedexception"},{"id":"io.github.libtmux.exception.ServerClosedException.ServerClosedException.outcome","name":"outcome","kind":"method","modifiers":[],"parent":"io.github.libtmux.exception.ServerClosedException.ServerClosedException","signatures":[{"raw":"public DispatchOutcome outcome()","params":[],"returns":"DispatchOutcome","typeScopeBoundary":false}],"doc":{"summary":"{@link DispatchOutcome#NOT_DISPATCHED} when the server was closed before the call reached tmux, {@link DispatchOutcome#UNKNOWN} when a concurrent close ended a tmux already running it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/ServerClosedException.java","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.ServerClosedException.outcome","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.ServerClosedException.ServerClosedException.outcome","product":"core","slug":"io-github-libtmux-exception-serverclosedexception-serverclosedexception-outcome"},{"id":"io.github.libtmux.exception.ServerUnavailableException.ServerUnavailableException","name":"ServerUnavailableException","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"No tmux daemon answered on this endpoint.","body":"Nothing was there to answer, rather than an answer that could not be trusted. Start a server on\ndemand, or treat the endpoint as down."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/ServerUnavailableException.java","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.ServerUnavailableException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.ServerUnavailableException.ServerUnavailableException","product":"core","slug":"io-github-libtmux-exception-serverunavailableexception-serverunavailableexception"},{"id":"io.github.libtmux.exception.ServerUnavailableException.ServerUnavailableException.ServerUnavailableException","name":"ServerUnavailableException","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.exception.ServerUnavailableException.ServerUnavailableException","signatures":[{"raw":"public ServerUnavailableException(String message)","params":[{"name":"message","type":"String"}],"typeScopeBoundary":false},{"raw":"public ServerUnavailableException(String message, String command, int exitCode, List errorLines)","params":[{"name":"message","type":"String"},{"name":"command","type":"String"},{"name":"exitCode","type":"int"},{"name":"errorLines","type":"List"}],"typeScopeBoundary":false}],"doc":{"summary":"A daemon found absent by the command that tried to reach it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/ServerUnavailableException.java","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.ServerUnavailableException.ServerUnavailableException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.ServerUnavailableException.ServerUnavailableException.ServerUnavailableException","product":"core","slug":"io-github-libtmux-exception-serverunavailableexception-serverunavailableexception-serverunavailableexception"},{"id":"io.github.libtmux.exception.TargetGoneException.TargetGoneException","name":"TargetGoneException","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The server answered, and the session, window, pane, buffer or server incarnation a handle addresses is gone.","body":"Re-resolve the handle — run again the lookup or filter that produced it — or stop. An\nunreachable server is a {@link ServerUnavailableException} instead, which calls for something else\nentirely."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/TargetGoneException.java","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.TargetGoneException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.TargetGoneException.TargetGoneException","product":"core","slug":"io-github-libtmux-exception-targetgoneexception-targetgoneexception"},{"id":"io.github.libtmux.exception.TargetGoneException.TargetGoneException.TargetGoneException","name":"TargetGoneException","kind":"method","modifiers":[],"parent":"io.github.libtmux.exception.TargetGoneException.TargetGoneException","signatures":[{"raw":"public TargetGoneException(String message)","params":[{"name":"message","type":"String"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/TargetGoneException.java","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.TargetGoneException.TargetGoneException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.TargetGoneException.TargetGoneException.TargetGoneException","product":"core","slug":"io-github-libtmux-exception-targetgoneexception-targetgoneexception-targetgoneexception"},{"id":"io.github.libtmux.exception.UnencodableTextException.UnencodableTextException","name":"UnencodableTextException","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Text this JVM cannot hand to tmux intact, with no route left to send it by.","body":"A child process receives its arguments as bytes, and the JVM encodes them with the platform's\nnative encoding — which is the locale's, decided before {@code main} runs. In a locale that is\nnot UTF-8 that encoding cannot carry most of Unicode, so tmux would receive {@code ?} where a\ncaller wrote {@code é}. The process transport therefore sends such a command over tmux's standard\ninput instead, which this library encodes itself, and this is raised only when that route is\nalready taken — a command that reads standard input — or when the text is in the endpoint, the\nbinary or socket path, which nothing but an argument can carry.\n\nOnly the environment removes the limit: start the JVM with {@code LC_ALL} or {@code LANG}\nnaming a UTF-8 locale. {@code -Dsun.jnu.encoding} and {@code -Dfile.encoding} do not, because the\nnative encoding is read before either is applied.\n\nASCII text is unaffected on every locale, and so is everything tmux sends back: a reply is\ndecoded as the UTF-8 tmux wrote rather than through the platform's encoding."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/UnencodableTextException.java","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.UnencodableTextException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.UnencodableTextException.UnencodableTextException","product":"core","slug":"io-github-libtmux-exception-unencodabletextexception-unencodabletextexception"},{"id":"io.github.libtmux.exception.UnencodableTextException.UnencodableTextException.UnencodableTextException","name":"UnencodableTextException","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.exception.UnencodableTextException.UnencodableTextException","signatures":[{"raw":"public UnencodableTextException(String message)","params":[{"name":"message","type":"String"}],"typeScopeBoundary":false},{"raw":"public UnencodableTextException(String message, Throwable cause)","params":[{"name":"message","type":"String"},{"name":"cause","type":"Throwable"}],"typeScopeBoundary":false}],"doc":{"summary":"Text refused because of {@code cause}, such as a path the platform cannot represent."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/UnencodableTextException.java","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.UnencodableTextException.UnencodableTextException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.UnencodableTextException.UnencodableTextException.UnencodableTextException","product":"core","slug":"io-github-libtmux-exception-unencodabletextexception-unencodabletextexception-unencodabletextexception"},{"id":"io.github.libtmux.exception.UnsupportedFeatureException.UnsupportedFeatureException","name":"UnsupportedFeatureException","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The running tmux does not have something the call asked for.","body":"Raised instead of dropping the option. The Python sibling warns and carries on, which returns a\npane that differs from the one described in a way nothing downstream can detect; a caller who\nasked for an empty pane and got a shell has no way to notice before something runs in it. Skip the\nfeature, or require a newer tmux.\n\nThe feature and the versions are in the message and not in accessors: a throwable is\nserializable, so exposing a {@link TmuxVersion} here would mean making that serializable too."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/UnsupportedFeatureException.java","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.UnsupportedFeatureException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.UnsupportedFeatureException.UnsupportedFeatureException","product":"core","slug":"io-github-libtmux-exception-unsupportedfeatureexception-unsupportedfeatureexception"},{"id":"io.github.libtmux.exception.UnsupportedFeatureException.UnsupportedFeatureException.UnsupportedFeatureException","name":"UnsupportedFeatureException","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.exception.UnsupportedFeatureException.UnsupportedFeatureException","signatures":[{"raw":"public UnsupportedFeatureException(String feature, TmuxVersion required, TmuxVersion running)","params":[{"name":"feature","type":"String"},{"name":"required","type":"TmuxVersion"},{"name":"running","type":"TmuxVersion"}],"typeScopeBoundary":false},{"raw":"public UnsupportedFeatureException(String message)","params":[{"name":"message","type":"String"}],"typeScopeBoundary":false}],"doc":{"summary":"A feature that needs {@code required} or newer, on a server running {@code running}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/exception/UnsupportedFeatureException.java","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.exception.UnsupportedFeatureException.UnsupportedFeatureException","namespace":"io.github.libtmux.exception","publicId":"io.github.libtmux.exception.UnsupportedFeatureException.UnsupportedFeatureException.UnsupportedFeatureException","product":"core","slug":"io-github-libtmux-exception-unsupportedfeatureexception-unsupportedfeatureexception-unsupportedfeatureexception"},{"id":"io.github.libtmux.format.RowFormat.RowFormat","name":"RowFormat","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"A listing template and the reader for the rows it produces.","body":"tmux returns a listing as plain lines, so what separates one field from the next is whatever\nstring the client put between them — and tmux gives no character a special meaning there. Any\nfixed choice is therefore something a user can put in a window name. A window named with the\nseparator turns an n-field template into n+1 fields and shifts everything after it, so a pane id\narrives where a name belongs, and nothing downstream can tell.\n\nThe separator is generated once per process instead. Colliding with it means naming a window\nwith the exact token this process happened to produce."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/format/RowFormat.java","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.format.RowFormat","namespace":"io.github.libtmux.format","publicId":"io.github.libtmux.format.RowFormat.RowFormat","product":"core","slug":"io-github-libtmux-format-rowformat-rowformat"},{"id":"io.github.libtmux.format.RowFormat.RowFormat.of","name":"of","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.format.RowFormat.RowFormat","signatures":[{"raw":"public static RowFormat of(String... fields)","params":[{"name":"fields","type":"String","variadic":"positional","doc":"tmux format names, without the surrounding {@code #{}}"}],"returns":"RowFormat","typeScopeBoundary":true}],"doc":{"summary":"A format over the given tmux format names, in the order rows will report them."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/format/RowFormat.java","line":45,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.format.RowFormat.of","namespace":"io.github.libtmux.format","publicId":"io.github.libtmux.format.RowFormat.RowFormat.of","product":"core","slug":"io-github-libtmux-format-rowformat-rowformat-of"},{"id":"io.github.libtmux.format.RowFormat.RowFormat.template","name":"template","kind":"method","modifiers":[],"parent":"io.github.libtmux.format.RowFormat.RowFormat","signatures":[{"raw":"public String template()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The argument to pass to tmux's {@code -F}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/format/RowFormat.java","line":53,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.format.RowFormat.template","namespace":"io.github.libtmux.format","publicId":"io.github.libtmux.format.RowFormat.RowFormat.template","product":"core","slug":"io-github-libtmux-format-rowformat-rowformat-template"},{"id":"io.github.libtmux.format.RowFormat.RowFormat.separator","name":"separator","kind":"method","modifiers":[],"parent":"io.github.libtmux.format.RowFormat.RowFormat","signatures":[{"raw":"public String separator()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The token this process separates fields with."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/format/RowFormat.java","line":58,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.format.RowFormat.separator","namespace":"io.github.libtmux.format","publicId":"io.github.libtmux.format.RowFormat.RowFormat.separator","product":"core","slug":"io-github-libtmux-format-rowformat-rowformat-separator"},{"id":"io.github.libtmux.format.RowFormat.RowFormat.terminator","name":"terminator","kind":"method","modifiers":[],"parent":"io.github.libtmux.format.RowFormat.RowFormat","signatures":[{"raw":"String terminator()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/format/RowFormat.java","line":62,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.format.RowFormat.terminator","namespace":"io.github.libtmux.format","publicId":"io.github.libtmux.format.RowFormat.RowFormat.terminator","product":"core","slug":"io-github-libtmux-format-rowformat-rowformat-terminator"},{"id":"io.github.libtmux.format.RowFormat.RowFormat.size","name":"size","kind":"method","modifiers":[],"parent":"io.github.libtmux.format.RowFormat.RowFormat","signatures":[{"raw":"public int size()","params":[],"returns":"int","typeScopeBoundary":false}],"doc":{"summary":"How many fields a row must have."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/format/RowFormat.java","line":67,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.format.RowFormat.size","namespace":"io.github.libtmux.format","publicId":"io.github.libtmux.format.RowFormat.RowFormat.size","product":"core","slug":"io-github-libtmux-format-rowformat-rowformat-size"},{"id":"io.github.libtmux.format.RowFormat.RowFormat.Row","name":"Row","kind":"class","modifiers":["readonly"],"parent":"io.github.libtmux.format.RowFormat.RowFormat","signatures":[],"typeScopeBoundary":false,"doc":{"summary":"One row's values, addressed by the field name that asked for them."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/format/RowFormat.java","line":72,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.format.RowFormat.Row","namespace":"io.github.libtmux.format","publicId":"io.github.libtmux.format.RowFormat.RowFormat.Row","product":"core","slug":"io-github-libtmux-format-rowformat-rowformat-row"},{"id":"io.github.libtmux.format.RowFormat.RowFormat.Row.text","name":"text","kind":"method","modifiers":[],"parent":"io.github.libtmux.format.RowFormat.RowFormat.Row","signatures":[{"raw":"public String text(String field)","params":[{"name":"field","type":"String"}],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The field's value as tmux printed it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/format/RowFormat.java","line":81,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.format.RowFormat.Row.text","namespace":"io.github.libtmux.format","publicId":"io.github.libtmux.format.RowFormat.RowFormat.Row.text","product":"core","slug":"io-github-libtmux-format-rowformat-rowformat-row-text"},{"id":"io.github.libtmux.format.RowFormat.RowFormat.Row.number","name":"number","kind":"method","modifiers":[],"parent":"io.github.libtmux.format.RowFormat.RowFormat.Row","signatures":[{"raw":"public int number(String field)","params":[{"name":"field","type":"String"}],"returns":"int","typeScopeBoundary":false,"raises":[{"type":"MalformedResponseException","doc":"if tmux did not print one"}]}],"doc":{"summary":"The field as a whole number."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/format/RowFormat.java","line":90,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.format.RowFormat.Row.number","namespace":"io.github.libtmux.format","publicId":"io.github.libtmux.format.RowFormat.RowFormat.Row.number","product":"core","slug":"io-github-libtmux-format-rowformat-rowformat-row-number"},{"id":"io.github.libtmux.format.RowFormat.RowFormat.Row.count","name":"count","kind":"method","modifiers":[],"parent":"io.github.libtmux.format.RowFormat.RowFormat.Row","signatures":[{"raw":"public long count(String field)","params":[{"name":"field","type":"String"}],"returns":"long","typeScopeBoundary":false,"raises":[{"type":"MalformedResponseException","doc":"if tmux did not print one"}]}],"doc":{"summary":"The field as a whole count."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/format/RowFormat.java","line":104,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.format.RowFormat.Row.count","namespace":"io.github.libtmux.format","publicId":"io.github.libtmux.format.RowFormat.RowFormat.Row.count","product":"core","slug":"io-github-libtmux-format-rowformat-rowformat-row-count"},{"id":"io.github.libtmux.format.RowFormat.RowFormat.Row.flag","name":"flag","kind":"method","modifiers":[],"parent":"io.github.libtmux.format.RowFormat.RowFormat.Row","signatures":[{"raw":"public boolean flag(String field)","params":[{"name":"field","type":"String"}],"returns":"boolean","typeScopeBoundary":false,"raises":[{"type":"MalformedResponseException","doc":"if tmux printed anything else"}]}],"doc":{"summary":"The field as one of tmux's flags, which it prints as 0 or 1."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/format/RowFormat.java","line":118,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.format.RowFormat.Row.flag","namespace":"io.github.libtmux.format","publicId":"io.github.libtmux.format.RowFormat.RowFormat.Row.flag","product":"core","slug":"io-github-libtmux-format-rowformat-rowformat-row-flag"},{"id":"io.github.libtmux.format.RowFormat.RowFormat.rows","name":"rows","kind":"method","modifiers":[],"parent":"io.github.libtmux.format.RowFormat.RowFormat","signatures":[{"raw":"@ReadOnly\n public List rows(List lines)","params":[{"name":"lines","type":"List","doc":"the listing as tmux printed it"}],"returns":"List","typeScopeBoundary":false,"raises":[{"type":"MalformedResponseException","doc":"if the listing ends mid-row, or a row does not have exactly the expected number of fields"}]}],"doc":{"summary":"Reads a whole listing back into rows.","body":"tmux ends a row with a newline and frames it no other way, so a listing's lines are not its\nrows: a value carrying a newline arrives as several. A working directory may contain one, and\nanything running in a pane may change into it, so this is caller-reachable rather than\ntheoretical. A row is closed by carrying every separator, not by the line ending."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/format/RowFormat.java","line":147,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.format.RowFormat.rows","namespace":"io.github.libtmux.format","publicId":"io.github.libtmux.format.RowFormat.RowFormat.rows","product":"core","slug":"io-github-libtmux-format-rowformat-rowformat-rows"},{"id":"io.github.libtmux.format.RowFormat.RowFormat.split","name":"split","kind":"method","modifiers":[],"parent":"io.github.libtmux.format.RowFormat.RowFormat","signatures":[{"raw":"@ReadOnly\n public List split(String row)","params":[{"name":"row","type":"String"}],"returns":"List","typeScopeBoundary":false,"raises":[{"type":"MalformedResponseException","doc":"if the row does not have exactly the expected number of fields, which is the only chance to notice that something shifted"}]}],"doc":{"summary":"Reads one row back into its fields."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/format/RowFormat.java","line":180,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.format.RowFormat.split","namespace":"io.github.libtmux.format","publicId":"io.github.libtmux.format.RowFormat.RowFormat.split","product":"core","slug":"io-github-libtmux-format-rowformat-rowformat-split"},{"id":"io.github.libtmux.format.Tokens.Tokens","name":"Tokens","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The token this process marks its own text with.","body":"tmux gives no character a special meaning in a name or in output, so any fixed marker is\nsomething a user can produce. One random token per process makes a collision mean naming a window\nwith the exact value this run generated.\n\nHexadecimal, because the token is spliced into tmux format templates and into regular\nexpressions and must be inert in both."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/format/Tokens.java","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.format.Tokens","namespace":"io.github.libtmux.format","publicId":"io.github.libtmux.format.Tokens.Tokens","product":"core","slug":"io-github-libtmux-format-tokens-tokens"},{"id":"io.github.libtmux.format.Tokens.Tokens.perProcess","name":"perProcess","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.format.Tokens.Tokens","signatures":[{"raw":"public static String perProcess()","params":[],"returns":"String","typeScopeBoundary":true}],"doc":{"summary":"A token generated once per process, shared by everything that needs to mark its own text."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/format/Tokens.java","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.format.Tokens.perProcess","namespace":"io.github.libtmux.format","publicId":"io.github.libtmux.format.Tokens.Tokens.perProcess","product":"core","slug":"io-github-libtmux-format-tokens-tokens-perprocess"},{"id":"io.github.libtmux.format.Tokens.Tokens.generate","name":"generate","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.format.Tokens.Tokens","signatures":[{"raw":"static String generate()","params":[],"returns":"String","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/format/Tokens.java","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.format.Tokens.generate","namespace":"io.github.libtmux.format","publicId":"io.github.libtmux.format.Tokens.Tokens.generate","product":"core","slug":"io-github-libtmux-format-tokens-tokens-generate"},{"id":"io.github.libtmux.Hooks.Hooks","name":"Hooks","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The tmux hooks at one scope.","body":"A hook binds a tmux command to an event, so tmux runs it without a client asking.\n\nEvery hook is an array: several commands can hang off one event, and tmux runs them in order.\nThat is why a listing answers with a list per event rather than a value — a hook set once is a\nlist of one, not a special case.\n\nEach hook lives at a particular scope, and not every hook lives at every one.\n{@code pane-focus-in} is a window hook, {@code alert-bell} a session hook. Setting one at a scope\nit does not belong to is accepted and then silently discarded, on every supported release — so a\nhook that never fires is worth checking against {@link #all()} before it is worth debugging."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Hooks.java","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Hooks","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Hooks.Hooks","product":"core","slug":"io-github-libtmux-hooks-hooks"},{"id":"io.github.libtmux.Hooks.Hooks.global","name":"global","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Hooks.Hooks","signatures":[{"raw":"static Hooks global(Server server)","params":[{"name":"server","type":"Server"}],"returns":"Hooks","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Hooks.java","line":42,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Hooks.global","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Hooks.Hooks.global","product":"core","slug":"io-github-libtmux-hooks-hooks-global"},{"id":"io.github.libtmux.Hooks.Hooks.session","name":"session","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Hooks.Hooks","signatures":[{"raw":"static Hooks session(Server server, ServerSnapshot snapshot, SessionId session)","params":[{"name":"server","type":"Server"},{"name":"snapshot","type":"ServerSnapshot"},{"name":"session","type":"SessionId"}],"returns":"Hooks","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Hooks.java","line":46,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Hooks.session","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Hooks.Hooks.session","product":"core","slug":"io-github-libtmux-hooks-hooks-session"},{"id":"io.github.libtmux.Hooks.Hooks.window","name":"window","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Hooks.Hooks","signatures":[{"raw":"static Hooks window(Server server, ServerSnapshot snapshot, WindowId window)","params":[{"name":"server","type":"Server"},{"name":"snapshot","type":"ServerSnapshot"},{"name":"window","type":"WindowId"}],"returns":"Hooks","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Hooks.java","line":50,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Hooks.window","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Hooks.Hooks.window","product":"core","slug":"io-github-libtmux-hooks-hooks-window"},{"id":"io.github.libtmux.Hooks.Hooks.pane","name":"pane","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Hooks.Hooks","signatures":[{"raw":"static Hooks pane(Server server, ServerSnapshot snapshot, PaneId pane)","params":[{"name":"server","type":"Server"},{"name":"snapshot","type":"ServerSnapshot"},{"name":"pane","type":"PaneId"}],"returns":"Hooks","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Hooks.java","line":54,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Hooks.pane","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Hooks.Hooks.pane","product":"core","slug":"io-github-libtmux-hooks-hooks-pane"},{"id":"io.github.libtmux.Hooks.Hooks.set","name":"set","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Hooks.Hooks","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void set(String event, String command)","params":[{"name":"event","type":"String"},{"name":"command","type":"String"}],"returns":"void","typeScopeBoundary":false},{"raw":"@Operation(Kind.MUTATION)\n public void set(String event, List command)","params":[{"name":"event","type":"String"},{"name":"command","type":"List"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Binds a tmux command to an event at this scope, replacing anything already bound to it.","body":"Replacing, not adding: tmux discards the whole array. {@link #append} is how a second\ncommand joins the first."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Hooks.java","line":64,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Hooks.set","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Hooks.Hooks.set","product":"core","slug":"io-github-libtmux-hooks-hooks-set"},{"id":"io.github.libtmux.Hooks.Hooks.append","name":"append","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Hooks.Hooks","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void append(String event, List command)","params":[{"name":"event","type":"String"},{"name":"command","type":"List"}],"returns":"void","typeScopeBoundary":false},{"raw":"@Operation(Kind.MUTATION)\n public void append(String event, String command)","params":[{"name":"event","type":"String"},{"name":"command","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"As {@link #append(String, String)}, with the command as words."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Hooks.java","line":82,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Hooks.append","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Hooks.Hooks.append","product":"core","slug":"io-github-libtmux-hooks-hooks-append"},{"id":"io.github.libtmux.Hooks.Hooks.unset","name":"unset","kind":"method","modifiers":[],"parent":"io.github.libtmux.Hooks.Hooks","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void unset(String event)","params":[{"name":"event","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Removes everything bound to an event at this scope."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Hooks.java","line":101,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Hooks.unset","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Hooks.Hooks.unset","product":"core","slug":"io-github-libtmux-hooks-hooks-unset"},{"id":"io.github.libtmux.Hooks.Hooks.run","name":"run","kind":"method","modifiers":[],"parent":"io.github.libtmux.Hooks.Hooks","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void run(String event)","params":[{"name":"event","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Runs what is bound to an event now, without waiting for the event.","body":"tmux spells this {@code set-hook -R}, which reads as setting something. It runs the hook\nand binds nothing."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Hooks.java","line":112,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Hooks.run","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Hooks.Hooks.run","product":"core","slug":"io-github-libtmux-hooks-hooks-run"},{"id":"io.github.libtmux.Hooks.Hooks.all","name":"all","kind":"method","modifiers":[],"parent":"io.github.libtmux.Hooks.Hooks","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public Map> all()","params":[],"returns":"Map>","typeScopeBoundary":false}],"doc":{"summary":"Every hook at this scope, keyed by event, each with its commands in the order tmux runs them.","body":"tmux prints one line per entry, subscripted — {@code after-new-window[0]}. The subscript is\na position in the list rather than part of the name, so it becomes the ordering here and the\nkey stays the event a caller would look up."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Hooks.java","line":124,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Hooks.all","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Hooks.Hooks.all","product":"core","slug":"io-github-libtmux-hooks-hooks-all"},{"id":"io.github.libtmux.IncarnationFence.IncarnationFence","name":"IncarnationFence","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Which tmux server incarnation a handle or batch may act on: the pid tmux reports, and its start time when known, since a pid alone is reusable — a tmux started on the pid of one just probed, as a container's first processes often are, would otherwise answer as if it were that server.","body":"Every guarded command is sent as tmux's own {@code if-shell -F} test of this condition, so a\nserver that has been replaced under a stale handle is refused before anything runs, rather than\nacting on the wrong incarnation."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/IncarnationFence.java","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.IncarnationFence","namespace":"io.github.libtmux","publicId":"io.github.libtmux.IncarnationFence.IncarnationFence","product":"core","slug":"io-github-libtmux-incarnationfence-incarnationfence"},{"id":"io.github.libtmux.IncarnationFence.IncarnationFence.IncarnationFence","name":"IncarnationFence","kind":"method","modifiers":[],"parent":"io.github.libtmux.IncarnationFence.IncarnationFence","signatures":[{"raw":"IncarnationFence(Server server, ServerIdentity identity)","params":[{"name":"server","type":"Server"},{"name":"identity","type":"ServerIdentity"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/IncarnationFence.java","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.IncarnationFence.IncarnationFence","namespace":"io.github.libtmux","publicId":"io.github.libtmux.IncarnationFence.IncarnationFence.IncarnationFence","product":"core","slug":"io-github-libtmux-incarnationfence-incarnationfence-incarnationfence"},{"id":"io.github.libtmux.IncarnationFence.IncarnationFence.identity","name":"identity","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.IncarnationFence.IncarnationFence","signatures":[{"raw":"ServerIdentity identity()","params":[],"returns":"ServerIdentity","typeScopeBoundary":false},{"raw":"ServerIdentity identity(ServerSnapshot snapshot)","params":[{"name":"snapshot","type":"ServerSnapshot"}],"returns":"ServerIdentity","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/IncarnationFence.java","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.IncarnationFence.identity","namespace":"io.github.libtmux","publicId":"io.github.libtmux.IncarnationFence.IncarnationFence.identity","product":"core","slug":"io-github-libtmux-incarnationfence-incarnationfence-identity"},{"id":"io.github.libtmux.IncarnationFence.IncarnationFence.requireSameServer","name":"requireSameServer","kind":"method","modifiers":[],"parent":"io.github.libtmux.IncarnationFence.IncarnationFence","signatures":[{"raw":"void requireSameServer(Server other)","params":[{"name":"other","type":"Server"}],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/IncarnationFence.java","line":41,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.IncarnationFence.requireSameServer","namespace":"io.github.libtmux","publicId":"io.github.libtmux.IncarnationFence.IncarnationFence.requireSameServer","product":"core","slug":"io-github-libtmux-incarnationfence-incarnationfence-requiresameserver"},{"id":"io.github.libtmux.IncarnationFence.IncarnationFence.requireSameIncarnation","name":"requireSameIncarnation","kind":"method","modifiers":[],"parent":"io.github.libtmux.IncarnationFence.IncarnationFence","signatures":[{"raw":"void requireSameIncarnation(ServerSnapshot snapshot, Server other, ServerSnapshot otherSnapshot)","params":[{"name":"snapshot","type":"ServerSnapshot"},{"name":"other","type":"Server"},{"name":"otherSnapshot","type":"ServerSnapshot"}],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/IncarnationFence.java","line":48,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.IncarnationFence.requireSameIncarnation","namespace":"io.github.libtmux","publicId":"io.github.libtmux.IncarnationFence.IncarnationFence.requireSameIncarnation","product":"core","slug":"io-github-libtmux-incarnationfence-incarnationfence-requiresameincarnation"},{"id":"io.github.libtmux.IncarnationFence.IncarnationFence.incarnation","name":"incarnation","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.IncarnationFence.IncarnationFence","signatures":[{"raw":"static String incarnation(long pid, OptionalLong startTime)","params":[{"name":"pid","type":"long"},{"name":"startTime","type":"OptionalLong"}],"returns":"String","typeScopeBoundary":true}],"doc":{"summary":"A condition true only on the server a capture named: its pid, and its start time when known."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/IncarnationFence.java","line":56,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.IncarnationFence.incarnation","namespace":"io.github.libtmux","publicId":"io.github.libtmux.IncarnationFence.IncarnationFence.incarnation","product":"core","slug":"io-github-libtmux-incarnationfence-incarnationfence-incarnation"},{"id":"io.github.libtmux.IncarnationFence.IncarnationFence.guarded","name":"guarded","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.IncarnationFence.IncarnationFence","signatures":[{"raw":"CommandResult guarded(ServerSnapshot snapshot, String command)","params":[{"name":"snapshot","type":"ServerSnapshot"},{"name":"command","type":"String"}],"returns":"CommandResult","typeScopeBoundary":false},{"raw":"CommandResult guarded(ServerSnapshot snapshot, String command, String input)","params":[{"name":"snapshot","type":"ServerSnapshot"},{"name":"command","type":"String"},{"name":"input","type":"String"}],"returns":"CommandResult","typeScopeBoundary":false},{"raw":"CommandResult guarded(long pid, String condition, String command, String input)","params":[{"name":"pid","type":"long"},{"name":"condition","type":"String"},{"name":"command","type":"String"},{"name":"input","type":"String"}],"returns":"CommandResult","typeScopeBoundary":false}],"doc":{"summary":"Refuses to reach a tmux server that is not the one this handle was made against."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/IncarnationFence.java","line":64,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.IncarnationFence.guarded","namespace":"io.github.libtmux","publicId":"io.github.libtmux.IncarnationFence.IncarnationFence.guarded","product":"core","slug":"io-github-libtmux-incarnationfence-incarnationfence-guarded"},{"id":"io.github.libtmux.IncarnationFence.IncarnationFence.run","name":"run","kind":"method","modifiers":[],"parent":"io.github.libtmux.IncarnationFence.IncarnationFence","signatures":[{"raw":"CommandResult run(ServerSnapshot snapshot, WindowContext expected, List argv)","params":[{"name":"snapshot","type":"ServerSnapshot"},{"name":"expected","type":"WindowContext"},{"name":"argv","type":"List"}],"returns":"CommandResult","typeScopeBoundary":false}],"doc":{"summary":"As {@link #guarded(ServerSnapshot, String, String)}, refused as well once the window has gone."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/IncarnationFence.java","line":87,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.IncarnationFence.run","namespace":"io.github.libtmux","publicId":"io.github.libtmux.IncarnationFence.IncarnationFence.run","product":"core","slug":"io-github-libtmux-incarnationfence-incarnationfence-run"},{"id":"io.github.libtmux.internal.CommandStrings.CommandStrings","name":"CommandStrings","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Encodes a tmux command for each of the two parsers tmux reads commands with.","body":"Every argv this takes is literal: what a caller meant, with nothing escaped for either parser."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/internal/CommandStrings.java","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.internal.CommandStrings","namespace":"io.github.libtmux.internal","publicId":"io.github.libtmux.internal.CommandStrings.CommandStrings","product":"core","slug":"io-github-libtmux-internal-commandstrings-commandstrings"},{"id":"io.github.libtmux.internal.CommandStrings.CommandStrings.arguments","name":"arguments","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.internal.CommandStrings.CommandStrings","signatures":[{"raw":"public static List arguments(List> commands)","params":[{"name":"commands","type":"List>"}],"returns":"List","typeScopeBoundary":true}],"doc":{"summary":"Several commands as the flat argv tmux's own argv parser reads.","body":"tmux ends a command at an argument whose last byte is {@code ;}, and keeps the semicolon\ninstead when a backslash precedes it, so an argument ending in one is escaped here and a bare\n{@code ;} separates commands."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/internal/CommandStrings.java","line":22,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.internal.CommandStrings.arguments","namespace":"io.github.libtmux.internal","publicId":"io.github.libtmux.internal.CommandStrings.CommandStrings.arguments","product":"core","slug":"io-github-libtmux-internal-commandstrings-commandstrings-arguments"},{"id":"io.github.libtmux.internal.CommandStrings.CommandStrings.stringify","name":"stringify","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.internal.CommandStrings.CommandStrings","signatures":[{"raw":"public static String stringify(List argv)","params":[{"name":"argv","type":"List"}],"returns":"String","typeScopeBoundary":true}],"doc":{"summary":"One command as the string tmux's command parser reads, which is what {@code if-shell} takes."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/internal/CommandStrings.java","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.internal.CommandStrings.stringify","namespace":"io.github.libtmux.internal","publicId":"io.github.libtmux.internal.CommandStrings.CommandStrings.stringify","product":"core","slug":"io-github-libtmux-internal-commandstrings-commandstrings-stringify"},{"id":"io.github.libtmux.internal.CommandStrings.CommandStrings.group","name":"group","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.internal.CommandStrings.CommandStrings","signatures":[{"raw":"public static String group(List> commands)","params":[{"name":"commands","type":"List>"}],"returns":"String","typeScopeBoundary":true}],"doc":{"summary":"Several commands as the one string tmux's parser reads as a group.","body":"Each argument is quoted, so a semicolon inside one stays part of it and only the separators\nbetween commands end a command."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/internal/CommandStrings.java","line":53,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.internal.CommandStrings.group","namespace":"io.github.libtmux.internal","publicId":"io.github.libtmux.internal.CommandStrings.CommandStrings.group","product":"core","slug":"io-github-libtmux-internal-commandstrings-commandstrings-group"},{"id":"io.github.libtmux.internal.ErrorText.ErrorText","name":"ErrorText","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"What tmux printed on its error stream, as it appears in a failure's message."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/internal/ErrorText.java","line":8,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.internal.ErrorText","namespace":"io.github.libtmux.internal","publicId":"io.github.libtmux.internal.ErrorText.ErrorText","product":"core","slug":"io-github-libtmux-internal-errortext-errortext"},{"id":"io.github.libtmux.internal.ErrorText.ErrorText.suffix","name":"suffix","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.internal.ErrorText.ErrorText","signatures":[{"raw":"public static String suffix(List stderr)","params":[{"name":"stderr","type":"List"}],"returns":"String","typeScopeBoundary":true}],"doc":{"summary":"{@code \": \"} and the non-blank lines joined by {@code \"; \"}, or nothing when tmux printed none.","body":"Capped at {@link OperationReport#ERROR_LIMIT} characters: a message lands in every log line\nthat prints the failure, and the failure's own {@code errorLines()} keeps the text whole."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/internal/ErrorText.java","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.internal.ErrorText.suffix","namespace":"io.github.libtmux.internal","publicId":"io.github.libtmux.internal.ErrorText.ErrorText.suffix","product":"core","slug":"io-github-libtmux-internal-errortext-errortext-suffix"},{"id":"io.github.libtmux.internal.ProcessTree.ProcessTree","name":"ProcessTree","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Owns bounded, idempotent termination of one process and its observable descendants."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/internal/ProcessTree.java","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.internal.ProcessTree","namespace":"io.github.libtmux.internal","publicId":"io.github.libtmux.internal.ProcessTree.ProcessTree","product":"core","slug":"io-github-libtmux-internal-processtree-processtree"},{"id":"io.github.libtmux.internal.ProcessTree.ProcessTree.ProcessTree","name":"ProcessTree","kind":"method","modifiers":[],"parent":"io.github.libtmux.internal.ProcessTree.ProcessTree","signatures":[{"raw":"public ProcessTree(Process root)","params":[{"name":"root","type":"Process"}],"typeScopeBoundary":false}],"doc":{"summary":"Takes ownership of terminating {@code root} and descendants visible from it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/internal/ProcessTree.java","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.internal.ProcessTree.ProcessTree","namespace":"io.github.libtmux.internal","publicId":"io.github.libtmux.internal.ProcessTree.ProcessTree.ProcessTree","product":"core","slug":"io-github-libtmux-internal-processtree-processtree-processtree"},{"id":"io.github.libtmux.internal.ProcessTree.ProcessTree.captureDescendants","name":"captureDescendants","kind":"method","modifiers":[],"parent":"io.github.libtmux.internal.ProcessTree.ProcessTree","signatures":[{"raw":"public synchronized void captureDescendants()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Retains descendants before another cleanup step can make the root disappear."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/internal/ProcessTree.java","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.internal.ProcessTree.captureDescendants","namespace":"io.github.libtmux.internal","publicId":"io.github.libtmux.internal.ProcessTree.ProcessTree.captureDescendants","product":"core","slug":"io-github-libtmux-internal-processtree-processtree-capturedescendants"},{"id":"io.github.libtmux.internal.ProcessTree.ProcessTree.terminate","name":"terminate","kind":"method","modifiers":[],"parent":"io.github.libtmux.internal.ProcessTree.ProcessTree","signatures":[{"raw":"public synchronized boolean terminate()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Terminates the known process tree, closes the root's streams, and reports reclamation."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/internal/ProcessTree.java","line":43,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.internal.ProcessTree.terminate","namespace":"io.github.libtmux.internal","publicId":"io.github.libtmux.internal.ProcessTree.ProcessTree.terminate","product":"core","slug":"io-github-libtmux-internal-processtree-processtree-terminate"},{"id":"io.github.libtmux.internal.Utf8.Utf8","name":"Utf8","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The UTF-8 boundary shared by process and control transports, in both directions."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/internal/Utf8.java","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.internal.Utf8","namespace":"io.github.libtmux.internal","publicId":"io.github.libtmux.internal.Utf8.Utf8","product":"core","slug":"io-github-libtmux-internal-utf8-utf8"},{"id":"io.github.libtmux.internal.Utf8.Utf8.requireEncodableArguments","name":"requireEncodableArguments","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.internal.Utf8.Utf8","signatures":[{"raw":"public static void requireEncodableArguments(List argv)","params":[{"name":"argv","type":"List"}],"returns":"void","typeScopeBoundary":true,"raises":[{"type":"UnencodableTextException","doc":"if an argument holds non-ASCII text and this JVM's native encoding is not UTF-8"}]}],"doc":{"summary":"Refuses argument text this JVM would corrupt on the way to tmux.","body":"Checked here rather than at each call site because every process this library starts is\nbuilt from one of these lists, and a value that reaches tmux mangled is indistinguishable\nthere from one the caller meant."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/internal/Utf8.java","line":40,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.internal.Utf8.requireEncodableArguments","namespace":"io.github.libtmux.internal","publicId":"io.github.libtmux.internal.Utf8.Utf8.requireEncodableArguments","product":"core","slug":"io-github-libtmux-internal-utf8-utf8-requireencodablearguments"},{"id":"io.github.libtmux.internal.Utf8.Utf8.encodable","name":"encodable","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.internal.Utf8.Utf8","signatures":[{"raw":"public static boolean encodable(List argv)","params":[{"name":"argv","type":"List"}],"returns":"boolean","typeScopeBoundary":true}],"doc":{"summary":"Whether this JVM can hand every one of these to a child process intact."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/internal/Utf8.java","line":48,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.internal.Utf8.encodable","namespace":"io.github.libtmux.internal","publicId":"io.github.libtmux.internal.Utf8.Utf8.encodable","product":"core","slug":"io-github-libtmux-internal-utf8-utf8-encodable"},{"id":"io.github.libtmux.internal.Utf8.Utf8.argumentsAreUtf8","name":"argumentsAreUtf8","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.internal.Utf8.Utf8","signatures":[{"raw":"static boolean argumentsAreUtf8(String encoding)","params":[{"name":"encoding","type":"String"}],"returns":"boolean","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/internal/Utf8.java","line":78,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.internal.Utf8.argumentsAreUtf8","namespace":"io.github.libtmux.internal","publicId":"io.github.libtmux.internal.Utf8.Utf8.argumentsAreUtf8","product":"core","slug":"io-github-libtmux-internal-utf8-utf8-argumentsareutf8"},{"id":"io.github.libtmux.internal.Utf8.Utf8.backslashReplace","name":"backslashReplace","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.internal.Utf8.Utf8","signatures":[{"raw":"public static String backslashReplace(byte[] bytes)","params":[{"name":"bytes","type":"byte[]"}],"returns":"String","typeScopeBoundary":true}],"doc":{"summary":"Decodes valid UTF-8 and writes each malformed byte as a recoverable {@code \\xNN} escape."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/internal/Utf8.java","line":88,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.internal.Utf8.backslashReplace","namespace":"io.github.libtmux.internal","publicId":"io.github.libtmux.internal.Utf8.Utf8.backslashReplace","product":"core","slug":"io-github-libtmux-internal-utf8-utf8-backslashreplace"},{"id":"io.github.libtmux.internal.Utf8.Utf8.Stream","name":"Stream","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.internal.Utf8.Utf8","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Decodes one byte stream that arrives in pieces cut anywhere, as {@link #backslashReplace} decodes a whole one. A character cut between two pieces is held back and returned whole with the later piece. One per stream, on one thread."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/internal/Utf8.java","line":117,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.internal.Utf8.Stream","namespace":"io.github.libtmux.internal","publicId":"io.github.libtmux.internal.Utf8.Utf8.Stream","product":"core","slug":"io-github-libtmux-internal-utf8-utf8-stream"},{"id":"io.github.libtmux.internal.Utf8.Utf8.Stream.decode","name":"decode","kind":"method","modifiers":[],"parent":"io.github.libtmux.internal.Utf8.Utf8.Stream","signatures":[{"raw":"public String decode(byte[] piece)","params":[{"name":"piece","type":"byte[]"}],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The text this piece completes, leaving a character it only starts for the next."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/internal/Utf8.java","line":126,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.internal.Utf8.Stream.decode","namespace":"io.github.libtmux.internal","publicId":"io.github.libtmux.internal.Utf8.Utf8.Stream.decode","product":"core","slug":"io-github-libtmux-internal-utf8-utf8-stream-decode"},{"id":"io.github.libtmux.JsonLayout.JsonLayout","name":"JsonLayout","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"tmux's restricted JSON grammar and layout cells, for pre-mutation workspace validation."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/JsonLayout.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.JsonLayout","namespace":"io.github.libtmux","publicId":"io.github.libtmux.JsonLayout.JsonLayout","product":"core","slug":"io-github-libtmux-jsonlayout-jsonlayout"},{"id":"io.github.libtmux.JsonLayout.JsonLayout.leaves","name":"leaves","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.JsonLayout.JsonLayout","signatures":[{"raw":"static int leaves(String text)","params":[{"name":"text","type":"String"}],"returns":"int","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/JsonLayout.java","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.JsonLayout.leaves","namespace":"io.github.libtmux","publicId":"io.github.libtmux.JsonLayout.JsonLayout.leaves","product":"core","slug":"io-github-libtmux-jsonlayout-jsonlayout-leaves"},{"id":"io.github.libtmux.Keys.Keys","name":"Keys","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The server's key bindings, in one key table or across all of them.","body":"tmux keeps bindings in named tables: {@code prefix}, pressed after the prefix key, is where a\nbinding goes unless another table is named; {@code root} is pressed without it; the copy-mode\ntables belong to copy mode. {@link Server#keys()} answers for {@code prefix} when binding and for\nevery table when listing; {@link #in} names one.","examples":[{"lang":"java","code":"server.keys().bind(\"F12\", List.of(\"display-message\", \"hello\"));\nserver.keys().in(\"root\").bind(\"F11\", List.of(\"next-window\"));"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Keys.java","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Keys","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Keys.Keys","product":"core","slug":"io-github-libtmux-keys-keys"},{"id":"io.github.libtmux.Keys.Keys.Keys","name":"Keys","kind":"method","modifiers":[],"parent":"io.github.libtmux.Keys.Keys","signatures":[{"raw":"Keys(Server server, @Nullable String table)","params":[{"name":"server","type":"Server"},{"name":"table","type":"String"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Keys.java","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Keys.Keys","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Keys.Keys.Keys","product":"core","slug":"io-github-libtmux-keys-keys-keys"},{"id":"io.github.libtmux.Keys.Keys.in","name":"in","kind":"method","modifiers":[],"parent":"io.github.libtmux.Keys.Keys","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Keys in(String table)","params":[{"name":"table","type":"String"}],"returns":"Keys","typeScopeBoundary":false}],"doc":{"summary":"The same bindings, in one named table."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Keys.java","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Keys.in","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Keys.Keys.in","product":"core","slug":"io-github-libtmux-keys-keys-in"},{"id":"io.github.libtmux.Keys.Keys.bind","name":"bind","kind":"method","modifiers":[],"parent":"io.github.libtmux.Keys.Keys","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void bind(String key, List command)","params":[{"name":"key","type":"String"},{"name":"command","type":"List"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Binds a key to a tmux command, given as its words.","body":"Each word reaches tmux as itself: the command is passed as arguments, never as a line for\ntmux to split."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Keys.java","line":51,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Keys.bind","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Keys.Keys.bind","product":"core","slug":"io-github-libtmux-keys-keys-bind"},{"id":"io.github.libtmux.Keys.Keys.unbind","name":"unbind","kind":"method","modifiers":[],"parent":"io.github.libtmux.Keys.Keys","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void unbind(String key)","params":[{"name":"key","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Removes a key's binding."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Keys.java","line":66,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Keys.unbind","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Keys.Keys.unbind","product":"core","slug":"io-github-libtmux-keys-keys-unbind"},{"id":"io.github.libtmux.Keys.Keys.list","name":"list","kind":"method","modifiers":[],"parent":"io.github.libtmux.Keys.Keys","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public List list()","params":[],"returns":"List","typeScopeBoundary":false,"raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"}]}],"doc":{"summary":"The bindings as tmux lists them, one per line.","body":"Every table unless one was named. Read without starting a daemon to answer, which tmux\nwould otherwise do for {@code list-keys}: its tables are compiled in, so it can answer an\nendpoint nothing serves by serving it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Keys.java","line":85,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Keys.list","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Keys.Keys.list","product":"core","slug":"io-github-libtmux-keys-keys-list"},{"id":"io.github.libtmux.Layout.Layout","name":"Layout","kind":"enum","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"One of tmux's built-in pane arrangements.","body":"An enum rather than a string, and not for tidiness: {@code select-layout} with a name tmux does\nnot recognise *ends the server* on 3.3a, taking every session on that socket with it —\nincluding sessions this program never created. Every other supported release answers\n{@code invalid layout} and carries on.\n\nA name that cannot be misspelled cannot trigger that. {@link Window#applyLayout} covers the\nother way in, a serialized layout string, by checking it before tmux sees it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layout.java","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layout","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layout.Layout","product":"core","slug":"io-github-libtmux-layout-layout"},{"id":"io.github.libtmux.Layout.Layout.EVEN_HORIZONTAL","name":"EVEN_HORIZONTAL","kind":"constant","modifiers":[],"parent":"io.github.libtmux.Layout.Layout","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layout.java","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layout.EVEN_HORIZONTAL","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layout.Layout.EVEN_HORIZONTAL","product":"core","slug":"io-github-libtmux-layout-layout-even_horizontal"},{"id":"io.github.libtmux.Layout.Layout.EVEN_VERTICAL","name":"EVEN_VERTICAL","kind":"constant","modifiers":[],"parent":"io.github.libtmux.Layout.Layout","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layout.java","line":22,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layout.EVEN_VERTICAL","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layout.Layout.EVEN_VERTICAL","product":"core","slug":"io-github-libtmux-layout-layout-even_vertical"},{"id":"io.github.libtmux.Layout.Layout.MAIN_HORIZONTAL","name":"MAIN_HORIZONTAL","kind":"constant","modifiers":[],"parent":"io.github.libtmux.Layout.Layout","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layout.java","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layout.MAIN_HORIZONTAL","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layout.Layout.MAIN_HORIZONTAL","product":"core","slug":"io-github-libtmux-layout-layout-main_horizontal"},{"id":"io.github.libtmux.Layout.Layout.MAIN_VERTICAL","name":"MAIN_VERTICAL","kind":"constant","modifiers":[],"parent":"io.github.libtmux.Layout.Layout","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layout.java","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layout.MAIN_VERTICAL","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layout.Layout.MAIN_VERTICAL","product":"core","slug":"io-github-libtmux-layout-layout-main_vertical"},{"id":"io.github.libtmux.Layout.Layout.TILED","name":"TILED","kind":"constant","modifiers":[],"parent":"io.github.libtmux.Layout.Layout","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layout.java","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layout.TILED","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layout.Layout.TILED","product":"core","slug":"io-github-libtmux-layout-layout-tiled"},{"id":"io.github.libtmux.Layout.Layout.MAIN_HORIZONTAL_MIRRORED","name":"MAIN_HORIZONTAL_MIRRORED","kind":"constant","modifiers":[],"parent":"io.github.libtmux.Layout.Layout","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Requires tmux 3.5."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layout.java","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layout.MAIN_HORIZONTAL_MIRRORED","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layout.Layout.MAIN_HORIZONTAL_MIRRORED","product":"core","slug":"io-github-libtmux-layout-layout-main_horizontal_mirrored"},{"id":"io.github.libtmux.Layout.Layout.MAIN_VERTICAL_MIRRORED","name":"MAIN_VERTICAL_MIRRORED","kind":"constant","modifiers":[],"parent":"io.github.libtmux.Layout.Layout","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Requires tmux 3.5."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layout.java","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layout.MAIN_VERTICAL_MIRRORED","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layout.Layout.MAIN_VERTICAL_MIRRORED","product":"core","slug":"io-github-libtmux-layout-layout-main_vertical_mirrored"},{"id":"io.github.libtmux.Layout.Layout.Layout","name":"Layout","kind":"method","modifiers":[],"parent":"io.github.libtmux.Layout.Layout","signatures":[{"raw":"Layout(String name)","params":[{"name":"name","type":"String"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layout.java","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layout.Layout","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layout.Layout.Layout","product":"core","slug":"io-github-libtmux-layout-layout-layout"},{"id":"io.github.libtmux.Layout.Layout.tmuxName","name":"tmuxName","kind":"method","modifiers":[],"parent":"io.github.libtmux.Layout.Layout","signatures":[{"raw":"public String tmuxName()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The name tmux knows this by."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layout.java","line":40,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layout.tmuxName","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layout.Layout.tmuxName","product":"core","slug":"io-github-libtmux-layout-layout-tmuxname"},{"id":"io.github.libtmux.Layout.Layout.byTmuxName","name":"byTmuxName","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Layout.Layout","signatures":[{"raw":"public static Optional byTmuxName(String name)","params":[{"name":"name","type":"String"}],"returns":"Optional","typeScopeBoundary":true}],"doc":{"summary":"The layout with this exact tmux name, or empty if none matches.","body":"One map built once, so a caller that already has a canonical name does not repeat the scan\nover {@link #values()} that resolving an abbreviation already did."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layout.java","line":53,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layout.byTmuxName","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layout.Layout.byTmuxName","product":"core","slug":"io-github-libtmux-layout-layout-bytmuxname"},{"id":"io.github.libtmux.Layout.Layout.since","name":"since","kind":"method","modifiers":[],"parent":"io.github.libtmux.Layout.Layout","signatures":[{"raw":"TmuxVersion since()","params":[],"returns":"TmuxVersion","typeScopeBoundary":false}],"doc":{"summary":"The first supported release that has this layout.","body":"A switch rather than a field, so that adding a layout cannot compile until someone says\nwhich release brought it — and so the enum holds nothing but its name."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layout.java","line":63,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layout.since","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layout.Layout.since","product":"core","slug":"io-github-libtmux-layout-layout-since"},{"id":"io.github.libtmux.Layout.Layout.requireSupported","name":"requireSupported","kind":"method","modifiers":[],"parent":"io.github.libtmux.Layout.Layout","signatures":[{"raw":"public void requireSupported(TmuxVersion running)","params":[{"name":"running","type":"TmuxVersion"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Refuses this layout when the running tmux predates it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layout.java","line":71,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layout.requireSupported","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layout.Layout.requireSupported","product":"core","slug":"io-github-libtmux-layout-layout-requiresupported"},{"id":"io.github.libtmux.Layout.Layout.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.Layout.Layout","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layout.java","line":77,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layout.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layout.Layout.toString","product":"core","slug":"io-github-libtmux-layout-layout-tostring"},{"id":"io.github.libtmux.Layouts.Layouts","name":"Layouts","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Which layout names are safe to hand to tmux.","body":"Public because every path that can reach select-layout needs it, not only the one that reads\na workspace file. This check exists because an unrecognised layout name does not produce an error on every tmux:\non 3.3a it crashes the server, taking down every session on that socket, including ones this\nprogram never created. A workspace file is user-supplied text, so the name has to be checked\nbefore it is dispatched rather than after tmux has had it.\n\ntmux accepts either one of its named layouts or a serialized layout tmux itself produced. Since\n3.8 that serialized form is either the classic checksummed grammar or JSON, and {@code\nselect-layout} takes either back - but only JSON round-trips exactly. The classic grammar\ncarries no pane identity, only shape, so which process lands in which cell can differ from\nwhere it started; see {@link Window#applyLayout}. The classic checksum is verified here; a\nfour-hex-digit prefix alone does not make the rest safe for tmux to parse. JSON carries no such\nsignature, so a JSON-shaped string is only trusted once the running tmux is new enough to have\nwritten it - see {@link #requireSerialized}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layouts.java","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layouts","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layouts.Layouts","product":"core","slug":"io-github-libtmux-layouts-layouts"},{"id":"io.github.libtmux.Layouts.Layouts.require","name":"require","kind":"method","modifiers":["static","overload"],"parent":"io.github.libtmux.Layouts.Layouts","signatures":[{"raw":"public static String require(String layout)","params":[{"name":"layout","type":"String"}],"returns":"String","typeScopeBoundary":true,"raises":[{"type":"IllegalArgumentException","doc":"if tmux would not recognise the name, which on some versions is not a recoverable error"}]},{"raw":"public static String require(String layout, TmuxVersion running)","params":[{"name":"layout","type":"String"},{"name":"running","type":"TmuxVersion"}],"returns":"String","typeScopeBoundary":true,"raises":[{"type":"IllegalArgumentException","doc":"if tmux would not recognise the layout"},{"type":"UnsupportedFeatureException","doc":"if the name or the JSON format arrived after this release"}]},{"raw":"public static String require(String layout, Server server, int paneCount)","params":[{"name":"layout","type":"String","doc":"a built-in name, unique abbreviation or serialized tree"},{"name":"server","type":"Server","doc":"the endpoint which will apply the layout"},{"name":"paneCount","type":"int","doc":"the number of panes which the layout must accommodate"}],"returns":"String","typeScopeBoundary":true,"returnsDoc":"a full built-in name or the unchanged serialized layout","raises":[{"type":"IllegalArgumentException","doc":"if the layout is invalid or has too few pane cells"},{"type":"UnsupportedFeatureException","doc":"if an exact built-in name requires a newer daemon"},{"type":"LibTmuxException","doc":"if the daemon or client version cannot be read"}]}],"doc":{"summary":"Returns the layout unchanged, having checked tmux will recognise it.","body":"Accepts the classic checksummed form, a JSON layout (by shape only — a running version is\nneeded to say whether this server could have written it, which {@link #require(String,\nTmuxVersion)} does), a built-in name, or an unambiguous prefix of exactly one built-in name\n({@code layout_set_lookup} is a prefix match, so {@code tile} and {@code even-h} apply on\nevery tmux release). Ambiguity is judged against every name this library knows, not only the\nones the eventual server will have — the version to narrow that with is not available here."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layouts.java","line":61,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layouts.require","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layouts.Layouts.require","product":"core","slug":"io-github-libtmux-layouts-layouts-require"},{"id":"io.github.libtmux.Layouts.Layouts.builtIn","name":"builtIn","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Layouts.Layouts","signatures":[{"raw":"public static Optional builtIn(String layout, TmuxVersion running)","params":[{"name":"layout","type":"String"},{"name":"running","type":"TmuxVersion"}],"returns":"Optional","typeScopeBoundary":true}],"doc":{"summary":"The built-in layout a name or an unambiguous prefix of one denotes, resolved against what {@code running} actually supports — the same resolution {@link #require(String, TmuxVersion)} applies, exposed so a caller that must choose between the enum path and a raw string (a workspace file's own dispatch) makes the same choice the guard just validated."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layouts.java","line":122,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layouts.builtIn","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layouts.Layouts.builtIn","product":"core","slug":"io-github-libtmux-layouts-layouts-builtin"},{"id":"io.github.libtmux.Layouts.Layouts.requireSerialized","name":"requireSerialized","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Layouts.Layouts","signatures":[{"raw":"static String requireSerialized(String layout, TmuxVersion running)","params":[{"name":"layout","type":"String"},{"name":"running","type":"TmuxVersion"}],"returns":"String","typeScopeBoundary":true,"raises":[{"type":"IllegalArgumentException","doc":"if the string is not a layout tmux wrote"},{"type":"UnsupportedFeatureException","doc":"if it is JSON-shaped but {@code running} predates the format, so it cannot be one this server wrote"}]}],"doc":{"summary":"Requires an exact layout string rather than a built-in layout name.","body":"The classic form answers \"did tmux write this?\" by its own checksum, without needing to\nknow what tmux is running. JSON carries nothing equivalent, so the only question left to ask\nis \"could this tmux have written it?\" - which is a version, not a parse. Recognising the shape\nis as far as this goes: a JSON body that passes the shape check but is not real is tmux's own\nproblem to refuse, and it does, safely, on every release that understands the format at all\n(confirmed against next-3.9: malformed JSON answers an ordinary parse error, never a crash)."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Layouts.java","line":249,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Layouts.requireSerialized","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Layouts.Layouts.requireSerialized","product":"core","slug":"io-github-libtmux-layouts-layouts-requireserialized"},{"id":"io.github.libtmux.MessageLog.MessageLog","name":"MessageLog","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The server's own message log, newest last.","body":"tmux before 3.6 answers {@code no current client} when nothing is attached. A gate would\nrefuse the case that works: with a client attached the log is readable on every supported\nrelease. The failure tmux reports is left to reach the caller."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/MessageLog.java","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.MessageLog","namespace":"io.github.libtmux","publicId":"io.github.libtmux.MessageLog.MessageLog","product":"core","slug":"io-github-libtmux-messagelog-messagelog"},{"id":"io.github.libtmux.MessageLog.MessageLog.MessageLog","name":"MessageLog","kind":"method","modifiers":[],"parent":"io.github.libtmux.MessageLog.MessageLog","signatures":[{"raw":"MessageLog(Server server)","params":[{"name":"server","type":"Server"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/MessageLog.java","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.MessageLog.MessageLog","namespace":"io.github.libtmux","publicId":"io.github.libtmux.MessageLog.MessageLog.MessageLog","product":"core","slug":"io-github-libtmux-messagelog-messagelog-messagelog"},{"id":"io.github.libtmux.MessageLog.MessageLog.lines","name":"lines","kind":"method","modifiers":[],"parent":"io.github.libtmux.MessageLog.MessageLog","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public List lines()","params":[],"returns":"List","typeScopeBoundary":false,"raises":[{"type":"LibTmuxException","doc":"before 3.6 when no client is attached"}]}],"doc":{"summary":"The log lines."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/MessageLog.java","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.MessageLog.lines","namespace":"io.github.libtmux","publicId":"io.github.libtmux.MessageLog.MessageLog.lines","product":"core","slug":"io-github-libtmux-messagelog-messagelog-lines"},{"id":"io.github.libtmux.OptionKey.OptionKey","name":"OptionKey","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"typeParams":["T"],"typeParamNames":["T"],"typeParameters":[{"name":"T","doc":"what the value reads as"}],"doc":{"summary":"A tmux option and the Java type its value reads as.","body":"Declared by the caller rather than catalogued here. tmux has hundreds of options, adds them\nbetween releases and changes a few of their types, so a closed catalogue would be wrong somewhere\non every release it did not track. A key says how to read one option; the name-and-string methods\non {@link Options} remain for anything else.\n\nThe constants are the ones whose type is the same on every supported release, checked against\ntmux's own option table from 3.2a to 3.7c. {@code status} is not among the flags for that reason:\ntmux reads it as a choice of {@code off}, {@code on} and a line count.","examples":[{"lang":"java","code":"session.options().set(OptionKey.HISTORY_LIMIT, 50_000);\nint kept = session.options().get(OptionKey.HISTORY_LIMIT).orElseThrow(); // → 50000\n\nOptionKey bell = OptionKey.flag(\"visual-bell\");"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/OptionKey.java","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.OptionKey","namespace":"io.github.libtmux","publicId":"io.github.libtmux.OptionKey.OptionKey","product":"core","slug":"io-github-libtmux-optionkey-optionkey"},{"id":"io.github.libtmux.OptionKey.OptionKey.HISTORY_LIMIT","name":"HISTORY_LIMIT","kind":"attribute","modifiers":["static","readonly"],"parent":"io.github.libtmux.OptionKey.OptionKey","signatures":[],"typeScopeBoundary":true,"type":"OptionKey","value":"number(\"history-limit\")","doc":{"summary":"Lines of scrollback a pane keeps. A session option."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/OptionKey.java","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.OptionKey.HISTORY_LIMIT","namespace":"io.github.libtmux","publicId":"io.github.libtmux.OptionKey.OptionKey.HISTORY_LIMIT","product":"core","slug":"io-github-libtmux-optionkey-optionkey-history_limit"},{"id":"io.github.libtmux.OptionKey.OptionKey.BASE_INDEX","name":"BASE_INDEX","kind":"attribute","modifiers":["static","readonly"],"parent":"io.github.libtmux.OptionKey.OptionKey","signatures":[],"typeScopeBoundary":true,"type":"OptionKey","value":"number(\"base-index\")","doc":{"summary":"The index a session's first window gets. A session option."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/OptionKey.java","line":34,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.OptionKey.BASE_INDEX","namespace":"io.github.libtmux","publicId":"io.github.libtmux.OptionKey.OptionKey.BASE_INDEX","product":"core","slug":"io-github-libtmux-optionkey-optionkey-base_index"},{"id":"io.github.libtmux.OptionKey.OptionKey.ESCAPE_TIME","name":"ESCAPE_TIME","kind":"attribute","modifiers":["static","readonly"],"parent":"io.github.libtmux.OptionKey.OptionKey","signatures":[],"typeScopeBoundary":true,"type":"OptionKey","value":"number(\"escape-time\")","doc":{"summary":"How long tmux waits after an escape to see whether a key sequence follows. A server option."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/OptionKey.java","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.OptionKey.ESCAPE_TIME","namespace":"io.github.libtmux","publicId":"io.github.libtmux.OptionKey.OptionKey.ESCAPE_TIME","product":"core","slug":"io-github-libtmux-optionkey-optionkey-escape_time"},{"id":"io.github.libtmux.OptionKey.OptionKey.MOUSE","name":"MOUSE","kind":"attribute","modifiers":["static","readonly"],"parent":"io.github.libtmux.OptionKey.OptionKey","signatures":[],"typeScopeBoundary":true,"type":"OptionKey","value":"flag(\"mouse\")","doc":{"summary":"Whether the mouse is captured. A session option."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/OptionKey.java","line":40,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.OptionKey.MOUSE","namespace":"io.github.libtmux","publicId":"io.github.libtmux.OptionKey.OptionKey.MOUSE","product":"core","slug":"io-github-libtmux-optionkey-optionkey-mouse"},{"id":"io.github.libtmux.OptionKey.OptionKey.AUTOMATIC_RENAME","name":"AUTOMATIC_RENAME","kind":"attribute","modifiers":["static","readonly"],"parent":"io.github.libtmux.OptionKey.OptionKey","signatures":[],"typeScopeBoundary":true,"type":"OptionKey","value":"flag(\"automatic-rename\")","doc":{"summary":"Whether a window renames itself after what its pane runs. A window option."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/OptionKey.java","line":43,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.OptionKey.AUTOMATIC_RENAME","namespace":"io.github.libtmux","publicId":"io.github.libtmux.OptionKey.OptionKey.AUTOMATIC_RENAME","product":"core","slug":"io-github-libtmux-optionkey-optionkey-automatic_rename"},{"id":"io.github.libtmux.OptionKey.OptionKey.SYNCHRONIZE_PANES","name":"SYNCHRONIZE_PANES","kind":"attribute","modifiers":["static","readonly"],"parent":"io.github.libtmux.OptionKey.OptionKey","signatures":[],"typeScopeBoundary":true,"type":"OptionKey","value":"flag(\"synchronize-panes\")","doc":{"summary":"Whether keys typed into one pane go to every pane in the window. A window or pane option."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/OptionKey.java","line":46,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.OptionKey.SYNCHRONIZE_PANES","namespace":"io.github.libtmux","publicId":"io.github.libtmux.OptionKey.OptionKey.SYNCHRONIZE_PANES","product":"core","slug":"io-github-libtmux-optionkey-optionkey-synchronize_panes"},{"id":"io.github.libtmux.OptionKey.OptionKey.text","name":"text","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.OptionKey.OptionKey","signatures":[{"raw":"public static OptionKey text(String name)","params":[{"name":"name","type":"String"}],"returns":"OptionKey","typeScopeBoundary":true}],"doc":{"summary":"An option read as the text tmux reports, which suits a string, a choice, a style or a colour."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/OptionKey.java","line":59,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.OptionKey.text","namespace":"io.github.libtmux","publicId":"io.github.libtmux.OptionKey.OptionKey.text","product":"core","slug":"io-github-libtmux-optionkey-optionkey-text"},{"id":"io.github.libtmux.OptionKey.OptionKey.number","name":"number","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.OptionKey.OptionKey","signatures":[{"raw":"public static OptionKey number(String name)","params":[{"name":"name","type":"String"}],"returns":"OptionKey","typeScopeBoundary":true}],"doc":{"summary":"An option tmux holds as a number."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/OptionKey.java","line":64,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.OptionKey.number","namespace":"io.github.libtmux","publicId":"io.github.libtmux.OptionKey.OptionKey.number","product":"core","slug":"io-github-libtmux-optionkey-optionkey-number"},{"id":"io.github.libtmux.OptionKey.OptionKey.flag","name":"flag","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.OptionKey.OptionKey","signatures":[{"raw":"public static OptionKey flag(String name)","params":[{"name":"name","type":"String"}],"returns":"OptionKey","typeScopeBoundary":true}],"doc":{"summary":"An option tmux holds as a flag, which it reports as {@code on} or {@code off}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/OptionKey.java","line":69,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.OptionKey.flag","namespace":"io.github.libtmux","publicId":"io.github.libtmux.OptionKey.OptionKey.flag","product":"core","slug":"io-github-libtmux-optionkey-optionkey-flag"},{"id":"io.github.libtmux.OptionKey.OptionKey.name","name":"name","kind":"method","modifiers":[],"parent":"io.github.libtmux.OptionKey.OptionKey","signatures":[{"raw":"public String name()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The option's name, as tmux spells it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/OptionKey.java","line":74,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.OptionKey.name","namespace":"io.github.libtmux","publicId":"io.github.libtmux.OptionKey.OptionKey.name","product":"core","slug":"io-github-libtmux-optionkey-optionkey-name"},{"id":"io.github.libtmux.OptionKey.OptionKey.read","name":"read","kind":"method","modifiers":[],"parent":"io.github.libtmux.OptionKey.OptionKey","signatures":[{"raw":"T read(String reported)","params":[{"name":"reported","type":"String"}],"returns":"T","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/OptionKey.java","line":78,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.OptionKey.read","namespace":"io.github.libtmux","publicId":"io.github.libtmux.OptionKey.OptionKey.read","product":"core","slug":"io-github-libtmux-optionkey-optionkey-read"},{"id":"io.github.libtmux.OptionKey.OptionKey.write","name":"write","kind":"method","modifiers":[],"parent":"io.github.libtmux.OptionKey.OptionKey","signatures":[{"raw":"String write(T value)","params":[{"name":"value","type":"T"}],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/OptionKey.java","line":82,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.OptionKey.write","namespace":"io.github.libtmux","publicId":"io.github.libtmux.OptionKey.OptionKey.write","product":"core","slug":"io-github-libtmux-optionkey-optionkey-write"},{"id":"io.github.libtmux.OptionKey.OptionKey.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.OptionKey.OptionKey","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/OptionKey.java","line":105,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.OptionKey.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.OptionKey.OptionKey.toString","product":"core","slug":"io-github-libtmux-optionkey-optionkey-tostring"},{"id":"io.github.libtmux.Options.Options","name":"Options","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The tmux options at one scope.","body":"tmux keeps options on the server, on a session, on a window and on a pane, and the same option\nname can exist at more than one of them. A scope is therefore chosen when the view is obtained,\nnot passed to every call, so a caller cannot read one scope and write another.\n\nArray options keep the subscript tmux prints — {@code command-alias[0]} — because that is what\naddresses the individual entry when setting it back.\n\nEvery read asks the daemon its version in the same tmux invocation as the values, since how a\nvalue is printed depends on that version: tmux 3.4 and 3.5 print a carriage return and a literal\n{@code \\r} alike under {@code -v}, so on those two the escaped listing is decoded instead."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Options.java","line":39,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Options","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Options.Options","product":"core","slug":"io-github-libtmux-options-options"},{"id":"io.github.libtmux.Options.Options.server","name":"server","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Options.Options","signatures":[{"raw":"static Options server(Server server)","params":[{"name":"server","type":"Server"}],"returns":"Options","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Options.java","line":54,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Options.server","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Options.Options.server","product":"core","slug":"io-github-libtmux-options-options-server"},{"id":"io.github.libtmux.Options.Options.global","name":"global","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Options.Options","signatures":[{"raw":"static Options global(Server server)","params":[{"name":"server","type":"Server"}],"returns":"Options","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Options.java","line":58,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Options.global","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Options.Options.global","product":"core","slug":"io-github-libtmux-options-options-global"},{"id":"io.github.libtmux.Options.Options.session","name":"session","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Options.Options","signatures":[{"raw":"static Options session(Server server, ServerSnapshot snapshot, SessionId session)","params":[{"name":"server","type":"Server"},{"name":"snapshot","type":"ServerSnapshot"},{"name":"session","type":"SessionId"}],"returns":"Options","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Options.java","line":62,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Options.session","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Options.Options.session","product":"core","slug":"io-github-libtmux-options-options-session"},{"id":"io.github.libtmux.Options.Options.window","name":"window","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Options.Options","signatures":[{"raw":"static Options window(Server server, ServerSnapshot snapshot, WindowId window)","params":[{"name":"server","type":"Server"},{"name":"snapshot","type":"ServerSnapshot"},{"name":"window","type":"WindowId"}],"returns":"Options","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Options.java","line":66,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Options.window","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Options.Options.window","product":"core","slug":"io-github-libtmux-options-options-window"},{"id":"io.github.libtmux.Options.Options.pane","name":"pane","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Options.Options","signatures":[{"raw":"static Options pane(Server server, ServerSnapshot snapshot, PaneId pane)","params":[{"name":"server","type":"Server"},{"name":"snapshot","type":"ServerSnapshot"},{"name":"pane","type":"PaneId"}],"returns":"Options","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Options.java","line":70,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Options.pane","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Options.Options.pane","product":"core","slug":"io-github-libtmux-options-options-pane"},{"id":"io.github.libtmux.Options.Options.get","name":"get","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Options.Options","signatures":[{"raw":"@Operation(Kind.READ)\n public Optional get(String name)","params":[{"name":"name","type":"String"}],"returns":"Optional","typeScopeBoundary":false,"returnsDoc":"empty only when tmux does not know the option, which it reports as an error; an option genuinely set to the empty string comes back as an empty value, not as absent. A value spanning several lines comes back whole","raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if the read otherwise fails, including a name tmux finds ambiguous — option names may be abbreviated, and a prefix matching several is a question tmux declined to answer rather than an option it does not have"}]},{"raw":"@Operation(Kind.READ)\n public Optional get(OptionKey key)","params":[{"name":"key","type":"OptionKey"}],"returns":"Optional","typeParamNames":["T"],"typeScopeBoundary":false,"typeParams":["T"],"typeParameters":[{"name":"T"}],"raises":[{"type":"LibTmuxException","doc":"if tmux reports a value the key's type cannot hold, which means the key was declared with the wrong type"}]}],"doc":{"summary":"The value in effect at this scope, inherited from a parent scope when this one does not set it.","body":"This is what tmux itself will act on. To ask the narrower question — whether this scope\nsets the option at all — look for the name in {@link #all()}, which lists only what is set\nhere."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Options.java","line":89,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Options.get","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Options.Options.get","product":"core","slug":"io-github-libtmux-options-options-get"},{"id":"io.github.libtmux.Options.Options.set","name":"set","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Options.Options","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void set(OptionKey key, T value)","params":[{"name":"key","type":"OptionKey"},{"name":"value","type":"T"}],"returns":"void","typeParamNames":["T"],"typeScopeBoundary":false,"typeParams":["T"],"typeParameters":[{"name":"T"}]},{"raw":"@Operation(Kind.MUTATION)\n public void set(String name, String value)","params":[{"name":"name","type":"String"},{"name":"value","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"As {@link #set(String, String)}, written the way tmux reads the key's type."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Options.java","line":130,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Options.set","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Options.Options.set","product":"core","slug":"io-github-libtmux-options-options-set"},{"id":"io.github.libtmux.Options.Options.all","name":"all","kind":"method","modifiers":[],"parent":"io.github.libtmux.Options.Options","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public Map all()","params":[],"returns":"Map","typeScopeBoundary":false}],"doc":{"summary":"Every option set at this scope, in tmux's order. Inherited values are not listed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Options.java","line":137,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Options.all","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Options.Options.all","product":"core","slug":"io-github-libtmux-options-options-all"},{"id":"io.github.libtmux.Options.Options.effective","name":"effective","kind":"method","modifiers":[],"parent":"io.github.libtmux.Options.Options","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public Map effective()","params":[],"returns":"Map","typeScopeBoundary":false}],"doc":{"summary":"Every option tmux lists at this scope, including inherited built-in values.","body":"Inherited user-option names are not listed by tmux. {@link #get(String)} still reads their\neffective values by name."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Options.java","line":316,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Options.effective","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Options.Options.effective","product":"core","slug":"io-github-libtmux-options-options-effective"},{"id":"io.github.libtmux.Options.Options.setIfAbsent","name":"setIfAbsent","kind":"method","modifiers":[],"parent":"io.github.libtmux.Options.Options","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public boolean setIfAbsent(String name, String value)","params":[{"name":"name","type":"String"},{"name":"value","type":"String"}],"returns":"boolean","typeScopeBoundary":false,"returnsDoc":"whether the value was taken, false when this scope already set the option"}],"doc":{"summary":"Sets one option only if this scope does not already set it.","body":"tmux reports the already-set case as an error, which it is not: declining to overwrite is\nthe whole point of asking. The answer comes back as a value instead."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Options.java","line":336,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Options.setIfAbsent","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Options.Options.setIfAbsent","product":"core","slug":"io-github-libtmux-options-options-setifabsent"},{"id":"io.github.libtmux.Options.Options.append","name":"append","kind":"method","modifiers":[],"parent":"io.github.libtmux.Options.Options","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void append(String name, String suffix)","params":[{"name":"name","type":"String"},{"name":"suffix","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Adds to the end of a string option, rather than replacing it.","body":"Appending to an option this scope has not set simply sets it, which is what tmux does and\nwhat a caller building a value up piece by piece wants."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Options.java","line":347,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Options.append","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Options.Options.append","product":"core","slug":"io-github-libtmux-options-options-append"},{"id":"io.github.libtmux.Options.Options.setExpanded","name":"setExpanded","kind":"method","modifiers":[],"parent":"io.github.libtmux.Options.Options","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void setExpanded(String name, String format)","params":[{"name":"name","type":"String"},{"name":"format","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Sets one option to what a tmux format comes to, rather than to the format itself.","body":"{@code setExpanded(\"status-left\", \"in #{session_name}\")} stores {@code in base}. The\nexpansion happens once, when this is called; the option does not stay live.\n\nBecause tmux expands the format when this is called, a {@code #(...)} in it runs a command\nat that moment. Pass any interpolated value through {@link TmuxFormats#literal} unless you mean\nit to be expanded."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Options.java","line":362,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Options.setExpanded","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Options.Options.setExpanded","product":"core","slug":"io-github-libtmux-options-options-setexpanded"},{"id":"io.github.libtmux.Options.Options.unset","name":"unset","kind":"method","modifiers":[],"parent":"io.github.libtmux.Options.Options","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void unset(String name)","params":[{"name":"name","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Removes one option at this scope, so it falls back to whatever it inherits."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Options.java","line":368,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Options.unset","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Options.Options.unset","product":"core","slug":"io-github-libtmux-options-options-unset"},{"id":"io.github.libtmux.Pane.Pane","name":"Pane","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"One tmux pane, as one capture saw it.","body":"Identity is the server and the pane id. An index is state: panes renumber as neighbours come\nand go.\n\nA method named for a captured field returns what {@link #info()} holds and does no I/O;\n{@link #refresh()} reads again. Every other method asks tmux now."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":43,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane","product":"core","slug":"io-github-libtmux-pane-pane"},{"id":"io.github.libtmux.Pane.Pane.Pane","name":"Pane","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"Pane(Server server, ServerSnapshot snapshot, PaneState state)","params":[{"name":"server","type":"Server"},{"name":"snapshot","type":"ServerSnapshot"},{"name":"state","type":"PaneState"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":64,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.Pane","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.Pane","product":"core","slug":"io-github-libtmux-pane-pane-pane"},{"id":"io.github.libtmux.Pane.Pane.info","name":"info","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public PaneState info()","params":[],"returns":"PaneState","typeScopeBoundary":false}],"doc":{"summary":"The fields this capture stored. A later title change is not visible here."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":71,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.info","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.info","product":"core","slug":"io-github-libtmux-pane-pane-info"},{"id":"io.github.libtmux.Pane.Pane.id","name":"id","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public PaneId id()","params":[],"returns":"PaneId","typeScopeBoundary":false}],"doc":{"summary":"The pane's stable id."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":77,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.id","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.id","product":"core","slug":"io-github-libtmux-pane-pane-id"},{"id":"io.github.libtmux.Pane.Pane.index","name":"index","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public int index()","params":[],"returns":"int","typeScopeBoundary":false}],"doc":{"summary":"The pane's position, which shifts as neighbours come and go."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":83,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.index","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.index","product":"core","slug":"io-github-libtmux-pane-pane-index"},{"id":"io.github.libtmux.Pane.Pane.active","name":"active","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public boolean active()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether this was its window's active pane when captured."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":89,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.active","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.active","product":"core","slug":"io-github-libtmux-pane-pane-active"},{"id":"io.github.libtmux.Pane.Pane.currentCommand","name":"currentCommand","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public String currentCommand()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The command tmux reported running here."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":95,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.currentCommand","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.currentCommand","product":"core","slug":"io-github-libtmux-pane-pane-currentcommand"},{"id":"io.github.libtmux.Pane.Pane.floating","name":"floating","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Optional floating()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"Whether this pane floats, or empty when the running tmux cannot say.","body":"Empty is not \"no\". tmux before 3.7 expands the format to nothing, and answering {@code false}\nthere would be indistinguishable from a tmux that looked and found the pane was not floating."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":106,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.floating","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.floating","product":"core","slug":"io-github-libtmux-pane-pane-floating"},{"id":"io.github.libtmux.Pane.Pane.size","name":"size","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Dimensions size()","params":[],"returns":"Dimensions","typeScopeBoundary":false}],"doc":{"summary":"How large the pane was when captured, in terminal cells."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":112,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.size","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.size","product":"core","slug":"io-github-libtmux-pane-pane-size"},{"id":"io.github.libtmux.Pane.Pane.position","name":"position","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public PanePosition position()","params":[],"returns":"PanePosition","typeScopeBoundary":false}],"doc":{"summary":"Where the pane's top-left corner sat in its window when captured, in terminal cells."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":118,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.position","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.position","product":"core","slug":"io-github-libtmux-pane-pane-position"},{"id":"io.github.libtmux.Pane.Pane.title","name":"title","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public String title()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The pane title, which a program running inside it can change."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":124,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.title","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.title","product":"core","slug":"io-github-libtmux-pane-pane-title"},{"id":"io.github.libtmux.Pane.Pane.currentPath","name":"currentPath","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Path currentPath()","params":[],"returns":"Path","typeScopeBoundary":false,"raises":[{"type":"LibTmuxException","doc":"if this JVM's encoding cannot represent the name, which a UTF-8 locale fixes"}]}],"doc":{"summary":"The working directory tmux reported for the pane.","body":"Converted on request rather than when the pane was captured, because a directory name is\nbytes to tmux and this JVM cannot always represent one: converting at capture time would lose\nevery pane on the server over a single pane's directory. {@link #currentPathText()} is the\nvalue tmux actually reported, and never throws."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":140,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.currentPath","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.currentPath","product":"core","slug":"io-github-libtmux-pane-pane-currentpath"},{"id":"io.github.libtmux.Pane.Pane.currentPathText","name":"currentPathText","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public String currentPathText()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The working directory tmux reported for the pane, exactly as tmux reported it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":155,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.currentPathText","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.currentPathText","product":"core","slug":"io-github-libtmux-pane-pane-currentpathtext"},{"id":"io.github.libtmux.Pane.Pane.pid","name":"pid","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public OptionalLong pid()","params":[],"returns":"OptionalLong","typeScopeBoundary":false}],"doc":{"summary":"The process id of the program running in the pane, captured at the time of the read this handle came from.","body":"Empty means tmux reported no process — never a literal {@code 0}, which would be\nindistinguishable from a real pid. That covers two different situations this capture cannot\ntell apart: a pane that never ran one ({@link SplitSpec.Builder#empty()}) and, from tmux 3.8, a\npane that ran one and it has since died. Before 3.8 a dead pane still reports its stale pid.\n{@link #dead()} is the live read that tells a caller which."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":170,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.pid","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.pid","product":"core","slug":"io-github-libtmux-pane-pane-pid"},{"id":"io.github.libtmux.Pane.Pane.dead","name":"dead","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.READ)\n public boolean dead()","params":[],"returns":"boolean","typeScopeBoundary":false,"raises":[{"type":"TargetGoneException","doc":"if the pane is gone from a server that still answers"}]}],"doc":{"summary":"Whether this pane's process has exited, read fresh rather than from the capture.","body":"Dying is something that happens between reads, so a cached answer would report a pane that\ndied after this handle was captured as alive forever — the trap a snapshot-backed {@code\nisDead()} would set, which is why there is no such accessor on the capture itself. This asks\ntmux directly instead, every time.\n\nA dead pane is not necessarily a gone one: {@code remain-on-exit} keeps it around, still\nlisted, to be read. A pane with no {@code remain-on-exit} is simply removed once its process\nexits — {@link #refresh()} on this handle then throws {@link TargetGoneException}, and\nthis method throws too. Unlike every other command {@code Pane} sends, {@code display-message\n-t} does not error on a target it cannot resolve — it exits 0 with nothing on stdout — so a\ngone pane looks like a live one that answered nothing rather than like a failure. That empty\nread, and not a \"can't find pane\" from tmux, is what this method throws on: a real pane always\nanswers {@code 0} or {@code 1} for this format, never nothing."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":194,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.dead","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.dead","product":"core","slug":"io-github-libtmux-pane-pane-dead"},{"id":"io.github.libtmux.Pane.Pane.resize","name":"resize","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void resize(Direction direction, int cells)","params":[{"name":"direction","type":"Direction","doc":"which way to grow, named rather than flagged"},{"name":"cells","type":"int","doc":"how many terminal cells to grow by"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Grows this pane by a number of cells in one direction."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":209,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.resize","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.resize","product":"core","slug":"io-github-libtmux-pane-pane-resize"},{"id":"io.github.libtmux.Pane.Pane.edges","name":"edges","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public PaneEdges edges()","params":[],"returns":"PaneEdges","typeScopeBoundary":false}],"doc":{"summary":"Which sides of its window the pane touches."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":219,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.edges","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.edges","product":"core","slug":"io-github-libtmux-pane-pane-edges"},{"id":"io.github.libtmux.Pane.Pane.copyMode","name":"copyMode","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void copyMode()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Puts this pane into copy mode, where its scrollback can be navigated."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":225,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.copyMode","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.copyMode","product":"core","slug":"io-github-libtmux-pane-pane-copymode"},{"id":"io.github.libtmux.Pane.Pane.mode","name":"mode","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.READ)\n public Optional mode()","params":[],"returns":"Optional","typeScopeBoundary":false,"returnsDoc":"the mode, or empty when the pane is showing its program","raises":[{"type":"LibTmuxException","doc":"if this tmux named a mode outside the supported range"}]}],"doc":{"summary":"Which mode this pane is in at this moment, or empty when it is in none.","body":"Read live rather than from the capture, because entering a mode is something this library\ndoes and a caller wants to see the result of."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":239,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.mode","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.mode","product":"core","slug":"io-github-libtmux-pane-pane-mode"},{"id":"io.github.libtmux.Pane.Pane.exitMode","name":"exitMode","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void exitMode()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Leaves whichever mode this pane is in.","body":"tmux spells this {@code copy-mode -q}, which quits any mode and not only copy mode — a clock\nand a chooser go the same way. The name is tmux's history rather than its behaviour, so it is\nnot the one exposed here."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":252,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.exitMode","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.exitMode","product":"core","slug":"io-github-libtmux-pane-pane-exitmode"},{"id":"io.github.libtmux.Pane.Pane.select","name":"select","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void select()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Makes this the active pane of its window."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":258,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.select","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.select","product":"core","slug":"io-github-libtmux-pane-pane-select"},{"id":"io.github.libtmux.Pane.Pane.retitle","name":"retitle","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@CheckReturnValue\n @Operation(Kind.MUTATION)\n public Pane retitle(String title)","params":[{"name":"title","type":"String"}],"returns":"Pane","typeScopeBoundary":false}],"doc":{"summary":"Retitles this pane and returns its replacement capture.","body":"Retain the result to read the changed title. This handle keeps its original captured state.\n\nA program running in the pane can set its own title through an escape sequence, and tmux\nreports that one instead. This says what the title is now, not what it will stay."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":271,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.retitle","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.retitle","product":"core","slug":"io-github-libtmux-pane-pane-retitle"},{"id":"io.github.libtmux.Pane.Pane.resizeTo","name":"resizeTo","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void resizeTo(Dimensions size)","params":[{"name":"size","type":"Dimensions"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Resizes this pane."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":280,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.resizeTo","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.resizeTo","product":"core","slug":"io-github-libtmux-pane-pane-resizeto"},{"id":"io.github.libtmux.Pane.Pane.server","name":"server","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Server server()","params":[],"returns":"Server","typeScopeBoundary":false}],"doc":{"summary":"The server this pane lives on."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":295,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.server","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.server","product":"core","slug":"io-github-libtmux-pane-pane-server"},{"id":"io.github.libtmux.Pane.Pane.batch","name":"batch","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Batch batch()","params":[],"returns":"Batch","typeScopeBoundary":false}],"doc":{"summary":"Collects commands fenced to the server incarnation that produced this pane."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":301,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.batch","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.batch","product":"core","slug":"io-github-libtmux-pane-pane-batch"},{"id":"io.github.libtmux.Pane.Pane.snapshot","name":"snapshot","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"ServerSnapshot snapshot()","params":[],"returns":"ServerSnapshot","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":306,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.snapshot","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.snapshot","product":"core","slug":"io-github-libtmux-pane-pane-snapshot"},{"id":"io.github.libtmux.Pane.Pane.window","name":"window","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Window window()","params":[],"returns":"Window","typeScopeBoundary":false}],"doc":{"summary":"The window link this pane was reached through. A pure read of the capture."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":311,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.window","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.window","product":"core","slug":"io-github-libtmux-pane-pane-window"},{"id":"io.github.libtmux.Pane.Pane.hooks","name":"hooks","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Hooks hooks()","params":[],"returns":"Hooks","typeScopeBoundary":false}],"doc":{"summary":"This pane's own hooks."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":320,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.hooks","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.hooks","product":"core","slug":"io-github-libtmux-pane-pane-hooks"},{"id":"io.github.libtmux.Pane.Pane.options","name":"options","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Options options()","params":[],"returns":"Options","typeScopeBoundary":false}],"doc":{"summary":"This pane's own options."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":326,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.options","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.options","product":"core","slug":"io-github-libtmux-pane-pane-options"},{"id":"io.github.libtmux.Pane.Pane.capture","name":"capture","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public List capture()","params":[],"returns":"List","typeScopeBoundary":false},{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public List capture(Consumer configure)","params":[{"name":"configure","type":"Consumer","doc":"receives a builder that reads the visible area and nothing else"}],"returns":"List","typeScopeBoundary":false,"raises":[{"type":"UnsupportedFeatureException","doc":"if the spec asks for something this server does not have"}]},{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public List capture(CaptureSpec spec)","params":[{"name":"spec","type":"CaptureSpec"}],"returns":"List","typeScopeBoundary":false,"raises":[{"type":"UnsupportedFeatureException","doc":"if the spec asks for something this server does not have"}]}],"doc":{"summary":"This pane's visible content, one element per line.","examples":[{"lang":"console","intro":"Send input and wait for output before capturing the pane. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/build.gradle.kts","code":"plugins {\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"java","intro":"Save this complete program as src/main/java/Capture.java. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/java/io/github/libtmux/examples/api/java/Capture.java","code":"package io.github.libtmux.examples.api.java;\n\nimport io.github.libtmux.Server;\nimport io.github.libtmux.ServerConfig;\nimport io.github.libtmux.ServerEndpoint;\nimport io.github.libtmux.SessionSpec;\nimport io.github.libtmux.TextOutcome;\nimport java.nio.file.Path;\nimport java.time.Duration;\nimport java.util.List;\n\n/** Send input and wait for output before capturing the pane. */\npublic final class Capture {\n private Capture() {}\n\n public static void main(String[] args) {\n try {\n if (args.length != 3) {\n throw new IllegalArgumentException(\"expected: tmux-binary socket-path config-file\");\n }\n var config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build();\n try (Server server = Server.open(config)) {\n var session = server.newSession(SessionSpec.builder()\n .named(\"api-capture\")\n .running(\"/bin/sh\")\n .build());\n var pane = session.windows().getFirst().panes().getFirst();\n pane.sendKeys(List.of(\"printf 'api-%s\\\\n' keys\", \"Enter\"));\n if (pane.awaitText(\"api-keys\", Duration.ofSeconds(5)) == TextOutcome.TIMED_OUT) {\n throw new IllegalStateException(\"timed out waiting for keys output\");\n }\n pane.sendLine(\"printf 'api-%s\\\\n' line\");\n if (pane.awaitText(\"api-line\", Duration.ofSeconds(5)) == TextOutcome.TIMED_OUT) {\n throw new IllegalStateException(\"timed out waiting for line output\");\n }\n var lines = pane.capture();\n for (String expected : List.of(\"api-keys\", \"api-line\")) {\n if (lines.stream().noneMatch(line -> line.strip().equals(expected))) {\n throw new IllegalStateException(\"capture is missing \" + expected);\n }\n System.out.println(expected);\n }\n }\n } catch (Exception error) {\n if (error instanceof InterruptedException) Thread.currentThread().interrupt();\n System.err.println(\"Example failed: \" + error.getMessage());\n System.exit(1);\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.java.Capture && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"api-keys\napi-line\n"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":332,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.capture","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.capture","product":"core","slug":"io-github-libtmux-pane-pane-capture"},{"id":"io.github.libtmux.Pane.Pane.noteTyped","name":"noteTyped","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void noteTyped(String text)","params":[{"name":"text","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Notes text that reached this pane without going through this handle, so a wait discounts its echo the way it discounts text sent through {@link #sendLiteral}.","body":"Use this for input delivered outside this handle. Input sent through {@link #sendKeys}\nor {@link #sendLiteral} already records synchronized recipients. Include a trailing line break\nwhen the external write submitted its line; otherwise the text remains pending."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":346,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.noteTyped","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.noteTyped","product":"core","slug":"io-github-libtmux-pane-pane-notetyped"},{"id":"io.github.libtmux.Pane.Pane.awaitText","name":"awaitText","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.WAIT)\n public TextOutcome awaitText(String text, Duration timeout) throws InterruptedException","params":[{"name":"text","type":"String","doc":"the text to wait for, matched anywhere in a captured line"},{"name":"timeout","type":"Duration","doc":"how long to keep looking"}],"returns":"TextOutcome","typeScopeBoundary":false,"returnsDoc":"why the wait ended, which tells text that appeared from text that was already there","raises":[{"type":"LibTmuxException","doc":"if a read fails while the server is still answering — most often because this pane was killed, which is not a timeout"},{"type":"InterruptedException","doc":"if the waiting thread is interrupted, which is a cancellation rather than a timeout and so is not reported as one"}]},{"raw":"@Operation(Kind.WAIT)\n public TextOutcome awaitText(String text, Duration timeout, Duration every) throws InterruptedException","params":[{"name":"text","type":"String"},{"name":"timeout","type":"Duration"},{"name":"every","type":"Duration","doc":"how long to leave between looks, at least 10 ms"}],"returns":"TextOutcome","typeScopeBoundary":false,"raises":[{"type":"IllegalArgumentException","doc":"if {@code every} is shorter than 10 ms"}]}],"doc":{"summary":"Waits until this pane's text contains something, and says why the wait ended.","body":"**Reach for this last.** It reads the screen on a timer, which is a heuristic\nabout a program's output rather than a fact about it, and the cheaper waits are exact:\n\n - If you wrote the command, append {@code ; tmux wait-for -S name} to it and block on\n {@link Server#channel}. tmux blocks server-side and returns on the signal itself, so\n nothing is inferred from the screen and one tmux process covers the whole wait. That is\n the only deterministic wait here, and it is the right one whenever the command is yours.\n - If you did not write the command — a daemon printing that it is ready, a build somebody\n else started — this is the case polling is for.\n\nThe timeout bounds the whole wait, reads included. Each read is given only what is left of\nit, so a slow tmux cannot stretch a short wait out to the server's default deadline, and text\nthat first appears after the deadline is not reported. The first read alone is allowed at least\na quarter of a second, so a timeout shorter than one read can still answer\n{@link TextOutcome#PRESENT_AT_ENTRY}.\n\nWaiting longer is also less reliable, not more: tmux frees the oldest scrollback once\n{@code history-limit} is reached, so a long wait on a productive pane can end up reading past\nthe lines it was watching for.","examples":[{"lang":"console","intro":"Send input and wait for output before capturing the pane. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/build.gradle.kts","code":"plugins {\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"java","intro":"Save this complete program as src/main/java/Capture.java. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/java/io/github/libtmux/examples/api/java/Capture.java","code":"package io.github.libtmux.examples.api.java;\n\nimport io.github.libtmux.Server;\nimport io.github.libtmux.ServerConfig;\nimport io.github.libtmux.ServerEndpoint;\nimport io.github.libtmux.SessionSpec;\nimport io.github.libtmux.TextOutcome;\nimport java.nio.file.Path;\nimport java.time.Duration;\nimport java.util.List;\n\n/** Send input and wait for output before capturing the pane. */\npublic final class Capture {\n private Capture() {}\n\n public static void main(String[] args) {\n try {\n if (args.length != 3) {\n throw new IllegalArgumentException(\"expected: tmux-binary socket-path config-file\");\n }\n var config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build();\n try (Server server = Server.open(config)) {\n var session = server.newSession(SessionSpec.builder()\n .named(\"api-capture\")\n .running(\"/bin/sh\")\n .build());\n var pane = session.windows().getFirst().panes().getFirst();\n pane.sendKeys(List.of(\"printf 'api-%s\\\\n' keys\", \"Enter\"));\n if (pane.awaitText(\"api-keys\", Duration.ofSeconds(5)) == TextOutcome.TIMED_OUT) {\n throw new IllegalStateException(\"timed out waiting for keys output\");\n }\n pane.sendLine(\"printf 'api-%s\\\\n' line\");\n if (pane.awaitText(\"api-line\", Duration.ofSeconds(5)) == TextOutcome.TIMED_OUT) {\n throw new IllegalStateException(\"timed out waiting for line output\");\n }\n var lines = pane.capture();\n for (String expected : List.of(\"api-keys\", \"api-line\")) {\n if (lines.stream().noneMatch(line -> line.strip().equals(expected))) {\n throw new IllegalStateException(\"capture is missing \" + expected);\n }\n System.out.println(expected);\n }\n }\n } catch (Exception error) {\n if (error instanceof InterruptedException) Thread.currentThread().interrupt();\n System.err.println(\"Example failed: \" + error.getMessage());\n System.exit(1);\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.java.Capture && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"api-keys\napi-line\n"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":385,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.awaitText","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.awaitText","product":"core","slug":"io-github-libtmux-pane-pane-awaittext"},{"id":"io.github.libtmux.Pane.Pane.run","name":"run","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.WAIT)\n public PaneRun run(String command, Duration timeout) throws InterruptedException","params":[{"name":"command","type":"String","doc":"a line of shell, run as {@code eval} would run it"},{"name":"timeout","type":"Duration","doc":"how long to wait for it to end"}],"returns":"PaneRun","typeScopeBoundary":false,"raises":[{"type":"IllegalStateException","doc":"if the pane is not running a POSIX shell"},{"type":"InterruptedException","doc":"if the waiting thread is interrupted"}]}],"doc":{"summary":"Runs a shell command in this pane to its end, and answers with its exit status and output.","body":"**Reach for this first** whenever the command is yours. Nothing is inferred from\nthe screen: the command runs in a subshell of the pane's own shell, whose trap reports {@code $?}\nand signals a private {@code wait-for} channel, so the wait is tmux's and the status is the\nshell's. The trap covers interrupt and terminate as well as exit, so a command someone stops at\nthe pane ends this call with the status it was stopped with rather than leaving it waiting. The output is what the command printed and nothing else — not the typed line,\nnot the prompt — cut out between two markers the plumbing prints around it.\n\nIt runs in the shell a person set up — its directory, its environment, a virtualenv someone\nactivated — which is the reason to type it there rather than start a process of your own. The\npane has to be running a POSIX shell for the typed line to mean what it says.\n\nA command still running at the deadline keeps running; the answer carries what it had printed\nby then, and {@link PaneRun#exact()} is false.","examples":[{"lang":"java","code":"PaneRun built = pane.run(\"make test\", Duration.ofMinutes(5));\nif (!built.succeeded()) {\n System.err.println(String.join(\"\\n\", built.output()));\n}"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":435,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.run","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.run","product":"core","slug":"io-github-libtmux-pane-pane-run"},{"id":"io.github.libtmux.Pane.Pane.await","name":"await","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.WAIT)\n public WakeReason await(Predicate settled, Duration timeout) throws InterruptedException","params":[{"name":"settled","type":"Predicate","doc":"receives this pane as it is now"},{"name":"timeout","type":"Duration","doc":"how long to keep looking"}],"returns":"WakeReason","typeScopeBoundary":false,"returnsDoc":"why the wait ended","raises":[{"type":"TargetGoneException","doc":"if this pane is killed while its server stays up, which is not a timeout"},{"type":"InterruptedException","doc":"if the waiting thread is interrupted"}]},{"raw":"@Operation(Kind.WAIT)\n public WakeReason await(Predicate settled, Duration timeout, Duration every) throws InterruptedException","params":[{"name":"settled","type":"Predicate"},{"name":"timeout","type":"Duration"},{"name":"every","type":"Duration","doc":"how long to leave between looks, at least 10 ms"}],"returns":"WakeReason","typeScopeBoundary":false,"raises":[{"type":"IllegalArgumentException","doc":"if {@code every} is shorter than 10 ms"}]}],"doc":{"summary":"Waits until a condition holds for this pane as tmux reports it, and says why the wait ended.","body":"The pane is captured again before each test, so the condition reads fresh state rather than\nthe capture this handle was built from. What the condition receives is an ordinary handle on\nthis pane's server and can be kept. The ordering {@link #awaitText} describes applies here too —\na signal on a {@link Server#channel} is exact, and this is for when nothing signals — and so do\nits deadline rules.","examples":[{"lang":"java","code":"pane.await(fresh -> !fresh.currentCommand().equals(\"zsh\"), Duration.ofSeconds(5));"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":484,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.await","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.await","product":"core","slug":"io-github-libtmux-pane-pane-await"},{"id":"io.github.libtmux.Pane.Pane.through","name":"through","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"Pane through(Server via)","params":[{"name":"via","type":"Server"}],"returns":"Pane","typeScopeBoundary":false}],"doc":{"summary":"This pane's captured state, addressed through another view of the same server."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":502,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.through","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.through","product":"core","slug":"io-github-libtmux-pane-pane-through"},{"id":"io.github.libtmux.Pane.Pane.send","name":"send","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void send(String keys)","params":[{"name":"keys","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Sends keys to this pane without pressing Enter.","body":"Separate from {@link #sendLine} rather than a boolean, so a call site says which it means.\n\nRecorded as an echo before dispatch, through the same key model {@link #sendKeys} uses,\nbecause tmux types anything here that is not one of its key names and a terminal echoes what\nis typed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":546,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.send","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.send","product":"core","slug":"io-github-libtmux-pane-pane-send"},{"id":"io.github.libtmux.Pane.Pane.sendKeys","name":"sendKeys","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void sendKeys(List keys)","params":[{"name":"keys","type":"List"}],"returns":"void","typeScopeBoundary":false},{"raw":"@Operation(Kind.MUTATION)\n public void sendKeys(List keys, Runnable beforeSend)","params":[{"name":"keys","type":"List"},{"name":"beforeSend","type":"Runnable","doc":"validates current input ownership"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Sends an ordered group of key names to this pane, as tmux resolves them.","body":"Each entry is resolved through tmux's key table; an unknown name is typed as text.\nRecorded input includes effective synchronized recipients. Known dispatch failures undo the\nrecord; uncertain delivery retains it. {@link #sendLiteral} types every entry literally.","examples":[{"lang":"console","intro":"Send input and wait for output before capturing the pane. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/build.gradle.kts","code":"plugins {\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"java","intro":"Save this complete program as src/main/java/Capture.java. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/java/io/github/libtmux/examples/api/java/Capture.java","code":"package io.github.libtmux.examples.api.java;\n\nimport io.github.libtmux.Server;\nimport io.github.libtmux.ServerConfig;\nimport io.github.libtmux.ServerEndpoint;\nimport io.github.libtmux.SessionSpec;\nimport io.github.libtmux.TextOutcome;\nimport java.nio.file.Path;\nimport java.time.Duration;\nimport java.util.List;\n\n/** Send input and wait for output before capturing the pane. */\npublic final class Capture {\n private Capture() {}\n\n public static void main(String[] args) {\n try {\n if (args.length != 3) {\n throw new IllegalArgumentException(\"expected: tmux-binary socket-path config-file\");\n }\n var config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build();\n try (Server server = Server.open(config)) {\n var session = server.newSession(SessionSpec.builder()\n .named(\"api-capture\")\n .running(\"/bin/sh\")\n .build());\n var pane = session.windows().getFirst().panes().getFirst();\n pane.sendKeys(List.of(\"printf 'api-%s\\\\n' keys\", \"Enter\"));\n if (pane.awaitText(\"api-keys\", Duration.ofSeconds(5)) == TextOutcome.TIMED_OUT) {\n throw new IllegalStateException(\"timed out waiting for keys output\");\n }\n pane.sendLine(\"printf 'api-%s\\\\n' line\");\n if (pane.awaitText(\"api-line\", Duration.ofSeconds(5)) == TextOutcome.TIMED_OUT) {\n throw new IllegalStateException(\"timed out waiting for line output\");\n }\n var lines = pane.capture();\n for (String expected : List.of(\"api-keys\", \"api-line\")) {\n if (lines.stream().noneMatch(line -> line.strip().equals(expected))) {\n throw new IllegalStateException(\"capture is missing \" + expected);\n }\n System.out.println(expected);\n }\n }\n } catch (Exception error) {\n if (error instanceof InterruptedException) Thread.currentThread().interrupt();\n System.err.println(\"Example failed: \" + error.getMessage());\n System.exit(1);\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.java.Capture && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"api-keys\napi-line\n"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":558,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.sendKeys","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.sendKeys","product":"core","slug":"io-github-libtmux-pane-pane-sendkeys"},{"id":"io.github.libtmux.Pane.Pane.sendLiteral","name":"sendLiteral","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void sendLiteral(List keys)","params":[{"name":"keys","type":"List"}],"returns":"void","typeScopeBoundary":false},{"raw":"@Operation(Kind.MUTATION)\n public void sendLiteral(List keys, Runnable beforeSend)","params":[{"name":"keys","type":"List"},{"name":"beforeSend","type":"Runnable","doc":"validates current input ownership"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Sends an ordered group of strings to this pane as the characters they spell.","body":"Nothing is resolved as a key name, so {@code C-c} types those three characters. Recorded\nbefore dispatch, with a line break in the joined text treated as tmux treats it: a submit the\ninstant it reaches the pane, whether or not the caller also presses Enter afterward."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":599,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.sendLiteral","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.sendLiteral","product":"core","slug":"io-github-libtmux-pane-pane-sendliteral"},{"id":"io.github.libtmux.Pane.Pane.sendLine","name":"sendLine","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void sendLine(String command)","params":[{"name":"command","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Sends a line to this pane and presses Enter, which is how a command gets run.","examples":[{"lang":"console","intro":"Send input and wait for output before capturing the pane. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/build.gradle.kts","code":"plugins {\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"java","intro":"Save this complete program as src/main/java/Capture.java. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/java/io/github/libtmux/examples/api/java/Capture.java","code":"package io.github.libtmux.examples.api.java;\n\nimport io.github.libtmux.Server;\nimport io.github.libtmux.ServerConfig;\nimport io.github.libtmux.ServerEndpoint;\nimport io.github.libtmux.SessionSpec;\nimport io.github.libtmux.TextOutcome;\nimport java.nio.file.Path;\nimport java.time.Duration;\nimport java.util.List;\n\n/** Send input and wait for output before capturing the pane. */\npublic final class Capture {\n private Capture() {}\n\n public static void main(String[] args) {\n try {\n if (args.length != 3) {\n throw new IllegalArgumentException(\"expected: tmux-binary socket-path config-file\");\n }\n var config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build();\n try (Server server = Server.open(config)) {\n var session = server.newSession(SessionSpec.builder()\n .named(\"api-capture\")\n .running(\"/bin/sh\")\n .build());\n var pane = session.windows().getFirst().panes().getFirst();\n pane.sendKeys(List.of(\"printf 'api-%s\\\\n' keys\", \"Enter\"));\n if (pane.awaitText(\"api-keys\", Duration.ofSeconds(5)) == TextOutcome.TIMED_OUT) {\n throw new IllegalStateException(\"timed out waiting for keys output\");\n }\n pane.sendLine(\"printf 'api-%s\\\\n' line\");\n if (pane.awaitText(\"api-line\", Duration.ofSeconds(5)) == TextOutcome.TIMED_OUT) {\n throw new IllegalStateException(\"timed out waiting for line output\");\n }\n var lines = pane.capture();\n for (String expected : List.of(\"api-keys\", \"api-line\")) {\n if (lines.stream().noneMatch(line -> line.strip().equals(expected))) {\n throw new IllegalStateException(\"capture is missing \" + expected);\n }\n System.out.println(expected);\n }\n }\n } catch (Exception error) {\n if (error instanceof InterruptedException) Thread.currentThread().interrupt();\n System.err.println(\"Example failed: \" + error.getMessage());\n System.exit(1);\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.java.Capture && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"api-keys\napi-line\n"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":649,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.sendLine","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.sendLine","product":"core","slug":"io-github-libtmux-pane-pane-sendline"},{"id":"io.github.libtmux.Pane.Pane.identity","name":"identity","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"ServerIdentity identity()","params":[],"returns":"ServerIdentity","typeScopeBoundary":false}],"doc":{"summary":"Which server incarnation this pane belongs to: its echo record and its input hold."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":692,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.identity","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.identity","product":"core","slug":"io-github-libtmux-pane-pane-identity"},{"id":"io.github.libtmux.Pane.Pane.breakOut","name":"breakOut","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public Window breakOut()","params":[],"returns":"Window","typeScopeBoundary":false},{"raw":"@Operation(Kind.MUTATION)\n public Window breakOut(String windowName)","params":[{"name":"windowName","type":"String"}],"returns":"Window","typeScopeBoundary":false}],"doc":{"summary":"Moves this pane into a window of its own, leaving tmux to name it.","body":"On tmux 3.7 the name is supplied rather than left to tmux, because letting tmux choose it\nthere ends the server and every session on it. The name supplied is the one tmux would have\nchosen, so the result is the same window either way."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":703,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.breakOut","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.breakOut","product":"core","slug":"io-github-libtmux-pane-pane-breakout"},{"id":"io.github.libtmux.Pane.Pane.expand","name":"expand","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.READ)\n public String expand(String format)","params":[{"name":"format","type":"String","doc":"a tmux format, usually of the shape {@code #{name}}"}],"returns":"String","typeScopeBoundary":false,"returnsDoc":"the expansion, whole when it spans lines and empty when the format expanded to nothing"}],"doc":{"summary":"Expands a tmux format in this pane's context, and answers with what it came to.","body":"The way out of this library. Snapshots carry the fields worth carrying; a format reaches\neverything else tmux knows, including fields added by a release this code has never heard of.","examples":[{"lang":"java","code":"String title = pane.expand(\"#{pane_title}\");\nString where = pane.expand(\"#{session_name}:#{window_index}.#{pane_index}\");"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":732,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.expand","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.expand","product":"core","slug":"io-github-libtmux-pane-pane-expand"},{"id":"io.github.libtmux.Pane.Pane.variables","name":"variables","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public Map variables(List names)","params":[{"name":"names","type":"List"}],"returns":"Map","typeScopeBoundary":false}],"doc":{"summary":"Reads validated tmux variables in this pane's format context."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":742,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.variables","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.variables","product":"core","slug":"io-github-libtmux-pane-pane-variables"},{"id":"io.github.libtmux.Pane.Pane.respawn","name":"respawn","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void respawn()","params":[],"returns":"void","typeScopeBoundary":false},{"raw":"@Operation(Kind.MUTATION)\n public void respawn(String... command)","params":[{"name":"command","type":"String","variadic":"positional","doc":"the command and its arguments"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Kills whatever runs here and starts the pane's default command again.","body":"tmux refuses to respawn a pane that is still running something, on every supported release,\nso what is asked for is always the killing form. Restarting a live process is the whole point\nof the call."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":755,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.respawn","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.respawn","product":"core","slug":"io-github-libtmux-pane-pane-respawn"},{"id":"io.github.libtmux.Pane.Pane.respawnIn","name":"respawnIn","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void respawnIn(Path directory)","params":[{"name":"directory","type":"Path"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Restarts the configured pane process in a caller-supplied literal directory, resolved against this process's working directory when relative."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":764,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.respawnIn","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.respawnIn","product":"core","slug":"io-github-libtmux-pane-pane-respawnin"},{"id":"io.github.libtmux.Pane.Pane.respawnArgv","name":"respawnArgv","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"static List respawnArgv(PaneId pane, Path directory)","params":[{"name":"pane","type":"PaneId"},{"name":"directory","type":"Path"}],"returns":"List","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":770,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.respawnArgv","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.respawnArgv","product":"core","slug":"io-github-libtmux-pane-pane-respawnargv"},{"id":"io.github.libtmux.Pane.Pane.pipeTo","name":"pipeTo","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void pipeTo(String shellCommand)","params":[{"name":"shellCommand","type":"String","doc":"run by the user's shell, so it may redirect and pipe"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Sends everything this pane prints to a shell command, until {@link #stopPiping}.","body":"A second call replaces the first: tmux keeps one pipe per pane, not a list.\n\ntmux expands {@code #(...)} in this command before a shell sees it, and shell quoting does\nnot prevent that. Pass any interpolated value through {@link TmuxFormats#literal} unless you\nmean it to be expanded."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":807,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.pipeTo","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.pipeTo","product":"core","slug":"io-github-libtmux-pane-pane-pipeto"},{"id":"io.github.libtmux.Pane.Pane.stopPiping","name":"stopPiping","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void stopPiping()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Stops sending this pane's output anywhere. Doing so twice is not an error."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":814,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.stopPiping","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.stopPiping","product":"core","slug":"io-github-libtmux-pane-pane-stoppiping"},{"id":"io.github.libtmux.Pane.Pane.split","name":"split","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public Pane split()","params":[],"returns":"Pane","typeScopeBoundary":false,"returnsDoc":"the pane that appeared"},{"raw":"@Operation(Kind.MUTATION)\n public Pane split(Consumer configure)","params":[{"name":"configure","type":"Consumer","doc":"receives a builder holding tmux's defaults"}],"returns":"Pane","typeScopeBoundary":false,"returnsDoc":"the pane that appeared","raises":[{"type":"UnsupportedFeatureException","doc":"if the spec asks for something this server does not have"},{"type":"TargetGoneException","doc":"if a command with no {@link SplitSpec.Builder#keepOnExit} exits before the pane it ran in can be read back — see {@link SplitSpec.Builder#running}. tmux still made the pane and ran the command; only this confirming read lost the race."}]},{"raw":"@Operation(Kind.MUTATION)\n public Pane split(SplitSpec spec)","params":[{"name":"spec","type":"SplitSpec"}],"returns":"Pane","typeScopeBoundary":false,"returnsDoc":"the pane that appeared","raises":[{"type":"UnsupportedFeatureException","doc":"if the spec asks for something this server does not have"},{"type":"TargetGoneException","doc":"if a command with no {@link SplitSpec.Builder#keepOnExit} exits before the pane it ran in can be read back — see {@link SplitSpec.Builder#running}. tmux still made the pane and ran the command; only this confirming read lost the race."}]}],"doc":{"summary":"Splits this pane in half, putting the new one below it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":855,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.split","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.split","product":"core","slug":"io-github-libtmux-pane-pane-split"},{"id":"io.github.libtmux.Pane.Pane.created","name":"created","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"static Pane created(Server server, ServerSnapshot previous, List argv)","params":[{"name":"server","type":"Server"},{"name":"previous","type":"ServerSnapshot"},{"name":"argv","type":"List"}],"returns":"Pane","typeScopeBoundary":true}],"doc":{"summary":"Runs a command that reports one new pane, and hands back a handle on it.","body":"The creating command names the pane it made, so the result is exact rather than whichever\npane a fresh listing happens to put last — two splits racing would otherwise be\nindistinguishable."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":903,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.created","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.created","product":"core","slug":"io-github-libtmux-pane-pane-created"},{"id":"io.github.libtmux.Pane.Pane.createdFormat","name":"createdFormat","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"static String createdFormat()","params":[],"returns":"String","typeScopeBoundary":true}],"doc":{"summary":"The format a creating command reports its new pane through."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":918,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.createdFormat","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.createdFormat","product":"core","slug":"io-github-libtmux-pane-pane-createdformat"},{"id":"io.github.libtmux.Pane.Pane.pasteBuffer","name":"pasteBuffer","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void pasteBuffer(String name)","params":[{"name":"name","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Pastes a named buffer into this pane, as though it had been typed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":923,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.pasteBuffer","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.pasteBuffer","product":"core","slug":"io-github-libtmux-pane-pane-pastebuffer"},{"id":"io.github.libtmux.Pane.Pane.paste","name":"paste","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void paste(String text)","params":[{"name":"text","type":"String"}],"returns":"void","typeScopeBoundary":false,"raises":[{"type":"IllegalArgumentException","doc":"if the text contains NUL, which a terminal cannot receive and {@link #send} refuses too"},{"type":"UnsupportedFeatureException","doc":"before tmux 3.4, where deleting the buffer left by a failed paste can remove one this did not create"}]},{"raw":"@Operation(Kind.MUTATION)\n public void paste(String text, Runnable beforePaste)","params":[{"name":"text","type":"String"},{"name":"beforePaste","type":"Runnable","doc":"runs after staging and immediately before the paste dispatch"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Pastes text into this pane as one block, leaving nothing behind on the server.","body":"Nothing in the text is looked up as a key name, so a line containing {@code Enter} or a\nbracket arrives as those characters. That is what an editor, a REPL, or anything reading a\nhere-document needs, and it is the difference from {@link #send}.\n\ntmux needs a buffer to paste from, and this one travels in the same invocation as the paste\nthat consumes it. A caller that stops in between therefore cannot leave the text in the paste\nhistory every session on the server can read.\n\nThe text goes to tmux on standard input rather than as an argument, so it is not bounded by\nthe size of a tmux command and never reaches tmux's parser."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":953,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.paste","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.paste","product":"core","slug":"io-github-libtmux-pane-pane-paste"},{"id":"io.github.libtmux.Pane.Pane.clearHistory","name":"clearHistory","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void clearHistory()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Discards this pane's scrollback."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":1050,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.clearHistory","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.clearHistory","product":"core","slug":"io-github-libtmux-pane-pane-clearhistory"},{"id":"io.github.libtmux.Pane.Pane.swapWith","name":"swapWith","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void swapWith(Pane other)","params":[{"name":"other","type":"Pane"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Swaps this pane's position with another's."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":1056,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.swapWith","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.swapWith","product":"core","slug":"io-github-libtmux-pane-pane-swapwith"},{"id":"io.github.libtmux.Pane.Pane.joinTo","name":"joinTo","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void joinTo(Window window)","params":[{"name":"window","type":"Window"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Moves this pane into another window, splitting it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":1066,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.joinTo","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.joinTo","product":"core","slug":"io-github-libtmux-pane-pane-jointo"},{"id":"io.github.libtmux.Pane.Pane.kill","name":"kill","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void kill()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Closes this pane."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":1076,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.kill","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.kill","product":"core","slug":"io-github-libtmux-pane-pane-kill"},{"id":"io.github.libtmux.Pane.Pane.refresh","name":"refresh","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@CheckReturnValue\n @Operation(Kind.READ)\n public Pane refresh()","params":[],"returns":"Pane","typeScopeBoundary":false,"raises":[{"type":"TargetGoneException","doc":"if the pane is gone from a server that still answers"},{"type":"ServerUnavailableException","doc":"if no daemon is running"}]}],"doc":{"summary":"Takes a new capture and returns this pane as it is now.","body":"This handle remains unchanged. Use the returned handle for subsequent state reads."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":1090,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.refresh","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.refresh","product":"core","slug":"io-github-libtmux-pane-pane-refresh"},{"id":"io.github.libtmux.Pane.Pane.equals","name":"equals","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Override\n public boolean equals(Object other)","params":[{"name":"other","type":"Object"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":1101,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.equals","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.equals","product":"core","slug":"io-github-libtmux-pane-pane-equals"},{"id":"io.github.libtmux.Pane.Pane.hashCode","name":"hashCode","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Override\n public int hashCode()","params":[],"returns":"int","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":1108,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.hashCode","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.hashCode","product":"core","slug":"io-github-libtmux-pane-pane-hashcode"},{"id":"io.github.libtmux.Pane.Pane.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.Pane.Pane","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Pane.java","line":1113,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane.Pane.toString","product":"core","slug":"io-github-libtmux-pane-pane-tostring"},{"id":"io.github.libtmux.PaneCommand.PaneCommand","name":"PaneCommand","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The line typed at a pane's shell to run one command to its end, and how its output is read back.","body":"Completion is not inferred from the screen. The command runs in a subshell whose trap prints an\nend marker carrying {@code $?} and then signals a private {@code wait-for} channel through the\nsame tmux binary and socket, so the wait is tmux's own and the status is the shell's. The trap\ncovers interrupt and terminate as well as exit, so a command someone stops with {@code C-c} ends\nthe run and reports the status it was stopped with — commonly 130 — rather than leaving a wait\nwith nothing to end it.\n\nThe output is cut out by framing: a start marker is printed before the command and the end\nmarker after it, and only lines strictly between them are returned. The shell echoes the whole\ntyped line, which contains both markers — but only inside quotes, never as a line of its own that\nequals a marker, so matching complete marker lines tells plumbing from output even when the echo\nwraps.\n\n{@link Pane#run} is built on this, and it is public for a caller that needs the same framing\naround orchestration of its own — the MCP server holds a pane for other clients while a run is\nuncertain, which the library has no reason to."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneCommand.java","line":33,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneCommand","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneCommand.PaneCommand","product":"core","slug":"io-github-libtmux-panecommand-panecommand"},{"id":"io.github.libtmux.PaneCommand.PaneCommand.fresh","name":"fresh","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PaneCommand.PaneCommand","signatures":[{"raw":"public static PaneCommand fresh()","params":[],"returns":"PaneCommand","typeScopeBoundary":true}],"doc":{"summary":"A run with markers and a channel no other run shares."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneCommand.java","line":55,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneCommand.fresh","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneCommand.PaneCommand.fresh","product":"core","slug":"io-github-libtmux-panecommand-panecommand-fresh"},{"id":"io.github.libtmux.PaneCommand.PaneCommand.channel","name":"channel","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneCommand.PaneCommand","signatures":[{"raw":"public String channel()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The {@code wait-for} channel the typed line signals once the command has ended."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneCommand.java","line":62,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneCommand.channel","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneCommand.PaneCommand.channel","product":"core","slug":"io-github-libtmux-panecommand-panecommand-channel"},{"id":"io.github.libtmux.PaneCommand.PaneCommand.typed","name":"typed","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneCommand.PaneCommand","signatures":[{"raw":"public String typed(List tmux, String command)","params":[{"name":"tmux","type":"List","doc":"the client the pane's shell calls: an absolute binary and its {@code -S} socket"},{"name":"command","type":"String"}],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The line to type.","body":"Typed at the pane's own interactive shell rather than a fresh one, so the command sees the\nenvironment a person set up there — a virtualenv, a loaded module, a directory someone changed\ninto. The leading space asks bash ({@code HISTCONTROL=ignorespace}) and zsh ({@code\nHIST_IGNORE_SPACE}) to keep the plumbing out of the history; a shell set to neither records it.\nBuiltins are called as {@code \\\\trap}, {@code \\\\eval} and {@code \\\\exit} so an alias of the same\nname cannot take them over.\n\nThe line begins with that space; strip it to have the shell record the line like any other."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneCommand.java","line":80,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneCommand.typed","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneCommand.PaneCommand.typed","product":"core","slug":"io-github-libtmux-panecommand-panecommand-typed"},{"id":"io.github.libtmux.PaneCommand.PaneCommand.frame","name":"frame","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneCommand.PaneCommand","signatures":[{"raw":"public Framed frame(List lines)","params":[{"name":"lines","type":"List"}],"returns":"Framed","typeScopeBoundary":false}],"doc":{"summary":"What lies between the two markers, and the status the end marker carried.","body":"The start marker is matched as a whole row after trimming, the end marker as the end of\none — never by containment, because the echo of the typed line holds both as substrings and\nmust not be mistaken for either. The asymmetry is the shell's: nothing can precede the start\nmarker on its row, since it prints before the command runs, while the command's own last line\nprecedes the end marker whenever it carried no closing newline. That line is output, and is\nreturned as such."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneCommand.java","line":102,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneCommand.frame","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneCommand.PaneCommand.frame","product":"core","slug":"io-github-libtmux-panecommand-panecommand-frame"},{"id":"io.github.libtmux.PaneCommand.PaneCommand.status","name":"status","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneCommand.PaneCommand","signatures":[{"raw":"public OptionalInt status(String line)","params":[{"name":"line","type":"String"}],"returns":"OptionalInt","typeScopeBoundary":false}],"doc":{"summary":"The exit status a row carries at its end, or empty when the row does not end in one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneCommand.java","line":174,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneCommand.status","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneCommand.PaneCommand.status","product":"core","slug":"io-github-libtmux-panecommand-panecommand-status"},{"id":"io.github.libtmux.PaneCommand.PaneCommand.Framed","name":"Framed","kind":"class","modifiers":[],"parent":"io.github.libtmux.PaneCommand.PaneCommand","signatures":[{"raw":"public record Framed(@ReadOnly List lines, boolean exact, OptionalInt status)","params":[{"name":"lines","type":"List","doc":"the command's output"},{"name":"exact","type":"boolean","doc":"whether both markers were found, so the lines are only the command's output"},{"name":"status","type":"OptionalInt","doc":"the exit status, when the end marker was read"}]}],"typeScopeBoundary":true,"doc":{"summary":"A run's output as read back from the screen."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneCommand.java","line":199,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneCommand.Framed","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneCommand.PaneCommand.Framed","product":"core","slug":"io-github-libtmux-panecommand-panecommand-framed"},{"id":"io.github.libtmux.PaneCommand.PaneCommand.Framed.lines","name":"lines","kind":"method","parent":"io.github.libtmux.PaneCommand.PaneCommand.Framed","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"doc":{"summary":"the command's output"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneCommand.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneCommand.Framed.lines","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneCommand.PaneCommand.Framed.lines","product":"core","slug":"io-github-libtmux-panecommand-panecommand-framed-lines"},{"id":"io.github.libtmux.PaneCommand.PaneCommand.Framed.exact","name":"exact","kind":"method","parent":"io.github.libtmux.PaneCommand.PaneCommand.Framed","modifiers":[],"signatures":[{"params":[],"returns":"boolean"}],"doc":{"summary":"whether both markers were found, so the lines are only the command's output"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneCommand.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneCommand.Framed.exact","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneCommand.PaneCommand.Framed.exact","product":"core","slug":"io-github-libtmux-panecommand-panecommand-framed-exact"},{"id":"io.github.libtmux.PaneCommand.PaneCommand.Framed.status","name":"status","kind":"method","parent":"io.github.libtmux.PaneCommand.PaneCommand.Framed","modifiers":[],"signatures":[{"params":[],"returns":"OptionalInt"}],"doc":{"summary":"the exit status, when the end marker was read"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneCommand.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneCommand.Framed.status","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneCommand.PaneCommand.Framed.status","product":"core","slug":"io-github-libtmux-panecommand-panecommand-framed-status"},{"id":"io.github.libtmux.PaneCommand.PaneCommand.requirePosixShell","name":"requirePosixShell","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PaneCommand.PaneCommand","signatures":[{"raw":"static void requirePosixShell(String current)","params":[{"name":"current","type":"String"}],"returns":"void","typeScopeBoundary":true}],"doc":{"summary":"Refuses a pane whose shell would not read the typed line as written."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneCommand.java","line":207,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneCommand.requirePosixShell","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneCommand.PaneCommand.requirePosixShell","product":"core","slug":"io-github-libtmux-panecommand-panecommand-requireposixshell"},{"id":"io.github.libtmux.PaneCommand.PaneCommand.quote","name":"quote","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PaneCommand.PaneCommand","signatures":[{"raw":"static String quote(String word)","params":[{"name":"word","type":"String"}],"returns":"String","typeScopeBoundary":true}],"doc":{"summary":"One word, quoted so a POSIX shell reads it as exactly the text given."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneCommand.java","line":220,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneCommand.quote","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneCommand.PaneCommand.quote","product":"core","slug":"io-github-libtmux-panecommand-panecommand-quote"},{"id":"io.github.libtmux.PaneEcho.PaneEcho","name":"PaneEcho","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Tracks pending and recently submitted input under each server incarnation and pane id."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEcho.java","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEcho","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEcho.PaneEcho","product":"core","slug":"io-github-libtmux-paneecho-paneecho"},{"id":"io.github.libtmux.PaneEcho.PaneEcho.Live","name":"Live","kind":"class","modifiers":[],"parent":"io.github.libtmux.PaneEcho.PaneEcho","signatures":[{"raw":"record Live(@ReadOnly List pending, @ReadOnly List recent)","params":[{"name":"pending","type":"List"},{"name":"recent","type":"List"}]}],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEcho.java","line":48,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEcho.Live","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEcho.PaneEcho.Live","product":"core","slug":"io-github-libtmux-paneecho-paneecho-live"},{"id":"io.github.libtmux.PaneEcho.PaneEcho.Live.NONE","name":"NONE","kind":"attribute","modifiers":["static","readonly"],"parent":"io.github.libtmux.PaneEcho.PaneEcho.Live","signatures":[],"typeScopeBoundary":true,"type":"Live","value":"new Live(List.of(), List.of())","source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEcho.java","line":49,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEcho.Live.NONE","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEcho.PaneEcho.Live.NONE","product":"core","slug":"io-github-libtmux-paneecho-paneecho-live-none"},{"id":"io.github.libtmux.PaneEcho.PaneEcho.Live.pending","name":"pending","kind":"method","parent":"io.github.libtmux.PaneEcho.PaneEcho.Live","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEcho.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEcho.Live.pending","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEcho.PaneEcho.Live.pending","product":"core","slug":"io-github-libtmux-paneecho-paneecho-live-pending"},{"id":"io.github.libtmux.PaneEcho.PaneEcho.Live.recent","name":"recent","kind":"method","parent":"io.github.libtmux.PaneEcho.PaneEcho.Live","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEcho.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEcho.Live.recent","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEcho.PaneEcho.Live.recent","product":"core","slug":"io-github-libtmux-paneecho-paneecho-live-recent"},{"id":"io.github.libtmux.PaneEcho.PaneEcho.PaneEcho","name":"PaneEcho","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.PaneEcho.PaneEcho","signatures":[{"raw":"PaneEcho()","params":[],"typeScopeBoundary":false},{"raw":"PaneEcho(LongSupplier nanoTime)","params":[{"name":"nanoTime","type":"LongSupplier"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEcho.java","line":246,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEcho.PaneEcho","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEcho.PaneEcho.PaneEcho","product":"core","slug":"io-github-libtmux-paneecho-paneecho-paneecho"},{"id":"io.github.libtmux.PaneEcho.PaneEcho.Recorded","name":"Recorded","kind":"class","modifiers":["readonly"],"parent":"io.github.libtmux.PaneEcho.PaneEcho","signatures":[],"typeScopeBoundary":false,"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEcho.java","line":254,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEcho.Recorded","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEcho.PaneEcho.Recorded","product":"core","slug":"io-github-libtmux-paneecho-paneecho-recorded"},{"id":"io.github.libtmux.PaneEcho.PaneEcho.Recorded.confirm","name":"confirm","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneEcho.PaneEcho.Recorded","signatures":[{"raw":"void confirm()","params":[],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEcho.java","line":269,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEcho.Recorded.confirm","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEcho.PaneEcho.Recorded.confirm","product":"core","slug":"io-github-libtmux-paneecho-paneecho-recorded-confirm"},{"id":"io.github.libtmux.PaneEcho.PaneEcho.Recorded.rollback","name":"rollback","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneEcho.PaneEcho.Recorded","signatures":[{"raw":"void rollback()","params":[],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEcho.java","line":297,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEcho.Recorded.rollback","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEcho.PaneEcho.Recorded.rollback","product":"core","slug":"io-github-libtmux-paneecho-paneecho-recorded-rollback"},{"id":"io.github.libtmux.PaneEcho.PaneEcho.recordLiteral","name":"recordLiteral","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneEcho.PaneEcho","signatures":[{"raw":"Recorded recordLiteral(ServerIdentity identity, PaneId pane, String text)","params":[{"name":"identity","type":"ServerIdentity"},{"name":"pane","type":"PaneId"},{"name":"text","type":"String"}],"returns":"Recorded","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEcho.java","line":366,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEcho.recordLiteral","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEcho.PaneEcho.recordLiteral","product":"core","slug":"io-github-libtmux-paneecho-paneecho-recordliteral"},{"id":"io.github.libtmux.PaneEcho.PaneEcho.recordKeys","name":"recordKeys","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneEcho.PaneEcho","signatures":[{"raw":"Recorded recordKeys(ServerIdentity identity, PaneId pane, List keys)","params":[{"name":"identity","type":"ServerIdentity"},{"name":"pane","type":"PaneId"},{"name":"keys","type":"List"}],"returns":"Recorded","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEcho.java","line":370,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEcho.recordKeys","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEcho.PaneEcho.recordKeys","product":"core","slug":"io-github-libtmux-paneecho-paneecho-recordkeys"},{"id":"io.github.libtmux.PaneEcho.PaneEcho.size","name":"size","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneEcho.PaneEcho","signatures":[{"raw":"int size()","params":[],"returns":"int","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEcho.java","line":374,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEcho.size","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEcho.PaneEcho.size","product":"core","slug":"io-github-libtmux-paneecho-paneecho-size"},{"id":"io.github.libtmux.PaneEcho.PaneEcho.forget","name":"forget","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneEcho.PaneEcho","signatures":[{"raw":"void forget(ServerIdentity identity, PaneId pane)","params":[{"name":"identity","type":"ServerIdentity"},{"name":"pane","type":"PaneId"}],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEcho.java","line":378,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEcho.forget","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEcho.PaneEcho.forget","product":"core","slug":"io-github-libtmux-paneecho-paneecho-forget"},{"id":"io.github.libtmux.PaneEcho.PaneEcho.liveFor","name":"liveFor","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneEcho.PaneEcho","signatures":[{"raw":"Live liveFor(ServerIdentity identity, PaneId pane)","params":[{"name":"identity","type":"ServerIdentity"},{"name":"pane","type":"PaneId"}],"returns":"Live","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEcho.java","line":382,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEcho.liveFor","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEcho.PaneEcho.liveFor","product":"core","slug":"io-github-libtmux-paneecho-paneecho-livefor"},{"id":"io.github.libtmux.PaneEcho.PaneEcho.withoutEcho","name":"withoutEcho","kind":"method","modifiers":["static","overload"],"parent":"io.github.libtmux.PaneEcho.PaneEcho","signatures":[{"raw":"static List withoutEcho(List lines, List echoes)","params":[{"name":"lines","type":"List"},{"name":"echoes","type":"List"}],"returns":"List","typeScopeBoundary":true},{"raw":"static List withoutEcho(List lines, String echo)","params":[{"name":"lines","type":"List"},{"name":"echo","type":"String"}],"returns":"List","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEcho.java","line":396,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEcho.withoutEcho","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEcho.PaneEcho.withoutEcho","product":"core","slug":"io-github-libtmux-paneecho-paneecho-withoutecho"},{"id":"io.github.libtmux.PaneEdges.PaneEdges","name":"PaneEdges","kind":"class","modifiers":[],"signatures":[{"raw":"public record PaneEdges(boolean top, boolean bottom, boolean left, boolean right)","params":[{"name":"top","type":"boolean","doc":"whether the pane touches the top of its window"},{"name":"bottom","type":"boolean","doc":"whether it touches the bottom"},{"name":"left","type":"boolean","doc":"whether it touches the left"},{"name":"right","type":"boolean","doc":"whether it touches the right"}]}],"typeScopeBoundary":false,"doc":{"summary":"Which sides of its window a pane touches.","body":"Grouped rather than four loose flags, because they are read together to answer one question —\nwhere in the window this pane sits — and four booleans in a row is an invitation to transpose two."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEdges.java","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEdges","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEdges.PaneEdges","product":"core","slug":"io-github-libtmux-paneedges-paneedges"},{"id":"io.github.libtmux.PaneEdges.PaneEdges.fillsWindow","name":"fillsWindow","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneEdges.PaneEdges","signatures":[{"raw":"public boolean fillsWindow()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether the pane fills its window, touching every side."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEdges.java","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEdges.fillsWindow","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEdges.PaneEdges.fillsWindow","product":"core","slug":"io-github-libtmux-paneedges-paneedges-fillswindow"},{"id":"io.github.libtmux.PaneEdges.PaneEdges.top","name":"top","kind":"method","parent":"io.github.libtmux.PaneEdges.PaneEdges","modifiers":[],"signatures":[{"params":[],"returns":"boolean"}],"doc":{"summary":"whether the pane touches the top of its window"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEdges.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEdges.top","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEdges.PaneEdges.top","product":"core","slug":"io-github-libtmux-paneedges-paneedges-top"},{"id":"io.github.libtmux.PaneEdges.PaneEdges.bottom","name":"bottom","kind":"method","parent":"io.github.libtmux.PaneEdges.PaneEdges","modifiers":[],"signatures":[{"params":[],"returns":"boolean"}],"doc":{"summary":"whether it touches the bottom"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEdges.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEdges.bottom","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEdges.PaneEdges.bottom","product":"core","slug":"io-github-libtmux-paneedges-paneedges-bottom"},{"id":"io.github.libtmux.PaneEdges.PaneEdges.left","name":"left","kind":"method","parent":"io.github.libtmux.PaneEdges.PaneEdges","modifiers":[],"signatures":[{"params":[],"returns":"boolean"}],"doc":{"summary":"whether it touches the left"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEdges.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEdges.left","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEdges.PaneEdges.left","product":"core","slug":"io-github-libtmux-paneedges-paneedges-left"},{"id":"io.github.libtmux.PaneEdges.PaneEdges.right","name":"right","kind":"method","parent":"io.github.libtmux.PaneEdges.PaneEdges","modifiers":[],"signatures":[{"params":[],"returns":"boolean"}],"doc":{"summary":"whether it touches the right"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneEdges.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneEdges.right","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneEdges.PaneEdges.right","product":"core","slug":"io-github-libtmux-paneedges-paneedges-right"},{"id":"io.github.libtmux.PaneId.PaneId","name":"PaneId","kind":"class","modifiers":[],"signatures":[{"raw":"public record PaneId(String value)","params":[{"name":"value","type":"String","doc":"the id including its {@code %} sigil"}]}],"typeScopeBoundary":false,"doc":{"summary":"A tmux pane id, such as {@code %2}.","body":"Stable for the life of the pane, unlike a pane index, which shifts as neighbours come and go."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneId.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneId","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneId.PaneId","product":"core","slug":"io-github-libtmux-paneid-paneid"},{"id":"io.github.libtmux.PaneId.PaneId.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneId.PaneId","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneId.java","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneId.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneId.PaneId.toString","product":"core","slug":"io-github-libtmux-paneid-paneid-tostring"},{"id":"io.github.libtmux.PaneId.PaneId.value","name":"value","kind":"method","parent":"io.github.libtmux.PaneId.PaneId","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"the id including its {@code %} sigil"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneId.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneId.value","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneId.PaneId.value","product":"core","slug":"io-github-libtmux-paneid-paneid-value"},{"id":"io.github.libtmux.PaneInput.PaneInput","name":"PaneInput","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"One writer at a time for a pane's keyboard, paste, and shell run.","body":"Those three share one screen. {@link #hold} throws if another thread already has the pane.\nThe same thread may hold it again; the pane is free when the outer hold closes. {@link\nPane#sendKeys}, {@link Pane#sendLiteral}, {@link Pane#paste}, {@link Pane#pasteBuffer}, and {@link\nPane#run} take a hold for the call and release it when they return. A command still running after\n{@code run} returns is not held unless the caller kept {@link #hold} or {@link #holdInterruptible}\naround that call. Raw commands and {@link CommandChain} steps do not take it.\n\n{@link #holdInterruptible} is that longer hold. Another thread may {@link #enterInterrupt} it\nto send a stop, and that entry does not take the pane. Closing the run's lease still releases\nit, including from the thread that notices the command has finished."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneInput.java","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneInput","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneInput.PaneInput","product":"core","slug":"io-github-libtmux-paneinput-paneinput"},{"id":"io.github.libtmux.PaneInput.PaneInput.hold","name":"hold","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PaneInput.PaneInput","signatures":[{"raw":"public static Lease hold(Pane pane)","params":[{"name":"pane","type":"Pane"}],"returns":"Lease","typeScopeBoundary":true}],"doc":{"summary":"Excludes other threads from this pane until the lease closes. The pane is the one its capture named: the same id on a server started since is another pane, and is not held."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneInput.java","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneInput.hold","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneInput.PaneInput.hold","product":"core","slug":"io-github-libtmux-paneinput-paneinput-hold"},{"id":"io.github.libtmux.PaneInput.PaneInput.holdInterruptible","name":"holdInterruptible","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PaneInput.PaneInput","signatures":[{"raw":"public static Lease holdInterruptible(Pane pane)","params":[{"name":"pane","type":"Pane"}],"returns":"Lease","typeScopeBoundary":true}],"doc":{"summary":"Holds the pane for a command that another thread may have to stop.","body":"The stop uses {@link #enterInterrupt}. Any other attempt to {@link #hold} still fails."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneInput.java","line":49,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneInput.holdInterruptible","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneInput.PaneInput.holdInterruptible","product":"core","slug":"io-github-libtmux-paneinput-paneinput-holdinterruptible"},{"id":"io.github.libtmux.PaneInput.PaneInput.enterInterrupt","name":"enterInterrupt","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PaneInput.PaneInput","signatures":[{"raw":"public static Lease enterInterrupt(Pane pane)","params":[{"name":"pane","type":"Pane"}],"returns":"Lease","typeScopeBoundary":true}],"doc":{"summary":"Enters a pane {@link #holdInterruptible} is holding, without taking it.","body":"Closing this lease leaves the run's hold in place. A pane that is free, or held by\n{@link #hold}, refuses the entry."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneInput.java","line":63,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneInput.enterInterrupt","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneInput.PaneInput.enterInterrupt","product":"core","slug":"io-github-libtmux-paneinput-paneinput-enterinterrupt"},{"id":"io.github.libtmux.PaneInput.PaneInput.heldSince","name":"heldSince","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PaneInput.PaneInput","signatures":[{"raw":"public static Optional heldSince(Pane pane)","params":[{"name":"pane","type":"Pane"}],"returns":"Optional","typeScopeBoundary":true,"returnsDoc":"empty when the pane is not held"}],"doc":{"summary":"Reports when the current hold on this pane was acquired, so a lease nothing ever closes can be found from outside the thread holding it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneInput.java","line":77,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneInput.heldSince","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneInput.PaneInput.heldSince","product":"core","slug":"io-github-libtmux-paneinput-paneinput-heldsince"},{"id":"io.github.libtmux.PaneInput.PaneInput.held","name":"held","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PaneInput.PaneInput","signatures":[{"raw":"@ReadOnly\n public static List held()","params":[],"returns":"List","typeScopeBoundary":true,"returnsDoc":"an immutable snapshot, one entry per held pane regardless of how many times its owning thread has re-entered it"}],"doc":{"summary":"Every pane held right now, for diagnosing a lease nothing ever closes."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneInput.java","line":94,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneInput.held","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneInput.PaneInput.held","product":"core","slug":"io-github-libtmux-paneinput-paneinput-held-16tz"},{"id":"io.github.libtmux.PaneInput.PaneInput.Held","name":"Held","kind":"class","modifiers":[],"parent":"io.github.libtmux.PaneInput.PaneInput","signatures":[{"raw":"public record Held(ServerIdentity server, PaneId pane, Instant since, String holdingThread)","params":[{"name":"server","type":"ServerIdentity","doc":"which server's pane this is"},{"name":"pane","type":"PaneId","doc":"the held pane"},{"name":"since","type":"Instant","doc":"when the hold was acquired"},{"name":"holdingThread","type":"String","doc":"the name of the thread that holds it"}]}],"typeScopeBoundary":true,"doc":{"summary":"One pane's outstanding hold."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneInput.java","line":115,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneInput.Held","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneInput.PaneInput.Held","product":"core","slug":"io-github-libtmux-paneinput-paneinput-held-6kxu"},{"id":"io.github.libtmux.PaneInput.PaneInput.Held.server","name":"server","kind":"method","parent":"io.github.libtmux.PaneInput.PaneInput.Held","modifiers":[],"signatures":[{"params":[],"returns":"ServerIdentity"}],"doc":{"summary":"which server's pane this is"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneInput.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneInput.Held.server","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneInput.PaneInput.Held.server","product":"core","slug":"io-github-libtmux-paneinput-paneinput-held-server"},{"id":"io.github.libtmux.PaneInput.PaneInput.Held.pane","name":"pane","kind":"method","parent":"io.github.libtmux.PaneInput.PaneInput.Held","modifiers":[],"signatures":[{"params":[],"returns":"PaneId"}],"doc":{"summary":"the held pane"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneInput.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneInput.Held.pane","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneInput.PaneInput.Held.pane","product":"core","slug":"io-github-libtmux-paneinput-paneinput-held-pane"},{"id":"io.github.libtmux.PaneInput.PaneInput.Held.since","name":"since","kind":"method","parent":"io.github.libtmux.PaneInput.PaneInput.Held","modifiers":[],"signatures":[{"params":[],"returns":"Instant"}],"doc":{"summary":"when the hold was acquired"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneInput.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneInput.Held.since","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneInput.PaneInput.Held.since","product":"core","slug":"io-github-libtmux-paneinput-paneinput-held-since"},{"id":"io.github.libtmux.PaneInput.PaneInput.Held.holdingThread","name":"holdingThread","kind":"method","parent":"io.github.libtmux.PaneInput.PaneInput.Held","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"the name of the thread that holds it"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneInput.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneInput.Held.holdingThread","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneInput.PaneInput.Held.holdingThread","product":"core","slug":"io-github-libtmux-paneinput-paneinput-held-holdingthread"},{"id":"io.github.libtmux.PaneInput.PaneInput.Lease","name":"Lease","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.PaneInput.PaneInput","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Releases one matching hold. Closing twice releases once. Any thread may close it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneInput.java","line":148,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneInput.Lease","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneInput.PaneInput.Lease","product":"core","slug":"io-github-libtmux-paneinput-paneinput-lease"},{"id":"io.github.libtmux.PaneInput.PaneInput.Lease.close","name":"close","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneInput.PaneInput.Lease","signatures":[{"raw":"@Override\n public void close()","params":[],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneInput.java","line":162,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneInput.Lease.close","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneInput.PaneInput.Lease.close","product":"core","slug":"io-github-libtmux-paneinput-paneinput-lease-close"},{"id":"io.github.libtmux.PaneMode.PaneMode","name":"PaneMode","kind":"enum","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"A mode a pane can be in, as tmux names them.","body":"A pane in a mode shows something other than its program: its own scrollback, a clock, or one of\nthe choosers. Every mode below exists on each supported release."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneMode.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneMode","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneMode.PaneMode","product":"core","slug":"io-github-libtmux-panemode-panemode"},{"id":"io.github.libtmux.PaneMode.PaneMode.COPY","name":"COPY","kind":"constant","modifiers":[],"parent":"io.github.libtmux.PaneMode.PaneMode","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Scrollback, navigable and selectable. Entered by {@link Pane#copyMode()}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneMode.java","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneMode.COPY","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneMode.PaneMode.COPY","product":"core","slug":"io-github-libtmux-panemode-panemode-copy"},{"id":"io.github.libtmux.PaneMode.PaneMode.VIEW","name":"VIEW","kind":"constant","modifiers":[],"parent":"io.github.libtmux.PaneMode.PaneMode","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Scrollback without the selection commands.","body":"tmux enters this itself, for the output of a command it was asked to display; no command\nhere puts a pane into it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneMode.java","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneMode.VIEW","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneMode.PaneMode.VIEW","product":"core","slug":"io-github-libtmux-panemode-panemode-view"},{"id":"io.github.libtmux.PaneMode.PaneMode.CLOCK","name":"CLOCK","kind":"constant","modifiers":[],"parent":"io.github.libtmux.PaneMode.PaneMode","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"A clock, entered by tmux's {@code clock-mode}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneMode.java","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneMode.CLOCK","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneMode.PaneMode.CLOCK","product":"core","slug":"io-github-libtmux-panemode-panemode-clock"},{"id":"io.github.libtmux.PaneMode.PaneMode.TREE","name":"TREE","kind":"constant","modifiers":[],"parent":"io.github.libtmux.PaneMode.PaneMode","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"The session and window browser, which the window finder also opens."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneMode.java","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneMode.TREE","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneMode.PaneMode.TREE","product":"core","slug":"io-github-libtmux-panemode-panemode-tree"},{"id":"io.github.libtmux.PaneMode.PaneMode.CLIENT","name":"CLIENT","kind":"constant","modifiers":[],"parent":"io.github.libtmux.PaneMode.PaneMode","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"The attached-client browser."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneMode.java","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneMode.CLIENT","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneMode.PaneMode.CLIENT","product":"core","slug":"io-github-libtmux-panemode-panemode-client"},{"id":"io.github.libtmux.PaneMode.PaneMode.BUFFER","name":"BUFFER","kind":"constant","modifiers":[],"parent":"io.github.libtmux.PaneMode.PaneMode","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"The paste-buffer browser."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneMode.java","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneMode.BUFFER","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneMode.PaneMode.BUFFER","product":"core","slug":"io-github-libtmux-panemode-panemode-buffer"},{"id":"io.github.libtmux.PaneMode.PaneMode.OPTIONS","name":"OPTIONS","kind":"constant","modifiers":[],"parent":"io.github.libtmux.PaneMode.PaneMode","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"The option browser, entered by tmux's {@code customize-mode}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneMode.java","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneMode.OPTIONS","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneMode.PaneMode.OPTIONS","product":"core","slug":"io-github-libtmux-panemode-panemode-options"},{"id":"io.github.libtmux.PaneMode.PaneMode.PaneMode","name":"PaneMode","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneMode.PaneMode","signatures":[{"raw":"PaneMode(String reported)","params":[{"name":"reported","type":"String"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneMode.java","line":42,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneMode.PaneMode","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneMode.PaneMode.PaneMode","product":"core","slug":"io-github-libtmux-panemode-panemode-panemode"},{"id":"io.github.libtmux.PaneMode.PaneMode.reported","name":"reported","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneMode.PaneMode","signatures":[{"raw":"public String reported()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"What tmux calls it, which is what {@code #{pane_mode}} expands to."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneMode.java","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneMode.reported","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneMode.PaneMode.reported","product":"core","slug":"io-github-libtmux-panemode-panemode-reported"},{"id":"io.github.libtmux.PaneMode.PaneMode.of","name":"of","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PaneMode.PaneMode","signatures":[{"raw":"static PaneMode of(String reported)","params":[{"name":"reported","type":"String"}],"returns":"PaneMode","typeScopeBoundary":true,"raises":[{"type":"LibTmuxException","doc":"if this tmux named a mode this release range does not have"}]}],"doc":{"summary":"Reads what tmux reported."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneMode.java","line":56,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneMode.of","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneMode.PaneMode.of","product":"core","slug":"io-github-libtmux-panemode-panemode-of"},{"id":"io.github.libtmux.PanePosition.PanePosition","name":"PanePosition","kind":"class","modifiers":[],"signatures":[{"raw":"public record PanePosition(int left, int top)","params":[{"name":"left","type":"int","doc":"columns from the window's left edge"},{"name":"top","type":"int","doc":"rows from the window's top edge"}]}],"typeScopeBoundary":false,"doc":{"summary":"Where a pane's top-left corner sits in its window, in terminal cells.","body":"A pair rather than two loose numbers, for the reason {@link Dimensions} gives: read together,\nand a call site that took them separately could transpose them without the compiler noticing."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PanePosition.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PanePosition","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PanePosition.PanePosition","product":"core","slug":"io-github-libtmux-paneposition-paneposition"},{"id":"io.github.libtmux.PanePosition.PanePosition.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.PanePosition.PanePosition","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/PanePosition.java","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PanePosition.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PanePosition.PanePosition.toString","product":"core","slug":"io-github-libtmux-paneposition-paneposition-tostring"},{"id":"io.github.libtmux.PanePosition.PanePosition.left","name":"left","kind":"method","parent":"io.github.libtmux.PanePosition.PanePosition","modifiers":[],"signatures":[{"params":[],"returns":"int"}],"doc":{"summary":"columns from the window's left edge"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PanePosition.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PanePosition.left","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PanePosition.PanePosition.left","product":"core","slug":"io-github-libtmux-paneposition-paneposition-left"},{"id":"io.github.libtmux.PanePosition.PanePosition.top","name":"top","kind":"method","parent":"io.github.libtmux.PanePosition.PanePosition","modifiers":[],"signatures":[{"params":[],"returns":"int"}],"doc":{"summary":"rows from the window's top edge"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PanePosition.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PanePosition.top","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PanePosition.PanePosition.top","product":"core","slug":"io-github-libtmux-paneposition-paneposition-top"},{"id":"io.github.libtmux.PaneRun.PaneRun","name":"PaneRun","kind":"class","modifiers":[],"signatures":[{"raw":"public record PaneRun(\n Outcome outcome, OptionalInt exitStatus, @ReadOnly List output, boolean exact)","params":[{"name":"outcome","type":"Outcome","doc":"why the wait ended"},{"name":"exitStatus","type":"OptionalInt","doc":"the command's exit status, present once it finished and its end was read"},{"name":"output","type":"List","doc":"what the command printed, one element per line, without the plumbing around it. Lines tmux wrapped are rejoined"},{"name":"exact","type":"boolean","doc":"whether the output was cut out between both of its markers, so it is the command's and nothing else. False when the output outgrew the pane's history or the command cleared the screen, or when the command had not finished by the deadline"}]}],"typeScopeBoundary":false,"doc":{"summary":"How a command run in a pane with {@link Pane#run} ended, and what it printed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneRun.java","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneRun","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneRun.PaneRun","product":"core","slug":"io-github-libtmux-panerun-panerun"},{"id":"io.github.libtmux.PaneRun.PaneRun.Outcome","name":"Outcome","kind":"enum","modifiers":[],"parent":"io.github.libtmux.PaneRun.PaneRun","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Why a run's wait ended."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneRun.java","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneRun.Outcome","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneRun.PaneRun.Outcome","product":"core","slug":"io-github-libtmux-panerun-panerun-outcome"},{"id":"io.github.libtmux.PaneRun.PaneRun.Outcome.FINISHED","name":"FINISHED","kind":"constant","modifiers":[],"parent":"io.github.libtmux.PaneRun.PaneRun.Outcome","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"The command ended; its status is in {@link #exitStatus()}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneRun.java","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneRun.Outcome.FINISHED","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneRun.PaneRun.Outcome.FINISHED","product":"core","slug":"io-github-libtmux-panerun-panerun-outcome-finished"},{"id":"io.github.libtmux.PaneRun.PaneRun.Outcome.TIMED_OUT","name":"TIMED_OUT","kind":"constant","modifiers":[],"parent":"io.github.libtmux.PaneRun.PaneRun.Outcome","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"The deadline passed with the command still running. The output is what it had printed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneRun.java","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneRun.Outcome.TIMED_OUT","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneRun.PaneRun.Outcome.TIMED_OUT","product":"core","slug":"io-github-libtmux-panerun-panerun-outcome-timed_out"},{"id":"io.github.libtmux.PaneRun.PaneRun.Outcome.SERVER_GONE","name":"SERVER_GONE","kind":"constant","modifiers":[],"parent":"io.github.libtmux.PaneRun.PaneRun.Outcome","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"The server went away underneath the command, so nothing about it can be relied on."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneRun.java","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneRun.Outcome.SERVER_GONE","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneRun.PaneRun.Outcome.SERVER_GONE","product":"core","slug":"io-github-libtmux-panerun-panerun-outcome-server_gone"},{"id":"io.github.libtmux.PaneRun.PaneRun.succeeded","name":"succeeded","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneRun.PaneRun","signatures":[{"raw":"public boolean succeeded()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether the command finished with status zero."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneRun.java","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneRun.succeeded","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneRun.PaneRun.succeeded","product":"core","slug":"io-github-libtmux-panerun-panerun-succeeded"},{"id":"io.github.libtmux.PaneRun.PaneRun.outcome","name":"outcome","kind":"method","parent":"io.github.libtmux.PaneRun.PaneRun","modifiers":[],"signatures":[{"params":[],"returns":"Outcome"}],"doc":{"summary":"why the wait ended"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneRun.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneRun.outcome","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneRun.PaneRun.outcome","product":"core","slug":"io-github-libtmux-panerun-panerun-outcome-3ji4"},{"id":"io.github.libtmux.PaneRun.PaneRun.exitStatus","name":"exitStatus","kind":"method","parent":"io.github.libtmux.PaneRun.PaneRun","modifiers":[],"signatures":[{"params":[],"returns":"OptionalInt"}],"doc":{"summary":"the command's exit status, present once it finished and its end was read"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneRun.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneRun.exitStatus","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneRun.PaneRun.exitStatus","product":"core","slug":"io-github-libtmux-panerun-panerun-exitstatus"},{"id":"io.github.libtmux.PaneRun.PaneRun.output","name":"output","kind":"method","parent":"io.github.libtmux.PaneRun.PaneRun","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"doc":{"summary":"what the command printed, one element per line, without the plumbing around it. Lines tmux wrapped are rejoined"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneRun.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneRun.output","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneRun.PaneRun.output","product":"core","slug":"io-github-libtmux-panerun-panerun-output"},{"id":"io.github.libtmux.PaneRun.PaneRun.exact","name":"exact","kind":"method","parent":"io.github.libtmux.PaneRun.PaneRun","modifiers":[],"signatures":[{"params":[],"returns":"boolean"}],"doc":{"summary":"whether the output was cut out between both of its markers, so it is the command's and nothing else. False when the output outgrew the pane's history or the command cleared the screen, or when the command had not finished by the deadline"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneRun.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneRun.exact","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneRun.PaneRun.exact","product":"core","slug":"io-github-libtmux-panerun-panerun-exact"},{"id":"io.github.libtmux.PaneSize.PaneSize","name":"PaneSize","kind":"interface","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"How big a new pane should be.","body":"One value with two spellings, not a size and a percentage. tmux takes both through {@code -l},\nso there is no pair of fields to hold consistent and no \"both were given\" error to raise — the\nPython sibling's {@code size}/{@code percentage} pair and the {@code ValueError} guarding it both\ndisappear.\n\ntmux's own {@code -p} flag is never emitted. It is broken in 3.4, which reads the {@code -l}\nargument while handling {@code -p} and fails with {@code size missing}; {@code -l 25%} produces the\nsame pane on every supported release."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneSize.java","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneSize","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneSize.PaneSize","product":"core","slug":"io-github-libtmux-panesize-panesize"},{"id":"io.github.libtmux.PaneSize.PaneSize.Cells","name":"Cells","kind":"class","modifiers":[],"parent":"io.github.libtmux.PaneSize.PaneSize","signatures":[{"raw":"record Cells(int count) implements PaneSize","params":[{"name":"count","type":"int"}]}],"typeScopeBoundary":true,"doc":{"summary":"A size in terminal cells."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneSize.java","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneSize.Cells","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneSize.PaneSize.Cells","product":"core","slug":"io-github-libtmux-panesize-panesize-cells-csva"},{"id":"io.github.libtmux.PaneSize.PaneSize.Cells.count","name":"count","kind":"method","parent":"io.github.libtmux.PaneSize.PaneSize.Cells","modifiers":[],"signatures":[{"params":[],"returns":"int"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneSize.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneSize.Cells.count","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneSize.PaneSize.Cells.count","product":"core","slug":"io-github-libtmux-panesize-panesize-cells-count"},{"id":"io.github.libtmux.PaneSize.PaneSize.Percent","name":"Percent","kind":"class","modifiers":[],"parent":"io.github.libtmux.PaneSize.PaneSize","signatures":[{"raw":"record Percent(int share) implements PaneSize","params":[{"name":"share","type":"int"}]}],"typeScopeBoundary":true,"doc":{"summary":"A share of what is being split."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneSize.java","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneSize.Percent","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneSize.PaneSize.Percent","product":"core","slug":"io-github-libtmux-panesize-panesize-percent-30sw"},{"id":"io.github.libtmux.PaneSize.PaneSize.Percent.share","name":"share","kind":"method","parent":"io.github.libtmux.PaneSize.PaneSize.Percent","modifiers":[],"signatures":[{"params":[],"returns":"int"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneSize.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneSize.Percent.share","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneSize.PaneSize.Percent.share","product":"core","slug":"io-github-libtmux-panesize-panesize-percent-share"},{"id":"io.github.libtmux.PaneSize.PaneSize.cells","name":"cells","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PaneSize.PaneSize","signatures":[{"raw":"static PaneSize cells(int count)","params":[{"name":"count","type":"int"}],"returns":"PaneSize","typeScopeBoundary":true}],"doc":{"summary":"A size in terminal cells."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneSize.java","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneSize.cells","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneSize.PaneSize.cells","product":"core","slug":"io-github-libtmux-panesize-panesize-cells-11uj"},{"id":"io.github.libtmux.PaneSize.PaneSize.percent","name":"percent","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PaneSize.PaneSize","signatures":[{"raw":"static PaneSize percent(int share)","params":[{"name":"share","type":"int"}],"returns":"PaneSize","typeScopeBoundary":true}],"doc":{"summary":"A share of what is being split, between 1 and 100."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneSize.java","line":41,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneSize.percent","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneSize.PaneSize.percent","product":"core","slug":"io-github-libtmux-panesize-panesize-percent-1ojv"},{"id":"io.github.libtmux.PaneSize.PaneSize.flagValue","name":"flagValue","kind":"method","modifiers":[],"parent":"io.github.libtmux.PaneSize.PaneSize","signatures":[{"raw":"default String flagValue()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"What follows {@code -l}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneSize.java","line":46,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneSize.flagValue","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneSize.PaneSize.flagValue","product":"core","slug":"io-github-libtmux-panesize-panesize-flagvalue"},{"id":"io.github.libtmux.PaneStart.PaneStart","name":"PaneStart","kind":"interface","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"What runs in a new pane.","body":"One choice rather than a command field beside an emptiness flag. tmux refuses the pair —\n{@code command cannot be given for empty pane} — and refuses it before spawning anything, so the\ncombination is not a state the server will ever be in. Sealing it means no value can carry both."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneStart.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneStart","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneStart.PaneStart","product":"core","slug":"io-github-libtmux-panestart-panestart"},{"id":"io.github.libtmux.PaneStart.PaneStart.Shell","name":"Shell","kind":"class","modifiers":[],"parent":"io.github.libtmux.PaneStart.PaneStart","signatures":[{"raw":"record Shell() implements PaneStart","params":[]}],"typeScopeBoundary":true,"doc":{"summary":"Whatever the session's {@code default-command} or shell is."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneStart.java","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneStart.Shell","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneStart.PaneStart.Shell","product":"core","slug":"io-github-libtmux-panestart-panestart-shell-x755"},{"id":"io.github.libtmux.PaneStart.PaneStart.Command","name":"Command","kind":"class","modifiers":[],"parent":"io.github.libtmux.PaneStart.PaneStart","signatures":[{"raw":"record Command(@ReadOnly List argv) implements PaneStart","params":[{"name":"argv","type":"List","doc":"the command and its arguments"}]}],"typeScopeBoundary":true,"doc":{"summary":"A command, which closes the pane when it exits unless the pane is kept."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneStart.java","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneStart.Command","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneStart.PaneStart.Command","product":"core","slug":"io-github-libtmux-panestart-panestart-command-o9ni"},{"id":"io.github.libtmux.PaneStart.PaneStart.Command.argv","name":"argv","kind":"method","parent":"io.github.libtmux.PaneStart.PaneStart.Command","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"doc":{"summary":"the command and its arguments"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneStart.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneStart.Command.argv","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneStart.PaneStart.Command.argv","product":"core","slug":"io-github-libtmux-panestart-panestart-command-argv"},{"id":"io.github.libtmux.PaneStart.PaneStart.Empty","name":"Empty","kind":"class","modifiers":[],"parent":"io.github.libtmux.PaneStart.PaneStart","signatures":[{"raw":"record Empty() implements PaneStart","params":[]}],"typeScopeBoundary":true,"doc":{"summary":"No process at all. Requires tmux 3.7."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneStart.java","line":33,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneStart.Empty","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneStart.PaneStart.Empty","product":"core","slug":"io-github-libtmux-panestart-panestart-empty-1qmp"},{"id":"io.github.libtmux.PaneStart.PaneStart.shell","name":"shell","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PaneStart.PaneStart","signatures":[{"raw":"static PaneStart shell()","params":[],"returns":"PaneStart","typeScopeBoundary":true}],"doc":{"summary":"Whatever the session's shell is."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneStart.java","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneStart.shell","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneStart.PaneStart.shell","product":"core","slug":"io-github-libtmux-panestart-panestart-shell-kfg3"},{"id":"io.github.libtmux.PaneStart.PaneStart.command","name":"command","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PaneStart.PaneStart","signatures":[{"raw":"static PaneStart command(String... argv)","params":[{"name":"argv","type":"String","variadic":"positional"}],"returns":"PaneStart","typeScopeBoundary":true}],"doc":{"summary":"A command, which closes the pane when it exits unless the pane is kept."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneStart.java","line":41,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneStart.command","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneStart.PaneStart.command","product":"core","slug":"io-github-libtmux-panestart-panestart-command-vfqq"},{"id":"io.github.libtmux.PaneStart.PaneStart.empty","name":"empty","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PaneStart.PaneStart","signatures":[{"raw":"static PaneStart empty()","params":[],"returns":"PaneStart","typeScopeBoundary":true}],"doc":{"summary":"No process at all. Requires tmux 3.7."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneStart.java","line":46,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneStart.empty","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneStart.PaneStart.empty","product":"core","slug":"io-github-libtmux-panestart-panestart-empty-1dv0"},{"id":"io.github.libtmux.PaneWait.PaneWait","name":"PaneWait","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Polls a pane on a timer for {@link Pane#awaitText} and {@link Pane#await}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneWait.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneWait","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneWait.PaneWait","product":"core","slug":"io-github-libtmux-panewait-panewait"},{"id":"io.github.libtmux.PaneWait.PaneWait.POLL","name":"POLL","kind":"attribute","modifiers":["static","readonly"],"parent":"io.github.libtmux.PaneWait.PaneWait","signatures":[],"typeScopeBoundary":true,"type":"Duration","value":"Duration.ofMillis(50)","doc":{"summary":"How often a wait looks again.","body":"Short enough that a wait reports promptly, long enough that a wait held open for minutes\nis not thousands of tmux invocations. A caller who needs an exact moment wants a signal on a\n{@link Channel}, not a shorter interval here."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneWait.java","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneWait.POLL","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneWait.PaneWait.POLL","product":"core","slug":"io-github-libtmux-panewait-panewait-poll"},{"id":"io.github.libtmux.PaneWait.PaneWait.awaitText","name":"awaitText","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PaneWait.PaneWait","signatures":[{"raw":"static TextOutcome awaitText(Pane pane, String text, Duration timeout, Duration every) throws InterruptedException","params":[{"name":"pane","type":"Pane"},{"name":"text","type":"String"},{"name":"timeout","type":"Duration"},{"name":"every","type":"Duration"}],"returns":"TextOutcome","typeScopeBoundary":true}],"doc":{"summary":"{@link Pane#awaitText(String, Duration, Duration)}'s implementation."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneWait.java","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneWait.awaitText","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneWait.PaneWait.awaitText","product":"core","slug":"io-github-libtmux-panewait-panewait-awaittext"},{"id":"io.github.libtmux.PaneWait.PaneWait.await","name":"await","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PaneWait.PaneWait","signatures":[{"raw":"static WakeReason await(Pane pane, Predicate settled, Duration timeout, Duration every)\n throws InterruptedException","params":[{"name":"pane","type":"Pane"},{"name":"settled","type":"Predicate"},{"name":"timeout","type":"Duration"},{"name":"every","type":"Duration"}],"returns":"WakeReason","typeScopeBoundary":true}],"doc":{"summary":"{@link Pane#await(Predicate, Duration, Duration)}'s implementation."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PaneWait.java","line":60,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PaneWait.await","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PaneWait.PaneWait.await","product":"core","slug":"io-github-libtmux-panewait-panewait-await"},{"id":"io.github.libtmux.PrintedText.PrintedText","name":"PrintedText","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Decodes tmux's printed output against the version the server actually reports, framed with process-local markers so a reply is read back exactly whatever quirks that version's own printing has."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PrintedText.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PrintedText","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PrintedText.PrintedText","product":"core","slug":"io-github-libtmux-printedtext-printedtext"},{"id":"io.github.libtmux.PrintedText.PrintedText.END_MARK","name":"END_MARK","kind":"attribute","modifiers":["static","readonly"],"parent":"io.github.libtmux.PrintedText.PrintedText","signatures":[],"typeScopeBoundary":true,"type":"String","value":"Tokens.perProcess() + \"-end\"","doc":{"summary":"Printed after what a command printed. tmux ends its output with a line break and the transport drops trailing blank lines, so text that itself ends in line breaks would lose them; with this after it, nothing trailing is blank."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PrintedText.java","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PrintedText.END_MARK","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PrintedText.PrintedText.END_MARK","product":"core","slug":"io-github-libtmux-printedtext-printedtext-end_mark"},{"id":"io.github.libtmux.PrintedText.PrintedText.expansion","name":"expansion","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PrintedText.PrintedText","signatures":[{"raw":"static String expansion(String format)","params":[{"name":"format","type":"String"}],"returns":"String","typeScopeBoundary":true}],"doc":{"summary":"A format for {@code display-message -p} that {@link #printed(List)} reads back exactly."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PrintedText.java","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PrintedText.expansion","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PrintedText.PrintedText.expansion","product":"core","slug":"io-github-libtmux-printedtext-printedtext-expansion"},{"id":"io.github.libtmux.PrintedText.PrintedText.versioned","name":"versioned","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PrintedText.PrintedText","signatures":[{"raw":"static String versioned(String format)","params":[{"name":"format","type":"String"}],"returns":"String","typeScopeBoundary":true}],"doc":{"summary":"This format with the server's version expanded ahead of it, so the reply can be decoded without another tmux process. See {@link TmuxFormats#printed(String, TmuxVersion)}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PrintedText.java","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PrintedText.versioned","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PrintedText.PrintedText.versioned","product":"core","slug":"io-github-libtmux-printedtext-printedtext-versioned"},{"id":"io.github.libtmux.PrintedText.PrintedText.printed","name":"printed","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PrintedText.PrintedText","signatures":[{"raw":"static String printed(List reported)","params":[{"name":"reported","type":"List"}],"returns":"String","typeScopeBoundary":true}],"doc":{"summary":"The expansion of a {@link #versioned} format, as tmux held the text."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PrintedText.java","line":40,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PrintedText.printed","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PrintedText.PrintedText.printed","product":"core","slug":"io-github-libtmux-printedtext-printedtext-printed"},{"id":"io.github.libtmux.PrintedText.PrintedText.printedRows","name":"printedRows","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PrintedText.PrintedText","signatures":[{"raw":"static List printedRows(List rows)","params":[{"name":"rows","type":"List"}],"returns":"List","typeScopeBoundary":true}],"doc":{"summary":"As {@link #printed(List)}, for a listing whose every row began with {@link #versioned}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PrintedText.java","line":57,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PrintedText.printedRows","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PrintedText.PrintedText.printedRows","product":"core","slug":"io-github-libtmux-printedtext-printedtext-printedrows"},{"id":"io.github.libtmux.PrintedText.PrintedText.framed","name":"framed","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PrintedText.PrintedText","signatures":[{"raw":"static List> framed(List argv)","params":[{"name":"argv","type":"List"}],"returns":"List>","typeScopeBoundary":true}],"doc":{"summary":"The three commands {@link Server#printed(io.github.libtmux.snapshot.ServerSnapshot, List)} sends as one group."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PrintedText.java","line":66,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PrintedText.framed","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PrintedText.PrintedText.framed","product":"core","slug":"io-github-libtmux-printedtext-printedtext-framed"},{"id":"io.github.libtmux.PrintedText.PrintedText.unwrap","name":"unwrap","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.PrintedText.PrintedText","signatures":[{"raw":"static CommandResult unwrap(CommandResult result)","params":[{"name":"result","type":"CommandResult"}],"returns":"CommandResult","typeScopeBoundary":true}],"doc":{"summary":"Strips the version line and end mark {@link #framed} added, decoding what is left."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/PrintedText.java","line":72,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.PrintedText.unwrap","namespace":"io.github.libtmux","publicId":"io.github.libtmux.PrintedText.PrintedText.unwrap","product":"core","slug":"io-github-libtmux-printedtext-printedtext-unwrap"},{"id":"io.github.libtmux.Prompt.Prompt","name":"Prompt","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The server's command-prompt history.","body":"Whether the commands exist is asked of the daemon, not inferred from a version string."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Prompt.java","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Prompt","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Prompt.Prompt","product":"core","slug":"io-github-libtmux-prompt-prompt"},{"id":"io.github.libtmux.Prompt.Prompt.Prompt","name":"Prompt","kind":"method","modifiers":[],"parent":"io.github.libtmux.Prompt.Prompt","signatures":[{"raw":"Prompt(Server server)","params":[{"name":"server","type":"Server"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Prompt.java","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Prompt.Prompt","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Prompt.Prompt.Prompt","product":"core","slug":"io-github-libtmux-prompt-prompt-prompt"},{"id":"io.github.libtmux.Prompt.Prompt.history","name":"history","kind":"method","modifiers":[],"parent":"io.github.libtmux.Prompt.Prompt","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public List history()","params":[],"returns":"List","typeScopeBoundary":false,"raises":[{"type":"UnsupportedFeatureException","doc":"if this tmux has no such command"}]}],"doc":{"summary":"What has been typed at the prompt, oldest first."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Prompt.java","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Prompt.history","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Prompt.Prompt.history","product":"core","slug":"io-github-libtmux-prompt-prompt-history"},{"id":"io.github.libtmux.Prompt.Prompt.clear","name":"clear","kind":"method","modifiers":[],"parent":"io.github.libtmux.Prompt.Prompt","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void clear()","params":[],"returns":"void","typeScopeBoundary":false,"raises":[{"type":"UnsupportedFeatureException","doc":"if this tmux has no such command"}]}],"doc":{"summary":"Forgets what has been typed at the prompt."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Prompt.java","line":42,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Prompt.clear","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Prompt.Prompt.clear","product":"core","slug":"io-github-libtmux-prompt-prompt-clear"},{"id":"io.github.libtmux.query.FieldKind.FieldKind","name":"FieldKind","kind":"enum","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The value kind a field reads.","body":"Carried explicitly because exactness must not rest on the operand's runtime class. A number\nfield's operand happens to box to {@code Integer}, and reading the kind off that accident would\nsilently pick tmux's lexical comparison where the caller meant arithmetic."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FieldKind.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FieldKind","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FieldKind.FieldKind","product":"core","slug":"io-github-libtmux-query-fieldkind-fieldkind"},{"id":"io.github.libtmux.query.FieldKind.FieldKind.TEXT","name":"TEXT","kind":"constant","modifiers":[],"parent":"io.github.libtmux.query.FieldKind.FieldKind","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FieldKind.java","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FieldKind.TEXT","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FieldKind.FieldKind.TEXT","product":"core","slug":"io-github-libtmux-query-fieldkind-fieldkind-text"},{"id":"io.github.libtmux.query.FieldKind.FieldKind.NUMBER","name":"NUMBER","kind":"constant","modifiers":[],"parent":"io.github.libtmux.query.FieldKind.FieldKind","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FieldKind.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FieldKind.NUMBER","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FieldKind.FieldKind.NUMBER","product":"core","slug":"io-github-libtmux-query-fieldkind-fieldkind-number"},{"id":"io.github.libtmux.query.FieldKind.FieldKind.FLAG","name":"FLAG","kind":"constant","modifiers":[],"parent":"io.github.libtmux.query.FieldKind.FieldKind","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FieldKind.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FieldKind.FLAG","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FieldKind.FieldKind.FLAG","product":"core","slug":"io-github-libtmux-query-fieldkind-fieldkind-flag"},{"id":"io.github.libtmux.query.FieldRef.FieldRef","name":"FieldRef","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"typeParams":["T","V"],"typeParamNames":["T","V"],"typeParameters":[{"name":"T"},{"name":"V"}],"doc":{"summary":"A named, kinded accessor.","body":"The name makes a built expression printable; the kind makes consumers independent of the\noperand's runtime class. A serializer or compiler must bind the exact handle against its own\nmodel before trusting the name to describe what the accessor reads."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FieldRef.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FieldRef","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FieldRef.FieldRef","product":"core","slug":"io-github-libtmux-query-fieldref-fieldref"},{"id":"io.github.libtmux.query.FieldRef.FieldRef.FieldRef","name":"FieldRef","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FieldRef.FieldRef","signatures":[{"raw":"FieldRef(String id, FieldKind kind, Function accessor)","params":[{"name":"id","type":"String"},{"name":"kind","type":"FieldKind"},{"name":"accessor","type":"Function"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FieldRef.java","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FieldRef.FieldRef","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FieldRef.FieldRef.FieldRef","product":"core","slug":"io-github-libtmux-query-fieldref-fieldref-fieldref"},{"id":"io.github.libtmux.query.FieldRef.FieldRef.requireId","name":"requireId","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.query.FieldRef.FieldRef","signatures":[{"raw":"static String requireId(String id)","params":[{"name":"id","type":"String"}],"returns":"String","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FieldRef.java","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FieldRef.requireId","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FieldRef.FieldRef.requireId","product":"core","slug":"io-github-libtmux-query-fieldref-fieldref-requireid"},{"id":"io.github.libtmux.query.FieldRef.FieldRef.id","name":"id","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FieldRef.FieldRef","signatures":[{"raw":"public String id()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FieldRef.java","line":33,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FieldRef.id","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FieldRef.FieldRef.id","product":"core","slug":"io-github-libtmux-query-fieldref-fieldref-id"},{"id":"io.github.libtmux.query.FieldRef.FieldRef.kind","name":"kind","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FieldRef.FieldRef","signatures":[{"raw":"public FieldKind kind()","params":[],"returns":"FieldKind","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FieldRef.java","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FieldRef.kind","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FieldRef.FieldRef.kind","product":"core","slug":"io-github-libtmux-query-fieldref-fieldref-kind"},{"id":"io.github.libtmux.query.FieldRef.FieldRef.accessor","name":"accessor","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FieldRef.FieldRef","signatures":[{"raw":"public Function accessor()","params":[],"returns":"Function","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FieldRef.java","line":41,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FieldRef.accessor","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FieldRef.FieldRef.accessor","product":"core","slug":"io-github-libtmux-query-fieldref-fieldref-accessor"},{"id":"io.github.libtmux.query.Fields.Fields","name":"Fields","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Typed field handles.","body":"A caller supplies each accessor, so no backend may trust the name without matching this exact\nhandle against a model it owns.\n\nEach kind exposes only the operators its type supports, so {@code Pane_.index().startsWith(..)}\nis a compile error rather than a runtime class cast. This is the half of the metamodel that has to\nexist by hand or by generator; the generator only writes the accessors, never the semantics."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields","product":"core","slug":"io-github-libtmux-query-fields-fields"},{"id":"io.github.libtmux.query.Fields.Fields.text","name":"text","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.query.Fields.Fields","signatures":[{"raw":"public static TextField text(String id, Function accessor)","params":[{"name":"id","type":"String"},{"name":"accessor","type":"Function"}],"returns":"TextField","typeParamNames":["T"],"typeScopeBoundary":true,"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.text","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.text","product":"core","slug":"io-github-libtmux-query-fields-fields-text"},{"id":"io.github.libtmux.query.Fields.Fields.number","name":"number","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.query.Fields.Fields","signatures":[{"raw":"public static NumberField number(String id, Function accessor)","params":[{"name":"id","type":"String"},{"name":"accessor","type":"Function"}],"returns":"NumberField","typeParamNames":["T"],"typeScopeBoundary":true,"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.number","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.number","product":"core","slug":"io-github-libtmux-query-fields-fields-number"},{"id":"io.github.libtmux.query.Fields.Fields.flag","name":"flag","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.query.Fields.Fields","signatures":[{"raw":"public static FlagField flag(String id, Function accessor)","params":[{"name":"id","type":"String"},{"name":"accessor","type":"Function"}],"returns":"FlagField","typeParamNames":["T"],"typeScopeBoundary":true,"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.flag","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.flag","product":"core","slug":"io-github-libtmux-query-fields-fields-flag"},{"id":"io.github.libtmux.query.Fields.Fields.toMany","name":"toMany","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.query.Fields.Fields","signatures":[{"raw":"public static ToManyRef toMany(String id, Function> navigate)","params":[{"name":"id","type":"String"},{"name":"navigate","type":"Function>"}],"returns":"ToManyRef","typeParamNames":["T","R"],"typeScopeBoundary":true,"typeParams":["T","R"],"typeParameters":[{"name":"T"},{"name":"R"}]}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.toMany","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.toMany","product":"core","slug":"io-github-libtmux-query-fields-fields-tomany"},{"id":"io.github.libtmux.query.Fields.Fields.toOne","name":"toOne","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.query.Fields.Fields","signatures":[{"raw":"public static ToOneRef toOne(String id, Function> navigate)","params":[{"name":"id","type":"String"},{"name":"navigate","type":"Function>"}],"returns":"ToOneRef","typeParamNames":["T","R"],"typeScopeBoundary":true,"typeParams":["T","R"],"typeParameters":[{"name":"T"},{"name":"R"}]}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":40,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.toOne","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.toOne","product":"core","slug":"io-github-libtmux-query-fields-fields-toone"},{"id":"io.github.libtmux.query.Fields.Fields.TextField","name":"TextField","kind":"class","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields","signatures":[{"raw":"public record TextField(FieldRef ref)","params":[{"name":"ref","type":"FieldRef"}],"typeParamNames":["T"],"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"typeScopeBoundary":true,"typeParams":["T"],"typeParamNames":["T"],"typeParameters":[{"name":"T"}],"doc":{"summary":"String-valued field."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":45,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.TextField","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.TextField","product":"core","slug":"io-github-libtmux-query-fields-fields-textfield"},{"id":"io.github.libtmux.query.Fields.Fields.TextField.is","name":"is","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.TextField","signatures":[{"raw":"public FilterExpr is(String value)","params":[{"name":"value","type":"String"}],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.TextField.is","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.TextField.is","product":"core","slug":"io-github-libtmux-query-fields-fields-textfield-is"},{"id":"io.github.libtmux.query.Fields.Fields.TextField.isNot","name":"isNot","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.TextField","signatures":[{"raw":"public FilterExpr isNot(String value)","params":[{"name":"value","type":"String"}],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":51,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.TextField.isNot","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.TextField.isNot","product":"core","slug":"io-github-libtmux-query-fields-fields-textfield-isnot"},{"id":"io.github.libtmux.query.Fields.Fields.TextField.contains","name":"contains","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.TextField","signatures":[{"raw":"public FilterExpr contains(String value)","params":[{"name":"value","type":"String"}],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":55,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.TextField.contains","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.TextField.contains","product":"core","slug":"io-github-libtmux-query-fields-fields-textfield-contains"},{"id":"io.github.libtmux.query.Fields.Fields.TextField.startsWith","name":"startsWith","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.TextField","signatures":[{"raw":"public FilterExpr startsWith(String value)","params":[{"name":"value","type":"String"}],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":59,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.TextField.startsWith","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.TextField.startsWith","product":"core","slug":"io-github-libtmux-query-fields-fields-textfield-startswith"},{"id":"io.github.libtmux.query.Fields.Fields.TextField.endsWith","name":"endsWith","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.TextField","signatures":[{"raw":"public FilterExpr endsWith(String value)","params":[{"name":"value","type":"String"}],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":63,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.TextField.endsWith","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.TextField.endsWith","product":"core","slug":"io-github-libtmux-query-fields-fields-textfield-endswith"},{"id":"io.github.libtmux.query.Fields.Fields.TextField.matches","name":"matches","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.TextField","signatures":[{"raw":"public FilterExpr matches(Pattern value)","params":[{"name":"value","type":"Pattern"}],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":67,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.TextField.matches","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.TextField.matches","product":"core","slug":"io-github-libtmux-query-fields-fields-textfield-matches"},{"id":"io.github.libtmux.query.Fields.Fields.TextField.in","name":"in","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.TextField","signatures":[{"raw":"public FilterExpr in(Collection values)","params":[{"name":"values","type":"Collection"}],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":71,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.TextField.in","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.TextField.in","product":"core","slug":"io-github-libtmux-query-fields-fields-textfield-in"},{"id":"io.github.libtmux.query.Fields.Fields.TextField.ref","name":"ref","kind":"method","parent":"io.github.libtmux.query.Fields.Fields.TextField","modifiers":[],"signatures":[{"params":[],"returns":"FieldRef"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.TextField.ref","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.TextField.ref","product":"core","slug":"io-github-libtmux-query-fields-fields-textfield-ref"},{"id":"io.github.libtmux.query.Fields.Fields.NumberField","name":"NumberField","kind":"class","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields","signatures":[{"raw":"public record NumberField(FieldRef ref)","params":[{"name":"ref","type":"FieldRef"}],"typeParamNames":["T"],"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"typeScopeBoundary":true,"typeParams":["T"],"typeParamNames":["T"],"typeParameters":[{"name":"T"}],"doc":{"summary":"Integer-valued field. No text operators reach it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":77,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.NumberField","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.NumberField","product":"core","slug":"io-github-libtmux-query-fields-fields-numberfield"},{"id":"io.github.libtmux.query.Fields.Fields.NumberField.is","name":"is","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.NumberField","signatures":[{"raw":"public FilterExpr is(int value)","params":[{"name":"value","type":"int"}],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":79,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.NumberField.is","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.NumberField.is","product":"core","slug":"io-github-libtmux-query-fields-fields-numberfield-is"},{"id":"io.github.libtmux.query.Fields.Fields.NumberField.isNot","name":"isNot","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.NumberField","signatures":[{"raw":"public FilterExpr isNot(int value)","params":[{"name":"value","type":"int"}],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":83,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.NumberField.isNot","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.NumberField.isNot","product":"core","slug":"io-github-libtmux-query-fields-fields-numberfield-isnot"},{"id":"io.github.libtmux.query.Fields.Fields.NumberField.lessThan","name":"lessThan","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.NumberField","signatures":[{"raw":"public FilterExpr lessThan(int value)","params":[{"name":"value","type":"int"}],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":87,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.NumberField.lessThan","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.NumberField.lessThan","product":"core","slug":"io-github-libtmux-query-fields-fields-numberfield-lessthan"},{"id":"io.github.libtmux.query.Fields.Fields.NumberField.atMost","name":"atMost","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.NumberField","signatures":[{"raw":"public FilterExpr atMost(int value)","params":[{"name":"value","type":"int"}],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":91,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.NumberField.atMost","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.NumberField.atMost","product":"core","slug":"io-github-libtmux-query-fields-fields-numberfield-atmost"},{"id":"io.github.libtmux.query.Fields.Fields.NumberField.greaterThan","name":"greaterThan","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.NumberField","signatures":[{"raw":"public FilterExpr greaterThan(int value)","params":[{"name":"value","type":"int"}],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":95,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.NumberField.greaterThan","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.NumberField.greaterThan","product":"core","slug":"io-github-libtmux-query-fields-fields-numberfield-greaterthan"},{"id":"io.github.libtmux.query.Fields.Fields.NumberField.atLeast","name":"atLeast","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.NumberField","signatures":[{"raw":"public FilterExpr atLeast(int value)","params":[{"name":"value","type":"int"}],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":99,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.NumberField.atLeast","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.NumberField.atLeast","product":"core","slug":"io-github-libtmux-query-fields-fields-numberfield-atleast"},{"id":"io.github.libtmux.query.Fields.Fields.NumberField.ref","name":"ref","kind":"method","parent":"io.github.libtmux.query.Fields.Fields.NumberField","modifiers":[],"signatures":[{"params":[],"returns":"FieldRef"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.NumberField.ref","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.NumberField.ref","product":"core","slug":"io-github-libtmux-query-fields-fields-numberfield-ref"},{"id":"io.github.libtmux.query.Fields.Fields.FlagField","name":"FlagField","kind":"class","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields","signatures":[{"raw":"public record FlagField(FieldRef ref)","params":[{"name":"ref","type":"FieldRef"}],"typeParamNames":["T"],"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"typeScopeBoundary":true,"typeParams":["T"],"typeParamNames":["T"],"typeParameters":[{"name":"T"}],"doc":{"summary":"Boolean-valued field."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":105,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.FlagField","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.FlagField","product":"core","slug":"io-github-libtmux-query-fields-fields-flagfield"},{"id":"io.github.libtmux.query.Fields.Fields.FlagField.is","name":"is","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.FlagField","signatures":[{"raw":"public FilterExpr is(boolean value)","params":[{"name":"value","type":"boolean"}],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":107,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.FlagField.is","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.FlagField.is","product":"core","slug":"io-github-libtmux-query-fields-fields-flagfield-is"},{"id":"io.github.libtmux.query.Fields.Fields.FlagField.isNot","name":"isNot","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.FlagField","signatures":[{"raw":"public FilterExpr isNot(boolean value)","params":[{"name":"value","type":"boolean"}],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":111,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.FlagField.isNot","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.FlagField.isNot","product":"core","slug":"io-github-libtmux-query-fields-fields-flagfield-isnot"},{"id":"io.github.libtmux.query.Fields.Fields.FlagField.isTrue","name":"isTrue","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.FlagField","signatures":[{"raw":"public FilterExpr isTrue()","params":[],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":115,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.FlagField.isTrue","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.FlagField.isTrue","product":"core","slug":"io-github-libtmux-query-fields-fields-flagfield-istrue"},{"id":"io.github.libtmux.query.Fields.Fields.FlagField.isFalse","name":"isFalse","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.FlagField","signatures":[{"raw":"public FilterExpr isFalse()","params":[],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":119,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.FlagField.isFalse","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.FlagField.isFalse","product":"core","slug":"io-github-libtmux-query-fields-fields-flagfield-isfalse"},{"id":"io.github.libtmux.query.Fields.Fields.FlagField.ref","name":"ref","kind":"method","parent":"io.github.libtmux.query.Fields.Fields.FlagField","modifiers":[],"signatures":[{"params":[],"returns":"FieldRef"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.FlagField.ref","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.FlagField.ref","product":"core","slug":"io-github-libtmux-query-fields-fields-flagfield-ref"},{"id":"io.github.libtmux.query.Fields.Fields.ToManyRef","name":"ToManyRef","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.query.Fields.Fields","signatures":[],"typeScopeBoundary":true,"typeParams":["T","R"],"typeParamNames":["T","R"],"typeParameters":[{"name":"T"},{"name":"R"}],"doc":{"summary":"To-many relation. Quantifiers are the only way in, so an unquantified relation cannot compile."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":125,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.ToManyRef","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.ToManyRef","product":"core","slug":"io-github-libtmux-query-fields-fields-tomanyref"},{"id":"io.github.libtmux.query.Fields.Fields.ToManyRef.id","name":"id","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.ToManyRef","signatures":[{"raw":"public String id()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":135,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.ToManyRef.id","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.ToManyRef.id","product":"core","slug":"io-github-libtmux-query-fields-fields-tomanyref-id"},{"id":"io.github.libtmux.query.Fields.Fields.ToManyRef.navigate","name":"navigate","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.ToManyRef","signatures":[{"raw":"public Function> navigate()","params":[],"returns":"Function>","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":139,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.ToManyRef.navigate","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.ToManyRef.navigate","product":"core","slug":"io-github-libtmux-query-fields-fields-tomanyref-navigate"},{"id":"io.github.libtmux.query.Fields.Fields.ToManyRef.any","name":"any","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.ToManyRef","signatures":[{"raw":"public FilterExpr.ToMany any(FilterExpr predicate)","params":[{"name":"predicate","type":"FilterExpr"}],"returns":"FilterExpr.ToMany","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":143,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.ToManyRef.any","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.ToManyRef.any","product":"core","slug":"io-github-libtmux-query-fields-fields-tomanyref-any"},{"id":"io.github.libtmux.query.Fields.Fields.ToManyRef.all","name":"all","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.ToManyRef","signatures":[{"raw":"public FilterExpr.ToMany all(FilterExpr predicate)","params":[{"name":"predicate","type":"FilterExpr"}],"returns":"FilterExpr.ToMany","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":147,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.ToManyRef.all","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.ToManyRef.all","product":"core","slug":"io-github-libtmux-query-fields-fields-tomanyref-all"},{"id":"io.github.libtmux.query.Fields.Fields.ToManyRef.none","name":"none","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.ToManyRef","signatures":[{"raw":"public FilterExpr.ToMany none(FilterExpr predicate)","params":[{"name":"predicate","type":"FilterExpr"}],"returns":"FilterExpr.ToMany","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":151,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.ToManyRef.none","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.ToManyRef.none","product":"core","slug":"io-github-libtmux-query-fields-fields-tomanyref-none"},{"id":"io.github.libtmux.query.Fields.Fields.ToOneRef","name":"ToOneRef","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.query.Fields.Fields","signatures":[],"typeScopeBoundary":true,"typeParams":["T","R"],"typeParamNames":["T","R"],"typeParameters":[{"name":"T"},{"name":"R"}],"doc":{"summary":"To-one relation."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":157,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.ToOneRef","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.ToOneRef","product":"core","slug":"io-github-libtmux-query-fields-fields-tooneref"},{"id":"io.github.libtmux.query.Fields.Fields.ToOneRef.id","name":"id","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.ToOneRef","signatures":[{"raw":"public String id()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":167,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.ToOneRef.id","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.ToOneRef.id","product":"core","slug":"io-github-libtmux-query-fields-fields-tooneref-id"},{"id":"io.github.libtmux.query.Fields.Fields.ToOneRef.navigate","name":"navigate","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.ToOneRef","signatures":[{"raw":"public Function> navigate()","params":[],"returns":"Function>","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":171,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.ToOneRef.navigate","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.ToOneRef.navigate","product":"core","slug":"io-github-libtmux-query-fields-fields-tooneref-navigate"},{"id":"io.github.libtmux.query.Fields.Fields.ToOneRef.is","name":"is","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Fields.Fields.ToOneRef","signatures":[{"raw":"public FilterExpr.ToOne is(FilterExpr predicate)","params":[{"name":"predicate","type":"FilterExpr"}],"returns":"FilterExpr.ToOne","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Fields.java","line":175,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Fields.ToOneRef.is","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Fields.Fields.ToOneRef.is","product":"core","slug":"io-github-libtmux-query-fields-fields-tooneref-is"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr","name":"FilterExpr","kind":"interface","modifiers":[],"signatures":[],"typeScopeBoundary":false,"typeParams":["T"],"typeParamNames":["T"],"typeParameters":[{"name":"T"}],"doc":{"summary":"A filter that is both runnable and readable.","body":"It extends {@link Predicate}, so {@code stream().filter(expr)} works with no adapter, and it is\na sealed tree of records, so the same value can be printed, serialized, or later compiled into a\ntmux {@code -f} filter. A lambda can do the first of those and none of the rest, which is why\nnamed expressions are built from these nodes instead.\n\nEvaluation is a total function over the tree: every consumer switches exhaustively, so adding a\nnode breaks compilation at each site that has to learn about it rather than at runtime."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":22,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.describe","name":"describe","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr","signatures":[{"raw":"String describe();","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"Renders the expression as inspectable text. Deliberately not {@code toString} on records."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.describe","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.describe","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-describe"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.and","name":"and","kind":"method","modifiers":["static","overload"],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr","signatures":[{"raw":"static FilterExpr and(List> operands)","params":[{"name":"operands","type":"List>"}],"returns":"FilterExpr","typeParamNames":["T"],"typeScopeBoundary":true,"typeParams":["T"],"typeParameters":[{"name":"T"}]},{"raw":"default FilterExpr and(FilterExpr other)","params":[{"name":"other","type":"FilterExpr"}],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.and","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.and","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-and-12cg"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.or","name":"or","kind":"method","modifiers":["static","overload"],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr","signatures":[{"raw":"static FilterExpr or(List> operands)","params":[{"name":"operands","type":"List>"}],"returns":"FilterExpr","typeParamNames":["T"],"typeScopeBoundary":true,"typeParams":["T"],"typeParameters":[{"name":"T"}]},{"raw":"default FilterExpr or(FilterExpr other)","params":[{"name":"other","type":"FilterExpr"}],"returns":"FilterExpr","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":33,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.or","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.or","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-or-6b3f"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.negate","name":"negate","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr","signatures":[{"raw":"@Override\n default FilterExpr negate()","params":[],"returns":"FilterExpr","typeScopeBoundary":false}],"doc":{"summary":"Negation, narrowed to an expression.","body":"{@code and} and {@code or} below are deliberately *overloads* of the inherited\n{@link Predicate} methods rather than overrides: their parameter is a {@code FilterExpr}, so\ncombining two expressions stays an expression, while passing a bare lambda selects the\ninherited method and yields a plain predicate. That is the intended boundary — a lambda cannot\nbe printed or serialized, so an expression built from one must not claim to be inspectable."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":54,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.negate","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.negate","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-negate"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.And","name":"And","kind":"class","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr","signatures":[{"raw":"record And(@ReadOnly List> operands) implements FilterExpr","params":[{"name":"operands","type":"List>"}],"typeParamNames":["T"],"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"typeScopeBoundary":true,"typeParams":["T"],"typeParamNames":["T"],"typeParameters":[{"name":"T"}],"doc":{"summary":"Conjunction. An empty conjunction is true, which is what makes it a safe identity."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":62,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.And","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.And","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-and-b05l"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.And.test","name":"test","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr.And","signatures":[{"raw":"@Override\n public boolean test(T value)","params":[{"name":"value","type":"T"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":68,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.And.test","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.And.test","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-and-test"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.And.describe","name":"describe","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr.And","signatures":[{"raw":"@Override\n public String describe()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":78,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.And.describe","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.And.describe","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-and-describe"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.And.operands","name":"operands","kind":"method","parent":"io.github.libtmux.query.FilterExpr.FilterExpr.And","modifiers":[],"signatures":[{"params":[],"returns":"List>"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.And.operands","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.And.operands","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-and-operands"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Or","name":"Or","kind":"class","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr","signatures":[{"raw":"record Or(@ReadOnly List> operands) implements FilterExpr","params":[{"name":"operands","type":"List>"}],"typeParamNames":["T"],"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"typeScopeBoundary":true,"typeParams":["T"],"typeParamNames":["T"],"typeParameters":[{"name":"T"}],"doc":{"summary":"Disjunction. An empty disjunction is false."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":90,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Or","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Or","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-or-9f1f"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Or.test","name":"test","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr.Or","signatures":[{"raw":"@Override\n public boolean test(T value)","params":[{"name":"value","type":"T"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":96,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Or.test","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Or.test","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-or-test"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Or.describe","name":"describe","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr.Or","signatures":[{"raw":"@Override\n public String describe()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":106,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Or.describe","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Or.describe","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-or-describe"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Or.operands","name":"operands","kind":"method","parent":"io.github.libtmux.query.FilterExpr.FilterExpr.Or","modifiers":[],"signatures":[{"params":[],"returns":"List>"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Or.operands","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Or.operands","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-or-operands"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Not","name":"Not","kind":"class","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr","signatures":[{"raw":"record Not(FilterExpr operand) implements FilterExpr","params":[{"name":"operand","type":"FilterExpr"}],"typeParamNames":["T"],"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"typeScopeBoundary":true,"typeParams":["T"],"typeParamNames":["T"],"typeParameters":[{"name":"T"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":117,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Not","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Not","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-not"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Not.test","name":"test","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr.Not","signatures":[{"raw":"@Override\n public boolean test(T value)","params":[{"name":"value","type":"T"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":119,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Not.test","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Not.test","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-not-test"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Not.describe","name":"describe","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr.Not","signatures":[{"raw":"@Override\n public String describe()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":124,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Not.describe","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Not.describe","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-not-describe"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Not.operand","name":"operand","kind":"method","parent":"io.github.libtmux.query.FilterExpr.FilterExpr.Not","modifiers":[],"signatures":[{"params":[],"returns":"FilterExpr"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Not.operand","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Not.operand","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-not-operand"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare","name":"Compare","kind":"class","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr","signatures":[{"raw":"record Compare(FieldRef field, Operator operator, Object operand) implements FilterExpr","params":[{"name":"field","type":"FieldRef"},{"name":"operator","type":"Operator"},{"name":"operand","type":"Object"}],"typeParamNames":["T","V"],"typeParams":["T","V"],"typeParameters":[{"name":"T"},{"name":"V"}]}],"typeScopeBoundary":true,"typeParams":["T","V"],"typeParamNames":["T","V"],"typeParameters":[{"name":"T"},{"name":"V"}],"doc":{"summary":"One scalar field compared to one operand."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":131,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Compare","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-compare"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare.test","name":"test","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare","signatures":[{"raw":"@Override\n public boolean test(T value)","params":[{"name":"value","type":"T"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":142,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Compare.test","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare.test","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-compare-test"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare.describe","name":"describe","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare","signatures":[{"raw":"@Override\n public String describe()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":147,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Compare.describe","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare.describe","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-compare-describe"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare.equals","name":"equals","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare","signatures":[{"raw":"@Override\n public boolean equals(Object other)","params":[{"name":"other","type":"Object"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":152,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Compare.equals","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare.equals","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-compare-equals"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare.hashCode","name":"hashCode","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare","signatures":[{"raw":"@Override\n public int hashCode()","params":[],"returns":"int","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":160,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Compare.hashCode","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare.hashCode","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-compare-hashcode"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare.field","name":"field","kind":"method","parent":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare","modifiers":[],"signatures":[{"params":[],"returns":"FieldRef"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Compare.field","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare.field","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-compare-field"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare.operator","name":"operator","kind":"method","parent":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare","modifiers":[],"signatures":[{"params":[],"returns":"Operator"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Compare.operator","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare.operator","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-compare-operator"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare.operand","name":"operand","kind":"method","parent":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare","modifiers":[],"signatures":[{"params":[],"returns":"Object"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Compare.operand","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Compare.operand","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-compare-operand"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.ToMany","name":"ToMany","kind":"class","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr","signatures":[{"raw":"record ToMany(Fields.ToManyRef relation, Quantifier quantifier, FilterExpr predicate)\n implements FilterExpr","params":[{"name":"relation","type":"Fields.ToManyRef"},{"name":"quantifier","type":"Quantifier"},{"name":"predicate","type":"FilterExpr"}],"typeParamNames":["T","R"],"typeParams":["T","R"],"typeParameters":[{"name":"T"},{"name":"R"}]}],"typeScopeBoundary":true,"typeParams":["T","R"],"typeParamNames":["T","R"],"typeParameters":[{"name":"T"},{"name":"R"}],"doc":{"summary":"A quantified filter over a to-many relation.","body":"{@code ALL} over an empty relation is true. That is the standard vacuous reading and it is\nthe one tmux users expect: a session with no windows does not fail \"all windows are zoomed\"."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":181,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.ToMany","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.ToMany","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-tomany"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.ToMany.test","name":"test","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr.ToMany","signatures":[{"raw":"@Override\n public boolean test(T value)","params":[{"name":"value","type":"T"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":190,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.ToMany.test","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.ToMany.test","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-tomany-test"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.ToMany.describe","name":"describe","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr.ToMany","signatures":[{"raw":"@Override\n public String describe()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":200,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.ToMany.describe","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.ToMany.describe","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-tomany-describe"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.ToMany.relation","name":"relation","kind":"method","parent":"io.github.libtmux.query.FilterExpr.FilterExpr.ToMany","modifiers":[],"signatures":[{"params":[],"returns":"Fields.ToManyRef"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.ToMany.relation","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.ToMany.relation","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-tomany-relation"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.ToMany.quantifier","name":"quantifier","kind":"method","parent":"io.github.libtmux.query.FilterExpr.FilterExpr.ToMany","modifiers":[],"signatures":[{"params":[],"returns":"Quantifier"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.ToMany.quantifier","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.ToMany.quantifier","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-tomany-quantifier"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.ToMany.predicate","name":"predicate","kind":"method","parent":"io.github.libtmux.query.FilterExpr.FilterExpr.ToMany","modifiers":[],"signatures":[{"params":[],"returns":"FilterExpr"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.ToMany.predicate","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.ToMany.predicate","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-tomany-predicate"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.ToOne","name":"ToOne","kind":"class","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr","signatures":[{"raw":"record ToOne(Fields.ToOneRef relation, FilterExpr predicate) implements FilterExpr","params":[{"name":"relation","type":"Fields.ToOneRef"},{"name":"predicate","type":"FilterExpr"}],"typeParamNames":["T","R"],"typeParams":["T","R"],"typeParameters":[{"name":"T"},{"name":"R"}]}],"typeScopeBoundary":true,"typeParams":["T","R"],"typeParamNames":["T","R"],"typeParameters":[{"name":"T"},{"name":"R"}],"doc":{"summary":"A to-one relation. An absent target does not satisfy the filter."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":207,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.ToOne","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.ToOne","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-toone"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.ToOne.test","name":"test","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr.ToOne","signatures":[{"raw":"@Override\n public boolean test(T value)","params":[{"name":"value","type":"T"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":214,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.ToOne.test","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.ToOne.test","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-toone-test"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.ToOne.describe","name":"describe","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr.ToOne","signatures":[{"raw":"@Override\n public String describe()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":219,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.ToOne.describe","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.ToOne.describe","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-toone-describe"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.ToOne.relation","name":"relation","kind":"method","parent":"io.github.libtmux.query.FilterExpr.FilterExpr.ToOne","modifiers":[],"signatures":[{"params":[],"returns":"Fields.ToOneRef"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.ToOne.relation","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.ToOne.relation","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-toone-relation"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.ToOne.predicate","name":"predicate","kind":"method","parent":"io.github.libtmux.query.FilterExpr.FilterExpr.ToOne","modifiers":[],"signatures":[{"params":[],"returns":"FilterExpr"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.ToOne.predicate","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.ToOne.predicate","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-toone-predicate"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Quantifier","name":"Quantifier","kind":"enum","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":225,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Quantifier","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Quantifier","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-quantifier"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Quantifier.ANY","name":"ANY","kind":"constant","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr.Quantifier","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":226,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Quantifier.ANY","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Quantifier.ANY","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-quantifier-any"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Quantifier.ALL","name":"ALL","kind":"constant","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr.Quantifier","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":227,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Quantifier.ALL","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Quantifier.ALL","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-quantifier-all"},{"id":"io.github.libtmux.query.FilterExpr.FilterExpr.Quantifier.NONE","name":"NONE","kind":"constant","modifiers":[],"parent":"io.github.libtmux.query.FilterExpr.FilterExpr.Quantifier","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java","line":228,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.FilterExpr.Quantifier.NONE","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.FilterExpr.FilterExpr.Quantifier.NONE","product":"core","slug":"io-github-libtmux-query-filterexpr-filterexpr-quantifier-none"},{"id":"io.github.libtmux.query.Operator.Operator","name":"Operator","kind":"enum","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The scalar comparisons an expression can hold. Evaluation stays a total switch."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Operator.java","line":8,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Operator","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Operator.Operator","product":"core","slug":"io-github-libtmux-query-operator-operator"},{"id":"io.github.libtmux.query.Operator.Operator.EQUALS","name":"EQUALS","kind":"constant","modifiers":[],"parent":"io.github.libtmux.query.Operator.Operator","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Operator.java","line":9,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Operator.EQUALS","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Operator.Operator.EQUALS","product":"core","slug":"io-github-libtmux-query-operator-operator-equals"},{"id":"io.github.libtmux.query.Operator.Operator.NOT_EQUALS","name":"NOT_EQUALS","kind":"constant","modifiers":[],"parent":"io.github.libtmux.query.Operator.Operator","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Operator.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Operator.NOT_EQUALS","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Operator.Operator.NOT_EQUALS","product":"core","slug":"io-github-libtmux-query-operator-operator-not_equals"},{"id":"io.github.libtmux.query.Operator.Operator.CONTAINS","name":"CONTAINS","kind":"constant","modifiers":[],"parent":"io.github.libtmux.query.Operator.Operator","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Operator.java","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Operator.CONTAINS","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Operator.Operator.CONTAINS","product":"core","slug":"io-github-libtmux-query-operator-operator-contains"},{"id":"io.github.libtmux.query.Operator.Operator.STARTS_WITH","name":"STARTS_WITH","kind":"constant","modifiers":[],"parent":"io.github.libtmux.query.Operator.Operator","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Operator.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Operator.STARTS_WITH","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Operator.Operator.STARTS_WITH","product":"core","slug":"io-github-libtmux-query-operator-operator-starts_with"},{"id":"io.github.libtmux.query.Operator.Operator.ENDS_WITH","name":"ENDS_WITH","kind":"constant","modifiers":[],"parent":"io.github.libtmux.query.Operator.Operator","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Operator.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Operator.ENDS_WITH","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Operator.Operator.ENDS_WITH","product":"core","slug":"io-github-libtmux-query-operator-operator-ends_with"},{"id":"io.github.libtmux.query.Operator.Operator.MATCHES","name":"MATCHES","kind":"constant","modifiers":[],"parent":"io.github.libtmux.query.Operator.Operator","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Operator.java","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Operator.MATCHES","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Operator.Operator.MATCHES","product":"core","slug":"io-github-libtmux-query-operator-operator-matches-1lrg"},{"id":"io.github.libtmux.query.Operator.Operator.LESS_THAN","name":"LESS_THAN","kind":"constant","modifiers":[],"parent":"io.github.libtmux.query.Operator.Operator","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Operator.java","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Operator.LESS_THAN","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Operator.Operator.LESS_THAN","product":"core","slug":"io-github-libtmux-query-operator-operator-less_than"},{"id":"io.github.libtmux.query.Operator.Operator.AT_MOST","name":"AT_MOST","kind":"constant","modifiers":[],"parent":"io.github.libtmux.query.Operator.Operator","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Operator.java","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Operator.AT_MOST","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Operator.Operator.AT_MOST","product":"core","slug":"io-github-libtmux-query-operator-operator-at_most"},{"id":"io.github.libtmux.query.Operator.Operator.GREATER_THAN","name":"GREATER_THAN","kind":"constant","modifiers":[],"parent":"io.github.libtmux.query.Operator.Operator","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Operator.java","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Operator.GREATER_THAN","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Operator.Operator.GREATER_THAN","product":"core","slug":"io-github-libtmux-query-operator-operator-greater_than"},{"id":"io.github.libtmux.query.Operator.Operator.AT_LEAST","name":"AT_LEAST","kind":"constant","modifiers":[],"parent":"io.github.libtmux.query.Operator.Operator","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Operator.java","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Operator.AT_LEAST","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Operator.Operator.AT_LEAST","product":"core","slug":"io-github-libtmux-query-operator-operator-at_least"},{"id":"io.github.libtmux.query.Operator.Operator.IN","name":"IN","kind":"constant","modifiers":[],"parent":"io.github.libtmux.query.Operator.Operator","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Operator.java","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Operator.IN","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Operator.Operator.IN","product":"core","slug":"io-github-libtmux-query-operator-operator-in"},{"id":"io.github.libtmux.query.Operator.Operator.Operator","name":"Operator","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Operator.Operator","signatures":[{"raw":"Operator(String symbol)","params":[{"name":"symbol","type":"String"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Operator.java","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Operator.Operator","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Operator.Operator.Operator","product":"core","slug":"io-github-libtmux-query-operator-operator-operator"},{"id":"io.github.libtmux.query.Operator.Operator.symbol","name":"symbol","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Operator.Operator","signatures":[{"raw":"public String symbol()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Operator.java","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Operator.symbol","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Operator.Operator.symbol","product":"core","slug":"io-github-libtmux-query-operator-operator-symbol"},{"id":"io.github.libtmux.query.Operator.Operator.requireOperand","name":"requireOperand","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Operator.Operator","signatures":[{"raw":"void requireOperand(FieldKind kind, Object operand)","params":[{"name":"kind","type":"FieldKind"},{"name":"operand","type":"Object"}],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Operator.java","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Operator.requireOperand","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Operator.Operator.requireOperand","product":"core","slug":"io-github-libtmux-query-operator-operator-requireoperand"},{"id":"io.github.libtmux.query.Operator.Operator.matches","name":"matches","kind":"method","modifiers":[],"parent":"io.github.libtmux.query.Operator.Operator","signatures":[{"raw":"@SuppressWarnings(\"unchecked\")\n boolean matches(Object actual, Object operand)","params":[{"name":"actual","type":"Object"},{"name":"operand","type":"Object"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Operator.java","line":65,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Operator.matches","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Operator.Operator.matches","product":"core","slug":"io-github-libtmux-query-operator-operator-matches-80y7"},{"id":"io.github.libtmux.query.Selections.Selections","name":"Selections","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Cardinality with the ambiguity removed.","body":"\"No session matched\" and \"several sessions matched\" are different bugs in a caller's code, so\nthey get different exceptions. {@code findFirst} stays on {@link java.util.stream.Stream} where it\nalready belongs; only the strict shapes need helpers."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Selections.java","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Selections","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Selections.Selections","product":"core","slug":"io-github-libtmux-query-selections-selections"},{"id":"io.github.libtmux.query.Selections.Selections.exactlyOne","name":"exactlyOne","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.query.Selections.Selections","signatures":[{"raw":"public static T exactlyOne(Iterable matches)","params":[{"name":"matches","type":"Iterable"}],"returns":"T","typeParamNames":["T"],"typeScopeBoundary":true,"typeParams":["T"],"typeParameters":[{"name":"T"}],"raises":[{"type":"CardinalityException.NoMatch","doc":"if nothing matched"},{"type":"CardinalityException.MultipleMatches","doc":"if more than one did; the scan stops at the second match, so its count is two"}]}],"doc":{"summary":"The single match, or a failure naming which way the count was wrong."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Selections.java","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Selections.exactlyOne","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Selections.Selections.exactlyOne","product":"core","slug":"io-github-libtmux-query-selections-selections-exactlyone"},{"id":"io.github.libtmux.query.Selections.Selections.oneOrEmpty","name":"oneOrEmpty","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.query.Selections.Selections","signatures":[{"raw":"public static Optional oneOrEmpty(Iterable matches)","params":[{"name":"matches","type":"Iterable"}],"returns":"Optional","typeParamNames":["T"],"typeScopeBoundary":true,"typeParams":["T"],"typeParameters":[{"name":"T"}],"raises":[{"type":"CardinalityException.MultipleMatches","doc":"if more than one matched"}]}],"doc":{"summary":"The single match if there is one, empty if there is none — but still a failure for several.","body":"Returning the first of many would make a caller's ambiguous query look answered."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/Selections.java","line":44,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.Selections.oneOrEmpty","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.Selections.Selections.oneOrEmpty","product":"core","slug":"io-github-libtmux-query-selections-selections-oneorempty"},{"id":"io.github.libtmux.query.TmuxFilters.TmuxFilters","name":"TmuxFilters","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Lowers a {@link FilterExpr} to a tmux {@code -f} format when every node is one tmux can apply.","body":"Relations, a Java regular expression, and any operand containing {@code ,}, `#`,\n`{`, `}`, {@code :}, or a backslash, are refused. Those stay a local filter over a capture. tmux\ncompiles {@code #{m/r:}} with its own dialect, so a pattern Java would match can select nothing.\nA compiled format is a hint to tmux, not a promise that the local reading would differ: callers\nstill apply the expression to the rows that come back."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/TmuxFilters.java","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.TmuxFilters","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.TmuxFilters.TmuxFilters","product":"core","slug":"io-github-libtmux-query-tmuxfilters-tmuxfilters"},{"id":"io.github.libtmux.query.TmuxFilters.TmuxFilters.format","name":"format","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.query.TmuxFilters.TmuxFilters","signatures":[{"raw":"public static Optional format(FilterExpr expression)","params":[{"name":"expression","type":"FilterExpr"}],"returns":"Optional","typeScopeBoundary":true}],"doc":{"summary":"A tmux format for {@code -f}, or empty when this expression is not a safe subset."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/TmuxFilters.java","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.TmuxFilters.format","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.TmuxFilters.TmuxFilters.format","product":"core","slug":"io-github-libtmux-query-tmuxfilters-tmuxfilters-format"},{"id":"io.github.libtmux.query.TmuxFilters.TmuxFilters.literal","name":"literal","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.query.TmuxFilters.TmuxFilters","signatures":[{"raw":"public static boolean literal(String value)","params":[{"name":"value","type":"String"}],"returns":"boolean","typeScopeBoundary":true}],"doc":{"summary":"Whether this text can sit inside a tmux format argument without changing its shape. A backslash escapes the next character in a format, so a trailing one swallows the closing brace."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/query/TmuxFilters.java","line":33,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.query.TmuxFilters.literal","namespace":"io.github.libtmux.query","publicId":"io.github.libtmux.query.TmuxFilters.TmuxFilters.literal","product":"core","slug":"io-github-libtmux-query-tmuxfilters-tmuxfilters-literal"},{"id":"io.github.libtmux.Server.Server","name":"Server","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Manages sessions, windows, and panes on a tmux server.","body":"Use {@link #open} with a {@link ServerConfig} to select a server by socket name or path.\nFrom this object, create sessions or query the server's existing sessions, windows, and panes.\nEach {@link Session} contains windows, and each {@link Window} contains panes.\n\nOwnership is decided at construction and never inferred. {@link #open} creates a transport this\nserver closes exactly once; {@link #using} borrows one the caller keeps, so several servers can\nshare a transport and closing one leaves the others working.\n\nClosing this object releases its owned transport. The tmux server and its sessions keep\nrunning. Call {@link #killServer()} to stop the tmux server.\n\nClose it anyway. A server that owns its transport holds the threads that drain tmux's output,\nand those are not daemons, so that a reply being read when a program ends is finished rather than\ntruncated. They do let go once they have been idle, so forgetting to close delays a JVM's exit by\nseconds instead of preventing it — but only closing releases them at once.\n\n**Threads.** Share one freely. A server holds nothing a call changes, its transport\nis thread-safe by contract, and the record of what was typed into each pane is concurrent; calls\nfrom several threads run side by side, bounded by the transport's own admission. The same goes\nfor every {@link Session}, {@link Window} and {@link Pane} it hands out: each is an immutable view\nof one capture, and a method that changes tmux changes tmux rather than the handle. Close it once,\nafter the last call on any thread.","examples":[{"lang":"console","intro":"Connect to a private tmux server. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/build.gradle.kts","code":"plugins {\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"java","intro":"Save this complete program as src/main/java/Connect.java. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/java/io/github/libtmux/examples/api/java/Connect.java","code":"package io.github.libtmux.examples.api.java;\n\nimport io.github.libtmux.Server;\nimport io.github.libtmux.ServerConfig;\nimport io.github.libtmux.ServerEndpoint;\nimport java.nio.file.Path;\n\n/** Connect to a private tmux server. */\npublic final class Connect {\n private Connect() {}\n\n public static void main(String[] args) {\n try {\n if (args.length != 3) {\n throw new IllegalArgumentException(\"expected: tmux-binary socket-path config-file\");\n }\n var config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build();\n try (Server server = Server.open(config)) {\n System.out.println(\"connected=\" + server.isAlive());\n }\n } catch (Exception error) {\n if (error instanceof InterruptedException) Thread.currentThread().interrupt();\n System.err.println(\"Example failed: \" + error.getMessage());\n System.exit(1);\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.java.Connect && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"connected=true\n"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":73,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server","product":"core","slug":"io-github-libtmux-server-server"},{"id":"io.github.libtmux.Server.Server.echo","name":"echo","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"PaneEcho echo()","params":[],"returns":"PaneEcho","typeScopeBoundary":false}],"doc":{"summary":"What this library last typed into each of this server's panes."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":106,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.echo","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.echo","product":"core","slug":"io-github-libtmux-server-server-echo"},{"id":"io.github.libtmux.Server.Server.capture","name":"capture","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"SnapshotCapture capture()","params":[],"returns":"SnapshotCapture","typeScopeBoundary":false}],"doc":{"summary":"How this server's own hierarchy is read back, for helpers that need one listing directly."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":111,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.capture","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.capture","product":"core","slug":"io-github-libtmux-server-server-capture"},{"id":"io.github.libtmux.Server.Server.newSession","name":"newSession","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public Session newSession(String name)","params":[{"name":"name","type":"String"}],"returns":"Session","typeScopeBoundary":false},{"raw":"@Operation(Kind.MUTATION)\n public Session newSession(Consumer configure)","params":[{"name":"configure","type":"Consumer","doc":"receives a builder holding tmux's defaults"}],"returns":"Session","typeScopeBoundary":false,"raises":[{"type":"UnsupportedFeatureException","doc":"if the spec asks for something this server does not have"}]},{"raw":"@Operation(Kind.MUTATION)\n public Session newSession(SessionSpec spec)","params":[{"name":"spec","type":"SessionSpec"}],"returns":"Session","typeScopeBoundary":false,"raises":[{"type":"UnsupportedFeatureException","doc":"if the spec asks for something this server does not have"}]}],"doc":{"summary":"Creates a detached session and returns that exact session.","body":"tmux reports which session it made, so the result is exact even when another session\nalready carries the same name.\n\nKeep {@code :} and {@code .} out of the name. tmux decides what to do with them and changes\nits mind across the supported range: 3.2a through 3.6 rewrite each one to {@code _}, 3.7\nrefuses the name, and 3.7a onwards keeps it — where a bare {@code -t} target still misreads the\ndelimiter, so {@link #hasSession} and {@link #killSession} resolve the id by comparing names\ninstead of building one. {@link Session#name()} reports what tmux settled on.","examples":[{"lang":"console","intro":"Create a session running cat. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/build.gradle.kts","code":"plugins {\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"java","intro":"Save this complete program as src/main/java/NewSession.java. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/java/io/github/libtmux/examples/api/java/NewSession.java","code":"package io.github.libtmux.examples.api.java;\n\nimport io.github.libtmux.Server;\nimport io.github.libtmux.ServerConfig;\nimport io.github.libtmux.ServerEndpoint;\nimport io.github.libtmux.SessionSpec;\nimport java.nio.file.Path;\n\n/** Create a session running cat. */\npublic final class NewSession {\n private NewSession() {}\n\n public static void main(String[] args) {\n try {\n if (args.length != 3) {\n throw new IllegalArgumentException(\"expected: tmux-binary socket-path config-file\");\n }\n var config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build();\n try (Server server = Server.open(config)) {\n var session = server.newSession(SessionSpec.builder()\n .named(\"api-session\")\n .running(\"/bin/cat\")\n .build());\n System.out.println(\"created=\" + session.name());\n }\n } catch (Exception error) {\n if (error instanceof InterruptedException) Thread.currentThread().interrupt();\n System.err.println(\"Example failed: \" + error.getMessage());\n System.exit(1);\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.java.NewSession && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"created=api-session\n"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":127,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.newSession","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.newSession","product":"core","slug":"io-github-libtmux-server-server-newsession"},{"id":"io.github.libtmux.Server.Server.hasSession","name":"hasSession","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.READ)\n public boolean hasSession(String name)","params":[{"name":"name","type":"String"}],"returns":"boolean","typeScopeBoundary":false,"raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"}]}],"doc":{"summary":"Whether a session with this name exists."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":173,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.hasSession","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.hasSession","product":"core","slug":"io-github-libtmux-server-server-hassession"},{"id":"io.github.libtmux.Server.Server.killSession","name":"killSession","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void killSession(String name)","params":[{"name":"name","type":"String"}],"returns":"void","typeScopeBoundary":false,"raises":[{"type":"LibTmuxException","doc":"if no session carries the name"}]}],"doc":{"summary":"Ends the session with this name, and everything in it.","body":"The name is matched exactly. tmux would otherwise take a prefix, so asking to kill\n{@code build} could end {@code build-cache} instead."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":187,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.killSession","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.killSession","product":"core","slug":"io-github-libtmux-server-server-killsession"},{"id":"io.github.libtmux.Server.Server.isAlive","name":"isAlive","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.READ)\n public boolean isAlive()","params":[],"returns":"boolean","typeScopeBoundary":false},{"raw":"@Operation(Kind.READ)\n public boolean isAlive(Duration timeout)","params":[{"name":"timeout","type":"Duration","doc":"how long to wait for an answer before treating the server as unreachable"}],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether the server is running and answering.","body":"Returns false when tmux refuses the probe. Transport failures still throw."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":200,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.isAlive","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.isAlive","product":"core","slug":"io-github-libtmux-server-server-isalive"},{"id":"io.github.libtmux.Server.Server.requireAlive","name":"requireAlive","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.READ)\n public void requireAlive()","params":[],"returns":"void","typeScopeBoundary":false,"raises":[{"type":"ServerUnavailableException","doc":"if no daemon is there to answer"},{"type":"LibTmuxException","doc":"if one is, and could not be reached — a socket this user cannot open, or a binary that is not tmux, which starting a server would not fix"}]}],"doc":{"summary":"Requires a running tmux daemon that answers the liveness probe."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":226,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.requireAlive","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.requireAlive","product":"core","slug":"io-github-libtmux-server-server-requirealive"},{"id":"io.github.libtmux.Server.Server.failed","name":"failed","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"LibTmuxException failed(String command, CommandResult result)","params":[{"name":"command","type":"String"},{"name":"result","type":"CommandResult"}],"returns":"LibTmuxException","typeScopeBoundary":false},{"raw":"LibTmuxException failed(String command, String status, List stderr)","params":[{"name":"command","type":"String"},{"name":"status","type":"String"},{"name":"stderr","type":"List"}],"returns":"LibTmuxException","typeScopeBoundary":false}],"doc":{"summary":"One sentence for a tmux command that did not succeed.","body":"Built in one place because a message that omits the exit status, or says nothing at all\nwhen tmux printed nothing, is how a misconfigured binary reads as a tmux that simply refused:\npointing a server at {@code /bin/false} used to raise \"tmux display-message failed: \" and\nstop there."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":247,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.failed","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.failed","product":"core","slug":"io-github-libtmux-server-server-failed"},{"id":"io.github.libtmux.Server.Server.failure","name":"failure","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"static String failure(String command, String binary, String status, List stderr)","params":[{"name":"command","type":"String"},{"name":"binary","type":"String"},{"name":"status","type":"String","doc":"how the command ended, as an exit code or, inside a group, tmux's own outcome for it — a batch reports which of its commands never ran, which no single exit code says"},{"name":"stderr","type":"List"}],"returns":"String","typeScopeBoundary":true}],"doc":{"summary":""},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":272,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.failure","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.failure","product":"core","slug":"io-github-libtmux-server-server-failure"},{"id":"io.github.libtmux.Server.Server.serverAbsent","name":"serverAbsent","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"static boolean serverAbsent(String message)","params":[{"name":"message","type":"String"}],"returns":"boolean","typeScopeBoundary":true}],"doc":{"summary":"Whether a failed command's stderr says the daemon itself is gone, rather than refusing the request."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":279,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.serverAbsent","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.serverAbsent","product":"core","slug":"io-github-libtmux-server-server-serverabsent"},{"id":"io.github.libtmux.Server.Server.killServer","name":"killServer","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void killServer()","params":[],"returns":"void","typeScopeBoundary":false},{"raw":"@Operation(Kind.MUTATION)\n public void killServer(Duration timeout)","params":[{"name":"timeout","type":"Duration","doc":"how long to allow for each of the two commands"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Ends the tmux server and every session on it.","body":"Deliberately explicit and deliberately not what {@link #close()} does: closing a client is\nnot a reason to end everyone else's sessions.\n\nKilling a server that has already gone is not a failure. Which is harder to detect than it\nsounds: tmux answers a doomed request with {@code no server running} most of the time, but\nwith {@code server exited unexpectedly} when it reaches a socket whose server is still\nexiting — on every release from 3.3a onwards, and on one in five attempts on 3.7. So the\npostcondition is checked rather than the wording, which has changed before and says nothing\na second look cannot answer better."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":298,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.killServer","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.killServer","product":"core","slug":"io-github-libtmux-server-server-killserver"},{"id":"io.github.libtmux.Server.Server.batch","name":"batch","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Batch batch()","params":[],"returns":"Batch","typeScopeBoundary":false}],"doc":{"summary":"Collects several commands to run in one tmux invocation.","body":"Each operation gets its own outcome. tmux discards a group after the first failure, so a\nsingle exit status cannot say which command failed or which never ran."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":386,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.batch","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.batch","product":"core","slug":"io-github-libtmux-server-server-batch"},{"id":"io.github.libtmux.Server.Server.chain","name":"chain","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public CommandChain chain()","params":[],"returns":"CommandChain","typeScopeBoundary":false}],"doc":{"summary":"Starts a chain of commands where each one acts on what the last one made.","body":"tmux moves its own current target as a group runs, so a chain needs no round trip to learn\nthe id of a window or pane it just created."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":397,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.chain","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.chain","product":"core","slug":"io-github-libtmux-server-server-chain"},{"id":"io.github.libtmux.Server.Server.expand","name":"expand","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.READ)\n public String expand(String format)","params":[{"name":"format","type":"String","doc":"a tmux format, usually of the shape {@code #{name}}"}],"returns":"String","typeScopeBoundary":false,"returnsDoc":"the expansion, whole when it spans lines and empty when the format expanded to nothing"}],"doc":{"summary":"Expands a tmux format against the server, and answers with what it came to.","body":"The server-wide counterpart to {@link Pane#expand}: fields such as {@code #{pid}} and\n{@code #{version}} that belong to no session in particular."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":412,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.expand","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.expand","product":"core","slug":"io-github-libtmux-server-server-expand"},{"id":"io.github.libtmux.Server.Server.printed","name":"printed","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"CommandResult printed(@Nullable ServerSnapshot snapshot, List argv)","params":[{"name":"snapshot","type":"ServerSnapshot"},{"name":"argv","type":"List"}],"returns":"CommandResult","typeScopeBoundary":false}],"doc":{"summary":"Runs one read with the server's version printed first in the same invocation, and answers with its output as tmux held the text, and without that version line. Line breaks at the end of the output are kept."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":424,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.printed","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.printed","product":"core","slug":"io-github-libtmux-server-server-printed"},{"id":"io.github.libtmux.Server.Server.shell","name":"shell","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Shell shell()","params":[],"returns":"Shell","typeScopeBoundary":false}],"doc":{"summary":"Shell commands run by tmux, and tmux commands chosen by a shell exit status."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":433,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.shell","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.shell","product":"core","slug":"io-github-libtmux-server-server-shell"},{"id":"io.github.libtmux.Server.Server.commands","name":"commands","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Commands commands()","params":[],"returns":"Commands","typeScopeBoundary":false}],"doc":{"summary":"The commands this tmux knows."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":439,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.commands","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.commands","product":"core","slug":"io-github-libtmux-server-server-commands"},{"id":"io.github.libtmux.Server.Server.lock","name":"lock","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void lock()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Locks every client attached to this server."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":445,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.lock","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.lock","product":"core","slug":"io-github-libtmux-server-server-lock"},{"id":"io.github.libtmux.Server.Server.messageLog","name":"messageLog","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public MessageLog messageLog()","params":[],"returns":"MessageLog","typeScopeBoundary":false}],"doc":{"summary":"The server's message log."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":451,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.messageLog","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.messageLog","product":"core","slug":"io-github-libtmux-server-server-messagelog"},{"id":"io.github.libtmux.Server.Server.prompt","name":"prompt","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Prompt prompt()","params":[],"returns":"Prompt","typeScopeBoundary":false}],"doc":{"summary":"The command prompt's history."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":457,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.prompt","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.prompt","product":"core","slug":"io-github-libtmux-server-server-prompt"},{"id":"io.github.libtmux.Server.Server.withoutStartingServer","name":"withoutStartingServer","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"CommandResult withoutStartingServer(List command)","params":[{"name":"command","type":"List"}],"returns":"CommandResult","typeScopeBoundary":false}],"doc":{"summary":"Runs a read that tmux would otherwise answer by starting a daemon.","body":"{@code list-keys} and {@code list-commands} are answered from the binary's own tables, and\ntmux starts a server to do it rather than reporting that there is none — so reading the key\nbindings of an endpoint nothing serves left a daemon behind, which is the opposite of a read.\n{@code -N} says not to, on every supported release, and tmux then reports the absent server\nthe way every other read does."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":471,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.withoutStartingServer","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.withoutStartingServer","product":"core","slug":"io-github-libtmux-server-server-withoutstartingserver"},{"id":"io.github.libtmux.Server.Server.channel","name":"channel","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Channel channel(String name)","params":[{"name":"name","type":"String"}],"returns":"Channel","typeScopeBoundary":false}],"doc":{"summary":"One of this server's wait-for channels, which is where a signal is sent and waited for."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":483,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.channel","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.channel","product":"core","slug":"io-github-libtmux-server-server-channel"},{"id":"io.github.libtmux.Server.Server.variables","name":"variables","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public Map variables(List names)","params":[{"name":"names","type":"List"}],"returns":"Map","typeScopeBoundary":false}],"doc":{"summary":"Reads only validated tmux variable names, never caller-authored format syntax."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":489,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.variables","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.variables","product":"core","slug":"io-github-libtmux-server-server-variables"},{"id":"io.github.libtmux.Server.Server.paneFields","name":"paneFields","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public Map> paneFields(List names)","params":[{"name":"names","type":"List","doc":"tmux format variable names, at most 32"}],"returns":"Map>","typeScopeBoundary":false,"returnsDoc":"each pane's values keyed by the names asked for, in tmux's pane order","raises":[{"type":"IllegalArgumentException","doc":"if a name is not a tmux variable name"},{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if the listing otherwise fails"}]}],"doc":{"summary":"Chosen fields for every pane on the server, from one listing.","body":"For what a capture does not carry — {@code pane_tty}, {@code pane_dead_status}, {@code\npane_start_command}, any of tmux's pane formats. Asking each pane is a tmux process per pane\nand a view no single moment held; this is one {@code list-panes}, so every value is from the\nsame instant.","examples":[{"lang":"java","code":"Map> ttys = server.paneFields(List.of(\"pane_tty\", \"pane_dead\"));"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":530,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.paneFields","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.paneFields","product":"core","slug":"io-github-libtmux-server-server-panefields"},{"id":"io.github.libtmux.Server.Server.awaitChannel","name":"awaitChannel","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"WakeReason awaitChannel(String channel, Duration timeout, boolean reserveSignalCapacity)\n throws InterruptedException","params":[{"name":"channel","type":"String"},{"name":"timeout","type":"Duration"},{"name":"reserveSignalCapacity","type":"boolean"}],"returns":"WakeReason","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":566,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.awaitChannel","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.awaitChannel","product":"core","slug":"io-github-libtmux-server-server-awaitchannel"},{"id":"io.github.libtmux.Server.Server.keys","name":"keys","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Keys keys()","params":[],"returns":"Keys","typeScopeBoundary":false}],"doc":{"summary":"The server's key bindings: {@code prefix} when binding, every table when listing."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":608,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.keys","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.keys","product":"core","slug":"io-github-libtmux-server-server-keys"},{"id":"io.github.libtmux.Server.Server.buffers","name":"buffers","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Buffers buffers()","params":[],"returns":"Buffers","typeScopeBoundary":false}],"doc":{"summary":"The server's paste buffers, which every session shares."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":614,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.buffers","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.buffers","product":"core","slug":"io-github-libtmux-server-server-buffers"},{"id":"io.github.libtmux.Server.Server.sourceFile","name":"sourceFile","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void sourceFile(Path file)","params":[{"name":"file","type":"Path"}],"returns":"void","typeScopeBoundary":false,"raises":[{"type":"LibTmuxException","doc":"if tmux could not read or run it"}]}],"doc":{"summary":"Runs a file of tmux commands, as a configuration file would be run."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":624,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.sourceFile","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.sourceFile","product":"core","slug":"io-github-libtmux-server-server-sourcefile"},{"id":"io.github.libtmux.Server.Server.options","name":"options","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Options options()","params":[],"returns":"Options","typeScopeBoundary":false}],"doc":{"summary":"The server-wide options, the ones tmux keeps once per server."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":630,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.options","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.options","product":"core","slug":"io-github-libtmux-server-server-options"},{"id":"io.github.libtmux.Server.Server.globalOptions","name":"globalOptions","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Options globalOptions()","params":[],"returns":"Options","typeScopeBoundary":false}],"doc":{"summary":"The global session options every session inherits unless it sets its own."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":636,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.globalOptions","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.globalOptions","product":"core","slug":"io-github-libtmux-server-server-globaloptions"},{"id":"io.github.libtmux.Server.Server.environment","name":"environment","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Environment environment()","params":[],"returns":"Environment","typeScopeBoundary":false}],"doc":{"summary":"The server's environment, which every session inherits and every new process is given.","body":"Set here to change what a pane opened later sees — a refreshed {@code SSH_AUTH_SOCK} after\nreconnecting, say. A pane already running has its own copy and is not affected."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":647,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.environment","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.environment","product":"core","slug":"io-github-libtmux-server-server-environment"},{"id":"io.github.libtmux.Server.Server.hooks","name":"hooks","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Hooks hooks()","params":[],"returns":"Hooks","typeScopeBoundary":false}],"doc":{"summary":"The global hooks every session inherits."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":653,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.hooks","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.hooks","product":"core","slug":"io-github-libtmux-server-server-hooks"},{"id":"io.github.libtmux.Server.Server.version","name":"version","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.READ)\n public TmuxVersion version()","params":[],"returns":"TmuxVersion","typeScopeBoundary":false,"raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"}]}],"doc":{"summary":"Which tmux this server is running.","body":"Asked of the running server rather than of the binary, because the server may have been\nstarted by a different build than the one this client is invoking."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":666,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.version","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.version","product":"core","slug":"io-github-libtmux-server-server-version"},{"id":"io.github.libtmux.Server.Server.identity","name":"identity","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public ServerIdentity identity()","params":[],"returns":"ServerIdentity","typeScopeBoundary":false}],"doc":{"summary":"Which server this is. Every handle taken from it is scoped by this."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":678,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.identity","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.identity","product":"core","slug":"io-github-libtmux-server-server-identity"},{"id":"io.github.libtmux.Server.Server.requireSameServer","name":"requireSameServer","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"void requireSameServer(Server other)","params":[{"name":"other","type":"Server"}],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":683,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.requireSameServer","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.requireSameServer","product":"core","slug":"io-github-libtmux-server-server-requiresameserver"},{"id":"io.github.libtmux.Server.Server.requireSameIncarnation","name":"requireSameIncarnation","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"void requireSameIncarnation(ServerSnapshot snapshot, Server other, ServerSnapshot otherSnapshot)","params":[{"name":"snapshot","type":"ServerSnapshot"},{"name":"other","type":"Server"},{"name":"otherSnapshot","type":"ServerSnapshot"}],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":687,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.requireSameIncarnation","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.requireSameIncarnation","product":"core","slug":"io-github-libtmux-server-server-requiresameincarnation"},{"id":"io.github.libtmux.Server.Server.open","name":"open","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.LIFECYCLE)\n public static Server open(ServerConfig config)","params":[{"name":"config","type":"ServerConfig"}],"returns":"Server","typeScopeBoundary":true}],"doc":{"summary":"A server over a transport it owns and closes.","examples":[{"lang":"console","intro":"Connect to a private tmux server. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/build.gradle.kts","code":"plugins {\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"java","intro":"Save this complete program as src/main/java/Connect.java. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/java/io/github/libtmux/examples/api/java/Connect.java","code":"package io.github.libtmux.examples.api.java;\n\nimport io.github.libtmux.Server;\nimport io.github.libtmux.ServerConfig;\nimport io.github.libtmux.ServerEndpoint;\nimport java.nio.file.Path;\n\n/** Connect to a private tmux server. */\npublic final class Connect {\n private Connect() {}\n\n public static void main(String[] args) {\n try {\n if (args.length != 3) {\n throw new IllegalArgumentException(\"expected: tmux-binary socket-path config-file\");\n }\n var config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build();\n try (Server server = Server.open(config)) {\n System.out.println(\"connected=\" + server.isAlive());\n }\n } catch (Exception error) {\n if (error instanceof InterruptedException) Thread.currentThread().interrupt();\n System.err.println(\"Example failed: \" + error.getMessage());\n System.exit(1);\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.java.Connect && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"connected=true\n"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":696,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.open","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.open","product":"core","slug":"io-github-libtmux-server-server-open"},{"id":"io.github.libtmux.Server.Server.using","name":"using","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.LIFECYCLE)\n public static Server using(ServerConfig config, TmuxTransport transport)","params":[{"name":"config","type":"ServerConfig"},{"name":"transport","type":"TmuxTransport"}],"returns":"Server","typeScopeBoundary":true}],"doc":{"summary":"A server over a transport the caller owns. Closing this server never closes it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":705,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.using","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.using","product":"core","slug":"io-github-libtmux-server-server-using"},{"id":"io.github.libtmux.Server.Server.within","name":"within","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.LIFECYCLE)\n public Server within(Duration timeout)","params":[{"name":"timeout","type":"Duration"}],"returns":"Server","typeScopeBoundary":false,"raises":[{"type":"IllegalArgumentException","doc":"if the timeout is not positive"}]}],"doc":{"summary":"This server, with every command bounded by a deadline of the caller's choosing.","body":"The per-call deadline. Every read and change made through the result, and through every\nhandle taken from it, gives tmux this long rather than the server's default:\n\nShares this server's transport, so it has the same identity and its handles compare equal\nto this server's; closing it releases nothing. {@link #toBuilder} is not how to spell this: a\nserver that owns its transport hands a derived server a transport of its own, which a caller\nbounding many calls would multiply.","examples":[{"lang":"java","code":"List screen = server.within(Duration.ofMillis(500)).panes().get(0).capture();"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":737,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.within","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.within","product":"core","slug":"io-github-libtmux-server-server-within"},{"id":"io.github.libtmux.Server.Server.builder","name":"builder","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.LIFECYCLE)\n public static Builder builder()","params":[],"returns":"Builder","typeScopeBoundary":true}],"doc":{"summary":"A builder holding the documented defaults."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":747,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.builder","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.builder","product":"core","slug":"io-github-libtmux-server-server-builder-3ftd"},{"id":"io.github.libtmux.Server.Server.config","name":"config","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public ServerConfig config()","params":[],"returns":"ServerConfig","typeScopeBoundary":false}],"doc":{"summary":"How this server was configured."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":753,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.config","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.config","product":"core","slug":"io-github-libtmux-server-server-config"},{"id":"io.github.libtmux.Server.Server.cmd","name":"cmd","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public CommandResult cmd(String... argv)","params":[{"name":"argv","type":"String","variadic":"positional","doc":"the tmux command and its arguments, each already a separate element"}],"returns":"CommandResult","typeScopeBoundary":false,"returnsDoc":"the result, in which a nonzero exit is data rather than a failure"},{"raw":"@Operation(Kind.MUTATION)\n public CommandResult cmd(List argv)","params":[{"name":"argv","type":"List"}],"returns":"CommandResult","typeScopeBoundary":false},{"raw":"@Operation(Kind.MUTATION)\n public CommandResult cmd(List argv, Duration timeout)","params":[{"name":"argv","type":"List"},{"name":"timeout","type":"Duration"}],"returns":"CommandResult","typeScopeBoundary":false}],"doc":{"summary":"Runs one tmux command against this server."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":764,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.cmd","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.cmd","product":"core","slug":"io-github-libtmux-server-server-cmd"},{"id":"io.github.libtmux.Server.Server.control","name":"control","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.LIFECYCLE)\n public ControlClient control(Session session)","params":[{"name":"session","type":"Session","doc":"a session captured from this server"}],"returns":"ControlClient","typeScopeBoundary":false,"raises":[{"type":"TargetGoneException","doc":"if that process is no longer the one on this socket"},{"type":"IllegalArgumentException","doc":"if the session belongs to another server"},{"type":"IllegalStateException","doc":"if this server is closed, or its transport starts no control client"}]},{"raw":"@Operation(Kind.LIFECYCLE)\n public ControlClient control(Session session, Duration timeout)","params":[{"name":"session","type":"Session"},{"name":"timeout","type":"Duration","doc":"how long to wait for the client to become ready"}],"returns":"ControlClient","typeScopeBoundary":false}],"doc":{"summary":"Attaches a control client to this session's server, and only to the process this capture named.","body":"The client is started by this server's transport. A transport that cannot start processes\nfails here rather than attaching on the local machine. The process id is checked before the\nclient starts and again on the client itself; a server that has taken over the socket is\ndetached before this client changes it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":815,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.control","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.control","product":"core","slug":"io-github-libtmux-server-server-control"},{"id":"io.github.libtmux.Server.Server.snapshot","name":"snapshot","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.READ)\n public ServerSnapshot snapshot()","params":[],"returns":"ServerSnapshot","typeScopeBoundary":false,"raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if a listing otherwise fails or the listings cannot form one valid snapshot"}]}],"doc":{"summary":"Captures the whole hierarchy in at most four listings, retrying once if the server is replaced.","body":"One server-wide listing per kind of object, so ordering and membership stay tmux's decision\nrather than being re-derived from another listing's rows.\n\nA failed read throws, including when no daemon is running. An empty graph means a live\nserver successfully reported no sessions."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":875,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.snapshot","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.snapshot","product":"core","slug":"io-github-libtmux-server-server-snapshot"},{"id":"io.github.libtmux.Server.Server.sessions","name":"sessions","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public List sessions(FilterExpr expression)","params":[{"name":"expression","type":"FilterExpr"}],"returns":"List","typeScopeBoundary":false,"returnsDoc":"an immutable list in tmux order","raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if the capture otherwise fails"}]},{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public List sessions()","params":[],"returns":"List","typeScopeBoundary":false,"raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if the capture otherwise fails"}]}],"doc":{"summary":"The sessions this expression matches, captured now.","body":"A safe expression is sent as {@code list-sessions -f}. The sessions that come back are still\ntested with the expression. A relation, or an expression tmux cannot apply, reads the whole server and\nfilters that capture; a filtered read that finds nothing is the answer.","examples":[{"lang":"console","intro":"List the sessions returned by a server read. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/build.gradle.kts","code":"plugins {\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"java","intro":"Save this complete program as src/main/java/ListSessions.java. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/java/io/github/libtmux/examples/api/java/ListSessions.java","code":"package io.github.libtmux.examples.api.java;\n\nimport io.github.libtmux.Server;\nimport io.github.libtmux.ServerConfig;\nimport io.github.libtmux.ServerEndpoint;\nimport java.nio.file.Path;\nimport java.util.stream.Collectors;\n\n/** List the sessions returned by a server read. */\npublic final class ListSessions {\n private ListSessions() {}\n\n public static void main(String[] args) {\n try {\n if (args.length != 3) {\n throw new IllegalArgumentException(\"expected: tmux-binary socket-path config-file\");\n }\n var config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build();\n try (Server server = Server.open(config)) {\n System.out.println(\"sessions=\"\n + server.sessions().stream()\n .map(session -> session.name())\n .sorted()\n .collect(Collectors.joining(\",\")));\n }\n } catch (Exception error) {\n if (error instanceof InterruptedException) Thread.currentThread().interrupt();\n System.err.println(\"Example failed: \" + error.getMessage());\n System.exit(1);\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.java.ListSessions && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"sessions=work-one,work-two\n"},{"lang":"console","intro":"Select sessions with a typed name filter. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/build.gradle.kts","code":"plugins {\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"java","intro":"Save this complete program as src/main/java/Query.java. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/java/io/github/libtmux/examples/api/java/Query.java","code":"package io.github.libtmux.examples.api.java;\n\nimport io.github.libtmux.Server;\nimport io.github.libtmux.ServerConfig;\nimport io.github.libtmux.ServerEndpoint;\nimport io.github.libtmux.Session_;\nimport java.nio.file.Path;\nimport java.util.stream.Collectors;\n\n/** Select sessions with a typed name filter. */\npublic final class Query {\n private Query() {}\n\n public static void main(String[] args) {\n try {\n if (args.length != 3) {\n throw new IllegalArgumentException(\"expected: tmux-binary socket-path config-file\");\n }\n var config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build();\n try (Server server = Server.open(config)) {\n var matches = server.sessions(Session_.name().is(\"work-one\"));\n System.out.println(\"matches=\"\n + matches.stream()\n .map(session -> session.name())\n .sorted()\n .collect(Collectors.joining(\",\")));\n }\n } catch (Exception error) {\n if (error instanceof InterruptedException) Thread.currentThread().interrupt();\n System.err.println(\"Example failed: \" + error.getMessage());\n System.exit(1);\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.java.Query && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"matches=work-one\n"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":901,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.sessions","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.sessions","product":"core","slug":"io-github-libtmux-server-server-sessions"},{"id":"io.github.libtmux.Server.Server.windows","name":"windows","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public List windows()","params":[],"returns":"List","typeScopeBoundary":false,"returnsDoc":"an immutable list in tmux order","raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if the capture otherwise fails"}]},{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public List windows(FilterExpr expression)","params":[{"name":"expression","type":"FilterExpr"}],"returns":"List","typeScopeBoundary":false,"returnsDoc":"an immutable list in tmux order","raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if the capture otherwise fails"}]},{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public List windows(WindowId id)","params":[{"name":"id","type":"WindowId"}],"returns":"List","typeScopeBoundary":false,"returnsDoc":"an immutable list in tmux order, empty if the window was not found","raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if the capture otherwise fails"}]}],"doc":{"summary":"Captures every winlink, preserving each session and index placement.","examples":[{"lang":"console","intro":"List all windows, then the windows captured for one session. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/build.gradle.kts","code":"plugins {\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"java","intro":"Save this complete program as src/main/java/ListWindows.java. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/java/io/github/libtmux/examples/api/java/ListWindows.java","code":"package io.github.libtmux.examples.api.java;\n\nimport io.github.libtmux.Server;\nimport io.github.libtmux.ServerConfig;\nimport io.github.libtmux.ServerEndpoint;\nimport java.nio.file.Path;\nimport java.util.stream.Collectors;\n\n/** List all windows, then the windows captured for one session. */\npublic final class ListWindows {\n private ListWindows() {}\n\n public static void main(String[] args) {\n try {\n if (args.length != 3) {\n throw new IllegalArgumentException(\"expected: tmux-binary socket-path config-file\");\n }\n var config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build();\n try (Server server = Server.open(config)) {\n System.out.println(\"windows=\"\n + server.windows().stream()\n .map(window -> window.name())\n .sorted()\n .collect(Collectors.joining(\",\")));\n var session = server.session(\"work-one\").orElseThrow();\n System.out.println(\"session-windows=\"\n + session.windows().stream()\n .map(window -> window.name())\n .sorted()\n .collect(Collectors.joining(\",\")));\n }\n } catch (Exception error) {\n if (error instanceof InterruptedException) Thread.currentThread().interrupt();\n System.err.println(\"Example failed: \" + error.getMessage());\n System.exit(1);\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.java.ListWindows && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"windows=editor,editor,logs\nsession-windows=editor,logs\n"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":936,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.windows","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.windows","product":"core","slug":"io-github-libtmux-server-server-windows"},{"id":"io.github.libtmux.Server.Server.panes","name":"panes","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public List panes()","params":[],"returns":"List","typeScopeBoundary":false,"returnsDoc":"an immutable list in tmux order","raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if the capture otherwise fails"}]},{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public List panes(FilterExpr expression)","params":[{"name":"expression","type":"FilterExpr"}],"returns":"List","typeScopeBoundary":false,"returnsDoc":"an immutable list in tmux order","raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if the capture otherwise fails"}]}],"doc":{"summary":"Captures every pane on the server.","examples":[{"lang":"console","intro":"List all panes, then the panes captured for one window. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/build.gradle.kts","code":"plugins {\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"java","intro":"Save this complete program as src/main/java/ListPanes.java. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/java/io/github/libtmux/examples/api/java/ListPanes.java","code":"package io.github.libtmux.examples.api.java;\n\nimport io.github.libtmux.Server;\nimport io.github.libtmux.ServerConfig;\nimport io.github.libtmux.ServerEndpoint;\nimport java.nio.file.Path;\n\n/** List all panes, then the panes captured for one window. */\npublic final class ListPanes {\n private ListPanes() {}\n\n public static void main(String[] args) {\n try {\n if (args.length != 3) {\n throw new IllegalArgumentException(\"expected: tmux-binary socket-path config-file\");\n }\n var config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build();\n try (Server server = Server.open(config)) {\n System.out.println(\"panes=\" + server.panes().size());\n var session = server.session(\"work-one\").orElseThrow();\n var window = session.windows().stream()\n .filter(item -> item.name().equals(\"editor\"))\n .findFirst()\n .orElseThrow();\n System.out.println(\"window-panes=\" + window.panes().size());\n }\n } catch (Exception error) {\n if (error instanceof InterruptedException) Thread.currentThread().interrupt();\n System.err.println(\"Example failed: \" + error.getMessage());\n System.exit(1);\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.java.ListPanes && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"panes=4\nwindow-panes=2\n"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":974,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.panes","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.panes","product":"core","slug":"io-github-libtmux-server-server-panes"},{"id":"io.github.libtmux.Server.Server.session","name":"session","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.READ)\n public Optional session(FilterExpr expression)","params":[{"name":"expression","type":"FilterExpr"}],"returns":"Optional","typeScopeBoundary":false,"raises":[{"type":"CardinalityException.MultipleMatches","doc":"if more than one session matches; its count is exact, since the whole capture is in hand"},{"type":"ServerUnavailableException","doc":"if no daemon is running"}]},{"raw":"@Operation(Kind.READ)\n public Optional session(String name)","params":[{"name":"name","type":"String"}],"returns":"Optional","typeScopeBoundary":false,"raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if the capture otherwise fails"}]},{"raw":"@Operation(Kind.READ)\n public Optional session(SessionId id)","params":[{"name":"id","type":"SessionId"}],"returns":"Optional","typeScopeBoundary":false,"returnsDoc":"empty only when a successful capture contains no match","raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if the capture otherwise fails"}]}],"doc":{"summary":"The one session this expression matches, captured now, or empty when none does.","body":"Reads as {@link #sessions(FilterExpr)} does."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1014,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.session","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.session","product":"core","slug":"io-github-libtmux-server-server-session"},{"id":"io.github.libtmux.Server.Server.window","name":"window","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.READ)\n public Optional window(FilterExpr expression)","params":[{"name":"expression","type":"FilterExpr"}],"returns":"Optional","typeScopeBoundary":false,"raises":[{"type":"CardinalityException.MultipleMatches","doc":"if more than one link matches"},{"type":"ServerUnavailableException","doc":"if no daemon is running"}]},{"raw":"@Operation(Kind.READ)\n public Optional window(WindowContext context)","params":[{"name":"context","type":"WindowContext"}],"returns":"Optional","typeScopeBoundary":false,"returnsDoc":"empty only when a successful capture contains no match","raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if the capture otherwise fails"}]}],"doc":{"summary":"The one window link this expression matches, captured now, or empty when none does.","body":"Reads as {@link #windows(FilterExpr)} does. A window linked into two sessions is two links,\nso an expression naming it matches twice."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1028,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.window","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.window","product":"core","slug":"io-github-libtmux-server-server-window"},{"id":"io.github.libtmux.Server.Server.pane","name":"pane","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.READ)\n public Optional pane(FilterExpr expression)","params":[{"name":"expression","type":"FilterExpr"}],"returns":"Optional","typeScopeBoundary":false,"raises":[{"type":"CardinalityException.MultipleMatches","doc":"if more than one pane matches"},{"type":"ServerUnavailableException","doc":"if no daemon is running"}]},{"raw":"@Operation(Kind.READ)\n public Optional pane(PaneId id)","params":[{"name":"id","type":"PaneId"}],"returns":"Optional","typeScopeBoundary":false,"returnsDoc":"empty only when a successful capture contains no match","raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if the capture otherwise fails"}]}],"doc":{"summary":"The one pane this expression matches, captured now, or empty when none does.","body":"Reads as {@link #panes(FilterExpr)} does."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1041,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.pane","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.pane","product":"core","slug":"io-github-libtmux-server-server-pane"},{"id":"io.github.libtmux.Server.Server.admissionBound","name":"admissionBound","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public int admissionBound()","params":[],"returns":"int","typeScopeBoundary":false,"returnsDoc":"the bound, or {@link Integer#MAX_VALUE} for a transport that sets none"}],"doc":{"summary":"How many tmux commands this server's transport runs at once, from {@link ServerConfig#maxConcurrentCommands()} for a server {@link #open}ed here."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1064,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.admissionBound","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.admissionBound","product":"core","slug":"io-github-libtmux-server-server-admissionbound"},{"id":"io.github.libtmux.Server.Server.clients","name":"clients","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public List clients()","params":[],"returns":"List","typeScopeBoundary":false,"returnsDoc":"an immutable list in tmux order","raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if the capture otherwise fails"}]}],"doc":{"summary":"Captures every attached client."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1189,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.clients","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.clients","product":"core","slug":"io-github-libtmux-server-server-clients"},{"id":"io.github.libtmux.Server.Server.attachedSessions","name":"attachedSessions","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.READ)\n public List attachedSessions()","params":[],"returns":"List","typeScopeBoundary":false,"returnsDoc":"an immutable list in tmux order","raises":[{"type":"ServerUnavailableException","doc":"if no daemon is running"},{"type":"LibTmuxException","doc":"if the capture otherwise fails"}]}],"doc":{"summary":"Captures every session a client is attached to."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1205,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.attachedSessions","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.attachedSessions","product":"core","slug":"io-github-libtmux-server-server-attachedsessions"},{"id":"io.github.libtmux.Server.Server.run","name":"run","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public CommandResult run(List argv)","params":[{"name":"argv","type":"List"}],"returns":"CommandResult","typeScopeBoundary":false,"raises":[{"type":"LibTmuxException","doc":"if tmux reported a nonzero exit"}]}],"doc":{"summary":"Runs a command that is expected to work, and raises when it did not.","body":"The counterpart to {@link #cmd}: use this when a nonzero exit means the thing you asked for\ndid not happen, and {@code cmd} when a nonzero exit is an answer you want to inspect. tmux\nreports an ordinary miss and a real problem the same way, so only the caller knows which it is."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1220,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.run","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.run","product":"core","slug":"io-github-libtmux-server-server-run"},{"id":"io.github.libtmux.Server.Server.runTogether","name":"runTogether","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"CommandResult runTogether(ServerSnapshot snapshot, List> commands)","params":[{"name":"snapshot","type":"ServerSnapshot"},{"name":"commands","type":"List>"}],"returns":"CommandResult","typeScopeBoundary":false},{"raw":"CommandResult runTogether(ServerSnapshot snapshot, String input, List> commands)","params":[{"name":"snapshot","type":"ServerSnapshot"},{"name":"input","type":"String"},{"name":"commands","type":"List>"}],"returns":"CommandResult","typeScopeBoundary":false}],"doc":{"summary":"Runs several commands in one invocation, so nothing of this caller's happens between them.","body":"tmux carries a group to its server as one message and runs it there, so a caller that stops\npartway cannot leave the group half applied. That is what an operation whose second command\ncleans up after its first needs."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1265,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.runTogether","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.runTogether","product":"core","slug":"io-github-libtmux-server-server-runtogether"},{"id":"io.github.libtmux.Server.Server.refresh","name":"refresh","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"ServerSnapshot refresh(ServerSnapshot previous)","params":[{"name":"previous","type":"ServerSnapshot"}],"returns":"ServerSnapshot","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1284,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.refresh","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.refresh","product":"core","slug":"io-github-libtmux-server-server-refresh"},{"id":"io.github.libtmux.Server.Server.toBuilder","name":"toBuilder","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Builder toBuilder()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"A builder holding every configuration and ownership choice this server made."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1293,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.toBuilder","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.toBuilder","product":"core","slug":"io-github-libtmux-server-server-tobuilder"},{"id":"io.github.libtmux.Server.Server.close","name":"close","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server","signatures":[{"raw":"@Operation(Kind.LIFECYCLE)\n @Override\n public void close()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Releases an owned transport. Idempotent, and never kills tmux."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1300,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.close","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.close","product":"core","slug":"io-github-libtmux-server-server-close"},{"id":"io.github.libtmux.Server.Server.Builder","name":"Builder","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.Server.Server","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Collects configuration and the ownership choice, then builds a server."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1312,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.Builder","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.Builder","product":"core","slug":"io-github-libtmux-server-server-builder-dv7l"},{"id":"io.github.libtmux.Server.Server.Builder.binary","name":"binary","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server.Builder","signatures":[{"raw":"public Builder binary(String binary)","params":[{"name":"binary","type":"String"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Sets the tmux executable."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1323,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.Builder.binary","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.Builder.binary","product":"core","slug":"io-github-libtmux-server-server-builder-binary"},{"id":"io.github.libtmux.Server.Server.Builder.endpoint","name":"endpoint","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server.Builder","signatures":[{"raw":"public Builder endpoint(ServerEndpoint endpoint)","params":[{"name":"endpoint","type":"ServerEndpoint"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Sets which server to talk to."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1329,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.Builder.endpoint","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.Builder.endpoint","product":"core","slug":"io-github-libtmux-server-server-builder-endpoint"},{"id":"io.github.libtmux.Server.Server.Builder.configFile","name":"configFile","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server.Builder","signatures":[{"raw":"public Builder configFile(Path configFile)","params":[{"name":"configFile","type":"Path"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Pins the config file tmux reads."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1335,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.Builder.configFile","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.Builder.configFile","product":"core","slug":"io-github-libtmux-server-server-builder-configfile"},{"id":"io.github.libtmux.Server.Server.Builder.defaultTimeout","name":"defaultTimeout","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server.Builder","signatures":[{"raw":"public Builder defaultTimeout(Duration defaultTimeout)","params":[{"name":"defaultTimeout","type":"Duration"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Sets the deadline a request gets when the caller does not supply one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1341,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.Builder.defaultTimeout","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.Builder.defaultTimeout","product":"core","slug":"io-github-libtmux-server-server-builder-defaulttimeout"},{"id":"io.github.libtmux.Server.Server.Builder.force256Colors","name":"force256Colors","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server.Builder","signatures":[{"raw":"public Builder force256Colors(boolean force256Colors)","params":[{"name":"force256Colors","type":"boolean"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Forces 256-color client support; false preserves terminal detection."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1347,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.Builder.force256Colors","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.Builder.force256Colors","product":"core","slug":"io-github-libtmux-server-server-builder-force256colors"},{"id":"io.github.libtmux.Server.Server.Builder.transport","name":"transport","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server.Builder","signatures":[{"raw":"public Builder transport(TmuxTransport transport)","params":[{"name":"transport","type":"TmuxTransport"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Borrows a caller-owned transport, which the built server will never close."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1353,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.Builder.transport","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.Builder.transport","product":"core","slug":"io-github-libtmux-server-server-builder-transport"},{"id":"io.github.libtmux.Server.Server.Builder.build","name":"build","kind":"method","modifiers":[],"parent":"io.github.libtmux.Server.Server.Builder","signatures":[{"raw":"public Server build()","params":[],"returns":"Server","typeScopeBoundary":false}],"doc":{"summary":"Builds the server, owning a new transport unless one was borrowed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Server.java","line":1359,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Server.Builder.build","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Server.Server.Builder.build","product":"core","slug":"io-github-libtmux-server-server-builder-build"},{"id":"io.github.libtmux.ServerConfig.ServerConfig","name":"ServerConfig","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"What a server needs to know before it runs anything: which tmux, which server, which config.","body":"Deliberately a builder-built class rather than a record. tmux keeps growing flags, and a\nrecord's canonical constructor is public API: every field added later would break both source and\nbinary compatibility for anyone who had constructed one.\n\nNothing here contacts tmux. A config can be built, stored and compared on a machine that has\nno tmux installed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.builder","name":"builder","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.ServerConfig.ServerConfig","signatures":[{"raw":"public static Builder builder()","params":[],"returns":"Builder","typeScopeBoundary":true}],"doc":{"summary":"A builder holding the documented defaults."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":50,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.builder","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.builder","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-builder-yotf"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.binary","name":"binary","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig","signatures":[{"raw":"public String binary()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The tmux executable, resolved on {@code PATH} unless it is an absolute path."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":55,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.binary","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.binary","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-binary"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.binaryPath","name":"binaryPath","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig","signatures":[{"raw":"public String binaryPath()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The binary as a path, resolved the way this process resolves it.","body":"What to write into a command a pane will run. A pane resolves a bare name against the\nuser's {@code PATH} rather than this process's, and a tmux client built from a different\nrelease than the server it reaches is dropped rather than served. Falls back to the name when\nnothing on {@code PATH} matches, which leaves the caller no worse off."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":67,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.binaryPath","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.binaryPath","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-binarypath"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.endpoint","name":"endpoint","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig","signatures":[{"raw":"public ServerEndpoint endpoint()","params":[],"returns":"ServerEndpoint","typeScopeBoundary":false}],"doc":{"summary":"Which tmux server to talk to."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":88,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.endpoint","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.endpoint","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-endpoint"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.configFile","name":"configFile","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig","signatures":[{"raw":"public Optional configFile()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The config file tmux should read, if the caller pinned one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":93,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.configFile","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.configFile","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-configfile"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.defaultTimeout","name":"defaultTimeout","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig","signatures":[{"raw":"public Duration defaultTimeout()","params":[],"returns":"Duration","typeScopeBoundary":false}],"doc":{"summary":"How long a request waits when the caller does not say."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":98,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.defaultTimeout","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.defaultTimeout","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-defaulttimeout"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.force256Colors","name":"force256Colors","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig","signatures":[{"raw":"public boolean force256Colors()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether tmux clients advertise 256-color support regardless of terminal detection."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":103,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.force256Colors","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.force256Colors","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-force256colors"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.observer","name":"observer","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig","signatures":[{"raw":"public OperationObserver observer()","params":[],"returns":"OperationObserver","typeScopeBoundary":false}],"doc":{"summary":"Where each command's report goes. {@link OperationObserver#NONE} until a caller sets one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":108,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.observer","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.observer","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-observer"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.endpointCommand","name":"endpointCommand","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig","signatures":[{"raw":"@ReadOnly\n public List endpointCommand()","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"The argv prefix every command on this server begins with: the binary, {@code -u}, optional color flag, the server selection, and the config file if one was pinned.","body":"{@code -u} says this client reads UTF-8. Without it tmux decides from {@code LC_ALL},\n{@code LC_CTYPE} and {@code LANG}, and a client it judges not to be UTF-8 has every non-ASCII\ncharacter in every reply replaced with {@code _} before it is sent — so a session named\n{@code café} reads back as {@code caf_}, and a pane's directory becomes a path that does not\nexist. The flag is in tmux's option string on every supported release.\n\nDeliberately the flag rather than {@code LC_ALL} in the child's environment, which would\nreach the same conclusion and then be inherited by every pane the server spawns from this\nclient."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":126,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.endpointCommand","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.endpointCommand","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-endpointcommand"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.maxConcurrentCommands","name":"maxConcurrentCommands","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig","signatures":[{"raw":"public int maxConcurrentCommands()","params":[],"returns":"int","typeScopeBoundary":false}],"doc":{"summary":"How many tmux commands {@link Server#open} lets run at once; more wait their turn.","body":"A coroutine dispatcher or effect pool that runs blocking calls for this server gains nothing\nfrom more threads than this: the rest would only wait for admission."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":146,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.maxConcurrentCommands","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.maxConcurrentCommands","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-maxconcurrentcommands"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.toBuilder","name":"toBuilder","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig","signatures":[{"raw":"public Builder toBuilder()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"A builder holding every choice this config made."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":151,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.toBuilder","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.toBuilder","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-tobuilder"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.Builder","name":"Builder","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.ServerConfig.ServerConfig","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Collects the choices; {@link #build()} checks them."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":164,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.Builder","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.Builder","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-builder-ly8z"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.Builder.binary","name":"binary","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig.Builder","signatures":[{"raw":"public Builder binary(String binary)","params":[{"name":"binary","type":"String"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Sets the tmux executable."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":177,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.Builder.binary","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.Builder.binary","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-builder-binary"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.Builder.endpoint","name":"endpoint","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig.Builder","signatures":[{"raw":"public Builder endpoint(ServerEndpoint endpoint)","params":[{"name":"endpoint","type":"ServerEndpoint"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Sets which server to talk to."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":183,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.Builder.endpoint","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.Builder.endpoint","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-builder-endpoint"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.Builder.configFile","name":"configFile","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig.Builder","signatures":[{"raw":"public Builder configFile(Path configFile)","params":[{"name":"configFile","type":"Path"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Pins the config file tmux reads, which is how a test isolates itself from a user's own."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":189,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.Builder.configFile","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.Builder.configFile","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-builder-configfile"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.Builder.defaultTimeout","name":"defaultTimeout","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig.Builder","signatures":[{"raw":"public Builder defaultTimeout(Duration defaultTimeout)","params":[{"name":"defaultTimeout","type":"Duration"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Sets the deadline a request gets when the caller does not supply one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":195,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.Builder.defaultTimeout","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.Builder.defaultTimeout","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-builder-defaulttimeout"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.Builder.force256Colors","name":"force256Colors","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig.Builder","signatures":[{"raw":"public Builder force256Colors(boolean force256Colors)","params":[{"name":"force256Colors","type":"boolean"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Forces 256-color client support with tmux's {@code -2}; false uses terminal detection."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":201,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.Builder.force256Colors","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.Builder.force256Colors","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-builder-force256colors"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.Builder.observer","name":"observer","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig.Builder","signatures":[{"raw":"public Builder observer(OperationObserver observer)","params":[{"name":"observer","type":"OperationObserver"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Receives a report after each command. The report names verbs, not arguments."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":207,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.Builder.observer","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.Builder.observer","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-builder-observer"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.Builder.maxConcurrentCommands","name":"maxConcurrentCommands","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig.Builder","signatures":[{"raw":"public Builder maxConcurrentCommands(int maxConcurrentCommands)","params":[{"name":"maxConcurrentCommands","type":"int"}],"returns":"Builder","typeScopeBoundary":false,"raises":[{"type":"IllegalArgumentException","doc":"if {@code maxConcurrentCommands} is not positive"}]}],"doc":{"summary":"Sets how many tmux commands {@link Server#open} lets run at once, four unless set."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":217,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.Builder.maxConcurrentCommands","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.Builder.maxConcurrentCommands","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-builder-maxconcurrentcommands"},{"id":"io.github.libtmux.ServerConfig.ServerConfig.Builder.build","name":"build","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerConfig.ServerConfig.Builder","signatures":[{"raw":"public ServerConfig build()","params":[],"returns":"ServerConfig","typeScopeBoundary":false,"raises":[{"type":"IllegalArgumentException","doc":"if a choice would only fail later"}]}],"doc":{"summary":"Builds an immutable config, rejecting choices that could only fail later."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerConfig.java","line":230,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerConfig.Builder.build","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerConfig.ServerConfig.Builder.build","product":"core","slug":"io-github-libtmux-serverconfig-serverconfig-builder-build"},{"id":"io.github.libtmux.ServerEndpoint.ServerEndpoint","name":"ServerEndpoint","kind":"interface","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Which tmux server to talk to.","body":"A value, decided and comparable before any process runs. Two endpoints are equal when they name\nthe same server lexically; nothing here resolves symlinks, contacts the filesystem, or opens a\nsocket. That matters because an endpoint is routinely built, logged and compared while the socket\nit names does not exist yet.\n\nValidation that needs tmux — above all whether a socket path fits the platform's\n{@code sun_path} — happens at dispatch, where the error can carry the command that hit it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerEndpoint.java","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerEndpoint","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerEndpoint.ServerEndpoint","product":"core","slug":"io-github-libtmux-serverendpoint-serverendpoint"},{"id":"io.github.libtmux.ServerEndpoint.ServerEndpoint.flags","name":"flags","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerEndpoint.ServerEndpoint","signatures":[{"raw":"@ReadOnly\n List flags();","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"The flags that select this server, in argv order."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerEndpoint.java","line":22,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerEndpoint.flags","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerEndpoint.ServerEndpoint.flags","product":"core","slug":"io-github-libtmux-serverendpoint-serverendpoint-flags"},{"id":"io.github.libtmux.ServerEndpoint.ServerEndpoint.defaultSocket","name":"defaultSocket","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.ServerEndpoint.ServerEndpoint","signatures":[{"raw":"static ServerEndpoint defaultSocket()","params":[],"returns":"ServerEndpoint","typeScopeBoundary":true}],"doc":{"summary":"tmux's own default server, wherever tmux decides that is."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerEndpoint.java","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerEndpoint.defaultSocket","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerEndpoint.ServerEndpoint.defaultSocket","product":"core","slug":"io-github-libtmux-serverendpoint-serverendpoint-defaultsocket"},{"id":"io.github.libtmux.ServerEndpoint.ServerEndpoint.namedSocket","name":"namedSocket","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.ServerEndpoint.ServerEndpoint","signatures":[{"raw":"static ServerEndpoint namedSocket(String name)","params":[{"name":"name","type":"String"}],"returns":"ServerEndpoint","typeScopeBoundary":true}],"doc":{"summary":"A server named with {@code -L}, resolved by tmux under its own socket directory."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerEndpoint.java","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerEndpoint.namedSocket","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerEndpoint.ServerEndpoint.namedSocket","product":"core","slug":"io-github-libtmux-serverendpoint-serverendpoint-namedsocket-uymy"},{"id":"io.github.libtmux.ServerEndpoint.ServerEndpoint.socketPath","name":"socketPath","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.ServerEndpoint.ServerEndpoint","signatures":[{"raw":"static ServerEndpoint socketPath(Path path)","params":[{"name":"path","type":"Path"}],"returns":"ServerEndpoint","typeScopeBoundary":true}],"doc":{"summary":"A server at an exact socket path, selected with {@code -S}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerEndpoint.java","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerEndpoint.socketPath","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerEndpoint.ServerEndpoint.socketPath","product":"core","slug":"io-github-libtmux-serverendpoint-serverendpoint-socketpath-l4dk"},{"id":"io.github.libtmux.ServerEndpoint.ServerEndpoint.Default","name":"Default","kind":"class","modifiers":[],"parent":"io.github.libtmux.ServerEndpoint.ServerEndpoint","signatures":[{"raw":"record Default() implements ServerEndpoint","params":[]}],"typeScopeBoundary":true,"doc":{"summary":"Adds no flags, so tmux applies its own default socket resolution."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerEndpoint.java","line":41,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerEndpoint.Default","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerEndpoint.ServerEndpoint.Default","product":"core","slug":"io-github-libtmux-serverendpoint-serverendpoint-default"},{"id":"io.github.libtmux.ServerEndpoint.ServerEndpoint.Default.flags","name":"flags","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerEndpoint.ServerEndpoint.Default","signatures":[{"raw":"@Override\n @ReadOnly\n public List flags()","params":[],"returns":"List","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerEndpoint.java","line":42,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerEndpoint.Default.flags","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerEndpoint.ServerEndpoint.Default.flags","product":"core","slug":"io-github-libtmux-serverendpoint-serverendpoint-default-flags"},{"id":"io.github.libtmux.ServerEndpoint.ServerEndpoint.NamedSocket","name":"NamedSocket","kind":"class","modifiers":[],"parent":"io.github.libtmux.ServerEndpoint.ServerEndpoint","signatures":[{"raw":"record NamedSocket(String name) implements ServerEndpoint","params":[{"name":"name","type":"String","doc":"a bare name, with no path separator"}]}],"typeScopeBoundary":true,"doc":{"summary":"A server tmux locates by name under its own socket directory."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerEndpoint.java","line":54,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerEndpoint.NamedSocket","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerEndpoint.ServerEndpoint.NamedSocket","product":"core","slug":"io-github-libtmux-serverendpoint-serverendpoint-namedsocket-1lu0"},{"id":"io.github.libtmux.ServerEndpoint.ServerEndpoint.NamedSocket.flags","name":"flags","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerEndpoint.ServerEndpoint.NamedSocket","signatures":[{"raw":"@Override\n @ReadOnly\n public List flags()","params":[],"returns":"List","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerEndpoint.java","line":68,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerEndpoint.NamedSocket.flags","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerEndpoint.ServerEndpoint.NamedSocket.flags","product":"core","slug":"io-github-libtmux-serverendpoint-serverendpoint-namedsocket-flags"},{"id":"io.github.libtmux.ServerEndpoint.ServerEndpoint.NamedSocket.name","name":"name","kind":"method","parent":"io.github.libtmux.ServerEndpoint.ServerEndpoint.NamedSocket","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"a bare name, with no path separator"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerEndpoint.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerEndpoint.NamedSocket.name","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerEndpoint.ServerEndpoint.NamedSocket.name","product":"core","slug":"io-github-libtmux-serverendpoint-serverendpoint-namedsocket-name"},{"id":"io.github.libtmux.ServerEndpoint.ServerEndpoint.SocketPath","name":"SocketPath","kind":"class","modifiers":[],"parent":"io.github.libtmux.ServerEndpoint.ServerEndpoint","signatures":[{"raw":"record SocketPath(Path path) implements ServerEndpoint","params":[{"name":"path","type":"Path","doc":"the socket path, anchored and lexically normalized so equal sockets compare equal"}]}],"typeScopeBoundary":true,"doc":{"summary":"A server at an exact socket path."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerEndpoint.java","line":80,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerEndpoint.SocketPath","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerEndpoint.ServerEndpoint.SocketPath","product":"core","slug":"io-github-libtmux-serverendpoint-serverendpoint-socketpath-1obc"},{"id":"io.github.libtmux.ServerEndpoint.ServerEndpoint.SocketPath.flags","name":"flags","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerEndpoint.ServerEndpoint.SocketPath","signatures":[{"raw":"@Override\n @ReadOnly\n public List flags()","params":[],"returns":"List","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerEndpoint.java","line":90,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerEndpoint.SocketPath.flags","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerEndpoint.ServerEndpoint.SocketPath.flags","product":"core","slug":"io-github-libtmux-serverendpoint-serverendpoint-socketpath-flags"},{"id":"io.github.libtmux.ServerEndpoint.ServerEndpoint.SocketPath.path","name":"path","kind":"method","parent":"io.github.libtmux.ServerEndpoint.ServerEndpoint.SocketPath","modifiers":[],"signatures":[{"params":[],"returns":"Path"}],"doc":{"summary":"the socket path, anchored and lexically normalized so equal sockets compare equal"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerEndpoint.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerEndpoint.SocketPath.path","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerEndpoint.ServerEndpoint.SocketPath.path","product":"core","slug":"io-github-libtmux-serverendpoint-serverendpoint-socketpath-path"},{"id":"io.github.libtmux.ServerIdentity.ServerIdentity","name":"ServerIdentity","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Which tmux server a handle belongs to.","body":"Two entities with the same id are the same entity only if they came from the same server. The\nrealm exists because socket text alone is not enough: two unrelated execution realms — a local\nprocess and a container, say — can both hold a server at {@code /tmp/s}, and entities from them\nmust not compare equal.\n\nThe server is identified by a digest of its endpoint rather than by the endpoint itself, so an\nidentity can be logged, compared and embedded in a message without carrying a socket path."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerIdentity.java","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerIdentity","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerIdentity.ServerIdentity","product":"core","slug":"io-github-libtmux-serveridentity-serveridentity"},{"id":"io.github.libtmux.ServerIdentity.ServerIdentity.of","name":"of","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.ServerIdentity.ServerIdentity","signatures":[{"raw":"static ServerIdentity of(String realm, ServerEndpoint endpoint)","params":[{"name":"realm","type":"String"},{"name":"endpoint","type":"ServerEndpoint"}],"returns":"ServerIdentity","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerIdentity.java","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerIdentity.of","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerIdentity.ServerIdentity.of","product":"core","slug":"io-github-libtmux-serveridentity-serveridentity-of"},{"id":"io.github.libtmux.ServerIdentity.ServerIdentity.at","name":"at","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerIdentity.ServerIdentity","signatures":[{"raw":"ServerIdentity at(long pid, OptionalLong startTime)","params":[{"name":"pid","type":"long"},{"name":"startTime","type":"OptionalLong"}],"returns":"ServerIdentity","typeScopeBoundary":false}],"doc":{"summary":"This server as one process: a pid alone can be reused, so its start time is part of it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerIdentity.java","line":41,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerIdentity.at","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerIdentity.ServerIdentity.at","product":"core","slug":"io-github-libtmux-serveridentity-serveridentity-at"},{"id":"io.github.libtmux.ServerIdentity.ServerIdentity.realm","name":"realm","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerIdentity.ServerIdentity","signatures":[{"raw":"public String realm()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The execution realm the transport reaches tmux through."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerIdentity.java","line":49,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerIdentity.realm","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerIdentity.ServerIdentity.realm","product":"core","slug":"io-github-libtmux-serveridentity-serveridentity-realm"},{"id":"io.github.libtmux.ServerIdentity.ServerIdentity.server","name":"server","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerIdentity.ServerIdentity","signatures":[{"raw":"public String server()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"A stable opaque key for the server, carrying no socket path."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerIdentity.java","line":54,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerIdentity.server","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerIdentity.ServerIdentity.server","product":"core","slug":"io-github-libtmux-serveridentity-serveridentity-server"},{"id":"io.github.libtmux.ServerIdentity.ServerIdentity.processId","name":"processId","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerIdentity.ServerIdentity","signatures":[{"raw":"public OptionalLong processId()","params":[],"returns":"OptionalLong","typeScopeBoundary":false}],"doc":{"summary":"The live tmux process, present on an identity bound to a captured handle."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerIdentity.java","line":59,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerIdentity.processId","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerIdentity.ServerIdentity.processId","product":"core","slug":"io-github-libtmux-serveridentity-serveridentity-processid"},{"id":"io.github.libtmux.ServerIdentity.ServerIdentity.equals","name":"equals","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerIdentity.ServerIdentity","signatures":[{"raw":"@Override\n public boolean equals(Object other)","params":[{"name":"other","type":"Object"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerIdentity.java","line":63,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerIdentity.equals","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerIdentity.ServerIdentity.equals","product":"core","slug":"io-github-libtmux-serveridentity-serveridentity-equals"},{"id":"io.github.libtmux.ServerIdentity.ServerIdentity.hashCode","name":"hashCode","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerIdentity.ServerIdentity","signatures":[{"raw":"@Override\n public int hashCode()","params":[],"returns":"int","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerIdentity.java","line":72,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerIdentity.hashCode","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerIdentity.ServerIdentity.hashCode","product":"core","slug":"io-github-libtmux-serveridentity-serveridentity-hashcode"},{"id":"io.github.libtmux.ServerIdentity.ServerIdentity.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.ServerIdentity.ServerIdentity","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/ServerIdentity.java","line":77,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.ServerIdentity.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.ServerIdentity.ServerIdentity.toString","product":"core","slug":"io-github-libtmux-serveridentity-serveridentity-tostring"},{"id":"io.github.libtmux.Session.Session","name":"Session","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"One tmux session, as one capture saw it.","body":"Identity is the server and the session id. A name is state: a user can rename a session at any\ntime, and a handle whose equality included the name would stop matching itself the moment they\ndid.\n\n{@link #windows()} reads the capture this handle came from and issues no command. To see newer\nstate, take a new capture.\n\nA method named for a captured field returns what {@link #info()} holds and does no I/O;\n{@link #refresh()} reads again. Every other method asks tmux now."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session","product":"core","slug":"io-github-libtmux-session-session"},{"id":"io.github.libtmux.Session.Session.Session","name":"Session","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"Session(Server server, ServerSnapshot snapshot, SessionState state)","params":[{"name":"server","type":"Server"},{"name":"snapshot","type":"ServerSnapshot"},{"name":"state","type":"SessionState"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":40,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.Session","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.Session","product":"core","slug":"io-github-libtmux-session-session-session"},{"id":"io.github.libtmux.Session.Session.info","name":"info","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public SessionState info()","params":[],"returns":"SessionState","typeScopeBoundary":false}],"doc":{"summary":"The fields this capture stored. A later rename is not visible here."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.info","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.info","product":"core","slug":"io-github-libtmux-session-session-info"},{"id":"io.github.libtmux.Session.Session.id","name":"id","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public SessionId id()","params":[],"returns":"SessionId","typeScopeBoundary":false}],"doc":{"summary":"The session's stable id."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":53,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.id","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.id","product":"core","slug":"io-github-libtmux-session-session-id"},{"id":"io.github.libtmux.Session.Session.name","name":"name","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public String name()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The session name, which a user may change at any time."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":59,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.name","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.name","product":"core","slug":"io-github-libtmux-session-session-name"},{"id":"io.github.libtmux.Session.Session.attached","name":"attached","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public boolean attached()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether a client was attached when this was captured."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":65,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.attached","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.attached","product":"core","slug":"io-github-libtmux-session-session-attached"},{"id":"io.github.libtmux.Session.Session.server","name":"server","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Server server()","params":[],"returns":"Server","typeScopeBoundary":false}],"doc":{"summary":"The server this session lives on."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":71,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.server","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.server","product":"core","slug":"io-github-libtmux-session-session-server"},{"id":"io.github.libtmux.Session.Session.snapshot","name":"snapshot","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"ServerSnapshot snapshot()","params":[],"returns":"ServerSnapshot","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":76,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.snapshot","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.snapshot","product":"core","slug":"io-github-libtmux-session-session-snapshot"},{"id":"io.github.libtmux.Session.Session.activeWindow","name":"activeWindow","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Optional activeWindow()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The window tmux had active in this session. A pure read of the capture."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":81,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.activeWindow","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.activeWindow","product":"core","slug":"io-github-libtmux-session-session-activewindow"},{"id":"io.github.libtmux.Session.Session.activePane","name":"activePane","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Optional activePane()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The active pane of the active window. A pure read of the capture."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":87,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.activePane","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.activePane","product":"core","slug":"io-github-libtmux-session-session-activepane"},{"id":"io.github.libtmux.Session.Session.selectWindow","name":"selectWindow","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void selectWindow(Window window)","params":[{"name":"window","type":"Window"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Makes a window of this session the active one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":93,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.selectWindow","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.selectWindow","product":"core","slug":"io-github-libtmux-session-session-selectwindow"},{"id":"io.github.libtmux.Session.Session.nextWindow","name":"nextWindow","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void nextWindow()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Moves to the next window in this session, wrapping at the end."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":110,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.nextWindow","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.nextWindow","product":"core","slug":"io-github-libtmux-session-session-nextwindow"},{"id":"io.github.libtmux.Session.Session.previousWindow","name":"previousWindow","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void previousWindow()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Moves to the previous window in this session, wrapping at the start."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":116,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.previousWindow","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.previousWindow","product":"core","slug":"io-github-libtmux-session-session-previouswindow"},{"id":"io.github.libtmux.Session.Session.lastWindow","name":"lastWindow","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void lastWindow()","params":[],"returns":"void","typeScopeBoundary":false,"raises":[{"type":"LibTmuxException","doc":"if nothing else has been active yet, which tmux reports rather than silently staying put"}]}],"doc":{"summary":"Returns to the window that was active before this one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":127,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.lastWindow","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.lastWindow","product":"core","slug":"io-github-libtmux-session-session-lastwindow"},{"id":"io.github.libtmux.Session.Session.detachClients","name":"detachClients","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void detachClients()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Detaches every client attached to this session, leaving the session running."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":133,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.detachClients","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.detachClients","product":"core","slug":"io-github-libtmux-session-session-detachclients"},{"id":"io.github.libtmux.Session.Session.options","name":"options","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Options options()","params":[],"returns":"Options","typeScopeBoundary":false}],"doc":{"summary":"This session's own options."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":139,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.options","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.options","product":"core","slug":"io-github-libtmux-session-session-options"},{"id":"io.github.libtmux.Session.Session.environment","name":"environment","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Environment environment()","params":[],"returns":"Environment","typeScopeBoundary":false}],"doc":{"summary":"This session's own environment, which a process started in it is given on top of the server's."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":148,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.environment","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.environment","product":"core","slug":"io-github-libtmux-session-session-environment"},{"id":"io.github.libtmux.Session.Session.hooks","name":"hooks","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Hooks hooks()","params":[],"returns":"Hooks","typeScopeBoundary":false}],"doc":{"summary":"This session's own hooks."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":154,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.hooks","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.hooks","product":"core","slug":"io-github-libtmux-session-session-hooks"},{"id":"io.github.libtmux.Session.Session.setHistoryLimit","name":"setHistoryLimit","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void setHistoryLimit(int lines)","params":[{"name":"lines","type":"int"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Sets the scrollback retained by panes created in this session."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":160,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.setHistoryLimit","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.setHistoryLimit","product":"core","slug":"io-github-libtmux-session-session-sethistorylimit"},{"id":"io.github.libtmux.Session.Session.windows","name":"windows","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.CAPTURED)\n public List windows()","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"This session's windows, in tmux's order. A pure read of the capture.","examples":[{"lang":"console","intro":"List all windows, then the windows captured for one session. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/build.gradle.kts","code":"plugins {\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"java","intro":"Save this complete program as src/main/java/ListWindows.java. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/java/io/github/libtmux/examples/api/java/ListWindows.java","code":"package io.github.libtmux.examples.api.java;\n\nimport io.github.libtmux.Server;\nimport io.github.libtmux.ServerConfig;\nimport io.github.libtmux.ServerEndpoint;\nimport java.nio.file.Path;\nimport java.util.stream.Collectors;\n\n/** List all windows, then the windows captured for one session. */\npublic final class ListWindows {\n private ListWindows() {}\n\n public static void main(String[] args) {\n try {\n if (args.length != 3) {\n throw new IllegalArgumentException(\"expected: tmux-binary socket-path config-file\");\n }\n var config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build();\n try (Server server = Server.open(config)) {\n System.out.println(\"windows=\"\n + server.windows().stream()\n .map(window -> window.name())\n .sorted()\n .collect(Collectors.joining(\",\")));\n var session = server.session(\"work-one\").orElseThrow();\n System.out.println(\"session-windows=\"\n + session.windows().stream()\n .map(window -> window.name())\n .sorted()\n .collect(Collectors.joining(\",\")));\n }\n } catch (Exception error) {\n if (error instanceof InterruptedException) Thread.currentThread().interrupt();\n System.err.println(\"Example failed: \" + error.getMessage());\n System.exit(1);\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.java.ListWindows && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"windows=editor,editor,logs\nsession-windows=editor,logs\n"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":169,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.windows","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.windows","product":"core","slug":"io-github-libtmux-session-session-windows"},{"id":"io.github.libtmux.Session.Session.newWindow","name":"newWindow","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public Window newWindow(String name)","params":[{"name":"name","type":"String","doc":"the window name"}],"returns":"Window","typeScopeBoundary":false,"returnsDoc":"a handle on the created window, from a fresh capture"},{"raw":"@Operation(Kind.MUTATION)\n public Window newWindow(Consumer configure)","params":[{"name":"configure","type":"Consumer","doc":"receives a builder holding tmux's defaults"}],"returns":"Window","typeScopeBoundary":false,"returnsDoc":"a handle on the created window, from a fresh capture"},{"raw":"@Operation(Kind.MUTATION)\n public Window newWindow(WindowSpec spec)","params":[{"name":"spec","type":"WindowSpec"}],"returns":"Window","typeScopeBoundary":false,"returnsDoc":"a handle on the created window, from a fresh capture"}],"doc":{"summary":"Creates a window in this session and returns that exact window.","body":"The creating command reports which window it made, rather than the name being looked up\nafterwards: two windows may share a name, and then a lookup cannot say which one is new.","examples":[{"lang":"console","intro":"Create a window and read the updated session. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/build.gradle.kts","code":"plugins {\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"java","intro":"Save this complete program as src/main/java/NewWindow.java. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/java/io/github/libtmux/examples/api/java/NewWindow.java","code":"package io.github.libtmux.examples.api.java;\n\nimport io.github.libtmux.Server;\nimport io.github.libtmux.ServerConfig;\nimport io.github.libtmux.ServerEndpoint;\nimport io.github.libtmux.WindowSpec;\nimport java.nio.file.Path;\nimport java.util.stream.Collectors;\n\n/** Create a window and read the updated session. */\npublic final class NewWindow {\n private NewWindow() {}\n\n public static void main(String[] args) {\n try {\n if (args.length != 3) {\n throw new IllegalArgumentException(\"expected: tmux-binary socket-path config-file\");\n }\n var config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build();\n try (Server server = Server.open(config)) {\n var session = server.session(\"work-one\").orElseThrow();\n var window = session.newWindow(WindowSpec.builder()\n .named(\"api-window\")\n .running(\"/bin/cat\")\n .build());\n System.out.println(\"created=\" + window.name());\n var refreshed = server.session(\"work-one\").orElseThrow();\n System.out.println(\"windows=\"\n + refreshed.windows().stream()\n .map(item -> item.name())\n .sorted()\n .collect(Collectors.joining(\",\")));\n }\n } catch (Exception error) {\n if (error instanceof InterruptedException) Thread.currentThread().interrupt();\n System.err.println(\"Example failed: \" + error.getMessage());\n System.exit(1);\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.java.NewWindow && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"created=api-window\nwindows=api-window,editor,logs\n"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":186,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.newWindow","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.newWindow","product":"core","slug":"io-github-libtmux-session-session-newwindow"},{"id":"io.github.libtmux.Session.Session.expand","name":"expand","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.READ)\n public String expand(String format)","params":[{"name":"format","type":"String","doc":"a tmux format, usually of the shape {@code #{name}}"}],"returns":"String","typeScopeBoundary":false,"returnsDoc":"the expansion, whole when it spans lines and empty when the format expanded to nothing"}],"doc":{"summary":"Expands a tmux format in this session's context, and answers with what it came to.","body":"The same escape hatch {@link Pane#expand} gives, resolved against this session."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":247,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.expand","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.expand","product":"core","slug":"io-github-libtmux-session-session-expand"},{"id":"io.github.libtmux.Session.Session.rename","name":"rename","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@CheckReturnValue\n @Operation(Kind.MUTATION)\n public Session rename(String name)","params":[{"name":"name","type":"String"}],"returns":"Session","typeScopeBoundary":false}],"doc":{"summary":"Renames this session and returns its replacement capture.","body":"Retain the result to read the changed name. This handle keeps its original captured state."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":261,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.rename","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.rename","product":"core","slug":"io-github-libtmux-session-session-rename"},{"id":"io.github.libtmux.Session.Session.kill","name":"kill","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void kill()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Ends this session. Every window in it goes with it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":269,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.kill","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.kill","product":"core","slug":"io-github-libtmux-session-session-kill"},{"id":"io.github.libtmux.Session.Session.refresh","name":"refresh","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@CheckReturnValue\n @Operation(Kind.READ)\n public Session refresh()","params":[],"returns":"Session","typeScopeBoundary":false,"raises":[{"type":"TargetGoneException","doc":"if the session is gone from a server that still answers"},{"type":"ServerUnavailableException","doc":"if no daemon is running"}]}],"doc":{"summary":"Takes a new capture and returns this session as it is now.","body":"This handle remains unchanged. Use the returned handle for subsequent state reads."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":282,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.refresh","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.refresh","product":"core","slug":"io-github-libtmux-session-session-refresh"},{"id":"io.github.libtmux.Session.Session.equals","name":"equals","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Override\n public boolean equals(Object other)","params":[{"name":"other","type":"Object"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":291,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.equals","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.equals","product":"core","slug":"io-github-libtmux-session-session-equals"},{"id":"io.github.libtmux.Session.Session.hashCode","name":"hashCode","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Override\n public int hashCode()","params":[],"returns":"int","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":298,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.hashCode","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.hashCode","product":"core","slug":"io-github-libtmux-session-session-hashcode"},{"id":"io.github.libtmux.Session.Session.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.Session.Session","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Session.java","line":303,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session.Session.toString","product":"core","slug":"io-github-libtmux-session-session-tostring"},{"id":"io.github.libtmux.SessionCreation.SessionCreation","name":"SessionCreation","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Assembles the pieces {@link Server#newSession(SessionSpec)} needs before tmux has a session yet."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionCreation.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionCreation","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionCreation.SessionCreation","product":"core","slug":"io-github-libtmux-sessioncreation-sessioncreation"},{"id":"io.github.libtmux.SessionCreation.SessionCreation.failureMessage","name":"failureMessage","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.SessionCreation.SessionCreation","signatures":[{"raw":"static String failureMessage(ServerConfig config, CommandResult result)","params":[{"name":"config","type":"ServerConfig"},{"name":"result","type":"CommandResult"}],"returns":"String","typeScopeBoundary":true}],"doc":{"summary":"tmux exits 0 even when nothing was created: an explicit {@code -S} under a directory that does not exist prints its own {@code error creating ...} and still returns success, and a binary that is not tmux at all can exit 0 with nothing on stdout the same way {@code run} cannot tell apart from a real session id. Reads tmux's own words when it spoke and names the configured binary when it did not, rather than letting an empty list reach {@code SessionId} and throw an unchecked collection exception with neither in it.","body":"tmux 3.2a says nothing at all when it cannot create its socket: the server queues the\nerror and tells the client to exit at once, and the client leaves before the error reaches\nit. So a silent exit checks the one cause this client can see for itself."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionCreation.java","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionCreation.failureMessage","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionCreation.SessionCreation.failureMessage","product":"core","slug":"io-github-libtmux-sessioncreation-sessioncreation-failuremessage"},{"id":"io.github.libtmux.SessionCreation.SessionCreation.versionForCreation","name":"versionForCreation","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.SessionCreation.SessionCreation","signatures":[{"raw":"static TmuxVersion versionForCreation(Server server)","params":[{"name":"server","type":"Server"}],"returns":"TmuxVersion","typeScopeBoundary":true}],"doc":{"summary":"The version to gate a session-creation spec against.","body":"{@code new-session} may be the first command said to a fresh socket, where {@link\nServer#version()} fails for want of a daemon. So this asks a running daemon when one answers,\nsince it may be a different build than the configured binary, and otherwise asks the binary\nthrough {@link #binaryVersion}.\n\nReads {@link SnapshotCapture#processForCreation()} rather than {@link Server#version()}: a\ndaemon too old to talk to fails the identity probe as one never started does (\"server exited\nunexpectedly\"), and {@link ServerUnavailableException} does not keep that distinction.\nFalling back to {@code binaryVersion} for such a daemon would report the binary's version as\nthe daemon's."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionCreation.java","line":56,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionCreation.versionForCreation","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionCreation.SessionCreation.versionForCreation","product":"core","slug":"io-github-libtmux-sessioncreation-sessioncreation-versionforcreation"},{"id":"io.github.libtmux.SessionId.SessionId","name":"SessionId","kind":"class","modifiers":[],"signatures":[{"raw":"public record SessionId(String value)","params":[{"name":"value","type":"String","doc":"the id including its {@code $} sigil"}]}],"typeScopeBoundary":false,"doc":{"summary":"A tmux session id, such as {@code $0}.","body":"Stable for the life of the session, unlike a session name, which a user can change at any\ntime. A separate type from {@link WindowId} and {@link PaneId} because tmux accepts any of them\nas {@code -t} syntax: passing the wrong one is not an error tmux reports, it simply addresses\nnothing."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionId.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionId","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionId.SessionId","product":"core","slug":"io-github-libtmux-sessionid-sessionid"},{"id":"io.github.libtmux.SessionId.SessionId.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionId.SessionId","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionId.java","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionId.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionId.SessionId.toString","product":"core","slug":"io-github-libtmux-sessionid-sessionid-tostring"},{"id":"io.github.libtmux.SessionId.SessionId.value","name":"value","kind":"method","parent":"io.github.libtmux.SessionId.SessionId","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"the id including its {@code $} sigil"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionId.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionId.value","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionId.SessionId.value","product":"core","slug":"io-github-libtmux-sessionid-sessionid-value"},{"id":"io.github.libtmux.SessionLookup.SessionLookup","name":"SessionLookup","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Resolves a caller-given session name to the id tmux keeps it under."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionLookup.java","line":9,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionLookup","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionLookup.SessionLookup","product":"core","slug":"io-github-libtmux-sessionlookup-sessionlookup"},{"id":"io.github.libtmux.SessionLookup.SessionLookup.named","name":"named","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.SessionLookup.SessionLookup","signatures":[{"raw":"static Optional named(Server server, String name)","params":[{"name":"server","type":"Server"},{"name":"name","type":"String"}],"returns":"Optional","typeScopeBoundary":true}],"doc":{"summary":"The id of the session tmux keeps under this name, read from one listing.","body":"Not a {@code -t =name} target: tmux reads {@code .} and {@code :} in a target as window and\npane separators, and it may have stored the name differently from how it was given."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionLookup.java","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionLookup.named","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionLookup.SessionLookup.named","product":"core","slug":"io-github-libtmux-sessionlookup-sessionlookup-named"},{"id":"io.github.libtmux.SessionSpec.SessionSpec","name":"SessionSpec","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"How a session should be made.","body":"The shape {@link SplitSpec} and {@link WindowSpec} use. tmux's {@code -A}, which attaches when\nthe name is taken, is deliberately absent: attaching needs a terminal, and it fails with\n{@code open terminal failed} on every supported release when there is none. Asking\n{@link Server#hasSession} first does the same job from a process that has no tty, which is where a\nlibrary usually runs.","examples":[{"lang":"java","code":"Session build = server.newSession(s -> s.named(\"build\").sized(new Dimensions(120, 40)));"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.builder","name":"builder","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.SessionSpec.SessionSpec","signatures":[{"raw":"public static Builder builder()","params":[],"returns":"Builder","typeScopeBoundary":true}],"doc":{"summary":"A builder holding tmux's own defaults: a detached session tmux names itself."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":62,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.builder","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.builder","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-builder-1p4q"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.name","name":"name","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec","signatures":[{"raw":"public Optional name()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The session name, or empty to let tmux number it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":67,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.name","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.name","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-name"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.directory","name":"directory","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec","signatures":[{"raw":"public Optional directory()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"Where the session's first pane starts, or empty to inherit."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":72,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.directory","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.directory","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-directory"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.environment","name":"environment","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec","signatures":[{"raw":"@ReadOnly\n public Map environment()","params":[],"returns":"Map","typeScopeBoundary":false}],"doc":{"summary":"Variables set for the new session, in the order they were given."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":77,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.environment","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.environment","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-environment"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.detached","name":"detached","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec","signatures":[{"raw":"public boolean detached()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Always true, and not a choice.","body":"{@code new-session} attaches unless told not to, and attaching needs a terminal — from a\nprocess without one it fails with {@code open terminal failed}. A library is usually called\nfrom something that has no tty, so the session is always created detached. {@link WindowSpec}\nand {@link SplitSpec} default the other way, because their commands need no terminal."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":90,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.detached","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.detached","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-detached"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.windowName","name":"windowName","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec","signatures":[{"raw":"public Optional windowName()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The name of the session's first window, or empty for tmux's choice."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":95,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.windowName","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.windowName","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-windowname"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.size","name":"size","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec","signatures":[{"raw":"public Optional size()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"How big the session is, or empty for tmux's default. Requires tmux 3.3."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":100,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.size","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.size","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-size"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.withoutSize","name":"withoutSize","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec","signatures":[{"raw":"public boolean withoutSize()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether tmux is told not to give the session a size at all."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":105,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.withoutSize","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.withoutSize","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-withoutsize"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.detachOthers","name":"detachOthers","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec","signatures":[{"raw":"public boolean detachOthers()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether other clients on this session are detached."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":110,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.detachOthers","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.detachOthers","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-detachothers"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.clientFlags","name":"clientFlags","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec","signatures":[{"raw":"@ReadOnly\n public List clientFlags()","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"Client flags, which tmux takes as one comma-separated list."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":115,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.clientFlags","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.clientFlags","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-clientflags"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.command","name":"command","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec","signatures":[{"raw":"@ReadOnly\n public List command()","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"What the session's first pane runs, empty for the default shell."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":121,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.command","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.command","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-command"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.argv","name":"argv","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec","signatures":[{"raw":"List argv(String format, Supplier running)","params":[{"name":"format","type":"String","doc":"the row format the caller will read the result back with"},{"name":"running","type":"Supplier","doc":"what the server about to run this is, asked only if it matters"}],"returns":"List","typeScopeBoundary":false,"raises":[{"type":"UnsupportedFeatureException","doc":"if the spec asks for something {@code running} does not have"}]}],"doc":{"summary":"The command that makes this session, reporting it through {@code format}.","body":"The version arrives as a supplier because this is the one creating call that may run when\nthere is no server yet, and asking a socket with nothing behind it for its version fails.\nNothing asks unless the spec depends on the answer."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":137,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.argv","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.argv","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-argv"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":192,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.toString","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-tostring"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.Builder","name":"Builder","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.SessionSpec.SessionSpec","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Collects the choices, each named for what it does rather than for the field it sets."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":198,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.Builder","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.Builder","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-builder-3lof"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.Builder.named","name":"named","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec.Builder","signatures":[{"raw":"public Builder named(String name)","params":[{"name":"name","type":"String"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Names the session, where tmux would otherwise number it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":213,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.Builder.named","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.Builder.named","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-builder-named"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.Builder.firstWindowNamed","name":"firstWindowNamed","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec.Builder","signatures":[{"raw":"public Builder firstWindowNamed(String windowName)","params":[{"name":"windowName","type":"String"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Names the session's first window."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":219,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.Builder.firstWindowNamed","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.Builder.firstWindowNamed","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-builder-firstwindownamed"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.Builder.running","name":"running","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec.Builder","signatures":[{"raw":"public Builder running(String... argv)","params":[{"name":"argv","type":"String","variadic":"positional"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Runs a command instead of the default shell. tmux reports the session before the command has started, so wait for its pane's command with {@link Pane#await(java.util.function.Predicate, java.time.Duration)} rather than reading it at once."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":228,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.Builder.running","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.Builder.running","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-builder-running"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.Builder.in","name":"in","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec.Builder","signatures":[{"raw":"public Builder in(Path directory)","params":[{"name":"directory","type":"Path"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Starts the session in this directory, resolved against this process's when relative."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":238,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.Builder.in","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.Builder.in","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-builder-in"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.Builder.env","name":"env","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec.Builder","signatures":[{"raw":"public Builder env(String name, String value)","params":[{"name":"name","type":"String"},{"name":"value","type":"String"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Sets one variable in the new session's environment."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":244,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.Builder.env","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.Builder.env","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-builder-env"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.Builder.environment","name":"environment","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec.Builder","signatures":[{"raw":"public Builder environment(Map variables)","params":[{"name":"variables","type":"Map"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Adds several variables to the new session's environment, keeping any already set."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":250,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.Builder.environment","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.Builder.environment","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-builder-environment"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.Builder.sized","name":"sized","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec.Builder","signatures":[{"raw":"public Builder sized(Dimensions size)","params":[{"name":"size","type":"Dimensions"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Gives the session a size, which a detached session has no client to take one from."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":256,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.Builder.sized","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.Builder.sized","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-builder-sized"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.Builder.withoutSize","name":"withoutSize","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec.Builder","signatures":[{"raw":"public Builder withoutSize()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Asks tmux not to give the session a size at all."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":262,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.Builder.withoutSize","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.Builder.withoutSize","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-builder-withoutsize"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.Builder.detachOthers","name":"detachOthers","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec.Builder","signatures":[{"raw":"public Builder detachOthers()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Detaches any other client already on this session."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":268,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.Builder.detachOthers","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.Builder.detachOthers","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-builder-detachothers"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.Builder.clientFlags","name":"clientFlags","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec.Builder","signatures":[{"raw":"public Builder clientFlags(String... flags)","params":[{"name":"flags","type":"String","variadic":"positional"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Sets the client flags tmux applies, which it reads as one comma-separated list."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":274,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.Builder.clientFlags","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.Builder.clientFlags","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-builder-clientflags"},{"id":"io.github.libtmux.SessionSpec.SessionSpec.Builder.build","name":"build","kind":"method","modifiers":[],"parent":"io.github.libtmux.SessionSpec.SessionSpec.Builder","signatures":[{"raw":"public SessionSpec build()","params":[],"returns":"SessionSpec","typeScopeBoundary":false}],"doc":{"summary":"The finished spec."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SessionSpec.java","line":280,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SessionSpec.Builder.build","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SessionSpec.SessionSpec.Builder.build","product":"core","slug":"io-github-libtmux-sessionspec-sessionspec-builder-build"},{"id":"io.github.libtmux.Shell.Shell","name":"Shell","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"A shell command run by tmux, and a tmux command chosen by a shell command's exit status.","body":"tmux expands {@code #(...)} in these strings before a shell sees them. Pass an interpolated\nvalue through {@link TmuxFormats#literal} unless that expansion is what you want."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Shell.java","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Shell","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Shell.Shell","product":"core","slug":"io-github-libtmux-shell-shell"},{"id":"io.github.libtmux.Shell.Shell.Shell","name":"Shell","kind":"method","modifiers":[],"parent":"io.github.libtmux.Shell.Shell","signatures":[{"raw":"Shell(Server server)","params":[{"name":"server","type":"Server"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Shell.java","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Shell.Shell","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Shell.Shell.Shell","product":"core","slug":"io-github-libtmux-shell-shell-shell"},{"id":"io.github.libtmux.Shell.Shell.run","name":"run","kind":"method","modifiers":[],"parent":"io.github.libtmux.Shell.Shell","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void run(String command)","params":[{"name":"command","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Runs a shell command for its effect. Nothing is claimed about what it printed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Shell.java","line":33,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Shell.run","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Shell.Shell.run","product":"core","slug":"io-github-libtmux-shell-shell-run"},{"id":"io.github.libtmux.Shell.Shell.capturing","name":"capturing","kind":"method","modifiers":[],"parent":"io.github.libtmux.Shell.Shell","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.MUTATION)\n public List capturing(String command)","params":[{"name":"command","type":"String"}],"returns":"List","typeScopeBoundary":false,"raises":[{"type":"UnsupportedFeatureException","doc":"on tmux 3.3a and 3.4, which run the command and report nothing"}]}],"doc":{"summary":"Runs a shell command and answers with what it printed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Shell.java","line":45,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Shell.capturing","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Shell.Shell.capturing","product":"core","slug":"io-github-libtmux-shell-shell-capturing"},{"id":"io.github.libtmux.Shell.Shell.choose","name":"choose","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Shell.Shell","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void choose(String condition, String whenTrue)","params":[{"name":"condition","type":"String","doc":"a shell command, judged by its exit status"},{"name":"whenTrue","type":"String","doc":"the tmux command to run when the condition succeeds"}],"returns":"void","typeScopeBoundary":false},{"raw":"@Operation(Kind.MUTATION)\n public void choose(String condition, String whenTrue, String whenFalse)","params":[{"name":"condition","type":"String"},{"name":"whenTrue","type":"String"},{"name":"whenFalse","type":"String","doc":"the tmux command to run when the condition does not succeed"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Runs one tmux command when a shell command succeeds."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Shell.java","line":64,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Shell.choose","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Shell.Shell.choose","product":"core","slug":"io-github-libtmux-shell-shell-choose"},{"id":"io.github.libtmux.snapshot.ClientState.ClientState","name":"ClientState","kind":"class","modifiers":[],"signatures":[{"raw":"public record ClientState(String name, Optional session)","params":[{"name":"name","type":"String","doc":"the client's terminal name, which is how tmux addresses it"},{"name":"session","type":"Optional","doc":"the session it was attached to, if any"}]}],"typeScopeBoundary":false,"doc":{"summary":"A client as one capture saw it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ClientState.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ClientState","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ClientState.ClientState","product":"core","slug":"io-github-libtmux-snapshot-clientstate-clientstate"},{"id":"io.github.libtmux.snapshot.ClientState.ClientState.name","name":"name","kind":"method","parent":"io.github.libtmux.snapshot.ClientState.ClientState","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"the client's terminal name, which is how tmux addresses it"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ClientState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ClientState.name","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ClientState.ClientState.name","product":"core","slug":"io-github-libtmux-snapshot-clientstate-clientstate-name"},{"id":"io.github.libtmux.snapshot.ClientState.ClientState.session","name":"session","kind":"method","parent":"io.github.libtmux.snapshot.ClientState.ClientState","modifiers":[],"signatures":[{"params":[],"returns":"Optional"}],"doc":{"summary":"the session it was attached to, if any"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ClientState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ClientState.session","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ClientState.ClientState.session","product":"core","slug":"io-github-libtmux-snapshot-clientstate-clientstate-session"},{"id":"io.github.libtmux.snapshot.PaneState.PaneState","name":"PaneState","kind":"class","modifiers":[],"signatures":[{"raw":"public record PaneState(\n WindowContext context,\n PaneId id,\n int index,\n boolean active,\n String currentCommand,\n Dimensions size,\n PanePosition position,\n String title,\n String currentPath,\n OptionalLong pid,\n PaneEdges edges,\n Optional floating)","params":[{"name":"context","type":"WindowContext","doc":"the winlink the pane was reached through"},{"name":"id","type":"PaneId","doc":"the pane's stable id"},{"name":"index","type":"int","doc":"the pane's position, which shifts as neighbours come and go"},{"name":"active","type":"boolean","doc":"whether it was the active pane of its window"},{"name":"currentCommand","type":"String","doc":"the command tmux reported running in it"},{"name":"size","type":"Dimensions","doc":"how large the pane was, in terminal cells"},{"name":"position","type":"PanePosition","doc":"where the pane's top-left corner sat in its window, in terminal cells"},{"name":"title","type":"String","doc":"the pane title, which a program inside it can change"},{"name":"currentPath","type":"String","doc":"the working directory tmux reported for it, as text. Not a {@link java.nio.file.Path}: a directory name is bytes to tmux, and converting one this JVM's encoding cannot represent throws — which, in a capture, would lose every other pane over one pane's directory. {@code Pane.currentPath()} converts on request instead"},{"name":"pid","type":"OptionalLong","doc":"the process id of the program running in it, or empty when tmux reports no process at all — never a literal zero, so a caller cannot mistake the sentinel for a real pid"},{"name":"edges","type":"PaneEdges","doc":"which sides of its window the pane touches"},{"name":"floating","type":"Optional","doc":"whether the pane floats, or empty when the running tmux cannot say. Before 3.7 the format expands to nothing at all, and reporting that as {@code false} would be indistinguishable from a tmux that looked and found the pane was not floating."}]}],"typeScopeBoundary":false,"doc":{"summary":"A pane as one capture saw it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/PaneState.java","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.PaneState","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.PaneState.PaneState","product":"core","slug":"io-github-libtmux-snapshot-panestate-panestate"},{"id":"io.github.libtmux.snapshot.PaneState.PaneState.context","name":"context","kind":"method","parent":"io.github.libtmux.snapshot.PaneState.PaneState","modifiers":[],"signatures":[{"params":[],"returns":"WindowContext"}],"doc":{"summary":"the winlink the pane was reached through"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/PaneState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.PaneState.context","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.PaneState.PaneState.context","product":"core","slug":"io-github-libtmux-snapshot-panestate-panestate-context"},{"id":"io.github.libtmux.snapshot.PaneState.PaneState.id","name":"id","kind":"method","parent":"io.github.libtmux.snapshot.PaneState.PaneState","modifiers":[],"signatures":[{"params":[],"returns":"PaneId"}],"doc":{"summary":"the pane's stable id"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/PaneState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.PaneState.id","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.PaneState.PaneState.id","product":"core","slug":"io-github-libtmux-snapshot-panestate-panestate-id"},{"id":"io.github.libtmux.snapshot.PaneState.PaneState.index","name":"index","kind":"method","parent":"io.github.libtmux.snapshot.PaneState.PaneState","modifiers":[],"signatures":[{"params":[],"returns":"int"}],"doc":{"summary":"the pane's position, which shifts as neighbours come and go"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/PaneState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.PaneState.index","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.PaneState.PaneState.index","product":"core","slug":"io-github-libtmux-snapshot-panestate-panestate-index"},{"id":"io.github.libtmux.snapshot.PaneState.PaneState.active","name":"active","kind":"method","parent":"io.github.libtmux.snapshot.PaneState.PaneState","modifiers":[],"signatures":[{"params":[],"returns":"boolean"}],"doc":{"summary":"whether it was the active pane of its window"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/PaneState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.PaneState.active","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.PaneState.PaneState.active","product":"core","slug":"io-github-libtmux-snapshot-panestate-panestate-active"},{"id":"io.github.libtmux.snapshot.PaneState.PaneState.currentCommand","name":"currentCommand","kind":"method","parent":"io.github.libtmux.snapshot.PaneState.PaneState","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"the command tmux reported running in it"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/PaneState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.PaneState.currentCommand","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.PaneState.PaneState.currentCommand","product":"core","slug":"io-github-libtmux-snapshot-panestate-panestate-currentcommand"},{"id":"io.github.libtmux.snapshot.PaneState.PaneState.size","name":"size","kind":"method","parent":"io.github.libtmux.snapshot.PaneState.PaneState","modifiers":[],"signatures":[{"params":[],"returns":"Dimensions"}],"doc":{"summary":"how large the pane was, in terminal cells"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/PaneState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.PaneState.size","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.PaneState.PaneState.size","product":"core","slug":"io-github-libtmux-snapshot-panestate-panestate-size"},{"id":"io.github.libtmux.snapshot.PaneState.PaneState.position","name":"position","kind":"method","parent":"io.github.libtmux.snapshot.PaneState.PaneState","modifiers":[],"signatures":[{"params":[],"returns":"PanePosition"}],"doc":{"summary":"where the pane's top-left corner sat in its window, in terminal cells"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/PaneState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.PaneState.position","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.PaneState.PaneState.position","product":"core","slug":"io-github-libtmux-snapshot-panestate-panestate-position"},{"id":"io.github.libtmux.snapshot.PaneState.PaneState.title","name":"title","kind":"method","parent":"io.github.libtmux.snapshot.PaneState.PaneState","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"the pane title, which a program inside it can change"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/PaneState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.PaneState.title","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.PaneState.PaneState.title","product":"core","slug":"io-github-libtmux-snapshot-panestate-panestate-title"},{"id":"io.github.libtmux.snapshot.PaneState.PaneState.currentPath","name":"currentPath","kind":"method","parent":"io.github.libtmux.snapshot.PaneState.PaneState","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"the working directory tmux reported for it, as text. Not a {@link java.nio.file.Path}: a directory name is bytes to tmux, and converting one this JVM's encoding cannot represent throws — which, in a capture, would lose every other pane over one pane's directory. {@code Pane.currentPath()} converts on request instead"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/PaneState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.PaneState.currentPath","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.PaneState.PaneState.currentPath","product":"core","slug":"io-github-libtmux-snapshot-panestate-panestate-currentpath"},{"id":"io.github.libtmux.snapshot.PaneState.PaneState.pid","name":"pid","kind":"method","parent":"io.github.libtmux.snapshot.PaneState.PaneState","modifiers":[],"signatures":[{"params":[],"returns":"OptionalLong"}],"doc":{"summary":"the process id of the program running in it, or empty when tmux reports no process at all — never a literal zero, so a caller cannot mistake the sentinel for a real pid"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/PaneState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.PaneState.pid","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.PaneState.PaneState.pid","product":"core","slug":"io-github-libtmux-snapshot-panestate-panestate-pid"},{"id":"io.github.libtmux.snapshot.PaneState.PaneState.edges","name":"edges","kind":"method","parent":"io.github.libtmux.snapshot.PaneState.PaneState","modifiers":[],"signatures":[{"params":[],"returns":"PaneEdges"}],"doc":{"summary":"which sides of its window the pane touches"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/PaneState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.PaneState.edges","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.PaneState.PaneState.edges","product":"core","slug":"io-github-libtmux-snapshot-panestate-panestate-edges"},{"id":"io.github.libtmux.snapshot.PaneState.PaneState.floating","name":"floating","kind":"method","parent":"io.github.libtmux.snapshot.PaneState.PaneState","modifiers":[],"signatures":[{"params":[],"returns":"Optional"}],"doc":{"summary":"whether the pane floats, or empty when the running tmux cannot say. Before 3.7 the format expands to nothing at all, and reporting that as {@code false} would be indistinguishable from a tmux that looked and found the pane was not floating."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/PaneState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.PaneState.floating","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.PaneState.PaneState.floating","product":"core","slug":"io-github-libtmux-snapshot-panestate-panestate-floating"},{"id":"io.github.libtmux.snapshot.ServerMirror.ServerMirror","name":"ServerMirror","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"A live copy of one tmux server's sessions, windows, panes and clients, rebuilt whenever tmux announces a change.","body":"A control client attached through an anchor session hears what tmux announces. Any\nannouncement, or a {@link Delivery.Gap} in them, starts a fresh {@link Server#snapshot()} — never\na patch of the last one, since an announcement says that something changed, not everything that\ndid. Announcements that arrive while a snapshot is being taken collapse into one more rebuild, and\na rebuild that finds nothing different publishes nothing. Each published {@link View} carries an\nepoch one above the last, counted by this mirror; it is not a number tmux keeps.\n\ntmux keeps no history of what it announced. When the control client ends, the mirror finds\nthe anchor session again by its id and attaches through it with a fresh snapshot; if the session\nhas gone, the mirror ends with {@link TargetGoneException}, and if the server has, with the\nfailure that said so. A change tmux does not announce to this client, such as a pane retitled in\nanother session, is seen at the next rebuild, or within {@code refreshEvery} when one is given.\n\nThread-safe. One virtual thread per mirror listens and rebuilds; {@link #close()} ends it and\nthe control client with it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerMirror.java","line":41,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerMirror","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerMirror.ServerMirror","product":"core","slug":"io-github-libtmux-snapshot-servermirror-servermirror"},{"id":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.View","name":"View","kind":"class","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerMirror.ServerMirror","signatures":[{"raw":"public record View(long epoch, ServerSnapshot snapshot)","params":[{"name":"epoch","type":"long","doc":"how many views this mirror published before this one"},{"name":"snapshot","type":"ServerSnapshot","doc":"the server as the rebuild captured it"}]}],"typeScopeBoundary":true,"doc":{"summary":"One published state of the server."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerMirror.java","line":49,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerMirror.View","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.View","product":"core","slug":"io-github-libtmux-snapshot-servermirror-servermirror-view"},{"id":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.View.epoch","name":"epoch","kind":"method","parent":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.View","modifiers":[],"signatures":[{"params":[],"returns":"long"}],"doc":{"summary":"how many views this mirror published before this one"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerMirror.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerMirror.View.epoch","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.View.epoch","product":"core","slug":"io-github-libtmux-snapshot-servermirror-servermirror-view-epoch"},{"id":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.View.snapshot","name":"snapshot","kind":"method","parent":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.View","modifiers":[],"signatures":[{"params":[],"returns":"ServerSnapshot"}],"doc":{"summary":"the server as the rebuild captured it"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerMirror.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerMirror.View.snapshot","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.View.snapshot","product":"core","slug":"io-github-libtmux-snapshot-servermirror-servermirror-view-snapshot"},{"id":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.open","name":"open","kind":"method","modifiers":["static","overload"],"parent":"io.github.libtmux.snapshot.ServerMirror.ServerMirror","signatures":[{"raw":"@Operation(Kind.LIFECYCLE)\n public static ServerMirror open(Session anchor)","params":[{"name":"anchor","type":"Session"}],"returns":"ServerMirror","typeScopeBoundary":true,"raises":[{"type":"TargetGoneException","doc":"if the anchor session or its server has gone"}]},{"raw":"@Operation(Kind.LIFECYCLE)\n public static ServerMirror open(Session anchor, Duration refreshEvery)","params":[{"name":"anchor","type":"Session"},{"name":"refreshEvery","type":"Duration","doc":"how long a quiet mirror waits before rebuilding anyway; zero never does"}],"returns":"ServerMirror","typeScopeBoundary":true,"raises":[{"type":"IllegalArgumentException","doc":"if {@code refreshEvery} is negative"}]}],"doc":{"summary":"Mirrors the server {@code anchor} belongs to, listening through a control client attached to {@code anchor}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerMirror.java","line":96,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerMirror.open","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.open","product":"core","slug":"io-github-libtmux-snapshot-servermirror-servermirror-open"},{"id":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.current","name":"current","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerMirror.ServerMirror","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public View current()","params":[],"returns":"View","typeScopeBoundary":false}],"doc":{"summary":"The latest published view."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerMirror.java","line":121,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerMirror.current","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.current","product":"core","slug":"io-github-libtmux-snapshot-servermirror-servermirror-current"},{"id":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.awaitNewer","name":"awaitNewer","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerMirror.ServerMirror","signatures":[{"raw":"@Operation(Kind.WAIT)\n public Optional awaitNewer(long epoch, Duration timeout) throws InterruptedException","params":[{"name":"epoch","type":"long"},{"name":"timeout","type":"Duration"}],"returns":"Optional","typeScopeBoundary":false,"returnsDoc":"the newer view, or empty when {@code timeout} passed first or the mirror ended; {@link #isEnded()} and {@link #cause()} tell those apart","raises":[{"type":"InterruptedException","doc":"if the waiting thread is interrupted"}]}],"doc":{"summary":"Waits for a view newer than {@code epoch}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerMirror.java","line":138,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerMirror.awaitNewer","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.awaitNewer","product":"core","slug":"io-github-libtmux-snapshot-servermirror-servermirror-awaitnewer"},{"id":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.onNewer","name":"onNewer","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerMirror.ServerMirror","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public void onNewer(long epoch, Runnable callback)","params":[{"name":"epoch","type":"long"},{"name":"callback","type":"Runnable"}],"returns":"void","typeScopeBoundary":false,"raises":[{"type":"IllegalStateException","doc":"if a callback is already armed"}]}],"doc":{"summary":"Arms a one-shot wakeup for when a view newer than {@code epoch} is published or the mirror ends.","body":"Runs {@code callback} at once, on this thread, when such a view already exists or the mirror\nhas ended; otherwise once, on the mirror's own thread. The callback must not block."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerMirror.java","line":160,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerMirror.onNewer","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.onNewer","product":"core","slug":"io-github-libtmux-snapshot-servermirror-servermirror-onnewer"},{"id":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.clearNewer","name":"clearNewer","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerMirror.ServerMirror","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public void clearNewer()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Disarms the callback {@link #onNewer} armed, if one is armed."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerMirror.java","line":183,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerMirror.clearNewer","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.clearNewer","product":"core","slug":"io-github-libtmux-snapshot-servermirror-servermirror-clearnewer"},{"id":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.isEnded","name":"isEnded","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerMirror.ServerMirror","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public boolean isEnded()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether this mirror has stopped publishing, because it was closed or its anchor has gone."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerMirror.java","line":194,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerMirror.isEnded","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.isEnded","product":"core","slug":"io-github-libtmux-snapshot-servermirror-servermirror-isended"},{"id":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.cause","name":"cause","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerMirror.ServerMirror","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Optional cause()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"Why this mirror ended, when something other than {@link #close()} ended it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerMirror.java","line":205,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerMirror.cause","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.cause","product":"core","slug":"io-github-libtmux-snapshot-servermirror-servermirror-cause"},{"id":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.close","name":"close","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerMirror.ServerMirror","signatures":[{"raw":"@Override\n @Operation(Kind.LIFECYCLE)\n public void close()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Stops listening and detaches the control client. The last view stays readable. Idempotent."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerMirror.java","line":216,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerMirror.close","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerMirror.ServerMirror.close","product":"core","slug":"io-github-libtmux-snapshot-servermirror-servermirror-close"},{"id":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot","name":"ServerSnapshot","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"One tmux hierarchy, as it was at one moment.","body":"Every question below is answered from what was captured, so traversing a snapshot issues no\ncommands and cannot observe a half-changed server. It claims a moment rather than current truth:\ntmux offers no transaction across separate listings, and pretending otherwise would be a promise\nthis cannot keep."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerSnapshot.java","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerSnapshot","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot","product":"core","slug":"io-github-libtmux-snapshot-serversnapshot-serversnapshot"},{"id":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.of","name":"of","kind":"method","modifiers":["static","overload"],"parent":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot","signatures":[{"raw":"public static ServerSnapshot of(\n Instant capturedAt,\n long serverPid,\n TmuxVersion serverVersion,\n List sessions,\n List windows,\n List panes,\n List clients)","params":[{"name":"capturedAt","type":"Instant"},{"name":"serverPid","type":"long"},{"name":"serverVersion","type":"TmuxVersion"},{"name":"sessions","type":"List"},{"name":"windows","type":"List"},{"name":"panes","type":"List"},{"name":"clients","type":"List"}],"returns":"ServerSnapshot","typeScopeBoundary":true},{"raw":"public static ServerSnapshot of(\n Instant capturedAt,\n long serverPid,\n long serverStartTime,\n TmuxVersion serverVersion,\n List sessions,\n List windows,\n List panes,\n List clients)","params":[{"name":"capturedAt","type":"Instant"},{"name":"serverPid","type":"long"},{"name":"serverStartTime","type":"long"},{"name":"serverVersion","type":"TmuxVersion"},{"name":"sessions","type":"List"},{"name":"windows","type":"List"},{"name":"panes","type":"List"},{"name":"clients","type":"List"}],"returns":"ServerSnapshot","typeScopeBoundary":true}],"doc":{"summary":"Assembles a capture tied to the live tmux process and version that produced it, with no start time: a handle made from it is fenced by the process id alone."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerSnapshot.java","line":107,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerSnapshot.of","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.of","product":"core","slug":"io-github-libtmux-snapshot-serversnapshot-serversnapshot-of"},{"id":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.capturedAt","name":"capturedAt","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot","signatures":[{"raw":"public Instant capturedAt()","params":[],"returns":"Instant","typeScopeBoundary":false}],"doc":{"summary":"When this capture was taken."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerSnapshot.java","line":235,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerSnapshot.capturedAt","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.capturedAt","product":"core","slug":"io-github-libtmux-snapshot-serversnapshot-serversnapshot-capturedat"},{"id":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.serverPid","name":"serverPid","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot","signatures":[{"raw":"public OptionalLong serverPid()","params":[],"returns":"OptionalLong","typeScopeBoundary":false}],"doc":{"summary":"The tmux process that produced this capture, absent when assembled from detached state."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerSnapshot.java","line":240,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerSnapshot.serverPid","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.serverPid","product":"core","slug":"io-github-libtmux-snapshot-serversnapshot-serversnapshot-serverpid"},{"id":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.serverStartTime","name":"serverStartTime","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot","signatures":[{"raw":"public OptionalLong serverStartTime()","params":[],"returns":"OptionalLong","typeScopeBoundary":false}],"doc":{"summary":"When the tmux process that produced this capture started, in seconds since the epoch, as {@code #{start_time}} reports it. Absent when the capture was assembled without it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerSnapshot.java","line":248,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerSnapshot.serverStartTime","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.serverStartTime","product":"core","slug":"io-github-libtmux-snapshot-serversnapshot-serversnapshot-serverstarttime"},{"id":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.serverVersion","name":"serverVersion","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot","signatures":[{"raw":"public Optional serverVersion()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The tmux version that produced this capture, absent when assembled from detached state."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerSnapshot.java","line":253,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerSnapshot.serverVersion","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.serverVersion","product":"core","slug":"io-github-libtmux-snapshot-serversnapshot-serversnapshot-serverversion"},{"id":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.sessions","name":"sessions","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot","signatures":[{"raw":"@ReadOnly\n public List sessions()","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"Every session, in tmux's order."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerSnapshot.java","line":258,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerSnapshot.sessions","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.sessions","product":"core","slug":"io-github-libtmux-snapshot-serversnapshot-serversnapshot-sessions"},{"id":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.windows","name":"windows","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot","signatures":[{"raw":"@ReadOnly\n public List windows()","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"Every winlink, in tmux's order, including a window linked into more than one session twice."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerSnapshot.java","line":264,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerSnapshot.windows","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.windows","product":"core","slug":"io-github-libtmux-snapshot-serversnapshot-serversnapshot-windows"},{"id":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.panes","name":"panes","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot","signatures":[{"raw":"@ReadOnly\n public List panes()","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"Every pane, in tmux's order."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerSnapshot.java","line":270,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerSnapshot.panes","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.panes","product":"core","slug":"io-github-libtmux-snapshot-serversnapshot-serversnapshot-panes"},{"id":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.clients","name":"clients","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot","signatures":[{"raw":"@ReadOnly\n public List clients()","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"Every attached client."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerSnapshot.java","line":276,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerSnapshot.clients","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.clients","product":"core","slug":"io-github-libtmux-snapshot-serversnapshot-serversnapshot-clients"},{"id":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.session","name":"session","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot","signatures":[{"raw":"public Optional session(SessionId id)","params":[{"name":"id","type":"SessionId"}],"returns":"Optional","typeScopeBoundary":false},{"raw":"public Optional session(String name)","params":[{"name":"name","type":"String"}],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The session with this id, if the capture saw it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerSnapshot.java","line":282,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerSnapshot.session","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.session","product":"core","slug":"io-github-libtmux-snapshot-serversnapshot-serversnapshot-session"},{"id":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.window","name":"window","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot","signatures":[{"raw":"public Optional window(WindowContext context)","params":[{"name":"context","type":"WindowContext"}],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The winlink at this exact position, if the capture saw it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerSnapshot.java","line":292,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerSnapshot.window","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.window","product":"core","slug":"io-github-libtmux-snapshot-serversnapshot-serversnapshot-window"},{"id":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.windowsOf","name":"windowsOf","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot","signatures":[{"raw":"@ReadOnly\n public List windowsOf(SessionId session)","params":[{"name":"session","type":"SessionId"}],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"The winlinks in one session, in order. Empty when the capture never saw that session."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerSnapshot.java","line":297,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerSnapshot.windowsOf","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.windowsOf","product":"core","slug":"io-github-libtmux-snapshot-serversnapshot-serversnapshot-windowsof"},{"id":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.panesOf","name":"panesOf","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot","signatures":[{"raw":"@ReadOnly\n public List panesOf(WindowContext context)","params":[{"name":"context","type":"WindowContext"}],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"The panes under one winlink, in order. Empty when the capture never saw that winlink."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerSnapshot.java","line":303,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerSnapshot.panesOf","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.panesOf","product":"core","slug":"io-github-libtmux-snapshot-serversnapshot-serversnapshot-panesof"},{"id":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/ServerSnapshot.java","line":308,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.ServerSnapshot.toString","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.toString","product":"core","slug":"io-github-libtmux-snapshot-serversnapshot-serversnapshot-tostring"},{"id":"io.github.libtmux.snapshot.SessionState.SessionState","name":"SessionState","kind":"class","modifiers":[],"signatures":[{"raw":"public record SessionState(SessionId id, String name, boolean attached, int windows)","params":[{"name":"id","type":"SessionId","doc":"the session's stable id"},{"name":"name","type":"String","doc":"the session name, which a user may change at any time"},{"name":"attached","type":"boolean","doc":"whether a client was attached to it"},{"name":"windows","type":"int","doc":"how many windows it contained"}]}],"typeScopeBoundary":false,"doc":{"summary":"A session as one capture saw it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/SessionState.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.SessionState","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.SessionState.SessionState","product":"core","slug":"io-github-libtmux-snapshot-sessionstate-sessionstate"},{"id":"io.github.libtmux.snapshot.SessionState.SessionState.id","name":"id","kind":"method","parent":"io.github.libtmux.snapshot.SessionState.SessionState","modifiers":[],"signatures":[{"params":[],"returns":"SessionId"}],"doc":{"summary":"the session's stable id"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/SessionState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.SessionState.id","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.SessionState.SessionState.id","product":"core","slug":"io-github-libtmux-snapshot-sessionstate-sessionstate-id"},{"id":"io.github.libtmux.snapshot.SessionState.SessionState.name","name":"name","kind":"method","parent":"io.github.libtmux.snapshot.SessionState.SessionState","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"the session name, which a user may change at any time"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/SessionState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.SessionState.name","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.SessionState.SessionState.name","product":"core","slug":"io-github-libtmux-snapshot-sessionstate-sessionstate-name"},{"id":"io.github.libtmux.snapshot.SessionState.SessionState.attached","name":"attached","kind":"method","parent":"io.github.libtmux.snapshot.SessionState.SessionState","modifiers":[],"signatures":[{"params":[],"returns":"boolean"}],"doc":{"summary":"whether a client was attached to it"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/SessionState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.SessionState.attached","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.SessionState.SessionState.attached","product":"core","slug":"io-github-libtmux-snapshot-sessionstate-sessionstate-attached"},{"id":"io.github.libtmux.snapshot.SessionState.SessionState.windows","name":"windows","kind":"method","parent":"io.github.libtmux.snapshot.SessionState.SessionState","modifiers":[],"signatures":[{"params":[],"returns":"int"}],"doc":{"summary":"how many windows it contained"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/SessionState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.SessionState.windows","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.SessionState.SessionState.windows","product":"core","slug":"io-github-libtmux-snapshot-sessionstate-sessionstate-windows"},{"id":"io.github.libtmux.snapshot.WindowContext.WindowContext","name":"WindowContext","kind":"class","modifiers":[],"signatures":[{"raw":"public record WindowContext(SessionId session, WindowIndex index, WindowId window)","params":[{"name":"session","type":"SessionId","doc":"the session this link belongs to"},{"name":"index","type":"WindowIndex","doc":"where the window sits in that session"},{"name":"window","type":"WindowId","doc":"the underlying window, shared across links"}]}],"typeScopeBoundary":false,"doc":{"summary":"One tmux winlink: a window as it appears in one session, at one index.","body":"The unit relations are keyed on. A window linked into two sessions has one {@link WindowId}\nand two contexts, and tmux treats those two positions as distinct."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/WindowContext.java","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.WindowContext","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.WindowContext.WindowContext","product":"core","slug":"io-github-libtmux-snapshot-windowcontext-windowcontext"},{"id":"io.github.libtmux.snapshot.WindowContext.WindowContext.session","name":"session","kind":"method","parent":"io.github.libtmux.snapshot.WindowContext.WindowContext","modifiers":[],"signatures":[{"params":[],"returns":"SessionId"}],"doc":{"summary":"the session this link belongs to"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/WindowContext.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.WindowContext.session","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.WindowContext.WindowContext.session","product":"core","slug":"io-github-libtmux-snapshot-windowcontext-windowcontext-session"},{"id":"io.github.libtmux.snapshot.WindowContext.WindowContext.index","name":"index","kind":"method","parent":"io.github.libtmux.snapshot.WindowContext.WindowContext","modifiers":[],"signatures":[{"params":[],"returns":"WindowIndex"}],"doc":{"summary":"where the window sits in that session"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/WindowContext.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.WindowContext.index","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.WindowContext.WindowContext.index","product":"core","slug":"io-github-libtmux-snapshot-windowcontext-windowcontext-index"},{"id":"io.github.libtmux.snapshot.WindowContext.WindowContext.window","name":"window","kind":"method","parent":"io.github.libtmux.snapshot.WindowContext.WindowContext","modifiers":[],"signatures":[{"params":[],"returns":"WindowId"}],"doc":{"summary":"the underlying window, shared across links"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/WindowContext.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.WindowContext.window","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.WindowContext.WindowContext.window","product":"core","slug":"io-github-libtmux-snapshot-windowcontext-windowcontext-window"},{"id":"io.github.libtmux.snapshot.WindowState.WindowState","name":"WindowState","kind":"class","modifiers":[],"signatures":[{"raw":"public record WindowState(\n WindowContext context,\n String name,\n boolean active,\n int panes,\n boolean linked,\n Dimensions size,\n String layout)","params":[{"name":"context","type":"WindowContext","doc":"which session and index this link occupies"},{"name":"name","type":"String","doc":"the window name"},{"name":"active","type":"boolean","doc":"whether it was the active window of its session"},{"name":"panes","type":"int","doc":"how many panes it contained"},{"name":"linked","type":"boolean","doc":"whether the window is linked into more than one session"},{"name":"size","type":"Dimensions","doc":"how large the window was, in terminal cells"},{"name":"layout","type":"String","doc":"tmux's own serialized layout, which can be handed back to select-layout"}]}],"typeScopeBoundary":false,"doc":{"summary":"A window as one capture saw it, at one of its positions."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/WindowState.java","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.WindowState","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.WindowState.WindowState","product":"core","slug":"io-github-libtmux-snapshot-windowstate-windowstate"},{"id":"io.github.libtmux.snapshot.WindowState.WindowState.context","name":"context","kind":"method","parent":"io.github.libtmux.snapshot.WindowState.WindowState","modifiers":[],"signatures":[{"params":[],"returns":"WindowContext"}],"doc":{"summary":"which session and index this link occupies"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/WindowState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.WindowState.context","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.WindowState.WindowState.context","product":"core","slug":"io-github-libtmux-snapshot-windowstate-windowstate-context"},{"id":"io.github.libtmux.snapshot.WindowState.WindowState.name","name":"name","kind":"method","parent":"io.github.libtmux.snapshot.WindowState.WindowState","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"the window name"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/WindowState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.WindowState.name","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.WindowState.WindowState.name","product":"core","slug":"io-github-libtmux-snapshot-windowstate-windowstate-name"},{"id":"io.github.libtmux.snapshot.WindowState.WindowState.active","name":"active","kind":"method","parent":"io.github.libtmux.snapshot.WindowState.WindowState","modifiers":[],"signatures":[{"params":[],"returns":"boolean"}],"doc":{"summary":"whether it was the active window of its session"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/WindowState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.WindowState.active","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.WindowState.WindowState.active","product":"core","slug":"io-github-libtmux-snapshot-windowstate-windowstate-active"},{"id":"io.github.libtmux.snapshot.WindowState.WindowState.panes","name":"panes","kind":"method","parent":"io.github.libtmux.snapshot.WindowState.WindowState","modifiers":[],"signatures":[{"params":[],"returns":"int"}],"doc":{"summary":"how many panes it contained"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/WindowState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.WindowState.panes","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.WindowState.WindowState.panes","product":"core","slug":"io-github-libtmux-snapshot-windowstate-windowstate-panes"},{"id":"io.github.libtmux.snapshot.WindowState.WindowState.linked","name":"linked","kind":"method","parent":"io.github.libtmux.snapshot.WindowState.WindowState","modifiers":[],"signatures":[{"params":[],"returns":"boolean"}],"doc":{"summary":"whether the window is linked into more than one session"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/WindowState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.WindowState.linked","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.WindowState.WindowState.linked","product":"core","slug":"io-github-libtmux-snapshot-windowstate-windowstate-linked"},{"id":"io.github.libtmux.snapshot.WindowState.WindowState.size","name":"size","kind":"method","parent":"io.github.libtmux.snapshot.WindowState.WindowState","modifiers":[],"signatures":[{"params":[],"returns":"Dimensions"}],"doc":{"summary":"how large the window was, in terminal cells"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/WindowState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.WindowState.size","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.WindowState.WindowState.size","product":"core","slug":"io-github-libtmux-snapshot-windowstate-windowstate-size"},{"id":"io.github.libtmux.snapshot.WindowState.WindowState.layout","name":"layout","kind":"method","parent":"io.github.libtmux.snapshot.WindowState.WindowState","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"tmux's own serialized layout, which can be handed back to select-layout"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/snapshot/WindowState.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.snapshot.WindowState.layout","namespace":"io.github.libtmux.snapshot","publicId":"io.github.libtmux.snapshot.WindowState.WindowState.layout","product":"core","slug":"io-github-libtmux-snapshot-windowstate-windowstate-layout"},{"id":"io.github.libtmux.SnapshotCapture.SnapshotCapture","name":"SnapshotCapture","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Reads a whole tmux server into one snapshot.","body":"One server-wide listing per kind of object, so ordering and membership stay tmux's decision\nrather than being re-derived from another listing's rows.\n\nTwo commands: who the server is, then the listings as one group fenced against both halves of\nthat answer, its pid and its version. tmux runs a group in the server, so rows cannot come from\ntwo of them, and a server that is not the one probed is refused before a listing runs rather than\ndetected afterwards. Retrying is {@link Server#snapshot()}'s decision, not this one's."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SnapshotCapture","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SnapshotCapture.SnapshotCapture","product":"core","slug":"io-github-libtmux-snapshotcapture-snapshotcapture"},{"id":"io.github.libtmux.SnapshotCapture.SnapshotCapture.SnapshotCapture","name":"SnapshotCapture","kind":"method","modifiers":[],"parent":"io.github.libtmux.SnapshotCapture.SnapshotCapture","signatures":[{"raw":"SnapshotCapture(Server server)","params":[{"name":"server","type":"Server"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java","line":94,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SnapshotCapture.SnapshotCapture","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SnapshotCapture.SnapshotCapture.SnapshotCapture","product":"core","slug":"io-github-libtmux-snapshotcapture-snapshotcapture-snapshotcapture"},{"id":"io.github.libtmux.SnapshotCapture.SnapshotCapture.attempt","name":"attempt","kind":"method","modifiers":[],"parent":"io.github.libtmux.SnapshotCapture.SnapshotCapture","signatures":[{"raw":"Optional attempt()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"One attempt, empty when the server was replaced under it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java","line":99,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SnapshotCapture.attempt","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SnapshotCapture.SnapshotCapture.attempt","product":"core","slug":"io-github-libtmux-snapshotcapture-snapshotcapture-attempt"},{"id":"io.github.libtmux.SnapshotCapture.SnapshotCapture.process","name":"process","kind":"method","modifiers":[],"parent":"io.github.libtmux.SnapshotCapture.SnapshotCapture","signatures":[{"raw":"Optional process()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"Reads process identity and version together so neither can come from a different server."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java","line":123,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SnapshotCapture.process","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SnapshotCapture.SnapshotCapture.process","product":"core","slug":"io-github-libtmux-snapshotcapture-snapshotcapture-process"},{"id":"io.github.libtmux.SnapshotCapture.SnapshotCapture.processForCreation","name":"processForCreation","kind":"method","modifiers":[],"parent":"io.github.libtmux.SnapshotCapture.SnapshotCapture","signatures":[{"raw":"Optional processForCreation()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"As {@link #process}, except a live daemon this client cannot actually talk to is never folded into \"no daemon\" - used only by {@link SessionCreation#versionForCreation}, the one caller for which that distinction matters.","body":"tmux reports both the same way from a client's side: \"no server running\"/\"(No such file or\ndirectory)\" for a socket nothing is listening on, and \"server exited unexpectedly\" for a\ndaemon that refused this client's handshake - confirmed against the matrix, a 3.2a client\nagainst a 3.7c daemon on the same socket fails the second way, rc 1. {@link #process} still\nfolds both into \"no daemon\" for every other caller, which asks \"is there a server I can read\nfrom\" and for which a daemon this client cannot use is no more usable than none at all."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java","line":139,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SnapshotCapture.processForCreation","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SnapshotCapture.SnapshotCapture.processForCreation","product":"core","slug":"io-github-libtmux-snapshotcapture-snapshotcapture-processforcreation"},{"id":"io.github.libtmux.SnapshotCapture.SnapshotCapture.oneSession","name":"oneSession","kind":"method","modifiers":[],"parent":"io.github.libtmux.SnapshotCapture.SnapshotCapture","signatures":[{"raw":"Optional oneSession(String target, String field)","params":[{"name":"target","type":"String","doc":"the session name or id passed to {@code -t}"},{"name":"field","type":"String","doc":"{@code session_name} or {@code session_id}"}],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"One session, its windows, and its panes. Empty when that session is absent. Other sessions are not read."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java","line":224,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SnapshotCapture.oneSession","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SnapshotCapture.SnapshotCapture.oneSession","product":"core","slug":"io-github-libtmux-snapshotcapture-snapshotcapture-onesession"},{"id":"io.github.libtmux.SnapshotCapture.SnapshotCapture.sessionsNamed","name":"sessionsNamed","kind":"method","modifiers":[],"parent":"io.github.libtmux.SnapshotCapture.SnapshotCapture","signatures":[{"raw":"Optional sessionsNamed(String name)","params":[{"name":"name","type":"String"}],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The sessions stored under any name tmux may keep for this one, read in one fenced call, and an empty capture when there are none. Empty when a candidate cannot sit inside a format, and the caller reads the whole server instead."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java","line":240,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SnapshotCapture.sessionsNamed","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SnapshotCapture.SnapshotCapture.sessionsNamed","product":"core","slug":"io-github-libtmux-snapshotcapture-snapshotcapture-sessionsnamed"},{"id":"io.github.libtmux.SnapshotCapture.SnapshotCapture.sessionsWhere","name":"sessionsWhere","kind":"method","modifiers":[],"parent":"io.github.libtmux.SnapshotCapture.SnapshotCapture","signatures":[{"raw":"ServerSnapshot sessionsWhere(String format, String... command)","params":[{"name":"format","type":"String"},{"name":"command","type":"String","variadic":"positional","doc":"{@code list-sessions}, {@code list-windows -a}, or {@code list-panes -a}"}],"returns":"ServerSnapshot","typeScopeBoundary":false}],"doc":{"summary":"The sessions holding a row that {@code format} selects in this listing, read in full in one fenced call, and a capture holding nothing when none does.","body":"Nothing is a real answer: every operator {@link io.github.libtmux.query.TmuxFilters} writes\nexists from the oldest supported tmux, so a format it lowers is never one tmux cannot evaluate.\nA window or pane format is lifted to its session by looping that session's windows and panes,\nso the one call that reads the sessions also decides which ones to read."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java","line":266,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SnapshotCapture.sessionsWhere","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SnapshotCapture.SnapshotCapture.sessionsWhere","product":"core","slug":"io-github-libtmux-snapshotcapture-snapshotcapture-sessionswhere"},{"id":"io.github.libtmux.SnapshotCapture.SnapshotCapture.sessionsHolding","name":"sessionsHolding","kind":"method","modifiers":[],"parent":"io.github.libtmux.SnapshotCapture.SnapshotCapture","signatures":[{"raw":"Optional sessionsHolding(PaneId id)","params":[{"name":"id","type":"PaneId"}],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The sessions holding this pane, with their windows and panes, in one fenced call. Empty when no session holds it.","body":"The filter loops each listed row's own session, so every listing keeps whole sessions, and a\nwindow linked into two sessions brings both. tmux evaluates this loop inside {@code -f} the same\nway on every release from 3.2a; see {@code docs/decisions/0005-pushdown-lowering-is-exact-or-refused.md}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java","line":339,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SnapshotCapture.sessionsHolding","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SnapshotCapture.SnapshotCapture.sessionsHolding","product":"core","slug":"io-github-libtmux-snapshotcapture-snapshotcapture-sessionsholding"},{"id":"io.github.libtmux.SnapshotCapture.SnapshotCapture.ServerProcess","name":"ServerProcess","kind":"class","modifiers":[],"parent":"io.github.libtmux.SnapshotCapture.SnapshotCapture","signatures":[{"raw":"record ServerProcess(long pid, TmuxVersion version, long startTime)","params":[{"name":"pid","type":"long"},{"name":"version","type":"TmuxVersion"},{"name":"startTime","type":"long"}]}],"typeScopeBoundary":true,"doc":{"summary":"The server a capture reads, named by its process and when that process started."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java","line":455,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SnapshotCapture.ServerProcess","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SnapshotCapture.SnapshotCapture.ServerProcess","product":"core","slug":"io-github-libtmux-snapshotcapture-snapshotcapture-serverprocess"},{"id":"io.github.libtmux.SnapshotCapture.SnapshotCapture.ServerProcess.pid","name":"pid","kind":"method","parent":"io.github.libtmux.SnapshotCapture.SnapshotCapture.ServerProcess","modifiers":[],"signatures":[{"params":[],"returns":"long"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SnapshotCapture.ServerProcess.pid","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SnapshotCapture.SnapshotCapture.ServerProcess.pid","product":"core","slug":"io-github-libtmux-snapshotcapture-snapshotcapture-serverprocess-pid"},{"id":"io.github.libtmux.SnapshotCapture.SnapshotCapture.ServerProcess.version","name":"version","kind":"method","parent":"io.github.libtmux.SnapshotCapture.SnapshotCapture.ServerProcess","modifiers":[],"signatures":[{"params":[],"returns":"TmuxVersion"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SnapshotCapture.ServerProcess.version","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SnapshotCapture.SnapshotCapture.ServerProcess.version","product":"core","slug":"io-github-libtmux-snapshotcapture-snapshotcapture-serverprocess-version"},{"id":"io.github.libtmux.SnapshotCapture.SnapshotCapture.ServerProcess.startTime","name":"startTime","kind":"method","parent":"io.github.libtmux.SnapshotCapture.SnapshotCapture.ServerProcess","modifiers":[],"signatures":[{"params":[],"returns":"long"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SnapshotCapture.ServerProcess.startTime","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SnapshotCapture.SnapshotCapture.ServerProcess.startTime","product":"core","slug":"io-github-libtmux-snapshotcapture-snapshotcapture-serverprocess-starttime"},{"id":"io.github.libtmux.SplitDirection.SplitDirection","name":"SplitDirection","kind":"enum","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Where a new pane goes relative to the one being split.","body":"Separate from {@link Direction}, which moves and grows existing panes with {@code -U -D -L -R}.\nSplitting speaks a different dialect: an axis, and whether the new pane comes first."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitDirection.java","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitDirection","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitDirection.SplitDirection","product":"core","slug":"io-github-libtmux-splitdirection-splitdirection"},{"id":"io.github.libtmux.SplitDirection.SplitDirection.BELOW","name":"BELOW","kind":"constant","modifiers":[],"parent":"io.github.libtmux.SplitDirection.SplitDirection","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Below the target, which is what tmux does when asked for nothing."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitDirection.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitDirection.BELOW","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitDirection.SplitDirection.BELOW","product":"core","slug":"io-github-libtmux-splitdirection-splitdirection-below"},{"id":"io.github.libtmux.SplitDirection.SplitDirection.ABOVE","name":"ABOVE","kind":"constant","modifiers":[],"parent":"io.github.libtmux.SplitDirection.SplitDirection","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitDirection.java","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitDirection.ABOVE","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitDirection.SplitDirection.ABOVE","product":"core","slug":"io-github-libtmux-splitdirection-splitdirection-above"},{"id":"io.github.libtmux.SplitDirection.SplitDirection.RIGHT","name":"RIGHT","kind":"constant","modifiers":[],"parent":"io.github.libtmux.SplitDirection.SplitDirection","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitDirection.java","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitDirection.RIGHT","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitDirection.SplitDirection.RIGHT","product":"core","slug":"io-github-libtmux-splitdirection-splitdirection-right"},{"id":"io.github.libtmux.SplitDirection.SplitDirection.LEFT","name":"LEFT","kind":"constant","modifiers":[],"parent":"io.github.libtmux.SplitDirection.SplitDirection","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitDirection.java","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitDirection.LEFT","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitDirection.SplitDirection.LEFT","product":"core","slug":"io-github-libtmux-splitdirection-splitdirection-left"},{"id":"io.github.libtmux.SplitDirection.SplitDirection.SplitDirection","name":"SplitDirection","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitDirection.SplitDirection","signatures":[{"raw":"SplitDirection(String axis, boolean first)","params":[{"name":"axis","type":"String"},{"name":"first","type":"boolean"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitDirection.java","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitDirection.SplitDirection","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitDirection.SplitDirection.SplitDirection","product":"core","slug":"io-github-libtmux-splitdirection-splitdirection-splitdirection"},{"id":"io.github.libtmux.SplitDirection.SplitDirection.flags","name":"flags","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitDirection.SplitDirection","signatures":[{"raw":"List flags()","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"The tmux flags that place a pane this way."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitDirection.java","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitDirection.flags","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitDirection.SplitDirection.flags","product":"core","slug":"io-github-libtmux-splitdirection-splitdirection-flags"},{"id":"io.github.libtmux.SplitSpec.SplitSpec","name":"SplitSpec","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"How a pane should be split.","body":"A description rather than an action: it can be built once, named, and applied to as many panes\nas it suits. Nothing here contacts tmux, so a spec can be assembled on a machine that has none,\nand the version rules it depends on are checked when it is applied rather than when it is written\n— the same spec is legal against one server and not another.\n\nA builder-built class rather than a record for the reason {@link ServerConfig} gives: a\nrecord's canonical constructor is public API, and tmux keeps adding flags to {@code split-window}\n— six of them in 3.7 alone.","examples":[{"lang":"java","code":"Pane side = pane.split(s -> s.toRight().percent(30));\n\nSplitSpec sidebar = SplitSpec.builder().toRight().percent(25).build();\nleft.split(sidebar);\nright.split(sidebar);"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec","product":"core","slug":"io-github-libtmux-splitspec-splitspec"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.builder","name":"builder","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.SplitSpec.SplitSpec","signatures":[{"raw":"public static Builder builder()","params":[],"returns":"Builder","typeScopeBoundary":true}],"doc":{"summary":"A builder holding tmux's own defaults: below the target, half its size, running a shell."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":78,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.builder","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.builder","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-zmnf"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.direction","name":"direction","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec","signatures":[{"raw":"public SplitDirection direction()","params":[],"returns":"SplitDirection","typeScopeBoundary":false}],"doc":{"summary":"Where the new pane goes."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":83,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.direction","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.direction","product":"core","slug":"io-github-libtmux-splitspec-splitspec-direction"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.size","name":"size","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec","signatures":[{"raw":"public Optional size()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"How big the new pane should be, or empty to let tmux halve the target."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":88,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.size","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.size","product":"core","slug":"io-github-libtmux-splitspec-splitspec-size"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.start","name":"start","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec","signatures":[{"raw":"public PaneStart start()","params":[],"returns":"PaneStart","typeScopeBoundary":false}],"doc":{"summary":"What runs in the new pane."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":93,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.start","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.start","product":"core","slug":"io-github-libtmux-splitspec-splitspec-start"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.directory","name":"directory","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec","signatures":[{"raw":"public Optional directory()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"Where the new pane starts, or empty to inherit."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":98,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.directory","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.directory","product":"core","slug":"io-github-libtmux-splitspec-splitspec-directory"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.environment","name":"environment","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec","signatures":[{"raw":"@ReadOnly\n public Map environment()","params":[],"returns":"Map","typeScopeBoundary":false}],"doc":{"summary":"Variables set for the new pane, in the order they were given."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":103,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.environment","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.environment","product":"core","slug":"io-github-libtmux-splitspec-splitspec-environment"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.detached","name":"detached","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec","signatures":[{"raw":"public boolean detached()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether the new pane is left unfocused.","body":"False by default, which is what {@code split-window} itself does. A session created through\n{@link SessionSpec} is the opposite, because tmux cannot make one without attaching unless it\nis told to detach."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":115,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.detached","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.detached","product":"core","slug":"io-github-libtmux-splitspec-splitspec-detached"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.fullWindow","name":"fullWindow","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec","signatures":[{"raw":"public boolean fullWindow()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether the split spans the whole window rather than just the target pane."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":120,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.fullWindow","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.fullWindow","product":"core","slug":"io-github-libtmux-splitspec-splitspec-fullwindow"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.zoomed","name":"zoomed","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec","signatures":[{"raw":"public boolean zoomed()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether the new pane is zoomed on arrival."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":125,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.zoomed","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.zoomed","product":"core","slug":"io-github-libtmux-splitspec-splitspec-zoomed"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.keepOnExit","name":"keepOnExit","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec","signatures":[{"raw":"public boolean keepOnExit()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether the pane stays after its command exits. Requires tmux 3.7."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":130,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.keepOnExit","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.keepOnExit","product":"core","slug":"io-github-libtmux-splitspec-splitspec-keeponexit"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.exitMessage","name":"exitMessage","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec","signatures":[{"raw":"public Optional exitMessage()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"What a kept pane shows once its command has exited. Requires tmux 3.7."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":135,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.exitMessage","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.exitMessage","product":"core","slug":"io-github-libtmux-splitspec-splitspec-exitmessage"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.style","name":"style","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec","signatures":[{"raw":"public Optional style()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The new pane's {@code window-style}. Requires tmux 3.7."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":140,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.style","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.style","product":"core","slug":"io-github-libtmux-splitspec-splitspec-style"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.activeBorderStyle","name":"activeBorderStyle","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec","signatures":[{"raw":"public Optional activeBorderStyle()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The new pane's {@code pane-active-border-style}. Requires tmux 3.7."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":145,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.activeBorderStyle","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.activeBorderStyle","product":"core","slug":"io-github-libtmux-splitspec-splitspec-activeborderstyle"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.inactiveBorderStyle","name":"inactiveBorderStyle","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec","signatures":[{"raw":"public Optional inactiveBorderStyle()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The new pane's {@code pane-border-style}. Requires tmux 3.7."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":150,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.inactiveBorderStyle","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.inactiveBorderStyle","product":"core","slug":"io-github-libtmux-splitspec-splitspec-inactiveborderstyle"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.argv","name":"argv","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec","signatures":[{"raw":"List argv(String target, String format, TmuxVersion running)","params":[{"name":"target","type":"String","doc":"what to split, as a tmux target"},{"name":"format","type":"String","doc":"the row format the caller will read the result back with"},{"name":"running","type":"TmuxVersion","doc":"the version of the server about to run this"}],"returns":"List","typeScopeBoundary":false,"raises":[{"type":"UnsupportedFeatureException","doc":"if the spec asks for something {@code running} does not have"}]}],"doc":{"summary":"The command that performs this split, reporting the new pane through {@code format}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":162,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.argv","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.argv","product":"core","slug":"io-github-libtmux-splitspec-splitspec-argv"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":272,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.toString","product":"core","slug":"io-github-libtmux-splitspec-splitspec-tostring"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder","name":"Builder","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.SplitSpec.SplitSpec","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Collects the choices, each named for what it does rather than for the field it sets."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":279,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-kfol"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.below","name":"below","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder below()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Puts the new pane below the target, which is what tmux does by default."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":298,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.below","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.below","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-below"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.above","name":"above","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder above()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Puts the new pane above the target."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":304,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.above","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.above","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-above"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.toRight","name":"toRight","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder toRight()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Puts the new pane to the right of the target."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":310,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.toRight","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.toRight","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-toright"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.toLeft","name":"toLeft","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder toLeft()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Puts the new pane to the left of the target."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":316,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.toLeft","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.toLeft","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-toleft"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.cells","name":"cells","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder cells(int count)","params":[{"name":"count","type":"int"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Gives the new pane this many terminal cells."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":322,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.cells","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.cells","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-cells"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.percent","name":"percent","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder percent(int share)","params":[{"name":"share","type":"int"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Gives the new pane this share of what is being split."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":328,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.percent","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.percent","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-percent"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.running","name":"running","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder running(String... argv)","params":[{"name":"argv","type":"String","variadic":"positional"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Runs a command, which closes the pane when it exits unless {@link #keepOnExit} is set.","body":"A command that exits fast enough races {@link Pane#split}'s own read-back: tmux can\ndestroy the pane before the second listing that confirms it runs, and the split then\nthrows {@code TargetGoneException} even though tmux made the pane and ran the\ncommand in it. {@link #keepOnExit} removes the race by keeping the pane there to be read.\n\ntmux also reports the pane before its process has become this command, so a read at once\ncan still see the process about to exec it: wait for the command with {@link Pane#await(java.util.function.Predicate, java.time.Duration)}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":344,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.running","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.running","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-running"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.empty","name":"empty","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder empty()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Creates a pane with no process in it. Requires tmux 3.7."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":350,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.empty","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.empty","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-empty"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.start","name":"start","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder start(PaneStart start)","params":[{"name":"start","type":"PaneStart"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Sets what runs, for a caller holding a {@link PaneStart} already."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":356,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.start","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.start","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-start"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.in","name":"in","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder in(Path directory)","params":[{"name":"directory","type":"Path"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Starts the new pane in this directory, resolved against this process's when relative."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":362,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.in","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.in","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-in"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.env","name":"env","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder env(String name, String value)","params":[{"name":"name","type":"String"},{"name":"value","type":"String"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Sets one variable in the new pane's environment."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":368,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.env","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.env","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-env"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.environment","name":"environment","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder environment(Map variables)","params":[{"name":"variables","type":"Map"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Adds several variables to the new pane's environment, keeping any already set."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":374,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.environment","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.environment","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-environment"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.detached","name":"detached","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder detached()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Leaves the target pane focused, where tmux would move to the new one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":380,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.detached","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.detached","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-detached"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.fullWindow","name":"fullWindow","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder fullWindow()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Splits the whole window rather than just the target pane."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":386,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.fullWindow","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.fullWindow","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-fullwindow"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.zoomed","name":"zoomed","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder zoomed()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Zooms the new pane on arrival."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":392,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.zoomed","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.zoomed","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-zoomed"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.keepOnExit","name":"keepOnExit","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder keepOnExit()","params":[],"returns":"Builder","typeScopeBoundary":false},{"raw":"public Builder keepOnExit(String message)","params":[{"name":"message","type":"String"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Keeps the pane after its command exits. Requires tmux 3.7."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":398,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.keepOnExit","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.keepOnExit","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-keeponexit"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.style","name":"style","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder style(String style)","params":[{"name":"style","type":"String"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Sets the new pane's {@code window-style}. Requires tmux 3.7."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":411,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.style","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.style","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-style"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.activeBorderStyle","name":"activeBorderStyle","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder activeBorderStyle(String style)","params":[{"name":"style","type":"String"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Sets the new pane's {@code pane-active-border-style}. Requires tmux 3.7."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":417,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.activeBorderStyle","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.activeBorderStyle","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-activeborderstyle"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.inactiveBorderStyle","name":"inactiveBorderStyle","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public Builder inactiveBorderStyle(String style)","params":[{"name":"style","type":"String"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Sets the new pane's {@code pane-border-style}. Requires tmux 3.7."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":423,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.inactiveBorderStyle","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.inactiveBorderStyle","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-inactiveborderstyle"},{"id":"io.github.libtmux.SplitSpec.SplitSpec.Builder.build","name":"build","kind":"method","modifiers":[],"parent":"io.github.libtmux.SplitSpec.SplitSpec.Builder","signatures":[{"raw":"public SplitSpec build()","params":[],"returns":"SplitSpec","typeScopeBoundary":false}],"doc":{"summary":"The finished spec."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/SplitSpec.java","line":429,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.SplitSpec.Builder.build","namespace":"io.github.libtmux","publicId":"io.github.libtmux.SplitSpec.SplitSpec.Builder.build","product":"core","slug":"io-github-libtmux-splitspec-splitspec-builder-build"},{"id":"io.github.libtmux.TargetIds.TargetIds","name":"TargetIds","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Shared validation for the sigil-prefixed ids tmux hands out."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TargetIds.java","line":6,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TargetIds","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TargetIds.TargetIds","product":"core","slug":"io-github-libtmux-targetids-targetids"},{"id":"io.github.libtmux.TargetIds.TargetIds.require","name":"require","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.TargetIds.TargetIds","signatures":[{"raw":"static void require(String value, char sigil, String kind)","params":[{"name":"value","type":"String"},{"name":"sigil","type":"char"},{"name":"kind","type":"String"}],"returns":"void","typeScopeBoundary":true}],"doc":{"summary":"Rejects anything tmux would not read as an id of this kind.","body":"A bare {@code 0} is the case worth catching: tmux would accept it as a target and resolve\nit as a name or an index, silently addressing something else."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TargetIds.java","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TargetIds.require","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TargetIds.TargetIds.require","product":"core","slug":"io-github-libtmux-targetids-targetids-require"},{"id":"io.github.libtmux.TextOutcome.TextOutcome","name":"TextOutcome","kind":"enum","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Why a wait for text on a pane ended.","body":"Separate from {@link WakeReason}, which answers for a tmux channel, because this wait reads a\nscreen rather than blocking on a signal and so can end a way a channel never does: with the text\nalready there. A pane that has said {@code ready} since an hour ago must not answer a wait for\n{@code ready} the way output that just arrived does, and it must not be reported as a timeout\neither — a caller told only \"not found\" would go looking for text that is in plain sight.\n\n{@link Pane#await(java.util.function.Predicate, Duration)} keeps {@link WakeReason}: a caller\nwrote that condition and can test it before waiting, so the library is not the only thing that can\nsee it was already true."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TextOutcome.java","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TextOutcome","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TextOutcome.TextOutcome","product":"core","slug":"io-github-libtmux-textoutcome-textoutcome"},{"id":"io.github.libtmux.TextOutcome.TextOutcome.APPEARED","name":"APPEARED","kind":"constant","modifiers":[],"parent":"io.github.libtmux.TextOutcome.TextOutcome","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"The text appeared while the wait was running."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TextOutcome.java","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TextOutcome.APPEARED","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TextOutcome.TextOutcome.APPEARED","product":"core","slug":"io-github-libtmux-textoutcome-textoutcome-appeared"},{"id":"io.github.libtmux.TextOutcome.TextOutcome.PRESENT_AT_ENTRY","name":"PRESENT_AT_ENTRY","kind":"constant","modifiers":[],"parent":"io.github.libtmux.TextOutcome.TextOutcome","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"The first look already showed the text, so this wait did not see it arrive.","body":"Exactly that, and no more. It may be output from a command the caller started a moment ago\nand that finished before the first read, or it may have been on the pane for an hour — a\nscreen cannot tell those apart, and reporting them as the same thing would be the claim this\noutcome exists to avoid. A caller that needs the difference should not be reading a screen:\nappend {@code ; tmux wait-for -S name} to its own command and block on {@link Server#channel},\nwhich is exact.\n\nAn echo of what this library typed is never what is found here; that is the caller's own\nquestion coming back, and it is discounted."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TextOutcome.java","line":34,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TextOutcome.PRESENT_AT_ENTRY","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TextOutcome.TextOutcome.PRESENT_AT_ENTRY","product":"core","slug":"io-github-libtmux-textoutcome-textoutcome-present_at_entry"},{"id":"io.github.libtmux.TextOutcome.TextOutcome.TIMED_OUT","name":"TIMED_OUT","kind":"constant","modifiers":[],"parent":"io.github.libtmux.TextOutcome.TextOutcome","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"The deadline passed with the text absent."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TextOutcome.java","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TextOutcome.TIMED_OUT","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TextOutcome.TextOutcome.TIMED_OUT","product":"core","slug":"io-github-libtmux-textoutcome-textoutcome-timed_out"},{"id":"io.github.libtmux.TextOutcome.TextOutcome.SERVER_GONE","name":"SERVER_GONE","kind":"constant","modifiers":[],"parent":"io.github.libtmux.TextOutcome.TextOutcome","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"The server went away underneath the wait, so nothing it was guarding can be relied on."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TextOutcome.java","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TextOutcome.SERVER_GONE","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TextOutcome.TextOutcome.SERVER_GONE","product":"core","slug":"io-github-libtmux-textoutcome-textoutcome-server_gone"},{"id":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment","name":"TmuxEnvironment","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"What tmux tells a program running inside one of its panes.","body":"tmux exports {@code TMUX} as {@code ,,} and {@code TMUX_PANE} as\nthe pane's id. That is how a process discovers the server it is already inside, without being told\nwhere to look.\n\nReading is separated from the environment itself, so the parsing is testable without a process\never having to be started inside tmux: {@link #of} takes the variables, {@link #current} is the\none-line wrapper that fetches them.\n\nA class rather than a record for the reason {@link ServerConfig} gives — and because the pane\nis genuinely absent sometimes, which an {@link Optional} accessor says better than a nullable\nrecord component.","examples":[{"lang":"java","code":"TmuxEnvironment here = TmuxEnvironment.current().orElseThrow();\n\ntry (Server server = Server.open(here.config())) {\n Session mine = server.sessions().stream()\n .filter(session -> session.id().equals(here.session()))\n .findFirst()\n .orElseThrow();\n}"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxEnvironment.java","line":34,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxEnvironment","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment","product":"core","slug":"io-github-libtmux-tmuxenvironment-tmuxenvironment"},{"id":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment.current","name":"current","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment","signatures":[{"raw":"public static Optional current()","params":[],"returns":"Optional","typeScopeBoundary":true,"returnsDoc":"what tmux said, or empty when this is not running inside tmux"}],"doc":{"summary":"Reads this process's own environment."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxEnvironment.java","line":53,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxEnvironment.current","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment.current","product":"core","slug":"io-github-libtmux-tmuxenvironment-tmuxenvironment-current"},{"id":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment.of","name":"of","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment","signatures":[{"raw":"public static Optional of(Map environment)","params":[{"name":"environment","type":"Map","doc":"the variables to read, typically {@code System.getenv()}"}],"returns":"Optional","typeScopeBoundary":true,"returnsDoc":"what tmux said, or empty when {@code TMUX} is absent or unreadable"}],"doc":{"summary":"Reads a set of environment variables."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxEnvironment.java","line":63,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxEnvironment.of","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment.of","product":"core","slug":"io-github-libtmux-tmuxenvironment-tmuxenvironment-of"},{"id":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment.socket","name":"socket","kind":"method","modifiers":[],"parent":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment","signatures":[{"raw":"public Path socket()","params":[],"returns":"Path","typeScopeBoundary":false}],"doc":{"summary":"The socket the server is listening on."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxEnvironment.java","line":97,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxEnvironment.socket","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment.socket","product":"core","slug":"io-github-libtmux-tmuxenvironment-tmuxenvironment-socket"},{"id":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment.serverPid","name":"serverPid","kind":"method","modifiers":[],"parent":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment","signatures":[{"raw":"public long serverPid()","params":[],"returns":"long","typeScopeBoundary":false}],"doc":{"summary":"The process id of the tmux server, which is not the pane's process."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxEnvironment.java","line":102,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxEnvironment.serverPid","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment.serverPid","product":"core","slug":"io-github-libtmux-tmuxenvironment-tmuxenvironment-serverpid"},{"id":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment.session","name":"session","kind":"method","modifiers":[],"parent":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment","signatures":[{"raw":"public SessionId session()","params":[],"returns":"SessionId","typeScopeBoundary":false}],"doc":{"summary":"The session this process is running in."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxEnvironment.java","line":107,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxEnvironment.session","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment.session","product":"core","slug":"io-github-libtmux-tmuxenvironment-tmuxenvironment-session"},{"id":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment.pane","name":"pane","kind":"method","modifiers":[],"parent":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment","signatures":[{"raw":"public Optional pane()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The pane this process is running in, absent when {@code TMUX_PANE} was not set."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxEnvironment.java","line":112,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxEnvironment.pane","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment.pane","product":"core","slug":"io-github-libtmux-tmuxenvironment-tmuxenvironment-pane"},{"id":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment.config","name":"config","kind":"method","modifiers":[],"parent":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment","signatures":[{"raw":"public ServerConfig config()","params":[],"returns":"ServerConfig","typeScopeBoundary":false}],"doc":{"summary":"A config addressing this server, ready for {@link Server#open}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxEnvironment.java","line":117,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxEnvironment.config","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment.config","product":"core","slug":"io-github-libtmux-tmuxenvironment-tmuxenvironment-config"},{"id":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxEnvironment.java","line":123,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxEnvironment.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxEnvironment.TmuxEnvironment.toString","product":"core","slug":"io-github-libtmux-tmuxenvironment-tmuxenvironment-tostring"},{"id":"io.github.libtmux.TmuxFormats.TmuxFormats","name":"TmuxFormats","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Values handed to a tmux argument position that expands formats.","body":"tmux expands {@code #{...}} and {@code #(...)} in many argument positions, and {@code #(...)}\nruns a shell command. For the arguments this library composes itself — a window name, a pane\ntitle, a working directory — it applies {@link #literal} at the construction boundary, so a\ncaller's {@code #} stays a {@code #}.\n\nIt cannot do that for an argument the caller composes: {@link Pane#pipeTo},\n{@link Window#displayPopup}, {@link Shell#run}, {@link Shell#capturing} and {@link Shell#choose}\nall take a whole shell command, where format expansion is a documented\ntmux feature a caller may want — {@code #{pane_id}} in a filename, for instance. A caller\ninterpolating an untrusted value into one of those needs {@link #literal} on that value, which is\nwhy this is public.\n\nShell quoting does not substitute for it. tmux expands the format *before* the shell\nsees the string, so a {@code #(...)} inside single quotes still runs. Measured on tmux 3.7d, with\nthe interpolated value quoted as a careful caller would quote it: {@code run-shell} executed it,\nand {@code pipe-pane -O} executed it as soon as the pane produced output."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxFormats.java","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxFormats","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxFormats.TmuxFormats","product":"core","slug":"io-github-libtmux-tmuxformats-tmuxformats"},{"id":"io.github.libtmux.TmuxFormats.TmuxFormats.literal","name":"literal","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.TmuxFormats.TmuxFormats","signatures":[{"raw":"public static String literal(String value)","params":[{"name":"value","type":"String","doc":"a value to be read as text rather than expanded"}],"returns":"String","typeScopeBoundary":true,"returnsDoc":"the value with every {@code #} doubled"}],"doc":{"summary":"Makes one caller value literal at one construction boundary.","body":"Doubling {@code #} is tmux's own escape for it, so the value arrives as itself."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxFormats.java","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxFormats.literal","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxFormats.TmuxFormats.literal","product":"core","slug":"io-github-libtmux-tmuxformats-tmuxformats-literal"},{"id":"io.github.libtmux.TmuxFormats.TmuxFormats.printed","name":"printed","kind":"method","modifiers":["static","overload"],"parent":"io.github.libtmux.TmuxFormats.TmuxFormats","signatures":[{"raw":"static String printed(String line, TmuxVersion version)","params":[{"name":"line","type":"String"},{"name":"version","type":"TmuxVersion"}],"returns":"String","typeScopeBoundary":true},{"raw":"static java.util.List printed(java.util.List lines, TmuxVersion version)","params":[{"name":"lines","type":"java.util.List"},{"name":"version","type":"TmuxVersion"}],"returns":"java.util.List","typeScopeBoundary":true}],"doc":{"summary":"Text as tmux held it, from a line it printed.","body":"tmux 3.4 alone puts a backslash before every {@code $} that an ASCII letter, {@code _}, or\n`{` follows, in everything it prints: formats, listings, and {@code show-options\n-v}. 3.5 stopped ({@code 692ce59b}). Each escape is exactly one backslash in that position, so\nremoving it restores the text on 3.4 and changes nothing elsewhere.\n\n3.4 through 3.5a also print a control character as a C escape or three octal digits,\n{@code \\033} for ESC, and leave a backslash as it is. That is not undone: {@code \\033} could as well be those\nfour characters, which a {@code terminal-overrides} entry often holds, so the text is left as\ntmux printed it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxFormats.java","line":59,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxFormats.printed","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxFormats.TmuxFormats.printed","product":"core","slug":"io-github-libtmux-tmuxformats-tmuxformats-printed"},{"id":"io.github.libtmux.TmuxFormats.TmuxFormats.storedNames","name":"storedNames","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.TmuxFormats.TmuxFormats","signatures":[{"raw":"static java.util.List storedNames(String name, TmuxVersion version)","params":[{"name":"name","type":"String"},{"name":"version","type":"TmuxVersion"}],"returns":"java.util.List","typeScopeBoundary":true}],"doc":{"summary":"The names to look for when a caller names a session: the one this release stores for it, then the name exactly as given, which is what {@link Session#name} already reports.","body":"tmux doubles each backslash; 3.2a through 3.4 put a backslash before a {@code $} that a\nletter, {@code _}, or `{` follows; 3.2a through 3.6 store {@code .} and {@code :}\nas {@code _} and a control character as a C escape or three octal digits. 3.7 and later refuse\ncontrol characters. The stored form is an escaping, so it names at most one session; only a\nname that is itself some other name's stored form is ambiguous, and the stored form wins."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxFormats.java","line":83,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxFormats.storedNames","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxFormats.TmuxFormats.storedNames","product":"core","slug":"io-github-libtmux-tmuxformats-tmuxformats-storednames"},{"id":"io.github.libtmux.TmuxVersion.TmuxVersion","name":"TmuxVersion","kind":"class","modifiers":[],"signatures":[{"raw":"public record TmuxVersion(int major, int minor, String patch, boolean development, String preRelease)\n implements Comparable","params":[{"name":"major","type":"int","doc":"the major number"},{"name":"minor","type":"int","doc":"the minor number"},{"name":"patch","type":"String","doc":"the patch letter, or empty for an unlettered release"},{"name":"development","type":"boolean","doc":"whether this is a {@code next-M.m} build rather than the release {@code M.m} itself"},{"name":"preRelease","type":"String","doc":"the release candidate this is, such as {@code rc} or {@code rc2}, or empty for a release"}]}],"typeScopeBoundary":false,"doc":{"summary":"A released tmux version, ordered the way tmux releases are.","body":"tmux numbers a patch release with a letter rather than a third number: 3.7a follows 3.7, and\n3.2a follows 3.2. Comparing the text alone gets that wrong in both directions, and a feature gate\nthat gets it wrong reads a format the running tmux does not have.\n\nBetween releases, tmux reports itself as {@code next-M.m}: a development build tracking toward\nthe release named, not that release itself. It has everything the previous release shipped and\nnothing later's patches guarantee, so it sorts strictly between the two — above every patch of the\nrelease before it, below the release it names and every patch of that.\n\nA release candidate, {@code 3.8-rc}, compares equal to the release it names. tmux freezes\nfeatures at the candidate, so it has everything the release will and differs only in fixes —\nmeasured, not assumed: a 3.8 candidate writes JSON layouts and empties a dead pane's pid exactly\nas 3.8 does, and a feature gated on 3.8 works on it. It is not {@code equals} to the release, and\nit is written back exactly as tmux wrote it, which matters beyond display: every capture is\nfenced on the version tmux reports, and a candidate printed as {@code 3.8} failed that fence on\nevery read."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxVersion.java","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxVersion","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxVersion.TmuxVersion","product":"core","slug":"io-github-libtmux-tmuxversion-tmuxversion"},{"id":"io.github.libtmux.TmuxVersion.TmuxVersion.TmuxVersion","name":"TmuxVersion","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.TmuxVersion.TmuxVersion","signatures":[{"raw":"public TmuxVersion(int major, int minor, String patch, boolean development)","params":[{"name":"major","type":"int"},{"name":"minor","type":"int"},{"name":"patch","type":"String"},{"name":"development","type":"boolean"}],"typeScopeBoundary":false},{"raw":"public TmuxVersion(int major, int minor, String patch)","params":[{"name":"major","type":"int"},{"name":"minor","type":"int"},{"name":"patch","type":"String"}],"typeScopeBoundary":false}],"doc":{"summary":"A release or a development build, without a release candidate."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxVersion.java","line":46,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxVersion.TmuxVersion","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxVersion.TmuxVersion.TmuxVersion","product":"core","slug":"io-github-libtmux-tmuxversion-tmuxversion-tmuxversion"},{"id":"io.github.libtmux.TmuxVersion.TmuxVersion.parse","name":"parse","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.TmuxVersion.TmuxVersion","signatures":[{"raw":"public static TmuxVersion parse(String reported)","params":[{"name":"reported","type":"String"}],"returns":"TmuxVersion","typeScopeBoundary":true,"raises":[{"type":"IllegalArgumentException","doc":"if the text does not begin with a release number, optionally preceded by {@code next-}; a build that reports something else is one this cannot make version decisions about"}]}],"doc":{"summary":"Reads what tmux reports for {@code #{version}}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxVersion.java","line":62,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxVersion.parse","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxVersion.TmuxVersion.parse","product":"core","slug":"io-github-libtmux-tmuxversion-tmuxversion-parse"},{"id":"io.github.libtmux.TmuxVersion.TmuxVersion.atLeast","name":"atLeast","kind":"method","modifiers":[],"parent":"io.github.libtmux.TmuxVersion.TmuxVersion","signatures":[{"raw":"public boolean atLeast(TmuxVersion other)","params":[{"name":"other","type":"TmuxVersion"}],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether this version has everything the given one has."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxVersion.java","line":76,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxVersion.atLeast","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxVersion.TmuxVersion.atLeast","product":"core","slug":"io-github-libtmux-tmuxversion-tmuxversion-atleast"},{"id":"io.github.libtmux.TmuxVersion.TmuxVersion.compareTo","name":"compareTo","kind":"method","modifiers":[],"parent":"io.github.libtmux.TmuxVersion.TmuxVersion","signatures":[{"raw":"@Override\n public int compareTo(TmuxVersion other)","params":[{"name":"other","type":"TmuxVersion"}],"returns":"int","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxVersion.java","line":80,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxVersion.compareTo","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxVersion.TmuxVersion.compareTo","product":"core","slug":"io-github-libtmux-tmuxversion-tmuxversion-compareto"},{"id":"io.github.libtmux.TmuxVersion.TmuxVersion.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.TmuxVersion.TmuxVersion","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxVersion.java","line":100,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxVersion.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxVersion.TmuxVersion.toString","product":"core","slug":"io-github-libtmux-tmuxversion-tmuxversion-tostring"},{"id":"io.github.libtmux.TmuxVersion.TmuxVersion.major","name":"major","kind":"method","parent":"io.github.libtmux.TmuxVersion.TmuxVersion","modifiers":[],"signatures":[{"params":[],"returns":"int"}],"doc":{"summary":"the major number"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxVersion.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxVersion.major","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxVersion.TmuxVersion.major","product":"core","slug":"io-github-libtmux-tmuxversion-tmuxversion-major"},{"id":"io.github.libtmux.TmuxVersion.TmuxVersion.minor","name":"minor","kind":"method","parent":"io.github.libtmux.TmuxVersion.TmuxVersion","modifiers":[],"signatures":[{"params":[],"returns":"int"}],"doc":{"summary":"the minor number"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxVersion.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxVersion.minor","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxVersion.TmuxVersion.minor","product":"core","slug":"io-github-libtmux-tmuxversion-tmuxversion-minor"},{"id":"io.github.libtmux.TmuxVersion.TmuxVersion.patch","name":"patch","kind":"method","parent":"io.github.libtmux.TmuxVersion.TmuxVersion","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"the patch letter, or empty for an unlettered release"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxVersion.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxVersion.patch","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxVersion.TmuxVersion.patch","product":"core","slug":"io-github-libtmux-tmuxversion-tmuxversion-patch"},{"id":"io.github.libtmux.TmuxVersion.TmuxVersion.development","name":"development","kind":"method","parent":"io.github.libtmux.TmuxVersion.TmuxVersion","modifiers":[],"signatures":[{"params":[],"returns":"boolean"}],"doc":{"summary":"whether this is a {@code next-M.m} build rather than the release {@code M.m} itself"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxVersion.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxVersion.development","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxVersion.TmuxVersion.development","product":"core","slug":"io-github-libtmux-tmuxversion-tmuxversion-development"},{"id":"io.github.libtmux.TmuxVersion.TmuxVersion.preRelease","name":"preRelease","kind":"method","parent":"io.github.libtmux.TmuxVersion.TmuxVersion","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"the release candidate this is, such as {@code rc} or {@code rc2}, or empty for a release"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TmuxVersion.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TmuxVersion.preRelease","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TmuxVersion.TmuxVersion.preRelease","product":"core","slug":"io-github-libtmux-tmuxversion-tmuxversion-prerelease"},{"id":"io.github.libtmux.transport.CommandRequest.CommandRequest","name":"CommandRequest","kind":"class","modifiers":[],"signatures":[{"raw":"public record CommandRequest(\n @ReadOnly List endpoint, @ReadOnly List> commands, Duration timeout, String input)","params":[{"name":"endpoint","type":"List","doc":"the tmux executable and its server selection, such as {@code [tmux, -S, path]}. tmux reads these before it parses commands, so they are passed through untouched"},{"name":"commands","type":"List>","doc":"one or more tmux commands, each an argv of literal words. tmux runs them in order and discards the rest after the first failure"},{"name":"timeout","type":"Duration","doc":"how long the caller will wait for the whole invocation"},{"name":"input","type":"String","doc":"what the commands read from tmux's standard input, empty for the commands that read none. A tmux argument is bounded by MAX_IMSGSIZE, so text too large to be one travels here instead."}]}],"typeScopeBoundary":false,"doc":{"summary":"One tmux invocation: how to reach the server, then the commands to run there.","body":"Commands are held literally. tmux ends a command at an argument whose last byte is {@code ;},\nso a value ending in one would otherwise be truncated with no error; a transport encodes for the\nparser it feeds, and {@link #commands()} answers with what the caller meant.\n\nThe timeout rides on the request instead of the transport because the same server serves both\na listing that should answer immediately and an attach that never returns."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/CommandRequest.java","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.CommandRequest","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.CommandRequest.CommandRequest","product":"core","slug":"io-github-libtmux-transport-commandrequest-commandrequest"},{"id":"io.github.libtmux.transport.CommandRequest.CommandRequest.of","name":"of","kind":"method","modifiers":["static","overload"],"parent":"io.github.libtmux.transport.CommandRequest.CommandRequest","signatures":[{"raw":"public static CommandRequest of(List endpoint, List argv, Duration timeout)","params":[{"name":"endpoint","type":"List"},{"name":"argv","type":"List"},{"name":"timeout","type":"Duration"}],"returns":"CommandRequest","typeScopeBoundary":true},{"raw":"public static CommandRequest of(List endpoint, List argv, Duration timeout, String input)","params":[{"name":"endpoint","type":"List"},{"name":"argv","type":"List"},{"name":"timeout","type":"Duration"},{"name":"input","type":"String"}],"returns":"CommandRequest","typeScopeBoundary":true}],"doc":{"summary":"A request for one command, which is every request but a batch."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/CommandRequest.java","line":56,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.CommandRequest.of","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.CommandRequest.CommandRequest.of","product":"core","slug":"io-github-libtmux-transport-commandrequest-commandrequest-of"},{"id":"io.github.libtmux.transport.CommandRequest.CommandRequest.idempotence","name":"idempotence","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.CommandRequest.CommandRequest","signatures":[{"raw":"public Idempotence idempotence()","params":[],"returns":"Idempotence","typeScopeBoundary":false}],"doc":{"summary":"Whether sending this request twice leaves tmux as sending it once does: {@link Idempotence#IDEMPOTENT} only when every command in it reads."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/CommandRequest.java","line":69,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.CommandRequest.idempotence","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.CommandRequest.CommandRequest.idempotence","product":"core","slug":"io-github-libtmux-transport-commandrequest-commandrequest-idempotence"},{"id":"io.github.libtmux.transport.CommandRequest.CommandRequest.commandLine","name":"commandLine","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.CommandRequest.CommandRequest","signatures":[{"raw":"@ReadOnly\n public List commandLine()","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"The full argv to hand a process builder, encoded for tmux's own argv parser."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/CommandRequest.java","line":74,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.CommandRequest.commandLine","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.CommandRequest.CommandRequest.commandLine","product":"core","slug":"io-github-libtmux-transport-commandrequest-commandrequest-commandline"},{"id":"io.github.libtmux.transport.CommandRequest.CommandRequest.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.CommandRequest.CommandRequest","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"Counts only. Commands carry pane content and socket paths, and this value reaches log lines and failed assertions."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/CommandRequest.java","line":87,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.CommandRequest.toString","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.CommandRequest.CommandRequest.toString","product":"core","slug":"io-github-libtmux-transport-commandrequest-commandrequest-tostring"},{"id":"io.github.libtmux.transport.CommandRequest.CommandRequest.endpoint","name":"endpoint","kind":"method","parent":"io.github.libtmux.transport.CommandRequest.CommandRequest","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"doc":{"summary":"the tmux executable and its server selection, such as {@code [tmux, -S, path]}. tmux reads these before it parses commands, so they are passed through untouched"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/CommandRequest.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.CommandRequest.endpoint","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.CommandRequest.CommandRequest.endpoint","product":"core","slug":"io-github-libtmux-transport-commandrequest-commandrequest-endpoint"},{"id":"io.github.libtmux.transport.CommandRequest.CommandRequest.commands","name":"commands","kind":"method","parent":"io.github.libtmux.transport.CommandRequest.CommandRequest","modifiers":[],"signatures":[{"params":[],"returns":"List>"}],"doc":{"summary":"one or more tmux commands, each an argv of literal words. tmux runs them in order and discards the rest after the first failure"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/CommandRequest.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.CommandRequest.commands","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.CommandRequest.CommandRequest.commands","product":"core","slug":"io-github-libtmux-transport-commandrequest-commandrequest-commands"},{"id":"io.github.libtmux.transport.CommandRequest.CommandRequest.timeout","name":"timeout","kind":"method","parent":"io.github.libtmux.transport.CommandRequest.CommandRequest","modifiers":[],"signatures":[{"params":[],"returns":"Duration"}],"doc":{"summary":"how long the caller will wait for the whole invocation"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/CommandRequest.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.CommandRequest.timeout","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.CommandRequest.CommandRequest.timeout","product":"core","slug":"io-github-libtmux-transport-commandrequest-commandrequest-timeout"},{"id":"io.github.libtmux.transport.CommandRequest.CommandRequest.input","name":"input","kind":"method","parent":"io.github.libtmux.transport.CommandRequest.CommandRequest","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"what the commands read from tmux's standard input, empty for the commands that read none. A tmux argument is bounded by MAX_IMSGSIZE, so text too large to be one travels here instead."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/CommandRequest.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.CommandRequest.input","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.CommandRequest.CommandRequest.input","product":"core","slug":"io-github-libtmux-transport-commandrequest-commandrequest-input"},{"id":"io.github.libtmux.transport.CommandResult.CommandResult","name":"CommandResult","kind":"class","modifiers":[],"signatures":[{"raw":"public record CommandResult(\n int exitCode,\n @ReadOnly List stdout,\n @ReadOnly List stderr)","params":[{"name":"exitCode","type":"int","doc":"the process exit status"},{"name":"stdout","type":"List","doc":"stdout split at LF, preserving carriage returns and interior blanks"},{"name":"stderr","type":"List","doc":"stderr split into lines, with blanks dropped"}]}],"typeScopeBoundary":false,"doc":{"summary":"One completed invocation.","body":"A nonzero exit is data, not a failure. tmux reports an ordinary \"no such pane\" the same way it\nreports a real problem, so only a higher-level method knows which one should raise."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/CommandResult.java","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.CommandResult","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.CommandResult.CommandResult","product":"core","slug":"io-github-libtmux-transport-commandresult-commandresult"},{"id":"io.github.libtmux.transport.CommandResult.CommandResult.succeeded","name":"succeeded","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.CommandResult.CommandResult","signatures":[{"raw":"public boolean succeeded()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether tmux reported success."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/CommandResult.java","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.CommandResult.succeeded","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.CommandResult.CommandResult.succeeded","product":"core","slug":"io-github-libtmux-transport-commandresult-commandresult-succeeded"},{"id":"io.github.libtmux.transport.CommandResult.CommandResult.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.CommandResult.CommandResult","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"Counts only, because both channels carry captured terminal content."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/CommandResult.java","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.CommandResult.toString","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.CommandResult.CommandResult.toString","product":"core","slug":"io-github-libtmux-transport-commandresult-commandresult-tostring"},{"id":"io.github.libtmux.transport.CommandResult.CommandResult.exitCode","name":"exitCode","kind":"method","parent":"io.github.libtmux.transport.CommandResult.CommandResult","modifiers":[],"signatures":[{"params":[],"returns":"int"}],"doc":{"summary":"the process exit status"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/CommandResult.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.CommandResult.exitCode","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.CommandResult.CommandResult.exitCode","product":"core","slug":"io-github-libtmux-transport-commandresult-commandresult-exitcode"},{"id":"io.github.libtmux.transport.CommandResult.CommandResult.stdout","name":"stdout","kind":"method","parent":"io.github.libtmux.transport.CommandResult.CommandResult","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"doc":{"summary":"stdout split at LF, preserving carriage returns and interior blanks"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/CommandResult.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.CommandResult.stdout","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.CommandResult.CommandResult.stdout","product":"core","slug":"io-github-libtmux-transport-commandresult-commandresult-stdout"},{"id":"io.github.libtmux.transport.CommandResult.CommandResult.stderr","name":"stderr","kind":"method","parent":"io.github.libtmux.transport.CommandResult.CommandResult","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"doc":{"summary":"stderr split into lines, with blanks dropped"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/CommandResult.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.CommandResult.stderr","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.CommandResult.CommandResult.stderr","product":"core","slug":"io-github-libtmux-transport-commandresult-commandresult-stderr"},{"id":"io.github.libtmux.transport.ControlCarrier.ControlCarrier","name":"ControlCarrier","kind":"interface","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Starts a long-lived tmux process in a transport's realm.","body":"A control client stays attached, so it cannot borrow a command permit. It still has to be\nstarted by the same carrier as the commands, or a custom transport's realm is silently ignored\nand the client attaches to whatever the local machine calls tmux."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/ControlCarrier.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.ControlCarrier","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.ControlCarrier.ControlCarrier","product":"core","slug":"io-github-libtmux-transport-controlcarrier-controlcarrier"},{"id":"io.github.libtmux.transport.ControlCarrier.ControlCarrier.start","name":"start","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.ControlCarrier.ControlCarrier","signatures":[{"raw":"Process start(List command) throws IOException;","params":[{"name":"command","type":"List","doc":"the tmux invocation, arguments already separate"}],"returns":"Process","typeScopeBoundary":false,"returnsDoc":"the running process","raises":[{"type":"IOException","doc":"if the process cannot be started"}]}],"doc":{"summary":"Starts the process. The caller owns it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/ControlCarrier.java","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.ControlCarrier.start","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.ControlCarrier.ControlCarrier.start","product":"core","slug":"io-github-libtmux-transport-controlcarrier-controlcarrier-start"},{"id":"io.github.libtmux.transport.DispatchOutcome.DispatchOutcome","name":"DispatchOutcome","kind":"enum","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"How certain the transport is that tmux applied a request."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/DispatchOutcome.java","line":4,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.DispatchOutcome","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.DispatchOutcome.DispatchOutcome","product":"core","slug":"io-github-libtmux-transport-dispatchoutcome-dispatchoutcome"},{"id":"io.github.libtmux.transport.DispatchOutcome.DispatchOutcome.NOT_DISPATCHED","name":"NOT_DISPATCHED","kind":"constant","modifiers":[],"parent":"io.github.libtmux.transport.DispatchOutcome.DispatchOutcome","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"The process never started, so tmux cannot have applied anything."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/DispatchOutcome.java","line":6,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.DispatchOutcome.NOT_DISPATCHED","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.DispatchOutcome.DispatchOutcome.NOT_DISPATCHED","product":"core","slug":"io-github-libtmux-transport-dispatchoutcome-dispatchoutcome-not_dispatched"},{"id":"io.github.libtmux.transport.DispatchOutcome.DispatchOutcome.COMPLETE","name":"COMPLETE","kind":"constant","modifiers":[],"parent":"io.github.libtmux.transport.DispatchOutcome.DispatchOutcome","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"The process ran to completion and both channels were drained."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/DispatchOutcome.java","line":8,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.DispatchOutcome.COMPLETE","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.DispatchOutcome.DispatchOutcome.COMPLETE","product":"core","slug":"io-github-libtmux-transport-dispatchoutcome-dispatchoutcome-complete"},{"id":"io.github.libtmux.transport.DispatchOutcome.DispatchOutcome.UNKNOWN","name":"UNKNOWN","kind":"constant","modifiers":[],"parent":"io.github.libtmux.transport.DispatchOutcome.DispatchOutcome","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"tmux may already have applied the command; the result is not knowable."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/DispatchOutcome.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.DispatchOutcome.UNKNOWN","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.DispatchOutcome.DispatchOutcome.UNKNOWN","product":"core","slug":"io-github-libtmux-transport-dispatchoutcome-dispatchoutcome-unknown"},{"id":"io.github.libtmux.transport.DispatchOutcome.DispatchOutcome.canRetryVerbatim","name":"canRetryVerbatim","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.DispatchOutcome.DispatchOutcome","signatures":[{"raw":"public boolean canRetryVerbatim(Idempotence idempotence)","params":[{"name":"idempotence","type":"Idempotence","doc":"whether every command in the request only reads"}],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether the exact same request may be sent again after this outcome.","body":"A request that never reached tmux may always be resent. One that may have reached it may be\nresent only when it changes nothing. One that completed is not a dispatch question at all:\nwhether to act on tmux's answer is the caller's decision, so this answers {@code false}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/DispatchOutcome.java","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.DispatchOutcome.canRetryVerbatim","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.DispatchOutcome.DispatchOutcome.canRetryVerbatim","product":"core","slug":"io-github-libtmux-transport-dispatchoutcome-dispatchoutcome-canretryverbatim"},{"id":"io.github.libtmux.transport.Idempotence.Idempotence","name":"Idempotence","kind":"enum","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Whether running a request twice leaves tmux as running it once does.","body":"Decided from the commands themselves: a request is idempotent only when every command in it\nreads and changes nothing. Anything this library cannot tell is a read counts as a change, so a\nfailure never reports a mutation as safe to resend."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/Idempotence.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.Idempotence","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.Idempotence.Idempotence","product":"core","slug":"io-github-libtmux-transport-idempotence-idempotence"},{"id":"io.github.libtmux.transport.Idempotence.Idempotence.IDEMPOTENT","name":"IDEMPOTENT","kind":"constant","modifiers":[],"parent":"io.github.libtmux.transport.Idempotence.Idempotence","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Every command only reads; sending it again cannot change tmux."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/Idempotence.java","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.Idempotence.IDEMPOTENT","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.Idempotence.Idempotence.IDEMPOTENT","product":"core","slug":"io-github-libtmux-transport-idempotence-idempotence-idempotent"},{"id":"io.github.libtmux.transport.Idempotence.Idempotence.NOT_IDEMPOTENT","name":"NOT_IDEMPOTENT","kind":"constant","modifiers":[],"parent":"io.github.libtmux.transport.Idempotence.Idempotence","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"At least one command may change tmux, so a second send may apply it twice."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/Idempotence.java","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.Idempotence.NOT_IDEMPOTENT","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.Idempotence.Idempotence.NOT_IDEMPOTENT","product":"core","slug":"io-github-libtmux-transport-idempotence-idempotence-not_idempotent"},{"id":"io.github.libtmux.transport.Idempotence.Idempotence.of","name":"of","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.transport.Idempotence.Idempotence","signatures":[{"raw":"public static Idempotence of(List> commands)","params":[{"name":"commands","type":"List>"}],"returns":"Idempotence","typeScopeBoundary":true}],"doc":{"summary":"The idempotence of a request made of {@code commands}, each an argv."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/Idempotence.java","line":55,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.Idempotence.of","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.Idempotence.Idempotence.of","product":"core","slug":"io-github-libtmux-transport-idempotence-idempotence-of"},{"id":"io.github.libtmux.transport.OperationObserver.OperationObserver","name":"OperationObserver","kind":"interface","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Receives one {@link OperationReport} after each command.","body":"The transport still throws on failure. This does not retry. A report whose {@link\nOperationReport#certainty() certainty} is {@link DispatchOutcome#NOT_DISPATCHED} was never\napplied. {@link DispatchOutcome#UNKNOWN} must not be sent again blindly."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OperationObserver.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OperationObserver","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OperationObserver.OperationObserver","product":"core","slug":"io-github-libtmux-transport-operationobserver-operationobserver"},{"id":"io.github.libtmux.transport.OperationObserver.OperationObserver.accept","name":"accept","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.OperationObserver.OperationObserver","signatures":[{"raw":"void accept(OperationReport report);","params":[{"name":"report","type":"OperationReport"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Called once, after the command ends, on the thread that ran it.","body":"An exception thrown here does not change the command's result, since the command has\nalready run: failing it would invite a retry of something tmux may have done. The exception is\nlogged at {@code WARNING}, with its stack trace, by the logger of the transport or control\nclient that ran the command."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OperationObserver.java","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OperationObserver.accept","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OperationObserver.OperationObserver.accept","product":"core","slug":"io-github-libtmux-transport-operationobserver-operationobserver-accept"},{"id":"io.github.libtmux.transport.OperationReport.OperationReport","name":"OperationReport","kind":"class","modifiers":[],"signatures":[{"raw":"public record OperationReport(\n long id,\n @ReadOnly List verbs,\n DispatchOutcome certainty,\n OptionalInt exitCode,\n int stdoutLines,\n int stderrLines,\n String boundedError,\n Duration queued,\n Duration elapsed)","params":[{"name":"id","type":"long","doc":"a counter for this transport, so one call can be told from the next"},{"name":"verbs","type":"List","doc":"the commands, without their arguments"},{"name":"certainty","type":"DispatchOutcome","doc":"whether tmux never started, finished, or might have applied the command"},{"name":"exitCode","type":"OptionalInt","doc":"the process exit status, empty when the process did not finish"},{"name":"stdoutLines","type":"int","doc":"how many stdout lines came back"},{"name":"stderrLines","type":"int","doc":"how many stderr lines came back"},{"name":"boundedError","type":"String","doc":"stderr text, at most {@link #ERROR_LIMIT} characters"},{"name":"queued","type":"Duration","doc":"how long the call waited for a free process or writer slot"},{"name":"elapsed","type":"Duration","doc":"how long the command itself ran after that wait"}]}],"typeScopeBoundary":false,"doc":{"summary":"One command a transport finished or failed to finish.","body":"The verbs are the first word of each command. Arguments, standard input, and stdout are not\nhere: they carry session names, socket paths, and whatever a caller typed. {@link #boundedError()}\nis stderr, cut off, and {@link #toString()} leaves it out."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OperationReport.java","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OperationReport","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OperationReport.OperationReport","product":"core","slug":"io-github-libtmux-transport-operationreport-operationreport"},{"id":"io.github.libtmux.transport.OperationReport.OperationReport.ERROR_LIMIT","name":"ERROR_LIMIT","kind":"attribute","modifiers":["static","readonly"],"parent":"io.github.libtmux.transport.OperationReport.OperationReport","signatures":[],"typeScopeBoundary":true,"type":"int","value":"240","doc":{"summary":"How much stderr text a report keeps."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OperationReport.java","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OperationReport.ERROR_LIMIT","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OperationReport.OperationReport.ERROR_LIMIT","product":"core","slug":"io-github-libtmux-transport-operationreport-operationreport-error_limit"},{"id":"io.github.libtmux.transport.OperationReport.OperationReport.bound","name":"bound","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.transport.OperationReport.OperationReport","signatures":[{"raw":"public static String bound(List stderr)","params":[{"name":"stderr","type":"List"}],"returns":"String","typeScopeBoundary":true}],"doc":{"summary":"Joins stderr lines and cuts them at {@link #ERROR_LIMIT}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OperationReport.java","line":52,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OperationReport.bound","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OperationReport.OperationReport.bound","product":"core","slug":"io-github-libtmux-transport-operationreport-operationreport-bound"},{"id":"io.github.libtmux.transport.OperationReport.OperationReport.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.OperationReport.OperationReport","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"Counts and timings only. The error text stays on {@link #boundedError()}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OperationReport.java","line":57,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OperationReport.toString","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OperationReport.OperationReport.toString","product":"core","slug":"io-github-libtmux-transport-operationreport-operationreport-tostring"},{"id":"io.github.libtmux.transport.OperationReport.OperationReport.id","name":"id","kind":"method","parent":"io.github.libtmux.transport.OperationReport.OperationReport","modifiers":[],"signatures":[{"params":[],"returns":"long"}],"doc":{"summary":"a counter for this transport, so one call can be told from the next"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OperationReport.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OperationReport.id","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OperationReport.OperationReport.id","product":"core","slug":"io-github-libtmux-transport-operationreport-operationreport-id"},{"id":"io.github.libtmux.transport.OperationReport.OperationReport.verbs","name":"verbs","kind":"method","parent":"io.github.libtmux.transport.OperationReport.OperationReport","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"doc":{"summary":"the commands, without their arguments"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OperationReport.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OperationReport.verbs","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OperationReport.OperationReport.verbs","product":"core","slug":"io-github-libtmux-transport-operationreport-operationreport-verbs"},{"id":"io.github.libtmux.transport.OperationReport.OperationReport.certainty","name":"certainty","kind":"method","parent":"io.github.libtmux.transport.OperationReport.OperationReport","modifiers":[],"signatures":[{"params":[],"returns":"DispatchOutcome"}],"doc":{"summary":"whether tmux never started, finished, or might have applied the command"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OperationReport.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OperationReport.certainty","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OperationReport.OperationReport.certainty","product":"core","slug":"io-github-libtmux-transport-operationreport-operationreport-certainty"},{"id":"io.github.libtmux.transport.OperationReport.OperationReport.exitCode","name":"exitCode","kind":"method","parent":"io.github.libtmux.transport.OperationReport.OperationReport","modifiers":[],"signatures":[{"params":[],"returns":"OptionalInt"}],"doc":{"summary":"the process exit status, empty when the process did not finish"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OperationReport.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OperationReport.exitCode","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OperationReport.OperationReport.exitCode","product":"core","slug":"io-github-libtmux-transport-operationreport-operationreport-exitcode"},{"id":"io.github.libtmux.transport.OperationReport.OperationReport.stdoutLines","name":"stdoutLines","kind":"method","parent":"io.github.libtmux.transport.OperationReport.OperationReport","modifiers":[],"signatures":[{"params":[],"returns":"int"}],"doc":{"summary":"how many stdout lines came back"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OperationReport.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OperationReport.stdoutLines","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OperationReport.OperationReport.stdoutLines","product":"core","slug":"io-github-libtmux-transport-operationreport-operationreport-stdoutlines"},{"id":"io.github.libtmux.transport.OperationReport.OperationReport.stderrLines","name":"stderrLines","kind":"method","parent":"io.github.libtmux.transport.OperationReport.OperationReport","modifiers":[],"signatures":[{"params":[],"returns":"int"}],"doc":{"summary":"how many stderr lines came back"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OperationReport.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OperationReport.stderrLines","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OperationReport.OperationReport.stderrLines","product":"core","slug":"io-github-libtmux-transport-operationreport-operationreport-stderrlines"},{"id":"io.github.libtmux.transport.OperationReport.OperationReport.boundedError","name":"boundedError","kind":"method","parent":"io.github.libtmux.transport.OperationReport.OperationReport","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"stderr text, at most {@link #ERROR_LIMIT} characters"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OperationReport.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OperationReport.boundedError","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OperationReport.OperationReport.boundedError","product":"core","slug":"io-github-libtmux-transport-operationreport-operationreport-boundederror"},{"id":"io.github.libtmux.transport.OperationReport.OperationReport.queued","name":"queued","kind":"method","parent":"io.github.libtmux.transport.OperationReport.OperationReport","modifiers":[],"signatures":[{"params":[],"returns":"Duration"}],"doc":{"summary":"how long the call waited for a free process or writer slot"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OperationReport.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OperationReport.queued","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OperationReport.OperationReport.queued","product":"core","slug":"io-github-libtmux-transport-operationreport-operationreport-queued"},{"id":"io.github.libtmux.transport.OperationReport.OperationReport.elapsed","name":"elapsed","kind":"method","parent":"io.github.libtmux.transport.OperationReport.OperationReport","modifiers":[],"signatures":[{"params":[],"returns":"Duration"}],"doc":{"summary":"how long the command itself ran after that wait"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OperationReport.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OperationReport.elapsed","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OperationReport.OperationReport.elapsed","product":"core","slug":"io-github-libtmux-transport-operationreport-operationreport-elapsed"},{"id":"io.github.libtmux.transport.OutputDecoder.OutputDecoder","name":"OutputDecoder","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Turns a drained pipe into lines while preserving tmux values.","body":"tmux emits pane content, so the bytes are not guaranteed to be UTF-8. A malformed byte is\nescaped as {@code \\xNN} rather than replaced with U+FFFD, which keeps the original byte\nrecoverable and matches what CPython's {@code backslashreplace} produces.\n\ntmux frames stdout with LF; CR is value data, including before LF. Stdout keeps interior blank\nlines and drops trailing ones. Diagnostic stderr normalizes CRLF and CR to LF and drops all blanks."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OutputDecoder.java","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OutputDecoder","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OutputDecoder.OutputDecoder","product":"core","slug":"io-github-libtmux-transport-outputdecoder-outputdecoder"},{"id":"io.github.libtmux.transport.OutputDecoder.OutputDecoder.stdoutLines","name":"stdoutLines","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.transport.OutputDecoder.OutputDecoder","signatures":[{"raw":"static List stdoutLines(byte[] bytes)","params":[{"name":"bytes","type":"byte[]"}],"returns":"List","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OutputDecoder.java","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OutputDecoder.stdoutLines","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OutputDecoder.OutputDecoder.stdoutLines","product":"core","slug":"io-github-libtmux-transport-outputdecoder-outputdecoder-stdoutlines"},{"id":"io.github.libtmux.transport.OutputDecoder.OutputDecoder.stderrLines","name":"stderrLines","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.transport.OutputDecoder.OutputDecoder","signatures":[{"raw":"static List stderrLines(byte[] bytes)","params":[{"name":"bytes","type":"byte[]"}],"returns":"List","typeScopeBoundary":true}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/OutputDecoder.java","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.OutputDecoder.stderrLines","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.OutputDecoder.OutputDecoder.stderrLines","product":"core","slug":"io-github-libtmux-transport-outputdecoder-outputdecoder-stderrlines"},{"id":"io.github.libtmux.transport.ProcessTransport.ProcessTransport","name":"ProcessTransport","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The default transport: one child process per call, drained by a bounded pool of platform threads.","body":"A caller takes one admission permit before launching, and the pool holds exactly three workers\nper permit, so holding a permit means both drains and the input pump are already free. Without\nthat coupling a caller can start a child whose pipes nobody is reading, or block forever writing\nto one that stopped reading.\n\nA request declared as waiting also takes one of all but one admission permits. The remaining\nprocess stays available for the ordinary request that observes or releases those waits, without\nincreasing the total process or pump bound. An additional waiter is refused before dispatch, so\nits caller knows it was never registered.\n\nThe caller itself may be a virtual thread: {@code Process.waitFor} releases its carrier. The\ndrains stay platform threads, although on JDK 25 neither a monitor nor a pipe read pins a virtual\nthread any more. A virtual thread is always a daemon, and a drain has to finish the reply it is\nreading rather than be dropped at exit; and a library does not own the scheduler, where a\ncaller's CPU-bound task that never blocks keeps its carrier and a drain waiting behind it lets\nthe pipe fill.\n\nLaunching and closing are ordered by an explicit gate rather than a flag, because checking a\nflag and then acting on it lets a caller start a child after {@code close()} has already decided\nthere was nothing left to destroy."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java","line":66,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.ProcessTransport","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.ProcessTransport.ProcessTransport","product":"core","slug":"io-github-libtmux-transport-processtransport-processtransport"},{"id":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.ProcessTransport","name":"ProcessTransport","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.transport.ProcessTransport.ProcessTransport","signatures":[{"raw":"public ProcessTransport()","params":[],"typeScopeBoundary":false},{"raw":"public ProcessTransport(int maxConcurrentProcesses)","params":[{"name":"maxConcurrentProcesses","type":"int","doc":"how many tmux processes may run at once ({@code executeWaiting} requires at least two)"}],"typeScopeBoundary":false},{"raw":"public ProcessTransport(int maxConcurrentProcesses, int maxOutputBytes)","params":[{"name":"maxConcurrentProcesses","type":"int","doc":"how many tmux processes may run at once"},{"name":"maxOutputBytes","type":"int","doc":"maximum bytes accepted from each output channel of one process"}],"typeScopeBoundary":false}],"doc":{"summary":"A transport allowing four concurrent tmux processes."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java","line":106,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.ProcessTransport.ProcessTransport","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.ProcessTransport","product":"core","slug":"io-github-libtmux-transport-processtransport-processtransport-processtransport"},{"id":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.controlCarrier","name":"controlCarrier","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.ProcessTransport.ProcessTransport","signatures":[{"raw":"@Override\n public Optional controlCarrier()","params":[],"returns":"Optional","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java","line":161,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.ProcessTransport.controlCarrier","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.controlCarrier","product":"core","slug":"io-github-libtmux-transport-processtransport-processtransport-controlcarrier"},{"id":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.admissionBound","name":"admissionBound","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.ProcessTransport.ProcessTransport","signatures":[{"raw":"@Override\n public int admissionBound()","params":[],"returns":"int","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java","line":169,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.ProcessTransport.admissionBound","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.admissionBound","product":"core","slug":"io-github-libtmux-transport-processtransport-processtransport-admissionbound"},{"id":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.observe","name":"observe","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.ProcessTransport.ProcessTransport","signatures":[{"raw":"@Override\n public void observe(OperationObserver observer)","params":[{"name":"observer","type":"OperationObserver"}],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java","line":174,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.ProcessTransport.observe","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.observe","product":"core","slug":"io-github-libtmux-transport-processtransport-processtransport-observe"},{"id":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.execute","name":"execute","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.ProcessTransport.ProcessTransport","signatures":[{"raw":"@Override\n public CommandResult execute(CommandRequest request)","params":[{"name":"request","type":"CommandRequest"}],"returns":"CommandResult","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java","line":179,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.ProcessTransport.execute","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.execute","product":"core","slug":"io-github-libtmux-transport-processtransport-processtransport-execute"},{"id":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.executeWaiting","name":"executeWaiting","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.ProcessTransport.ProcessTransport","signatures":[{"raw":"@Override\n public CommandResult executeWaiting(CommandRequest request)","params":[{"name":"request","type":"CommandRequest"}],"returns":"CommandResult","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java","line":184,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.ProcessTransport.executeWaiting","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.executeWaiting","product":"core","slug":"io-github-libtmux-transport-processtransport-processtransport-executewaiting"},{"id":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.close","name":"close","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.ProcessTransport.ProcessTransport","signatures":[{"raw":"@Override\n public void close()","params":[],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java","line":331,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.ProcessTransport.close","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.close","product":"core","slug":"io-github-libtmux-transport-processtransport-processtransport-close"},{"id":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.ProcessStarter","name":"ProcessStarter","kind":"interface","modifiers":[],"parent":"io.github.libtmux.transport.ProcessTransport.ProcessTransport","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java","line":733,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.ProcessTransport.ProcessStarter","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.ProcessStarter","product":"core","slug":"io-github-libtmux-transport-processtransport-processtransport-processstarter"},{"id":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.ProcessStarter.start","name":"start","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.ProcessStarter","signatures":[{"raw":"Process start(List command) throws IOException;","params":[{"name":"command","type":"List"}],"returns":"Process","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java","line":735,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.ProcessTransport.ProcessStarter.start","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.ProcessStarter.start","product":"core","slug":"io-github-libtmux-transport-processtransport-processtransport-processstarter-start"},{"id":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.ResourceNotReclaimed","name":"ResourceNotReclaimed","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.transport.ProcessTransport.ProcessTransport","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"A worker could not be recovered. Distinct from {@link IllegalStateException}, which this transport reserves for use after close."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java","line":801,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.ProcessTransport.ResourceNotReclaimed","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.ResourceNotReclaimed","product":"core","slug":"io-github-libtmux-transport-processtransport-processtransport-resourcenotreclaimed"},{"id":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.ResourceNotReclaimed.ResourceNotReclaimed","name":"ResourceNotReclaimed","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.ResourceNotReclaimed","signatures":[{"raw":"ResourceNotReclaimed(String message)","params":[{"name":"message","type":"String"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/ProcessTransport.java","line":804,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.ProcessTransport.ResourceNotReclaimed.ResourceNotReclaimed","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.ProcessTransport.ProcessTransport.ResourceNotReclaimed.ResourceNotReclaimed","product":"core","slug":"io-github-libtmux-transport-processtransport-processtransport-resourcenotreclaimed-resourcenotreclaimed"},{"id":"io.github.libtmux.transport.TmuxTransport.TmuxTransport","name":"TmuxTransport","kind":"interface","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Runs one tmux command and blocks until it has an answer.","body":"Implementations are thread-safe and {@link #close()} is idempotent. A call begun before close\neither completes under the documented contract or fails with its dispatch certainty intact; a\ncall begun after close fails with {@link io.github.libtmux.exception.ServerClosedException}, an\n{@link IllegalStateException}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/TmuxTransport.java","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.TmuxTransport","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.TmuxTransport.TmuxTransport","product":"core","slug":"io-github-libtmux-transport-tmuxtransport-tmuxtransport"},{"id":"io.github.libtmux.transport.TmuxTransport.TmuxTransport.execute","name":"execute","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.TmuxTransport.TmuxTransport","signatures":[{"raw":"CommandResult execute(CommandRequest request);","params":[{"name":"request","type":"CommandRequest","doc":"what to run, what it reads, and how long to wait"}],"returns":"CommandResult","typeScopeBoundary":false,"returnsDoc":"the exit status and both channels; a nonzero exit is a result, not a failure","raises":[{"type":"DispatchException","doc":"if the command could not be run to completion, carrying how certain it is that tmux applied it"},{"type":"IllegalStateException","doc":"if this transport is closed"}]}],"doc":{"summary":"Runs the request to completion.","body":"An implementation writes {@link CommandRequest#input()} to tmux's standard input and\ncloses it. A command that reads standard input and is given none reads end of file, which\ntmux reports as success over an empty result rather than as a failure."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/TmuxTransport.java","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.TmuxTransport.execute","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.TmuxTransport.TmuxTransport.execute","product":"core","slug":"io-github-libtmux-transport-tmuxtransport-tmuxtransport-execute"},{"id":"io.github.libtmux.transport.TmuxTransport.TmuxTransport.executeWaiting","name":"executeWaiting","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.TmuxTransport.TmuxTransport","signatures":[{"raw":"default CommandResult executeWaiting(CommandRequest request)","params":[{"name":"request","type":"CommandRequest"}],"returns":"CommandResult","typeScopeBoundary":false}],"doc":{"summary":"Runs a request expected to remain blocked until another request through this transport releases it.","body":"The default shares ordinary admission. A transport with bounded concurrency may override\nthis to keep release and observation requests from queuing behind every waiter."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/TmuxTransport.java","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.TmuxTransport.executeWaiting","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.TmuxTransport.TmuxTransport.executeWaiting","product":"core","slug":"io-github-libtmux-transport-tmuxtransport-tmuxtransport-executewaiting"},{"id":"io.github.libtmux.transport.TmuxTransport.TmuxTransport.realm","name":"realm","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.TmuxTransport.TmuxTransport","signatures":[{"raw":"default String realm()","params":[],"returns":"String","typeScopeBoundary":false,"returnsDoc":"a stable realm name; the default is the local process's own view of the filesystem"}],"doc":{"summary":"Names the execution realm this transport reaches tmux through.","body":"Entity identity is scoped by it. Two unrelated realms can both hold a server at the same\nsocket path, and entities from them must not compare equal, so a transport that reaches a\ndifferent machine, container or user should return something stable and distinct."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/TmuxTransport.java","line":51,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.TmuxTransport.realm","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.TmuxTransport.TmuxTransport.realm","product":"core","slug":"io-github-libtmux-transport-tmuxtransport-tmuxtransport-realm"},{"id":"io.github.libtmux.transport.TmuxTransport.TmuxTransport.controlCarrier","name":"controlCarrier","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.TmuxTransport.TmuxTransport","signatures":[{"raw":"default Optional controlCarrier()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"How this transport starts a process that stays attached.","body":"Empty when the transport cannot. A command-only fake is in that set, and so is any realm\nthat has not said how its processes are born. Callers that need a control client then fail\ninstead of starting one on the local machine."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/TmuxTransport.java","line":62,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.TmuxTransport.controlCarrier","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.TmuxTransport.TmuxTransport.controlCarrier","product":"core","slug":"io-github-libtmux-transport-tmuxtransport-tmuxtransport-controlcarrier"},{"id":"io.github.libtmux.transport.TmuxTransport.TmuxTransport.observe","name":"observe","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.TmuxTransport.TmuxTransport","signatures":[{"raw":"default void observe(OperationObserver observer)","params":[{"name":"observer","type":"OperationObserver"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Receives a report after each command this transport runs.","body":"The default ignores it. A transport that cannot see its own commands leaves the observer\nunset rather than inventing timings."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/TmuxTransport.java","line":72,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.TmuxTransport.observe","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.TmuxTransport.TmuxTransport.observe","product":"core","slug":"io-github-libtmux-transport-tmuxtransport-tmuxtransport-observe"},{"id":"io.github.libtmux.transport.TmuxTransport.TmuxTransport.admissionBound","name":"admissionBound","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.TmuxTransport.TmuxTransport","signatures":[{"raw":"default int admissionBound()","params":[],"returns":"int","typeScopeBoundary":false,"returnsDoc":"the bound, or {@link Integer#MAX_VALUE} for a transport that sets none"}],"doc":{"summary":"How many requests this transport runs at once; the rest wait for a turn."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/TmuxTransport.java","line":79,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.TmuxTransport.admissionBound","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.TmuxTransport.TmuxTransport.admissionBound","product":"core","slug":"io-github-libtmux-transport-tmuxtransport-tmuxtransport-admissionbound"},{"id":"io.github.libtmux.transport.TmuxTransport.TmuxTransport.close","name":"close","kind":"method","modifiers":[],"parent":"io.github.libtmux.transport.TmuxTransport.TmuxTransport","signatures":[{"raw":"@Override\n void close();","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Releases every resource and destroys every child still running. Idempotent."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/transport/TmuxTransport.java","line":84,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.transport.TmuxTransport.close","namespace":"io.github.libtmux.transport","publicId":"io.github.libtmux.transport.TmuxTransport.TmuxTransport.close","product":"core","slug":"io-github-libtmux-transport-tmuxtransport-tmuxtransport-close"},{"id":"io.github.libtmux.TypedText.TypedText","name":"TypedText","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Discounts input recorded by this library when reading a pane's output.","body":"Create one instance per wait. Each read refreshes pending input and retains submitted echoes\nalready observed, even after the shared record expires. This mutable view is not thread-safe."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TypedText.java","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TypedText","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TypedText.TypedText","product":"core","slug":"io-github-libtmux-typedtext-typedtext"},{"id":"io.github.libtmux.TypedText.TypedText.in","name":"in","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.TypedText.TypedText","signatures":[{"raw":"public static TypedText in(Pane pane)","params":[{"name":"pane","type":"Pane"}],"returns":"TypedText","typeScopeBoundary":true}],"doc":{"summary":"What this library has typed into the pane recently enough to still be on its screen."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TypedText.java","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TypedText.in","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TypedText.TypedText.in","product":"core","slug":"io-github-libtmux-typedtext-typedtext-in"},{"id":"io.github.libtmux.TypedText.TypedText.withoutEcho","name":"withoutEcho","kind":"method","modifiers":[],"parent":"io.github.libtmux.TypedText.TypedText","signatures":[{"raw":"@ReadOnly\n public List withoutEcho(List lines)","params":[{"name":"lines","type":"List"}],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"The lines with each recorded echo taken out, wherever it stands as an echo does.","body":"An occurrence is taken out only where it is not part of a longer word on either side. That is\nwhat keeps the answer when the answer merely contains the question — {@code id} comes off\n{@code $ id} and stays inside {@code uid=1000} — while still taking out every copy of an echo a\nshell drew more than once, and one a shell drew something straight after. A row the echo shared\nwith real output keeps that output.\n\nWhat no rule can do is tell an echo from output that repeats the whole typed line as a line\nof its own. Wait for something the command prints rather than something it says.\n\nThe lines are scanned as one string, so an echo the terminal broke across rows is still\nfound. Pass lines with wrapping already rejoined when the text being watched for can itself be\nbroken across rows. A shell redraw or truncated capture that retains only part of an echo\ncannot be recognized reliably."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TypedText.java","line":54,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TypedText.withoutEcho","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TypedText.TypedText.withoutEcho","product":"core","slug":"io-github-libtmux-typedtext-typedtext-withoutecho"},{"id":"io.github.libtmux.TypedText.TypedText.isEmpty","name":"isEmpty","kind":"method","modifiers":[],"parent":"io.github.libtmux.TypedText.TypedText","signatures":[{"raw":"public boolean isEmpty()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether anything typed into the pane is live enough, right now, to still be discounted."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/TypedText.java","line":70,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TypedText.isEmpty","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TypedText.TypedText.isEmpty","product":"core","slug":"io-github-libtmux-typedtext-typedtext-isempty"},{"id":"io.github.libtmux.TypedText.TypedText.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.TypedText.TypedText","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/TypedText.java","line":78,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.TypedText.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.TypedText.TypedText.toString","product":"core","slug":"io-github-libtmux-typedtext-typedtext-tostring"},{"id":"io.github.libtmux.WakeReason.WakeReason","name":"WakeReason","kind":"enum","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Why a wait on a tmux channel ended.","body":"An enum rather than a boolean, and rather than nothing at all, because tmux's own\n{@code wait-for} cannot distinguish these: it exits successfully both when the channel is\nsignalled and when the server dies underneath the waiter."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WakeReason.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WakeReason","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WakeReason.WakeReason","product":"core","slug":"io-github-libtmux-wakereason-wakereason"},{"id":"io.github.libtmux.WakeReason.WakeReason.SIGNALLED","name":"SIGNALLED","kind":"constant","modifiers":[],"parent":"io.github.libtmux.WakeReason.WakeReason","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"The channel was signalled."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WakeReason.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WakeReason.SIGNALLED","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WakeReason.WakeReason.SIGNALLED","product":"core","slug":"io-github-libtmux-wakereason-wakereason-signalled"},{"id":"io.github.libtmux.WakeReason.WakeReason.TIMED_OUT","name":"TIMED_OUT","kind":"constant","modifiers":[],"parent":"io.github.libtmux.WakeReason.WakeReason","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Nothing signalled the channel before the caller's deadline."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WakeReason.java","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WakeReason.TIMED_OUT","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WakeReason.WakeReason.TIMED_OUT","product":"core","slug":"io-github-libtmux-wakereason-wakereason-timed_out"},{"id":"io.github.libtmux.WakeReason.WakeReason.SERVER_GONE","name":"SERVER_GONE","kind":"constant","modifiers":[],"parent":"io.github.libtmux.WakeReason.WakeReason","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"The server is gone. tmux reports this as a successful wake, so it is checked for rather than believed; a caller cannot rely on anything the wait was guarding."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WakeReason.java","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WakeReason.SERVER_GONE","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WakeReason.WakeReason.SERVER_GONE","product":"core","slug":"io-github-libtmux-wakereason-wakereason-server_gone"},{"id":"io.github.libtmux.Window.Window","name":"Window","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"One tmux window at one of its positions, as one capture saw it.","body":"Identity is the winlink: the server, the session, the index and the window. A window linked\ninto two sessions is one window and two handles, because tmux orders and addresses those\npositions separately. {@link #id()} stays available for asking whether two links are the same\nunderlying window.\n\nA method named for a captured field returns what {@link #info()} holds and does no I/O;\n{@link #refresh()} reads again. Every other method asks tmux now."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window","product":"core","slug":"io-github-libtmux-window-window"},{"id":"io.github.libtmux.Window.Window.Window","name":"Window","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"Window(Server server, ServerSnapshot snapshot, WindowState state)","params":[{"name":"server","type":"Server"},{"name":"snapshot","type":"ServerSnapshot"},{"name":"state","type":"WindowState"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.Window","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.Window","product":"core","slug":"io-github-libtmux-window-window-window"},{"id":"io.github.libtmux.Window.Window.info","name":"info","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public WindowState info()","params":[],"returns":"WindowState","typeScopeBoundary":false}],"doc":{"summary":"The fields this capture stored. A later rename is not visible here."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":44,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.info","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.info","product":"core","slug":"io-github-libtmux-window-window-info"},{"id":"io.github.libtmux.Window.Window.id","name":"id","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public WindowId id()","params":[],"returns":"WindowId","typeScopeBoundary":false}],"doc":{"summary":"The underlying window, shared by every link to it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":50,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.id","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.id","product":"core","slug":"io-github-libtmux-window-window-id"},{"id":"io.github.libtmux.Window.Window.index","name":"index","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public WindowIndex index()","params":[],"returns":"WindowIndex","typeScopeBoundary":false}],"doc":{"summary":"Where this link sits in its session."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":56,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.index","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.index","product":"core","slug":"io-github-libtmux-window-window-index"},{"id":"io.github.libtmux.Window.Window.context","name":"context","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public WindowContext context()","params":[],"returns":"WindowContext","typeScopeBoundary":false}],"doc":{"summary":"The winlink this handle addresses."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":62,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.context","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.context","product":"core","slug":"io-github-libtmux-window-window-context"},{"id":"io.github.libtmux.Window.Window.name","name":"name","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public String name()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The window name."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":68,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.name","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.name","product":"core","slug":"io-github-libtmux-window-window-name"},{"id":"io.github.libtmux.Window.Window.active","name":"active","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public boolean active()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether this was its session's active window when captured."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":74,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.active","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.active","product":"core","slug":"io-github-libtmux-window-window-active"},{"id":"io.github.libtmux.Window.Window.linked","name":"linked","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public boolean linked()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether the underlying window is linked into more than one session."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":80,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.linked","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.linked","product":"core","slug":"io-github-libtmux-window-window-linked"},{"id":"io.github.libtmux.Window.Window.size","name":"size","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Dimensions size()","params":[],"returns":"Dimensions","typeScopeBoundary":false}],"doc":{"summary":"How large the window was when captured, in terminal cells."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":86,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.size","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.size","product":"core","slug":"io-github-libtmux-window-window-size"},{"id":"io.github.libtmux.Window.Window.layout","name":"layout","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public WindowLayout layout()","params":[],"returns":"WindowLayout","typeScopeBoundary":false}],"doc":{"summary":"tmux's own layout for this window, in whichever form this server writes it.","body":"Classic before tmux 3.8 and JSON from it, and the type says which. Hand it back with {@link\n#applyLayout(WindowLayout)}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":97,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.layout","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.layout","product":"core","slug":"io-github-libtmux-window-window-layout"},{"id":"io.github.libtmux.Window.Window.activePane","name":"activePane","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Optional activePane()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The pane tmux had active here. A pure read of the capture.","body":"Empty only when the capture holds no pane marked active for this window, which a complete\ncapture of a live window does not."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":108,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.activePane","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.activePane","product":"core","slug":"io-github-libtmux-window-window-activepane"},{"id":"io.github.libtmux.Window.Window.select","name":"select","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void select()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Makes this the active window of its session."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":114,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.select","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.select","product":"core","slug":"io-github-libtmux-window-window-select"},{"id":"io.github.libtmux.Window.Window.server","name":"server","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Server server()","params":[],"returns":"Server","typeScopeBoundary":false}],"doc":{"summary":"The server this window lives on."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":120,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.server","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.server","product":"core","slug":"io-github-libtmux-window-window-server"},{"id":"io.github.libtmux.Window.Window.snapshot","name":"snapshot","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"ServerSnapshot snapshot()","params":[],"returns":"ServerSnapshot","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":125,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.snapshot","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.snapshot","product":"core","slug":"io-github-libtmux-window-window-snapshot"},{"id":"io.github.libtmux.Window.Window.session","name":"session","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Session session()","params":[],"returns":"Session","typeScopeBoundary":false}],"doc":{"summary":"The session this link belongs to. A pure read of the capture."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":130,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.session","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.session","product":"core","slug":"io-github-libtmux-window-window-session"},{"id":"io.github.libtmux.Window.Window.hooks","name":"hooks","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Hooks hooks()","params":[],"returns":"Hooks","typeScopeBoundary":false}],"doc":{"summary":"This window's own hooks, which every link to it shares."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":139,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.hooks","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.hooks","product":"core","slug":"io-github-libtmux-window-window-hooks"},{"id":"io.github.libtmux.Window.Window.options","name":"options","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.CAPTURED)\n public Options options()","params":[],"returns":"Options","typeScopeBoundary":false}],"doc":{"summary":"This window's own options, which every link to it shares."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":145,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.options","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.options","product":"core","slug":"io-github-libtmux-window-window-options"},{"id":"io.github.libtmux.Window.Window.panes","name":"panes","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@ReadOnly\n @Operation(Kind.CAPTURED)\n public List panes()","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"This link's panes, in tmux's order. A pure read of the capture.","examples":[{"lang":"console","intro":"List all panes, then the panes captured for one window. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/java/build.gradle.kts","code":"plugins {\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"java","intro":"Save this complete program as src/main/java/ListPanes.java. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/java/io/github/libtmux/examples/api/java/ListPanes.java","code":"package io.github.libtmux.examples.api.java;\n\nimport io.github.libtmux.Server;\nimport io.github.libtmux.ServerConfig;\nimport io.github.libtmux.ServerEndpoint;\nimport java.nio.file.Path;\n\n/** List all panes, then the panes captured for one window. */\npublic final class ListPanes {\n private ListPanes() {}\n\n public static void main(String[] args) {\n try {\n if (args.length != 3) {\n throw new IllegalArgumentException(\"expected: tmux-binary socket-path config-file\");\n }\n var config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build();\n try (Server server = Server.open(config)) {\n System.out.println(\"panes=\" + server.panes().size());\n var session = server.session(\"work-one\").orElseThrow();\n var window = session.windows().stream()\n .filter(item -> item.name().equals(\"editor\"))\n .findFirst()\n .orElseThrow();\n System.out.println(\"window-panes=\" + window.panes().size());\n }\n } catch (Exception error) {\n if (error instanceof InterruptedException) Thread.currentThread().interrupt();\n System.err.println(\"Example failed: \" + error.getMessage());\n System.exit(1);\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.java.ListPanes && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"panes=4\nwindow-panes=2\n"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":151,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.panes","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.panes","product":"core","slug":"io-github-libtmux-window-window-panes"},{"id":"io.github.libtmux.Window.Window.split","name":"split","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public Pane split()","params":[],"returns":"Pane","typeScopeBoundary":false,"returnsDoc":"the pane that appeared"},{"raw":"@Operation(Kind.MUTATION)\n public Pane split(Consumer configure)","params":[{"name":"configure","type":"Consumer","doc":"receives a builder holding tmux's defaults"}],"returns":"Pane","typeScopeBoundary":false,"returnsDoc":"the pane that appeared","raises":[{"type":"UnsupportedFeatureException","doc":"if the spec asks for something this server does not have"}]},{"raw":"@Operation(Kind.MUTATION)\n public Pane split(SplitSpec spec)","params":[{"name":"spec","type":"SplitSpec"}],"returns":"Pane","typeScopeBoundary":false,"returnsDoc":"the pane that appeared","raises":[{"type":"UnsupportedFeatureException","doc":"if the spec asks for something this server does not have"}]}],"doc":{"summary":"Splits this window's active pane in half, putting the new one below it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":164,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.split","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.split","product":"core","slug":"io-github-libtmux-window-window-split"},{"id":"io.github.libtmux.Window.Window.expand","name":"expand","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.READ)\n public String expand(String format)","params":[{"name":"format","type":"String","doc":"a tmux format, usually of the shape {@code #{name}}"}],"returns":"String","typeScopeBoundary":false,"returnsDoc":"the expansion, whole when it spans lines and empty when the format expanded to nothing"}],"doc":{"summary":"Expands a tmux format in this window's context, and answers with what it came to.","body":"The same escape hatch {@link Pane#expand} gives, resolved against this window."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":203,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.expand","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.expand","product":"core","slug":"io-github-libtmux-window-window-expand"},{"id":"io.github.libtmux.Window.Window.rename","name":"rename","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@CheckReturnValue\n @Operation(Kind.MUTATION)\n public Window rename(String name)","params":[{"name":"name","type":"String"}],"returns":"Window","typeScopeBoundary":false}],"doc":{"summary":"Renames this window and returns its replacement capture.","body":"Retain the result to read the changed name. This handle keeps its original captured state.\n\nA {@code :} or {@code .} is kept as written on every supported release but 3.7, which\nrefuses the name. A kept delimiter cannot then address the window, since a target splits on\nboth. Unlike a session name, a window name is never rewritten."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":222,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.rename","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.rename","product":"core","slug":"io-github-libtmux-window-window-rename"},{"id":"io.github.libtmux.Window.Window.linkTo","name":"linkTo","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void linkTo(Session session)","params":[{"name":"session","type":"Session"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Links this window into another session, so one window sits in both."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":230,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.linkTo","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.linkTo","product":"core","slug":"io-github-libtmux-window-window-linkto"},{"id":"io.github.libtmux.Window.Window.unlink","name":"unlink","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void unlink()","params":[],"returns":"void","typeScopeBoundary":false,"raises":[{"type":"LibTmuxException","doc":"if this is the window's only link, which tmux refuses to remove"}]}],"doc":{"summary":"Removes this link, leaving the window wherever else it is linked."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":244,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.unlink","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.unlink","product":"core","slug":"io-github-libtmux-window-window-unlink"},{"id":"io.github.libtmux.Window.Window.moveTo","name":"moveTo","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void moveTo(Session session)","params":[{"name":"session","type":"Session"}],"returns":"void","typeScopeBoundary":false},{"raw":"@Operation(Kind.MUTATION)\n public void moveTo(Session session, int index)","params":[{"name":"session","type":"Session"},{"name":"index","type":"int"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Moves this window into another session."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":250,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.moveTo","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.moveTo","product":"core","slug":"io-github-libtmux-window-window-moveto"},{"id":"io.github.libtmux.Window.Window.resizeTo","name":"resizeTo","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void resizeTo(Dimensions size)","params":[{"name":"size","type":"Dimensions"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Resizes this window in terminal cells."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":275,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.resizeTo","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.resizeTo","product":"core","slug":"io-github-libtmux-window-window-resizeto"},{"id":"io.github.libtmux.Window.Window.synchronizePanes","name":"synchronizePanes","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void synchronizePanes()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Copies input to one pane into every pane in this window, until {@link #stopSynchronizingPanes}.","body":"A verb pair rather than a boolean parameter, so a call site says which it means — as\n{@link Pane#pipeTo} and {@link Pane#stopPiping} already do for the other state a window\ncarries."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":297,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.synchronizePanes","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.synchronizePanes","product":"core","slug":"io-github-libtmux-window-window-synchronizepanes"},{"id":"io.github.libtmux.Window.Window.stopSynchronizingPanes","name":"stopSynchronizingPanes","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void stopSynchronizingPanes()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Stops copying input between this window's panes."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":303,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.stopSynchronizingPanes","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.stopSynchronizingPanes","product":"core","slug":"io-github-libtmux-window-window-stopsynchronizingpanes"},{"id":"io.github.libtmux.Window.Window.rotate","name":"rotate","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void rotate()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Rotates the panes within this window."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":309,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.rotate","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.rotate","product":"core","slug":"io-github-libtmux-window-window-rotate"},{"id":"io.github.libtmux.Window.Window.selectLayout","name":"selectLayout","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void selectLayout(Layout layout)","params":[{"name":"layout","type":"Layout"}],"returns":"void","typeScopeBoundary":false,"raises":[{"type":"UnsupportedFeatureException","doc":"if the layout arrived after the release this server runs"}]}],"doc":{"summary":"Rearranges this window's panes into one of tmux's built-in layouts."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":319,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.selectLayout","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.selectLayout","product":"core","slug":"io-github-libtmux-window-window-selectlayout"},{"id":"io.github.libtmux.Window.Window.nextLayout","name":"nextLayout","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void nextLayout()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Moves to the next built-in layout, as tmux's own binding does."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":327,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.nextLayout","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.nextLayout","product":"core","slug":"io-github-libtmux-window-window-nextlayout"},{"id":"io.github.libtmux.Window.Window.previousLayout","name":"previousLayout","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void previousLayout()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Moves to the previous built-in layout, as tmux's own binding does."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":333,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.previousLayout","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.previousLayout","product":"core","slug":"io-github-libtmux-window-window-previouslayout"},{"id":"io.github.libtmux.Window.Window.applyLayout","name":"applyLayout","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void applyLayout(WindowLayout layout)","params":[{"name":"layout","type":"WindowLayout"}],"returns":"void","typeScopeBoundary":false,"raises":[{"type":"IllegalArgumentException","doc":"if the string is not a layout tmux wrote"},{"type":"UnsupportedFeatureException","doc":"if it is JSON-shaped but this server predates JSON layouts"}]},{"raw":"@Operation(Kind.MUTATION)\n public void applyLayout(String layout)","params":[{"name":"layout","type":"String"}],"returns":"void","typeScopeBoundary":false,"raises":[{"type":"IllegalArgumentException","doc":"if the string is not a layout tmux wrote"},{"type":"UnsupportedFeatureException","doc":"if it is JSON-shaped but this server predates JSON layouts"}]}],"doc":{"summary":"Restores an exact arrangement previously read from {@link #layout()}.","body":"The string is checked here rather than by tmux, because tmux 3.3a does not survive being\nhanded one it cannot parse: it ends the server and every session on the socket. Every other\nsupported release answers {@code invalid layout}. The classic form carries tmux's own\nchecksum, so a wrong one is detectable without asking; since 3.8 tmux may instead hand back\nJSON, which carries no checksum, so that shape is only trusted from a server new enough to\nhave written it.\n\n\"Exact\" holds in full only for a JSON layout, since that is the one form carrying each\npane's id. A classic string — every release before 3.8, or an older reader against a newer\nserver — restores the geometry but names no pane, so which process lands in which cell can\ndiffer from where it started; whether it does depends on whether the pane list still happens\nto match the order the layout was saved in. Confirmed by hand on 3.2a and 3.7c."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":358,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.applyLayout","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.applyLayout","product":"core","slug":"io-github-libtmux-window-window-applylayout"},{"id":"io.github.libtmux.Window.Window.respawn","name":"respawn","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void respawn()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Kills what is running in this window and starts it again."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":380,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.respawn","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.respawn","product":"core","slug":"io-github-libtmux-window-window-respawn"},{"id":"io.github.libtmux.Window.Window.displayPopup","name":"displayPopup","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void displayPopup(String shellCommand)","params":[{"name":"shellCommand","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Shows a popup over this window, running a command in it.","body":"tmux draws a popup for a client, so this needs one attached; on a detached session tmux\nreports that it has no current client.\n\ntmux expands {@code #(...)} in this command before a shell sees it, and shell quoting does\nnot prevent that. Pass any interpolated value through {@link TmuxFormats#literal} unless you\nmean it to be expanded."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":395,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.displayPopup","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.displayPopup","product":"core","slug":"io-github-libtmux-window-window-displaypopup"},{"id":"io.github.libtmux.Window.Window.kill","name":"kill","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Operation(Kind.MUTATION)\n public void kill()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Closes this window."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":401,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.kill","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.kill","product":"core","slug":"io-github-libtmux-window-window-kill"},{"id":"io.github.libtmux.Window.Window.refresh","name":"refresh","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@CheckReturnValue\n @Operation(Kind.READ)\n public Window refresh()","params":[],"returns":"Window","typeScopeBoundary":false,"raises":[{"type":"TargetGoneException","doc":"if this window is no longer linked here, from a server that still answers"},{"type":"ServerUnavailableException","doc":"if no daemon is running"}]}],"doc":{"summary":"Takes a new capture and returns this winlink as it is now."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":413,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.refresh","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.refresh","product":"core","slug":"io-github-libtmux-window-window-refresh"},{"id":"io.github.libtmux.Window.Window.equals","name":"equals","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Override\n public boolean equals(Object other)","params":[{"name":"other","type":"Object"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":432,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.equals","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.equals","product":"core","slug":"io-github-libtmux-window-window-equals"},{"id":"io.github.libtmux.Window.Window.hashCode","name":"hashCode","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Override\n public int hashCode()","params":[],"returns":"int","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":439,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.hashCode","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.hashCode","product":"core","slug":"io-github-libtmux-window-window-hashcode"},{"id":"io.github.libtmux.Window.Window.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.Window.Window","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/Window.java","line":444,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window.Window.toString","product":"core","slug":"io-github-libtmux-window-window-tostring"},{"id":"io.github.libtmux.WindowId.WindowId","name":"WindowId","kind":"class","modifiers":[],"signatures":[{"raw":"public record WindowId(String value)","params":[{"name":"value","type":"String","doc":"the id including its {@code @} sigil"}]}],"typeScopeBoundary":false,"doc":{"summary":"A tmux window id, such as {@code @1}.","body":"Identifies the window itself, not where it sits. A window linked into two sessions has one id\nand two positions, so this is what to compare when asking whether two links are the same window."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowId.java","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowId","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowId.WindowId","product":"core","slug":"io-github-libtmux-windowid-windowid"},{"id":"io.github.libtmux.WindowId.WindowId.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowId.WindowId","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowId.java","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowId.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowId.WindowId.toString","product":"core","slug":"io-github-libtmux-windowid-windowid-tostring"},{"id":"io.github.libtmux.WindowId.WindowId.value","name":"value","kind":"method","parent":"io.github.libtmux.WindowId.WindowId","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"the id including its {@code @} sigil"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowId.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowId.value","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowId.WindowId.value","product":"core","slug":"io-github-libtmux-windowid-windowid-value"},{"id":"io.github.libtmux.WindowIndex.WindowIndex","name":"WindowIndex","kind":"class","modifiers":[],"signatures":[{"raw":"public record WindowIndex(int value)","params":[{"name":"value","type":"int","doc":"the index, as tmux reports it"}]}],"typeScopeBoundary":false,"doc":{"summary":"Where a window sits in one session.","body":"A position, not an identity: tmux renumbering moves a window to a different index, and the\nsame window linked into two sessions can hold a different index in each."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowIndex.java","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowIndex","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowIndex.WindowIndex","product":"core","slug":"io-github-libtmux-windowindex-windowindex"},{"id":"io.github.libtmux.WindowIndex.WindowIndex.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowIndex.WindowIndex","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowIndex.java","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowIndex.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowIndex.WindowIndex.toString","product":"core","slug":"io-github-libtmux-windowindex-windowindex-tostring"},{"id":"io.github.libtmux.WindowIndex.WindowIndex.value","name":"value","kind":"method","parent":"io.github.libtmux.WindowIndex.WindowIndex","modifiers":[],"signatures":[{"params":[],"returns":"int"}],"doc":{"summary":"the index, as tmux reports it"},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowIndex.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowIndex.value","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowIndex.WindowIndex.value","product":"core","slug":"io-github-libtmux-windowindex-windowindex-value"},{"id":"io.github.libtmux.WindowLayout.WindowLayout","name":"WindowLayout","kind":"interface","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"A window's layout as tmux reported it, in whichever of its two forms it used.","body":"tmux writes a layout in its classic checksummed form — {@code c3a4,80x24,0,0,1} — on every\nrelease before 3.8, and as JSON from 3.8, which also names the pane in each cell. The same window\ntherefore reports a differently shaped string depending on the server, and a caller that parses it\nneeds to know which it has. This says, so the compiler can carry what used to be a comment:\n\nEither form is an opaque token to hand back to tmux, which {@link Window#applyLayout(WindowLayout)}\ndoes; parsing one is tmux's job, and {@link #value()} is the text for a caller who wants to anyway.","examples":[{"lang":"java","code":"switch (window.layout()) {\n case WindowLayout.Json json -> restorePanes(json.value());\n case WindowLayout.Classic classic -> restoreGeometry(classic.value());\n}"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowLayout.java","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowLayout","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowLayout.WindowLayout","product":"core","slug":"io-github-libtmux-windowlayout-windowlayout"},{"id":"io.github.libtmux.WindowLayout.WindowLayout.value","name":"value","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowLayout.WindowLayout","signatures":[{"raw":"String value();","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The layout exactly as tmux reported it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowLayout.java","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowLayout.value","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowLayout.WindowLayout.value","product":"core","slug":"io-github-libtmux-windowlayout-windowlayout-value"},{"id":"io.github.libtmux.WindowLayout.WindowLayout.Classic","name":"Classic","kind":"class","modifiers":[],"parent":"io.github.libtmux.WindowLayout.WindowLayout","signatures":[{"raw":"record Classic(String value) implements WindowLayout","params":[{"name":"value","type":"String"}]}],"typeScopeBoundary":true,"doc":{"summary":"The checksummed form every release writes before 3.8. It carries geometry and no pane ids."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowLayout.java","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowLayout.Classic","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowLayout.WindowLayout.Classic","product":"core","slug":"io-github-libtmux-windowlayout-windowlayout-classic"},{"id":"io.github.libtmux.WindowLayout.WindowLayout.Classic.value","name":"value","kind":"method","parent":"io.github.libtmux.WindowLayout.WindowLayout.Classic","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowLayout.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowLayout.Classic.value","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowLayout.WindowLayout.Classic.value","product":"core","slug":"io-github-libtmux-windowlayout-windowlayout-classic-value"},{"id":"io.github.libtmux.WindowLayout.WindowLayout.Json","name":"Json","kind":"class","modifiers":[],"parent":"io.github.libtmux.WindowLayout.WindowLayout","signatures":[{"raw":"record Json(String value) implements WindowLayout","params":[{"name":"value","type":"String"}]}],"typeScopeBoundary":true,"doc":{"summary":"The JSON form tmux writes from 3.8, which names the pane in each cell."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowLayout.java","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowLayout.Json","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowLayout.WindowLayout.Json","product":"core","slug":"io-github-libtmux-windowlayout-windowlayout-json"},{"id":"io.github.libtmux.WindowLayout.WindowLayout.Json.value","name":"value","kind":"method","parent":"io.github.libtmux.WindowLayout.WindowLayout.Json","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowLayout.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowLayout.Json.value","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowLayout.WindowLayout.Json.value","product":"core","slug":"io-github-libtmux-windowlayout-windowlayout-json-value"},{"id":"io.github.libtmux.WindowLayout.WindowLayout.of","name":"of","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.WindowLayout.WindowLayout","signatures":[{"raw":"static WindowLayout of(String reported)","params":[{"name":"reported","type":"String"}],"returns":"WindowLayout","typeScopeBoundary":true}],"doc":{"summary":"Which form a reported layout is in.","body":"Decided as tmux decides it, on whether the first non-blank character opens a JSON object —\n{@code layout_construct} in {@code layout-custom.c} dispatches on nothing more."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowLayout.java","line":50,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowLayout.of","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowLayout.WindowLayout.of","product":"core","slug":"io-github-libtmux-windowlayout-windowlayout-of"},{"id":"io.github.libtmux.WindowPlacement.WindowPlacement","name":"WindowPlacement","kind":"enum","modifiers":[],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Where a new window is inserted relative to the current one.","body":"Absent rather than a third constant when the caller does not care: tmux picking the next free\nindex is a different thing from being asked for a particular side, and a {@code DEFAULT} member\nwould have no flag to produce."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowPlacement.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowPlacement","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowPlacement.WindowPlacement","product":"core","slug":"io-github-libtmux-windowplacement-windowplacement"},{"id":"io.github.libtmux.WindowPlacement.WindowPlacement.AFTER","name":"AFTER","kind":"constant","modifiers":[],"parent":"io.github.libtmux.WindowPlacement.WindowPlacement","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowPlacement.java","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowPlacement.AFTER","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowPlacement.WindowPlacement.AFTER","product":"core","slug":"io-github-libtmux-windowplacement-windowplacement-after"},{"id":"io.github.libtmux.WindowPlacement.WindowPlacement.BEFORE","name":"BEFORE","kind":"constant","modifiers":[],"parent":"io.github.libtmux.WindowPlacement.WindowPlacement","signatures":[],"typeScopeBoundary":true,"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowPlacement.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowPlacement.BEFORE","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowPlacement.WindowPlacement.BEFORE","product":"core","slug":"io-github-libtmux-windowplacement-windowplacement-before"},{"id":"io.github.libtmux.WindowPlacement.WindowPlacement.WindowPlacement","name":"WindowPlacement","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowPlacement.WindowPlacement","signatures":[{"raw":"WindowPlacement(String flag)","params":[{"name":"flag","type":"String"}],"typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowPlacement.java","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowPlacement.WindowPlacement","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowPlacement.WindowPlacement.WindowPlacement","product":"core","slug":"io-github-libtmux-windowplacement-windowplacement-windowplacement"},{"id":"io.github.libtmux.WindowPlacement.WindowPlacement.flag","name":"flag","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowPlacement.WindowPlacement","signatures":[{"raw":"String flag()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The tmux flag that places a window this way."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowPlacement.java","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowPlacement.flag","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowPlacement.WindowPlacement.flag","product":"core","slug":"io-github-libtmux-windowplacement-windowplacement-flag"},{"id":"io.github.libtmux.WindowSpec.WindowSpec","name":"WindowSpec","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"How a window should be made.","body":"The shape {@link SplitSpec} uses, for the same reasons: a description that contacts nothing, so\nit can be named, reused, and applied wherever it fits.","examples":[{"lang":"java","code":"Window logs = session.newWindow(w -> w.named(\"logs\").running(\"journalctl\", \"-f\"));"}]},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec","product":"core","slug":"io-github-libtmux-windowspec-windowspec"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.builder","name":"builder","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.WindowSpec.WindowSpec","signatures":[{"raw":"public static Builder builder()","params":[],"returns":"Builder","typeScopeBoundary":true}],"doc":{"summary":"A builder holding tmux's own defaults: a detached window at the end, running a shell."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":49,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.builder","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.builder","product":"core","slug":"io-github-libtmux-windowspec-windowspec-builder-1sop"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.name","name":"name","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec","signatures":[{"raw":"public Optional name()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The name the window is created with, or empty to let tmux choose."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":54,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.name","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.name","product":"core","slug":"io-github-libtmux-windowspec-windowspec-name"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.directory","name":"directory","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec","signatures":[{"raw":"public Optional directory()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"Where the window's first pane starts, or empty to inherit."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":59,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.directory","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.directory","product":"core","slug":"io-github-libtmux-windowspec-windowspec-directory"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.environment","name":"environment","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec","signatures":[{"raw":"@ReadOnly\n public Map environment()","params":[],"returns":"Map","typeScopeBoundary":false}],"doc":{"summary":"Variables set for the new window, in the order they were given."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":64,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.environment","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.environment","product":"core","slug":"io-github-libtmux-windowspec-windowspec-environment"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.detached","name":"detached","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec","signatures":[{"raw":"public boolean detached()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether the window is left unselected.","body":"False by default, which is what {@code new-window} itself does."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":74,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.detached","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.detached","product":"core","slug":"io-github-libtmux-windowspec-windowspec-detached"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.placement","name":"placement","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec","signatures":[{"raw":"public Optional placement()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"Where the window is inserted, or empty for tmux's own choice of index."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":79,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.placement","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.placement","product":"core","slug":"io-github-libtmux-windowspec-windowspec-placement"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.index","name":"index","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec","signatures":[{"raw":"public Optional index()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"The index the window is created at, or empty for the next one tmux has free."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":84,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.index","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.index","product":"core","slug":"io-github-libtmux-windowspec-windowspec-index"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.replaceExisting","name":"replaceExisting","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec","signatures":[{"raw":"public boolean replaceExisting()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether a window already at the target index is destroyed to make room.","body":"Only means anything alongside {@link Builder#atIndex}: tmux has nothing to replace when it\nis choosing the index itself."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":94,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.replaceExisting","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.replaceExisting","product":"core","slug":"io-github-libtmux-windowspec-windowspec-replaceexisting"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.reuseExisting","name":"reuseExisting","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec","signatures":[{"raw":"public boolean reuseExisting()","params":[],"returns":"boolean","typeScopeBoundary":false}],"doc":{"summary":"Whether a window that already carries this name is selected instead of a second being made."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":99,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.reuseExisting","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.reuseExisting","product":"core","slug":"io-github-libtmux-windowspec-windowspec-reuseexisting"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.command","name":"command","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec","signatures":[{"raw":"@ReadOnly\n public List command()","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"What the window's first pane runs, empty for the session's shell."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":104,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.command","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.command","product":"core","slug":"io-github-libtmux-windowspec-windowspec-command"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.argv","name":"argv","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec","signatures":[{"raw":"List argv(String target, String format)","params":[{"name":"target","type":"String","doc":"the session, or the index, to create in"},{"name":"format","type":"String","doc":"the row format the caller will read the result back with"}],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"The command that makes this window, reporting it through {@code format}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":115,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.argv","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.argv","product":"core","slug":"io-github-libtmux-windowspec-windowspec-argv"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.toString","name":"toString","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec","signatures":[{"raw":"@Override\n public String toString()","params":[],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":157,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.toString","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.toString","product":"core","slug":"io-github-libtmux-windowspec-windowspec-tostring"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.Builder","name":"Builder","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.WindowSpec.WindowSpec","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"Collects the choices, each named for what it does rather than for the field it sets."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":163,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.Builder","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.Builder","product":"core","slug":"io-github-libtmux-windowspec-windowspec-builder-1f6n"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.Builder.named","name":"named","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec.Builder","signatures":[{"raw":"public Builder named(String name)","params":[{"name":"name","type":"String"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Names the window, where tmux would otherwise name it after what runs in it."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":178,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.Builder.named","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.Builder.named","product":"core","slug":"io-github-libtmux-windowspec-windowspec-builder-named"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.Builder.after","name":"after","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec.Builder","signatures":[{"raw":"public Builder after()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Puts the window immediately after the current one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":184,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.Builder.after","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.Builder.after","product":"core","slug":"io-github-libtmux-windowspec-windowspec-builder-after"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.Builder.before","name":"before","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec.Builder","signatures":[{"raw":"public Builder before()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Puts the window immediately before the current one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":190,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.Builder.before","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.Builder.before","product":"core","slug":"io-github-libtmux-windowspec-windowspec-builder-before"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.Builder.running","name":"running","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec.Builder","signatures":[{"raw":"public Builder running(String... argv)","params":[{"name":"argv","type":"String","variadic":"positional"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Runs a command instead of the session's shell. tmux reports the window before the command has started, so wait for its pane's command with {@link Pane#await(java.util.function.Predicate, java.time.Duration)} rather than reading it at once."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":199,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.Builder.running","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.Builder.running","product":"core","slug":"io-github-libtmux-windowspec-windowspec-builder-running"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.Builder.in","name":"in","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec.Builder","signatures":[{"raw":"public Builder in(Path directory)","params":[{"name":"directory","type":"Path"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Starts the window in this directory. A relative one resolves against this process's working directory, on every release: tmux 3.2a would resolve it against the server's."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":212,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.Builder.in","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.Builder.in","product":"core","slug":"io-github-libtmux-windowspec-windowspec-builder-in"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.Builder.env","name":"env","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec.Builder","signatures":[{"raw":"public Builder env(String name, String value)","params":[{"name":"name","type":"String"},{"name":"value","type":"String"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Sets one variable in the new window's environment."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":218,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.Builder.env","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.Builder.env","product":"core","slug":"io-github-libtmux-windowspec-windowspec-builder-env"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.Builder.environment","name":"environment","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec.Builder","signatures":[{"raw":"public Builder environment(Map variables)","params":[{"name":"variables","type":"Map"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Adds several variables to the new window's environment, keeping any already set."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":224,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.Builder.environment","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.Builder.environment","product":"core","slug":"io-github-libtmux-windowspec-windowspec-builder-environment"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.Builder.detached","name":"detached","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec.Builder","signatures":[{"raw":"public Builder detached()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Leaves the current window selected, where tmux would move to the new one."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":230,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.Builder.detached","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.Builder.detached","product":"core","slug":"io-github-libtmux-windowspec-windowspec-builder-detached"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.Builder.atIndex","name":"atIndex","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec.Builder","signatures":[{"raw":"public Builder atIndex(int index)","params":[{"name":"index","type":"int"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Creates the window at a chosen index rather than the next one tmux has free."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":236,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.Builder.atIndex","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.Builder.atIndex","product":"core","slug":"io-github-libtmux-windowspec-windowspec-builder-atindex"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.Builder.replaceExisting","name":"replaceExisting","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec.Builder","signatures":[{"raw":"public Builder replaceExisting()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Destroys whatever window already sits at the index chosen by {@link #atIndex}."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":245,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.Builder.replaceExisting","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.Builder.replaceExisting","product":"core","slug":"io-github-libtmux-windowspec-windowspec-builder-replaceexisting"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.Builder.reuseExisting","name":"reuseExisting","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec.Builder","signatures":[{"raw":"public Builder reuseExisting()","params":[],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Selects a window that already carries this name rather than making a second.","body":"tmux reports nothing when it reuses one, so the answer comes from a lookup. Every other\ncreating call in this library is told what it made; this is the exception."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":256,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.Builder.reuseExisting","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.Builder.reuseExisting","product":"core","slug":"io-github-libtmux-windowspec-windowspec-builder-reuseexisting"},{"id":"io.github.libtmux.WindowSpec.WindowSpec.Builder.build","name":"build","kind":"method","modifiers":[],"parent":"io.github.libtmux.WindowSpec.WindowSpec.Builder","signatures":[{"raw":"public WindowSpec build()","params":[],"returns":"WindowSpec","typeScopeBoundary":false}],"doc":{"summary":"The finished spec."},"source":{"file":"libtmux/src/main/java/io/github/libtmux/WindowSpec.java","line":262,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.WindowSpec.Builder.build","namespace":"io.github.libtmux","publicId":"io.github.libtmux.WindowSpec.WindowSpec.Builder.build","product":"core","slug":"io-github-libtmux-windowspec-windowspec-builder-build"},{"id":"io.github.libtmux.Client_.Client_","name":"Client_","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Typed fields of {@link Client}."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Client_.java","line":8,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client_","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client_.Client_","product":"core","slug":"io-github-libtmux-client_-client_"},{"id":"io.github.libtmux.Client_.Client_.name","name":"name","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Client_.Client_","signatures":[{"raw":"public static Fields.TextField name()","params":[],"returns":"Fields.TextField","typeScopeBoundary":true}],"doc":{"summary":"The client's terminal name, which is how tmux addresses it."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Client_.java","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client_.name","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client_.Client_.name","product":"core","slug":"io-github-libtmux-client_-client_-name"},{"id":"io.github.libtmux.Client_.Client_.session","name":"session","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Client_.Client_","signatures":[{"raw":"public static Fields.ToOneRef session()","params":[],"returns":"Fields.ToOneRef","typeScopeBoundary":true}],"doc":{"summary":"The session this client was attached to, if any."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Client_.java","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Client_.session","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Client_.Client_.session","product":"core","slug":"io-github-libtmux-client_-client_-session"},{"id":"io.github.libtmux.Pane_.Pane_","name":"Pane_","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Typed fields of {@link Pane}."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Pane_.java","line":8,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane_","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane_.Pane_","product":"core","slug":"io-github-libtmux-pane_-pane_"},{"id":"io.github.libtmux.Pane_.Pane_.id","name":"id","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Pane_.Pane_","signatures":[{"raw":"public static Fields.TextField id()","params":[],"returns":"Fields.TextField","typeScopeBoundary":true}],"doc":{"summary":"The pane id."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Pane_.java","line":43,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane_.id","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane_.Pane_.id","product":"core","slug":"io-github-libtmux-pane_-pane_-id"},{"id":"io.github.libtmux.Pane_.Pane_.command","name":"command","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Pane_.Pane_","signatures":[{"raw":"public static Fields.TextField command()","params":[],"returns":"Fields.TextField","typeScopeBoundary":true}],"doc":{"summary":"The command tmux reported running in the pane."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Pane_.java","line":50,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane_.command","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane_.Pane_.command","product":"core","slug":"io-github-libtmux-pane_-pane_-command"},{"id":"io.github.libtmux.Pane_.Pane_.index","name":"index","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Pane_.Pane_","signatures":[{"raw":"public static Fields.NumberField index()","params":[],"returns":"Fields.NumberField","typeScopeBoundary":true}],"doc":{"summary":"The pane's position in its window."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Pane_.java","line":57,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane_.index","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane_.Pane_.index","product":"core","slug":"io-github-libtmux-pane_-pane_-index"},{"id":"io.github.libtmux.Pane_.Pane_.active","name":"active","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Pane_.Pane_","signatures":[{"raw":"public static Fields.FlagField active()","params":[],"returns":"Fields.FlagField","typeScopeBoundary":true}],"doc":{"summary":"Whether this was its window's active pane."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Pane_.java","line":64,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane_.active","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane_.Pane_.active","product":"core","slug":"io-github-libtmux-pane_-pane_-active"},{"id":"io.github.libtmux.Pane_.Pane_.title","name":"title","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Pane_.Pane_","signatures":[{"raw":"public static Fields.TextField title()","params":[],"returns":"Fields.TextField","typeScopeBoundary":true}],"doc":{"summary":"The pane's title, which a program running in it can set."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Pane_.java","line":71,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane_.title","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane_.Pane_.title","product":"core","slug":"io-github-libtmux-pane_-pane_-title"},{"id":"io.github.libtmux.Pane_.Pane_.path","name":"path","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Pane_.Pane_","signatures":[{"raw":"public static Fields.TextField path()","params":[],"returns":"Fields.TextField","typeScopeBoundary":true}],"doc":{"summary":"The pane's working directory, as the text tmux reported."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Pane_.java","line":78,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane_.path","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane_.Pane_.path","product":"core","slug":"io-github-libtmux-pane_-pane_-path"},{"id":"io.github.libtmux.Pane_.Pane_.width","name":"width","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Pane_.Pane_","signatures":[{"raw":"public static Fields.NumberField width()","params":[],"returns":"Fields.NumberField","typeScopeBoundary":true}],"doc":{"summary":"The pane's width, in cells."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Pane_.java","line":85,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane_.width","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane_.Pane_.width","product":"core","slug":"io-github-libtmux-pane_-pane_-width"},{"id":"io.github.libtmux.Pane_.Pane_.height","name":"height","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Pane_.Pane_","signatures":[{"raw":"public static Fields.NumberField height()","params":[],"returns":"Fields.NumberField","typeScopeBoundary":true}],"doc":{"summary":"The pane's height, in cells."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Pane_.java","line":92,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane_.height","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane_.Pane_.height","product":"core","slug":"io-github-libtmux-pane_-pane_-height"},{"id":"io.github.libtmux.Pane_.Pane_.left","name":"left","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Pane_.Pane_","signatures":[{"raw":"public static Fields.NumberField left()","params":[],"returns":"Fields.NumberField","typeScopeBoundary":true}],"doc":{"summary":"The column of the pane's left edge in its window."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Pane_.java","line":99,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane_.left","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane_.Pane_.left","product":"core","slug":"io-github-libtmux-pane_-pane_-left"},{"id":"io.github.libtmux.Pane_.Pane_.top","name":"top","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Pane_.Pane_","signatures":[{"raw":"public static Fields.NumberField top()","params":[],"returns":"Fields.NumberField","typeScopeBoundary":true}],"doc":{"summary":"The row of the pane's top edge in its window."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Pane_.java","line":106,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane_.top","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane_.Pane_.top","product":"core","slug":"io-github-libtmux-pane_-pane_-top"},{"id":"io.github.libtmux.Pane_.Pane_.atTop","name":"atTop","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Pane_.Pane_","signatures":[{"raw":"public static Fields.FlagField atTop()","params":[],"returns":"Fields.FlagField","typeScopeBoundary":true}],"doc":{"summary":"Whether the pane touches the top of its window."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Pane_.java","line":113,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane_.atTop","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane_.Pane_.atTop","product":"core","slug":"io-github-libtmux-pane_-pane_-attop"},{"id":"io.github.libtmux.Pane_.Pane_.atBottom","name":"atBottom","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Pane_.Pane_","signatures":[{"raw":"public static Fields.FlagField atBottom()","params":[],"returns":"Fields.FlagField","typeScopeBoundary":true}],"doc":{"summary":"Whether the pane touches the bottom of its window."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Pane_.java","line":120,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane_.atBottom","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane_.Pane_.atBottom","product":"core","slug":"io-github-libtmux-pane_-pane_-atbottom"},{"id":"io.github.libtmux.Pane_.Pane_.atLeft","name":"atLeft","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Pane_.Pane_","signatures":[{"raw":"public static Fields.FlagField atLeft()","params":[],"returns":"Fields.FlagField","typeScopeBoundary":true}],"doc":{"summary":"Whether the pane touches the left of its window."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Pane_.java","line":127,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane_.atLeft","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane_.Pane_.atLeft","product":"core","slug":"io-github-libtmux-pane_-pane_-atleft"},{"id":"io.github.libtmux.Pane_.Pane_.atRight","name":"atRight","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Pane_.Pane_","signatures":[{"raw":"public static Fields.FlagField atRight()","params":[],"returns":"Fields.FlagField","typeScopeBoundary":true}],"doc":{"summary":"Whether the pane touches the right of its window."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Pane_.java","line":134,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Pane_.atRight","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Pane_.Pane_.atRight","product":"core","slug":"io-github-libtmux-pane_-pane_-atright"},{"id":"io.github.libtmux.Session_.Session_","name":"Session_","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Typed fields of {@link Session}, for building an expression that can be read as well as run.","body":"Each field exposes only the operators its type supports, so asking a flag to start with a\nstring does not compile. Every field names a tmux format, so a backend model can bind the handle\nbefore translating the expression into tmux's own {@code -f} filter."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Session_.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session_","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session_.Session_","product":"core","slug":"io-github-libtmux-session_-session_"},{"id":"io.github.libtmux.Session_.Session_.id","name":"id","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Session_.Session_","signatures":[{"raw":"public static Fields.TextField id()","params":[],"returns":"Fields.TextField","typeScopeBoundary":true}],"doc":{"summary":"The session id, as text, so it can be compared and listed."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Session_.java","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session_.id","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session_.Session_.id","product":"core","slug":"io-github-libtmux-session_-session_-id"},{"id":"io.github.libtmux.Session_.Session_.name","name":"name","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Session_.Session_","signatures":[{"raw":"public static Fields.TextField name()","params":[],"returns":"Fields.TextField","typeScopeBoundary":true}],"doc":{"summary":"The session name."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Session_.java","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session_.name","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session_.Session_.name","product":"core","slug":"io-github-libtmux-session_-session_-name"},{"id":"io.github.libtmux.Session_.Session_.attached","name":"attached","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Session_.Session_","signatures":[{"raw":"public static Fields.FlagField attached()","params":[],"returns":"Fields.FlagField","typeScopeBoundary":true}],"doc":{"summary":"Whether a client was attached when this was captured."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Session_.java","line":43,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session_.attached","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session_.Session_.attached","product":"core","slug":"io-github-libtmux-session_-session_-attached"},{"id":"io.github.libtmux.Session_.Session_.windowCount","name":"windowCount","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Session_.Session_","signatures":[{"raw":"public static Fields.NumberField windowCount()","params":[],"returns":"Fields.NumberField","typeScopeBoundary":true}],"doc":{"summary":"How many windows this session holds."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Session_.java","line":50,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session_.windowCount","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session_.Session_.windowCount","product":"core","slug":"io-github-libtmux-session_-session_-windowcount"},{"id":"io.github.libtmux.Session_.Session_.windows","name":"windows","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Session_.Session_","signatures":[{"raw":"public static Fields.ToManyRef windows()","params":[],"returns":"Fields.ToManyRef","typeScopeBoundary":true}],"doc":{"summary":"This session's windows."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Session_.java","line":57,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Session_.windows","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Session_.Session_.windows","product":"core","slug":"io-github-libtmux-session_-session_-windows"},{"id":"io.github.libtmux.Window_.Window_","name":"Window_","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Typed fields of {@link Window}."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Window_.java","line":8,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window_","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window_.Window_","product":"core","slug":"io-github-libtmux-window_-window_"},{"id":"io.github.libtmux.Window_.Window_.id","name":"id","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Window_.Window_","signatures":[{"raw":"public static Fields.TextField id()","params":[],"returns":"Fields.TextField","typeScopeBoundary":true}],"doc":{"summary":"The underlying window id, shared by every link to it."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Window_.java","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window_.id","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window_.Window_.id","product":"core","slug":"io-github-libtmux-window_-window_-id"},{"id":"io.github.libtmux.Window_.Window_.name","name":"name","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Window_.Window_","signatures":[{"raw":"public static Fields.TextField name()","params":[],"returns":"Fields.TextField","typeScopeBoundary":true}],"doc":{"summary":"The window name."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Window_.java","line":42,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window_.name","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window_.Window_.name","product":"core","slug":"io-github-libtmux-window_-window_-name"},{"id":"io.github.libtmux.Window_.Window_.index","name":"index","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Window_.Window_","signatures":[{"raw":"public static Fields.NumberField index()","params":[],"returns":"Fields.NumberField","typeScopeBoundary":true}],"doc":{"summary":"Where this link sits in its session."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Window_.java","line":49,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window_.index","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window_.Window_.index","product":"core","slug":"io-github-libtmux-window_-window_-index"},{"id":"io.github.libtmux.Window_.Window_.active","name":"active","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Window_.Window_","signatures":[{"raw":"public static Fields.FlagField active()","params":[],"returns":"Fields.FlagField","typeScopeBoundary":true}],"doc":{"summary":"Whether this was its session's active window."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Window_.java","line":56,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window_.active","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window_.Window_.active","product":"core","slug":"io-github-libtmux-window_-window_-active"},{"id":"io.github.libtmux.Window_.Window_.linked","name":"linked","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Window_.Window_","signatures":[{"raw":"public static Fields.FlagField linked()","params":[],"returns":"Fields.FlagField","typeScopeBoundary":true}],"doc":{"summary":"Whether the underlying window is linked into more than one session."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Window_.java","line":63,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window_.linked","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window_.Window_.linked","product":"core","slug":"io-github-libtmux-window_-window_-linked"},{"id":"io.github.libtmux.Window_.Window_.width","name":"width","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Window_.Window_","signatures":[{"raw":"public static Fields.NumberField width()","params":[],"returns":"Fields.NumberField","typeScopeBoundary":true}],"doc":{"summary":"The window's width, in cells."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Window_.java","line":70,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window_.width","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window_.Window_.width","product":"core","slug":"io-github-libtmux-window_-window_-width"},{"id":"io.github.libtmux.Window_.Window_.height","name":"height","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Window_.Window_","signatures":[{"raw":"public static Fields.NumberField height()","params":[],"returns":"Fields.NumberField","typeScopeBoundary":true}],"doc":{"summary":"The window's height, in cells."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Window_.java","line":77,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window_.height","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window_.Window_.height","product":"core","slug":"io-github-libtmux-window_-window_-height"},{"id":"io.github.libtmux.Window_.Window_.paneCount","name":"paneCount","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Window_.Window_","signatures":[{"raw":"public static Fields.NumberField paneCount()","params":[],"returns":"Fields.NumberField","typeScopeBoundary":true}],"doc":{"summary":"How many panes this link holds."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Window_.java","line":84,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window_.paneCount","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window_.Window_.paneCount","product":"core","slug":"io-github-libtmux-window_-window_-panecount"},{"id":"io.github.libtmux.Window_.Window_.panes","name":"panes","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Window_.Window_","signatures":[{"raw":"public static Fields.ToManyRef panes()","params":[],"returns":"Fields.ToManyRef","typeScopeBoundary":true}],"doc":{"summary":"This link's panes."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Window_.java","line":91,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window_.panes","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window_.Window_.panes","product":"core","slug":"io-github-libtmux-window_-window_-panes"},{"id":"io.github.libtmux.Window_.Window_.session","name":"session","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.Window_.Window_","signatures":[{"raw":"public static Fields.ToOneRef session()","params":[],"returns":"Fields.ToOneRef","typeScopeBoundary":true}],"doc":{"summary":"The session this link belongs to."},"source":{"file":"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Window_.java","line":98,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.Window_.session","namespace":"io.github.libtmux","publicId":"io.github.libtmux.Window_.Window_.session","product":"core","slug":"io-github-libtmux-window_-window_-session"},{"id":"io.github.libtmux.workspace.PaneSpec.PaneSpec","name":"PaneSpec","kind":"class","modifiers":[],"signatures":[{"raw":"public record PaneSpec(List commands)","params":[{"name":"commands","type":"List","doc":"the commands to send, in order; a pane with none is left at its shell"}]}],"typeScopeBoundary":false,"doc":{"summary":"One pane and what to run in it."},"source":{"file":"libtmux-workspace/src/main/java/io/github/libtmux/workspace/PaneSpec.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.workspace.PaneSpec","namespace":"io.github.libtmux.workspace","publicId":"io.github.libtmux.workspace.PaneSpec.PaneSpec","product":"workspace","apiScope":"exported","slug":"io-github-libtmux-workspace-panespec-panespec"},{"id":"io.github.libtmux.workspace.PaneSpec.PaneSpec.commands","name":"commands","kind":"method","parent":"io.github.libtmux.workspace.PaneSpec.PaneSpec","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"doc":{"summary":"the commands to send, in order; a pane with none is left at its shell"},"source":{"file":"libtmux-workspace/src/main/java/io/github/libtmux/workspace/PaneSpec.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.workspace.PaneSpec.commands","namespace":"io.github.libtmux.workspace","publicId":"io.github.libtmux.workspace.PaneSpec.PaneSpec.commands","product":"workspace","apiScope":"exported","slug":"io-github-libtmux-workspace-panespec-panespec-commands"},{"id":"io.github.libtmux.workspace.WindowSpec.WindowSpec","name":"WindowSpec","kind":"class","modifiers":[],"signatures":[{"raw":"public record WindowSpec(String name, Optional layout, List panes)","params":[{"name":"name","type":"String","doc":"the window name"},{"name":"layout","type":"Optional","doc":"the tmux layout to apply once the panes exist, if the file asked for one"},{"name":"panes","type":"List","doc":"the panes to create, in order; a window always has at least one"}]}],"typeScopeBoundary":false,"doc":{"summary":"One window, its panes, and how they are arranged."},"source":{"file":"libtmux-workspace/src/main/java/io/github/libtmux/workspace/WindowSpec.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.workspace.WindowSpec","namespace":"io.github.libtmux.workspace","publicId":"io.github.libtmux.workspace.WindowSpec.WindowSpec","product":"workspace","apiScope":"exported","slug":"io-github-libtmux-workspace-windowspec-windowspec"},{"id":"io.github.libtmux.workspace.WindowSpec.WindowSpec.name","name":"name","kind":"method","parent":"io.github.libtmux.workspace.WindowSpec.WindowSpec","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"the window name"},"source":{"file":"libtmux-workspace/src/main/java/io/github/libtmux/workspace/WindowSpec.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.workspace.WindowSpec.name","namespace":"io.github.libtmux.workspace","publicId":"io.github.libtmux.workspace.WindowSpec.WindowSpec.name","product":"workspace","apiScope":"exported","slug":"io-github-libtmux-workspace-windowspec-windowspec-name"},{"id":"io.github.libtmux.workspace.WindowSpec.WindowSpec.layout","name":"layout","kind":"method","parent":"io.github.libtmux.workspace.WindowSpec.WindowSpec","modifiers":[],"signatures":[{"params":[],"returns":"Optional"}],"doc":{"summary":"the tmux layout to apply once the panes exist, if the file asked for one"},"source":{"file":"libtmux-workspace/src/main/java/io/github/libtmux/workspace/WindowSpec.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.workspace.WindowSpec.layout","namespace":"io.github.libtmux.workspace","publicId":"io.github.libtmux.workspace.WindowSpec.WindowSpec.layout","product":"workspace","apiScope":"exported","slug":"io-github-libtmux-workspace-windowspec-windowspec-layout"},{"id":"io.github.libtmux.workspace.WindowSpec.WindowSpec.panes","name":"panes","kind":"method","parent":"io.github.libtmux.workspace.WindowSpec.WindowSpec","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"doc":{"summary":"the panes to create, in order; a window always has at least one"},"source":{"file":"libtmux-workspace/src/main/java/io/github/libtmux/workspace/WindowSpec.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.workspace.WindowSpec.panes","namespace":"io.github.libtmux.workspace","publicId":"io.github.libtmux.workspace.WindowSpec.WindowSpec.panes","product":"workspace","apiScope":"exported","slug":"io-github-libtmux-workspace-windowspec-windowspec-panes"},{"id":"io.github.libtmux.workspace.Workspace.Workspace","name":"Workspace","kind":"class","modifiers":[],"signatures":[{"raw":"public record Workspace(String sessionName, List windows)","params":[{"name":"sessionName","type":"String","doc":"the session to create"},{"name":"windows","type":"List","doc":"the windows to create, in order"}]}],"typeScopeBoundary":false,"doc":{"summary":"A session described in a file, before anything has been built."},"source":{"file":"libtmux-workspace/src/main/java/io/github/libtmux/workspace/Workspace.java","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.workspace.Workspace","namespace":"io.github.libtmux.workspace","publicId":"io.github.libtmux.workspace.Workspace.Workspace","product":"workspace","apiScope":"exported","slug":"io-github-libtmux-workspace-workspace-workspace"},{"id":"io.github.libtmux.workspace.Workspace.Workspace.sessionName","name":"sessionName","kind":"method","parent":"io.github.libtmux.workspace.Workspace.Workspace","modifiers":[],"signatures":[{"params":[],"returns":"String"}],"doc":{"summary":"the session to create"},"source":{"file":"libtmux-workspace/src/main/java/io/github/libtmux/workspace/Workspace.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.workspace.Workspace.sessionName","namespace":"io.github.libtmux.workspace","publicId":"io.github.libtmux.workspace.Workspace.Workspace.sessionName","product":"workspace","apiScope":"exported","slug":"io-github-libtmux-workspace-workspace-workspace-sessionname"},{"id":"io.github.libtmux.workspace.Workspace.Workspace.windows","name":"windows","kind":"method","parent":"io.github.libtmux.workspace.Workspace.Workspace","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"doc":{"summary":"the windows to create, in order"},"source":{"file":"libtmux-workspace/src/main/java/io/github/libtmux/workspace/Workspace.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.workspace.Workspace.windows","namespace":"io.github.libtmux.workspace","publicId":"io.github.libtmux.workspace.Workspace.Workspace.windows","product":"workspace","apiScope":"exported","slug":"io-github-libtmux-workspace-workspace-workspace-windows"},{"id":"io.github.libtmux.workspace.WorkspaceApplier.WorkspaceApplier","name":"WorkspaceApplier","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Applies a validated workspace as one session and attempts to remove it after a failure."},"source":{"file":"libtmux-workspace/src/main/java/io/github/libtmux/workspace/WorkspaceApplier.java","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.workspace.WorkspaceApplier","namespace":"io.github.libtmux.workspace","publicId":"io.github.libtmux.workspace.WorkspaceApplier.WorkspaceApplier","product":"workspace","apiScope":"internal","slug":"io-github-libtmux-workspace-workspaceapplier-workspaceapplier"},{"id":"io.github.libtmux.workspace.WorkspaceApplier.WorkspaceApplier.build","name":"build","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.workspace.WorkspaceApplier.WorkspaceApplier","signatures":[{"raw":"static Session build(Server server, Workspace workspace)","params":[{"name":"server","type":"Server"},{"name":"workspace","type":"Workspace"}],"returns":"Session","typeScopeBoundary":true}],"source":{"file":"libtmux-workspace/src/main/java/io/github/libtmux/workspace/WorkspaceApplier.java","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.workspace.WorkspaceApplier.build","namespace":"io.github.libtmux.workspace","publicId":"io.github.libtmux.workspace.WorkspaceApplier.WorkspaceApplier.build","product":"workspace","apiScope":"internal","slug":"io-github-libtmux-workspace-workspaceapplier-workspaceapplier-build"},{"id":"io.github.libtmux.workspace.WorkspaceBuilder.WorkspaceBuilder","name":"WorkspaceBuilder","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Builds a tmux session from a written description.","body":"Reads the shape of a tmuxp workspace file. Full runtime compatibility with tmuxp is not the\naim; starting from a file somebody already has is.\n\nReading and building are separate. A file that describes something tmux would refuse is\nrejected while it is still text, before any session exists to leave half-built.\n\nThe {@code tmux-workspace} command is a separate implementation with a wider document\nlanguage and its own behaviour around building; see this package's documentation for what\ndiffers. Code against this class for what this class does."},"source":{"file":"libtmux-workspace/src/main/java/io/github/libtmux/workspace/WorkspaceBuilder.java","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.workspace.WorkspaceBuilder","namespace":"io.github.libtmux.workspace","publicId":"io.github.libtmux.workspace.WorkspaceBuilder.WorkspaceBuilder","product":"workspace","apiScope":"exported","slug":"io-github-libtmux-workspace-workspacebuilder-workspacebuilder"},{"id":"io.github.libtmux.workspace.WorkspaceBuilder.WorkspaceBuilder.read","name":"read","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.workspace.WorkspaceBuilder.WorkspaceBuilder","signatures":[{"raw":"public static Workspace read(Path file)","params":[{"name":"file","type":"Path"}],"returns":"Workspace","typeScopeBoundary":true}],"doc":{"summary":"Reads a workspace from a file."},"source":{"file":"libtmux-workspace/src/main/java/io/github/libtmux/workspace/WorkspaceBuilder.java","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.workspace.WorkspaceBuilder.read","namespace":"io.github.libtmux.workspace","publicId":"io.github.libtmux.workspace.WorkspaceBuilder.WorkspaceBuilder.read","product":"workspace","apiScope":"exported","slug":"io-github-libtmux-workspace-workspacebuilder-workspacebuilder-read"},{"id":"io.github.libtmux.workspace.WorkspaceBuilder.WorkspaceBuilder.parse","name":"parse","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.workspace.WorkspaceBuilder.WorkspaceBuilder","signatures":[{"raw":"public static Workspace parse(String yaml)","params":[{"name":"yaml","type":"String"}],"returns":"Workspace","typeScopeBoundary":true,"raises":[{"type":"IllegalArgumentException","doc":"if the description is one tmux could not build, including a layout name tmux would not recognise"}]}],"doc":{"summary":"Reads a workspace from YAML text."},"source":{"file":"libtmux-workspace/src/main/java/io/github/libtmux/workspace/WorkspaceBuilder.java","line":42,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.workspace.WorkspaceBuilder.parse","namespace":"io.github.libtmux.workspace","publicId":"io.github.libtmux.workspace.WorkspaceBuilder.WorkspaceBuilder.parse","product":"workspace","apiScope":"exported","slug":"io-github-libtmux-workspace-workspacebuilder-workspacebuilder-parse"},{"id":"io.github.libtmux.workspace.WorkspaceBuilder.WorkspaceBuilder.build","name":"build","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.workspace.WorkspaceBuilder.WorkspaceBuilder","signatures":[{"raw":"public static Session build(Server server, Workspace workspace)","params":[{"name":"server","type":"Server"},{"name":"workspace","type":"Workspace"}],"returns":"Session","typeScopeBoundary":true,"returnsDoc":"the session, from a capture taken once everything exists"}],"doc":{"summary":"Creates the described session on a server."},"source":{"file":"libtmux-workspace/src/main/java/io/github/libtmux/workspace/WorkspaceBuilder.java","line":51,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.workspace.WorkspaceBuilder.build","namespace":"io.github.libtmux.workspace","publicId":"io.github.libtmux.workspace.WorkspaceBuilder.WorkspaceBuilder.build","product":"workspace","apiScope":"exported","slug":"io-github-libtmux-workspace-workspacebuilder-workspacebuilder-build"},{"id":"io.github.libtmux.workspace.WorkspaceParser.WorkspaceParser","name":"WorkspaceParser","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Converts the supported YAML shape into immutable workspace values."},"source":{"file":"libtmux-workspace/src/main/java/io/github/libtmux/workspace/WorkspaceParser.java","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.workspace.WorkspaceParser","namespace":"io.github.libtmux.workspace","publicId":"io.github.libtmux.workspace.WorkspaceParser.WorkspaceParser","product":"workspace","apiScope":"internal","slug":"io-github-libtmux-workspace-workspaceparser-workspaceparser"},{"id":"io.github.libtmux.workspace.WorkspaceParser.WorkspaceParser.parse","name":"parse","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.workspace.WorkspaceParser.WorkspaceParser","signatures":[{"raw":"static Workspace parse(String yaml)","params":[{"name":"yaml","type":"String"}],"returns":"Workspace","typeScopeBoundary":true}],"source":{"file":"libtmux-workspace/src/main/java/io/github/libtmux/workspace/WorkspaceParser.java","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.workspace.WorkspaceParser.parse","namespace":"io.github.libtmux.workspace","publicId":"io.github.libtmux.workspace.WorkspaceParser.WorkspaceParser.parse","product":"workspace","apiScope":"internal","slug":"io-github-libtmux-workspace-workspaceparser-workspaceparser-parse"},{"id":"io.github.libtmux.jackson.FilterJson.FilterJson","name":"FilterJson","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The versioned wire form of a filter expression.","body":"Writing and reading both require a model. Expressions hold executable accessors and navigators,\nwhile documents carry only their ids; the model is the authority that binds one to the other.\nRegex operands retain {@link java.util.regex.Pattern} syntax and flag bits.\n\nEverything unrecognised fails. An expression read wrongly does not announce itself — it\nsilently matches the wrong things, and a caller who wanted a filter gets one, just not theirs."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterJson.java","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterJson","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterJson.FilterJson","product":"core","slug":"io-github-libtmux-jackson-filterjson-filterjson"},{"id":"io.github.libtmux.jackson.FilterJson.FilterJson.SCHEMA","name":"SCHEMA","kind":"attribute","modifiers":["static","readonly"],"parent":"io.github.libtmux.jackson.FilterJson.FilterJson","signatures":[],"typeScopeBoundary":true,"type":"String","value":"\"libtmux.filter/1\"","doc":{"summary":"The schema this version reads and writes. Immutable once published."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterJson.java","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterJson.SCHEMA","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterJson.FilterJson.SCHEMA","product":"core","slug":"io-github-libtmux-jackson-filterjson-filterjson-schema"},{"id":"io.github.libtmux.jackson.FilterJson.FilterJson.write","name":"write","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.jackson.FilterJson.FilterJson","signatures":[{"raw":"public static ObjectNode write(FilterExpr expression, FilterModel model)","params":[{"name":"expression","type":"FilterExpr"},{"name":"model","type":"FilterModel"}],"returns":"ObjectNode","typeParamNames":["T"],"typeScopeBoundary":true,"typeParams":["T"],"typeParameters":[{"name":"T"}],"raises":[{"type":"SchemaException","doc":"if any field or relation is not the exact handle declared by the model"}]}],"doc":{"summary":"Writes an expression as a document for the model that declared all of its fields and relations."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterJson.java","line":46,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterJson.write","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterJson.FilterJson.write","product":"core","slug":"io-github-libtmux-jackson-filterjson-filterjson-write"},{"id":"io.github.libtmux.jackson.FilterJson.FilterJson.writeString","name":"writeString","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.jackson.FilterJson.FilterJson","signatures":[{"raw":"public static String writeString(FilterExpr expression, FilterModel model)","params":[{"name":"expression","type":"FilterExpr"},{"name":"model","type":"FilterModel"}],"returns":"String","typeParamNames":["T"],"typeScopeBoundary":true,"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"doc":{"summary":"Writes an expression as compact JSON text."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterJson.java","line":55,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterJson.writeString","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterJson.FilterJson.writeString","product":"core","slug":"io-github-libtmux-jackson-filterjson-filterjson-writestring"},{"id":"io.github.libtmux.jackson.FilterJson.FilterJson.read","name":"read","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.jackson.FilterJson.FilterJson","signatures":[{"raw":"public static FilterExpr read(JsonNode document, FilterModel model)","params":[{"name":"document","type":"JsonNode"},{"name":"model","type":"FilterModel"}],"returns":"FilterExpr","typeParamNames":["T"],"typeScopeBoundary":true,"typeParams":["T"],"typeParameters":[{"name":"T"}],"raises":[{"type":"SchemaException","doc":"if the schema version, the model, a field, a relation, an operator or a node shape is not one this version knows"}]}],"doc":{"summary":"Reads a document back as an expression over the given model."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterJson.java","line":65,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterJson.read","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterJson.FilterJson.read","product":"core","slug":"io-github-libtmux-jackson-filterjson-filterjson-read"},{"id":"io.github.libtmux.jackson.FilterJson.FilterJson.readString","name":"readString","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.jackson.FilterJson.FilterJson","signatures":[{"raw":"public static FilterExpr readString(String json, FilterModel model)","params":[{"name":"json","type":"String"},{"name":"model","type":"FilterModel"}],"returns":"FilterExpr","typeParamNames":["T"],"typeScopeBoundary":true,"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"doc":{"summary":"Reads a document from JSON text."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterJson.java","line":80,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterJson.readString","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterJson.FilterJson.readString","product":"core","slug":"io-github-libtmux-jackson-filterjson-filterjson-readstring"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel","name":"FilterModel","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"typeParams":["T"],"typeParamNames":["T"],"typeParameters":[{"name":"T","doc":"the entity this model describes"}],"doc":{"summary":"What a document's field and relation ids mean.","body":"Expressions carry executable field and relation handles, while documents carry only their ids.\nThis model binds those forms and gives each nested relation its target model."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","line":22,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.named","name":"named","kind":"method","modifiers":["static","overload"],"parent":"io.github.libtmux.jackson.FilterModel.FilterModel","signatures":[{"raw":"public static Builder named(String id)","params":[{"name":"id","type":"String"}],"returns":"Builder","typeParamNames":["T"],"typeScopeBoundary":true,"typeParams":["T"],"typeParameters":[{"name":"T"}]},{"raw":"public static Builder named(String id, Class entityType)","params":[{"name":"id","type":"String"},{"name":"entityType","type":"Class"}],"returns":"Builder","typeParamNames":["T"],"typeScopeBoundary":true,"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"doc":{"summary":"Starts a caller-owned model. Its id must identify the caller's namespace."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","line":39,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.named","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.named","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-named"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.builtIn","name":"builtIn","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.jackson.FilterModel.FilterModel","signatures":[{"raw":"static Builder builtIn(String id)","params":[{"name":"id","type":"String"}],"returns":"Builder","typeParamNames":["T"],"typeScopeBoundary":true,"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","line":57,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.builtIn","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.builtIn","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-builtin"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.id","name":"id","kind":"method","modifiers":[],"parent":"io.github.libtmux.jackson.FilterModel.FilterModel","signatures":[{"raw":"public String id()","params":[],"returns":"String","typeScopeBoundary":false}],"doc":{"summary":"The id documents name this model by."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","line":66,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.id","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.id","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-id"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.fieldNames","name":"fieldNames","kind":"method","modifiers":[],"parent":"io.github.libtmux.jackson.FilterModel.FilterModel","signatures":[{"raw":"public Set fieldNames()","params":[],"returns":"Set","typeScopeBoundary":false}],"doc":{"summary":"Every field a document may compare on, in declaration order."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","line":71,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.fieldNames","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.fieldNames","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-fieldnames"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.relationNames","name":"relationNames","kind":"method","modifiers":[],"parent":"io.github.libtmux.jackson.FilterModel.FilterModel","signatures":[{"raw":"public Set relationNames()","params":[],"returns":"Set","typeScopeBoundary":false}],"doc":{"summary":"Every relation a document may navigate."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","line":76,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.relationNames","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.relationNames","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-relationnames"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.field","name":"field","kind":"method","modifiers":[],"parent":"io.github.libtmux.jackson.FilterModel.FilterModel","signatures":[{"raw":"FieldRef field(String fieldId)","params":[{"name":"fieldId","type":"String"}],"returns":"FieldRef","typeScopeBoundary":false}],"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","line":82,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.field","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.field","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-field"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.toMany","name":"toMany","kind":"method","modifiers":[],"parent":"io.github.libtmux.jackson.FilterModel.FilterModel","signatures":[{"raw":"Relation toMany(String relation)","params":[{"name":"relation","type":"String"}],"returns":"Relation","typeScopeBoundary":false}],"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","line":90,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.toMany","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.toMany","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-tomany"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.toOne","name":"toOne","kind":"method","modifiers":[],"parent":"io.github.libtmux.jackson.FilterModel.FilterModel","signatures":[{"raw":"Relation toOne(String relation)","params":[{"name":"relation","type":"String"}],"returns":"Relation","typeScopeBoundary":false}],"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","line":94,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.toOne","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.toOne","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-toone"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.Relation","name":"Relation","kind":"class","modifiers":[],"parent":"io.github.libtmux.jackson.FilterModel.FilterModel","signatures":[{"raw":"record Relation(\n Fields.@Nullable ToManyRef toMany,\n Fields.@Nullable ToOneRef toOne,\n Supplier> targetModel)","params":[{"name":"toMany","type":"Fields.@Nullable ToManyRef"},{"name":"toOne","type":"Fields.@Nullable ToOneRef"},{"name":"targetModel","type":"Supplier>"}],"typeParamNames":["T","R"],"typeParams":["T","R"],"typeParameters":[{"name":"T"},{"name":"R"}]}],"typeScopeBoundary":true,"typeParams":["T","R"],"typeParamNames":["T","R"],"typeParameters":[{"name":"T"},{"name":"R"}],"doc":{"summary":"A relation handle paired with the model its far side is described by."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","line":107,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.Relation","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.Relation","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-relation"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.Relation.target","name":"target","kind":"method","modifiers":[],"parent":"io.github.libtmux.jackson.FilterModel.FilterModel.Relation","signatures":[{"raw":"FilterModel target()","params":[],"returns":"FilterModel","typeScopeBoundary":false}],"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","line":116,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.Relation.target","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.Relation.target","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-relation-target"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.Relation.toMany","name":"toMany","kind":"method","parent":"io.github.libtmux.jackson.FilterModel.FilterModel.Relation","modifiers":[],"signatures":[{"params":[],"returns":"Fields.@Nullable ToManyRef"}],"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.Relation.toMany","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.Relation.toMany","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-relation-tomany"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.Relation.toOne","name":"toOne","kind":"method","parent":"io.github.libtmux.jackson.FilterModel.FilterModel.Relation","modifiers":[],"signatures":[{"params":[],"returns":"Fields.@Nullable ToOneRef"}],"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.Relation.toOne","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.Relation.toOne","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-relation-toone"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.Relation.targetModel","name":"targetModel","kind":"method","parent":"io.github.libtmux.jackson.FilterModel.FilterModel.Relation","modifiers":[],"signatures":[{"params":[],"returns":"Supplier>"}],"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.Relation.targetModel","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.Relation.targetModel","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-relation-targetmodel"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.Builder","name":"Builder","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.jackson.FilterModel.FilterModel","signatures":[],"typeScopeBoundary":true,"typeParams":["T"],"typeParamNames":["T"],"typeParameters":[{"name":"T"}],"doc":{"summary":"Collects the exact handles and unique ids a document may name."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","line":122,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.Builder","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.Builder","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-builder"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.Builder.field","name":"field","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.jackson.FilterModel.FilterModel.Builder","signatures":[{"raw":"public Builder field(Fields.TextField field)","params":[{"name":"field","type":"Fields.TextField"}],"returns":"Builder","typeScopeBoundary":false},{"raw":"public Builder field(Fields.NumberField field)","params":[{"name":"field","type":"Fields.NumberField"}],"returns":"Builder","typeScopeBoundary":false},{"raw":"public Builder field(Fields.FlagField field)","params":[{"name":"field","type":"Fields.FlagField"}],"returns":"Builder","typeScopeBoundary":false}],"doc":{"summary":"Declares a text field by the handle a metamodel already mints."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","line":134,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.Builder.field","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.Builder.field","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-builder-field"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.Builder.toMany","name":"toMany","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.jackson.FilterModel.FilterModel.Builder","signatures":[{"raw":"public Builder toMany(Fields.ToManyRef relation, FilterModel target)","params":[{"name":"relation","type":"Fields.ToManyRef"},{"name":"target","type":"FilterModel"}],"returns":"Builder","typeParamNames":["R"],"typeScopeBoundary":false,"typeParams":["R"],"typeParameters":[{"name":"R"}]},{"raw":"public Builder toMany(Fields.ToManyRef relation, Supplier> target)","params":[{"name":"relation","type":"Fields.ToManyRef"},{"name":"target","type":"Supplier>"}],"returns":"Builder","typeParamNames":["R"],"typeScopeBoundary":false,"typeParams":["R"],"typeParameters":[{"name":"R"}]}],"doc":{"summary":"Declares a to-many relation and the model describing what it reaches."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","line":149,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.Builder.toMany","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.Builder.toMany","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-builder-tomany"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.Builder.toOne","name":"toOne","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.jackson.FilterModel.FilterModel.Builder","signatures":[{"raw":"public Builder toOne(Fields.ToOneRef relation, FilterModel target)","params":[{"name":"relation","type":"Fields.ToOneRef"},{"name":"target","type":"FilterModel"}],"returns":"Builder","typeParamNames":["R"],"typeScopeBoundary":false,"typeParams":["R"],"typeParameters":[{"name":"R"}]},{"raw":"public Builder toOne(Fields.ToOneRef relation, Supplier> target)","params":[{"name":"relation","type":"Fields.ToOneRef"},{"name":"target","type":"Supplier>"}],"returns":"Builder","typeParamNames":["R"],"typeScopeBoundary":false,"typeParams":["R"],"typeParameters":[{"name":"R"}]}],"doc":{"summary":"Declares a to-one relation and the model describing what it reaches."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","line":163,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.Builder.toOne","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.Builder.toOne","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-builder-toone"},{"id":"io.github.libtmux.jackson.FilterModel.FilterModel.Builder.build","name":"build","kind":"method","modifiers":[],"parent":"io.github.libtmux.jackson.FilterModel.FilterModel.Builder","signatures":[{"raw":"public FilterModel build()","params":[],"returns":"FilterModel","typeScopeBoundary":false}],"doc":{"summary":"Builds the model."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/FilterModel.java","line":190,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.FilterModel.Builder.build","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.FilterModel.FilterModel.Builder.build","product":"core","slug":"io-github-libtmux-jackson-filtermodel-filtermodel-builder-build"},{"id":"io.github.libtmux.jackson.LibTmuxModels.LibTmuxModels","name":"LibTmuxModels","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The wire ids for this library's own entities.","body":"The ids are tmux's format names, which is what makes a document readable by something that is\nnot this library: another implementation already knows what {@code pane_current_command} means."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/LibTmuxModels.java","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.LibTmuxModels","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.LibTmuxModels.LibTmuxModels","product":"core","slug":"io-github-libtmux-jackson-libtmuxmodels-libtmuxmodels"},{"id":"io.github.libtmux.jackson.LibTmuxModels.LibTmuxModels.pane","name":"pane","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.jackson.LibTmuxModels.LibTmuxModels","signatures":[{"raw":"public static FilterModel pane()","params":[],"returns":"FilterModel","typeScopeBoundary":true}],"doc":{"summary":"The model documents name {@code pane}."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/LibTmuxModels.java","line":62,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.LibTmuxModels.pane","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.LibTmuxModels.LibTmuxModels.pane","product":"core","slug":"io-github-libtmux-jackson-libtmuxmodels-libtmuxmodels-pane"},{"id":"io.github.libtmux.jackson.LibTmuxModels.LibTmuxModels.window","name":"window","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.jackson.LibTmuxModels.LibTmuxModels","signatures":[{"raw":"public static FilterModel window()","params":[],"returns":"FilterModel","typeScopeBoundary":true}],"doc":{"summary":"The model documents name {@code window}, reaching panes."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/LibTmuxModels.java","line":67,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.LibTmuxModels.window","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.LibTmuxModels.LibTmuxModels.window","product":"core","slug":"io-github-libtmux-jackson-libtmuxmodels-libtmuxmodels-window"},{"id":"io.github.libtmux.jackson.LibTmuxModels.LibTmuxModels.session","name":"session","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.jackson.LibTmuxModels.LibTmuxModels","signatures":[{"raw":"public static FilterModel session()","params":[],"returns":"FilterModel","typeScopeBoundary":true}],"doc":{"summary":"The model documents name {@code session}, reaching windows."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/LibTmuxModels.java","line":72,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.LibTmuxModels.session","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.LibTmuxModels.LibTmuxModels.session","product":"core","slug":"io-github-libtmux-jackson-libtmuxmodels-libtmuxmodels-session"},{"id":"io.github.libtmux.jackson.LibTmuxModels.LibTmuxModels.client","name":"client","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.jackson.LibTmuxModels.LibTmuxModels","signatures":[{"raw":"public static FilterModel client()","params":[],"returns":"FilterModel","typeScopeBoundary":true}],"doc":{"summary":"The model documents name {@code client}, reaching its session."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/LibTmuxModels.java","line":77,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.LibTmuxModels.client","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.LibTmuxModels.LibTmuxModels.client","product":"core","slug":"io-github-libtmux-jackson-libtmuxmodels-libtmuxmodels-client"},{"id":"io.github.libtmux.jackson.SchemaException.SchemaException","name":"SchemaException","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"A document could not be read as the expression it claims to be.","body":"Every failure here is a refusal rather than a best effort. An expression read wrongly does not\nannounce itself: it silently matches the wrong things, which is worse than not loading at all. An\n{@link IllegalArgumentException}, since the fault is in the document, not in talking to tmux."},"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/SchemaException.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.SchemaException","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.SchemaException.SchemaException","product":"core","slug":"io-github-libtmux-jackson-schemaexception-schemaexception"},{"id":"io.github.libtmux.jackson.SchemaException.SchemaException.SchemaException","name":"SchemaException","kind":"method","modifiers":[],"parent":"io.github.libtmux.jackson.SchemaException.SchemaException","signatures":[{"raw":"public SchemaException(String message)","params":[{"name":"message","type":"String"}],"typeScopeBoundary":false}],"source":{"file":"libtmux-jackson/src/main/java/io/github/libtmux/jackson/SchemaException.java","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.jackson.SchemaException.SchemaException","namespace":"io.github.libtmux.jackson","publicId":"io.github.libtmux.jackson.SchemaException.SchemaException.SchemaException","product":"core","slug":"io-github-libtmux-jackson-schemaexception-schemaexception-schemaexception"},{"id":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient","name":"FakeControlClient","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"A {@code tmux -C} client of a {@link FakeTmux}, as the process a control client talks to.","body":"It reads one command line at a time, has the fake answer it, and writes the reply block tmux\nwould: {@code %begin}, the output, then {@code %end} or {@code %error}. Pushed output and\nnotifications are written between replies, never inside one, as tmux writes them. It ends, with\n{@code %exit}, when the fake restarts or the client closes its input."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeControlClient.java","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeControlClient","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient","product":"core","slug":"io-github-libtmux-junit5-fakecontrolclient-fakecontrolclient"},{"id":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.FakeControlClient","name":"FakeControlClient","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient","signatures":[{"raw":"FakeControlClient(Function>, CommandResult> answer)","params":[{"name":"answer","type":"Function>, CommandResult>"}],"typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeControlClient.java","line":39,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.FakeControlClient","product":"core","slug":"io-github-libtmux-junit5-fakecontrolclient-fakecontrolclient-fakecontrolclient"},{"id":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.push","name":"push","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient","signatures":[{"raw":"void push(String line)","params":[{"name":"line","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Writes an unprompted line, such as {@code %output}, between replies."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeControlClient.java","line":55,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeControlClient.push","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.push","product":"core","slug":"io-github-libtmux-junit5-fakecontrolclient-fakecontrolclient-push"},{"id":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.end","name":"end","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient","signatures":[{"raw":"void end()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Ends the client as a server that went away does."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeControlClient.java","line":60,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeControlClient.end","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.end","product":"core","slug":"io-github-libtmux-junit5-fakecontrolclient-fakecontrolclient-end"},{"id":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.parse","name":"parse","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient","signatures":[{"raw":"static List> parse(String line)","params":[{"name":"line","type":"String"}],"returns":"List>","typeScopeBoundary":true}],"doc":{"summary":"A command line as tmux's parser reads the ones this library writes: each argument single quoted, a quote as {@code '\\''}, a newline or return as {@code \"\\n\"} or {@code \"\\r\"}, and an unquoted {@code ;} between commands."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeControlClient.java","line":83,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeControlClient.parse","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.parse","product":"core","slug":"io-github-libtmux-junit5-fakecontrolclient-fakecontrolclient-parse"},{"id":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.getOutputStream","name":"getOutputStream","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient","signatures":[{"raw":"@Override\n public OutputStream getOutputStream()","params":[],"returns":"OutputStream","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeControlClient.java","line":188,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeControlClient.getOutputStream","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.getOutputStream","product":"core","slug":"io-github-libtmux-junit5-fakecontrolclient-fakecontrolclient-getoutputstream"},{"id":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.getInputStream","name":"getInputStream","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient","signatures":[{"raw":"@Override\n public InputStream getInputStream()","params":[],"returns":"InputStream","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeControlClient.java","line":193,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeControlClient.getInputStream","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.getInputStream","product":"core","slug":"io-github-libtmux-junit5-fakecontrolclient-fakecontrolclient-getinputstream"},{"id":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.getErrorStream","name":"getErrorStream","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient","signatures":[{"raw":"@Override\n public InputStream getErrorStream()","params":[],"returns":"InputStream","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeControlClient.java","line":198,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeControlClient.getErrorStream","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.getErrorStream","product":"core","slug":"io-github-libtmux-junit5-fakecontrolclient-fakecontrolclient-geterrorstream"},{"id":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.waitFor","name":"waitFor","kind":"method","modifiers":["overload"],"parent":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient","signatures":[{"raw":"@Override\n public int waitFor() throws InterruptedException","params":[],"returns":"int","typeScopeBoundary":false},{"raw":"@Override\n public boolean waitFor(long timeout, TimeUnit unit) throws InterruptedException","params":[{"name":"timeout","type":"long"},{"name":"unit","type":"TimeUnit"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeControlClient.java","line":203,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeControlClient.waitFor","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.waitFor","product":"core","slug":"io-github-libtmux-junit5-fakecontrolclient-fakecontrolclient-waitfor"},{"id":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.exitValue","name":"exitValue","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient","signatures":[{"raw":"@Override\n public int exitValue()","params":[],"returns":"int","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeControlClient.java","line":214,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeControlClient.exitValue","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.exitValue","product":"core","slug":"io-github-libtmux-junit5-fakecontrolclient-fakecontrolclient-exitvalue"},{"id":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.isAlive","name":"isAlive","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient","signatures":[{"raw":"@Override\n public boolean isAlive()","params":[],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeControlClient.java","line":222,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeControlClient.isAlive","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.isAlive","product":"core","slug":"io-github-libtmux-junit5-fakecontrolclient-fakecontrolclient-isalive"},{"id":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.destroy","name":"destroy","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient","signatures":[{"raw":"@Override\n public void destroy()","params":[],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeControlClient.java","line":227,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeControlClient.destroy","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeControlClient.FakeControlClient.destroy","product":"core","slug":"io-github-libtmux-junit5-fakecontrolclient-fakecontrolclient-destroy"},{"id":"io.github.libtmux.junit5.FakePane.FakePane","name":"FakePane","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"One pane in a {@link FakeWindow}."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakePane.java","line":4,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakePane","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakePane.FakePane","product":"core","slug":"io-github-libtmux-junit5-fakepane-fakepane"},{"id":"io.github.libtmux.junit5.FakePane.FakePane.id","name":"id","kind":"attribute","modifiers":["readonly"],"parent":"io.github.libtmux.junit5.FakePane.FakePane","signatures":[],"typeScopeBoundary":false,"type":"String","source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakePane.java","line":5,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakePane.id","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakePane.FakePane.id","product":"core","slug":"io-github-libtmux-junit5-fakepane-fakepane-id"},{"id":"io.github.libtmux.junit5.FakePane.FakePane.index","name":"index","kind":"attribute","modifiers":["readonly"],"parent":"io.github.libtmux.junit5.FakePane.FakePane","signatures":[],"typeScopeBoundary":false,"type":"int","source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakePane.java","line":6,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakePane.index","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakePane.FakePane.index","product":"core","slug":"io-github-libtmux-junit5-fakepane-fakepane-index"},{"id":"io.github.libtmux.junit5.FakePane.FakePane.command","name":"command","kind":"attribute","modifiers":["readonly"],"parent":"io.github.libtmux.junit5.FakePane.FakePane","signatures":[],"typeScopeBoundary":false,"type":"String","source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakePane.java","line":7,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakePane.command","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakePane.FakePane.command","product":"core","slug":"io-github-libtmux-junit5-fakepane-fakepane-command"},{"id":"io.github.libtmux.junit5.FakePane.FakePane.directory","name":"directory","kind":"attribute","modifiers":["readonly"],"parent":"io.github.libtmux.junit5.FakePane.FakePane","signatures":[],"typeScopeBoundary":false,"type":"String","source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakePane.java","line":8,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakePane.directory","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakePane.FakePane.directory","product":"core","slug":"io-github-libtmux-junit5-fakepane-fakepane-directory"},{"id":"io.github.libtmux.junit5.FakePane.FakePane.pid","name":"pid","kind":"attribute","modifiers":["readonly"],"parent":"io.github.libtmux.junit5.FakePane.FakePane","signatures":[],"typeScopeBoundary":false,"type":"long","source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakePane.java","line":9,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakePane.pid","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakePane.FakePane.pid","product":"core","slug":"io-github-libtmux-junit5-fakepane-fakepane-pid"},{"id":"io.github.libtmux.junit5.FakePane.FakePane.title","name":"title","kind":"attribute","modifiers":[],"parent":"io.github.libtmux.junit5.FakePane.FakePane","signatures":[],"typeScopeBoundary":false,"type":"String","value":"\"\"","source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakePane.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakePane.title","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakePane.FakePane.title","product":"core","slug":"io-github-libtmux-junit5-fakepane-fakepane-title"},{"id":"io.github.libtmux.junit5.FakePane.FakePane.FakePane","name":"FakePane","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakePane.FakePane","signatures":[{"raw":"FakePane(String id, int index, String command, String directory, long pid)","params":[{"name":"id","type":"String"},{"name":"index","type":"int"},{"name":"command","type":"String"},{"name":"directory","type":"String"},{"name":"pid","type":"long"}],"typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakePane.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakePane.FakePane","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakePane.FakePane.FakePane","product":"core","slug":"io-github-libtmux-junit5-fakepane-fakepane-fakepane"},{"id":"io.github.libtmux.junit5.FakeSession.FakeSession","name":"FakeSession","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"One session in a {@link FakeTmux}, holding its windows in creation order."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeSession.java","line":7,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeSession","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeSession.FakeSession","product":"core","slug":"io-github-libtmux-junit5-fakesession-fakesession"},{"id":"io.github.libtmux.junit5.FakeSession.FakeSession.id","name":"id","kind":"attribute","modifiers":["readonly"],"parent":"io.github.libtmux.junit5.FakeSession.FakeSession","signatures":[],"typeScopeBoundary":false,"type":"String","source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeSession.java","line":8,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeSession.id","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeSession.FakeSession.id","product":"core","slug":"io-github-libtmux-junit5-fakesession-fakesession-id"},{"id":"io.github.libtmux.junit5.FakeSession.FakeSession.name","name":"name","kind":"attribute","modifiers":[],"parent":"io.github.libtmux.junit5.FakeSession.FakeSession","signatures":[],"typeScopeBoundary":false,"type":"String","source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeSession.java","line":9,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeSession.name","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeSession.FakeSession.name","product":"core","slug":"io-github-libtmux-junit5-fakesession-fakesession-name"},{"id":"io.github.libtmux.junit5.FakeSession.FakeSession.windows","name":"windows","kind":"attribute","modifiers":["readonly"],"parent":"io.github.libtmux.junit5.FakeSession.FakeSession","signatures":[],"typeScopeBoundary":false,"type":"List","value":"new ArrayList<>()","source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeSession.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeSession.windows","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeSession.FakeSession.windows","product":"core","slug":"io-github-libtmux-junit5-fakesession-fakesession-windows"},{"id":"io.github.libtmux.junit5.FakeSession.FakeSession.FakeSession","name":"FakeSession","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeSession.FakeSession","signatures":[{"raw":"FakeSession(String id, String name)","params":[{"name":"id","type":"String"},{"name":"name","type":"String"}],"typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeSession.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeSession.FakeSession","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeSession.FakeSession.FakeSession","product":"core","slug":"io-github-libtmux-junit5-fakesession-fakesession-fakesession"},{"id":"io.github.libtmux.junit5.FakeTmux.FakeTmux","name":"FakeTmux","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"A tmux server that is not there, for testing code that uses this library without starting one.","body":"It answers the way tmux answers, not the way a stub would: a listing is rendered from the\ntemplate the library sends, so a snapshot of a fake server is a real snapshot and every handle\nworks; a handle command is fenced on the server's identity and refused once the fake is replaced,\nas tmux refuses it; a group stops at its first failure. What it models is the hierarchy —\nsessions, windows, panes and their names and titles — and what each pane shows. What it does not\nmodel is a shell: keys sent to a pane are recorded, not run, and a pane shows what the test says.\n\nFor behaviour that depends on tmux itself — what a release does with a flag, how a real shell\nechoes — test against real tmux with {@link TmuxExtension} instead. This is for code whose\ninterest in tmux ends at the calls it makes.","examples":[{"lang":"java","code":"FakeTmux tmux = new FakeTmux();\nPaneId editor = tmux.addSession(\"work\");\ntmux.show(editor, \"$ make\", \"make: Nothing to be done for 'all'.\");\n\ntry (Server server = tmux.server()) {\n Pane pane = server.pane(editor).orElseThrow();\n pane.capture(); // → [$ make, make: Nothing to be done for 'all'.]\n pane.sendLine(\"make test\");\n}\n\ntmux.sent(); // every command, as the library sent it"}]},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeTmux.java","line":51,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeTmux","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeTmux.FakeTmux","product":"core","slug":"io-github-libtmux-junit5-faketmux-faketmux"},{"id":"io.github.libtmux.junit5.FakeTmux.FakeTmux.FakeTmux","name":"FakeTmux","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeTmux.FakeTmux","signatures":[{"raw":"public FakeTmux()","params":[],"typeScopeBoundary":false}],"doc":{"summary":"A fake server with no sessions, as tmux is before anything has been created."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeTmux.java","line":171,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeTmux.FakeTmux","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeTmux.FakeTmux.FakeTmux","product":"core","slug":"io-github-libtmux-junit5-faketmux-faketmux-faketmux"},{"id":"io.github.libtmux.junit5.FakeTmux.FakeTmux.server","name":"server","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeTmux.FakeTmux","signatures":[{"raw":"public Server server()","params":[],"returns":"Server","typeScopeBoundary":false}],"doc":{"summary":"A server this transport answers for.","body":"Borrowed rather than owned, so closing it leaves this fake as it is and a test can inspect\nit afterwards."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeTmux.java","line":185,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeTmux.server","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeTmux.FakeTmux.server","product":"core","slug":"io-github-libtmux-junit5-faketmux-faketmux-server"},{"id":"io.github.libtmux.junit5.FakeTmux.FakeTmux.addSession","name":"addSession","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeTmux.FakeTmux","signatures":[{"raw":"public synchronized PaneId addSession(String name)","params":[{"name":"name","type":"String"}],"returns":"PaneId","typeScopeBoundary":false,"returnsDoc":"the pane, so a test can say what it shows"}],"doc":{"summary":"Adds a session with one window and one pane running {@code sh}, as {@code new-session} makes."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeTmux.java","line":198,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeTmux.addSession","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeTmux.FakeTmux.addSession","product":"core","slug":"io-github-libtmux-junit5-faketmux-faketmux-addsession"},{"id":"io.github.libtmux.junit5.FakeTmux.FakeTmux.restart","name":"restart","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeTmux.FakeTmux","signatures":[{"raw":"public synchronized void restart()","params":[],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Replaces the server, as a restart does: a new process, and nothing in it.","body":"Handles made before this are refused from now on, which is what a test of code that has to\nsurvive a server restarting under it needs to see."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeTmux.java","line":209,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeTmux.restart","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeTmux.FakeTmux.restart","product":"core","slug":"io-github-libtmux-junit5-faketmux-faketmux-restart"},{"id":"io.github.libtmux.junit5.FakeTmux.FakeTmux.show","name":"show","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeTmux.FakeTmux","signatures":[{"raw":"public synchronized void show(PaneId pane, String... lines)","params":[{"name":"pane","type":"PaneId"},{"name":"lines","type":"String","variadic":"positional"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"What the pane shows, one element per line, which is what capturing it answers."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeTmux.java","line":219,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeTmux.show","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeTmux.FakeTmux.show","product":"core","slug":"io-github-libtmux-junit5-faketmux-faketmux-show"},{"id":"io.github.libtmux.junit5.FakeTmux.FakeTmux.sent","name":"sent","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeTmux.FakeTmux","signatures":[{"raw":"public synchronized List> sent()","params":[],"returns":"List>","typeScopeBoundary":false}],"doc":{"summary":"Every command the library sent, in order, each as the words tmux would have read.","body":"Unwrapped: a command the library fenced on the server's identity or sent in a group is here\nas itself, and the plumbing that carried it is not."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeTmux.java","line":229,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeTmux.sent","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeTmux.FakeTmux.sent","product":"core","slug":"io-github-libtmux-junit5-faketmux-faketmux-sent"},{"id":"io.github.libtmux.junit5.FakeTmux.FakeTmux.sessions","name":"sessions","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeTmux.FakeTmux","signatures":[{"raw":"public synchronized List sessions()","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"The sessions the fake holds now, by id."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeTmux.java","line":234,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeTmux.sessions","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeTmux.FakeTmux.sessions","product":"core","slug":"io-github-libtmux-junit5-faketmux-faketmux-sessions"},{"id":"io.github.libtmux.junit5.FakeTmux.FakeTmux.execute","name":"execute","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeTmux.FakeTmux","signatures":[{"raw":"@Override\n public synchronized CommandResult execute(CommandRequest request)","params":[{"name":"request","type":"CommandRequest"}],"returns":"CommandResult","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeTmux.java","line":238,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeTmux.execute","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeTmux.FakeTmux.execute","product":"core","slug":"io-github-libtmux-junit5-faketmux-faketmux-execute"},{"id":"io.github.libtmux.junit5.FakeTmux.FakeTmux.controlCarrier","name":"controlCarrier","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeTmux.FakeTmux","signatures":[{"raw":"@Override\n public Optional controlCarrier()","params":[],"returns":"Optional","typeScopeBoundary":false}],"doc":{"summary":"Control clients of this fake: {@code server.control(session)} attaches one, its commands are answered as this fake answers any other, and it hears what {@link #output} and {@link #notify} push. A restart ends every client attached, as a server that went away does."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeTmux.java","line":248,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeTmux.controlCarrier","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeTmux.FakeTmux.controlCarrier","product":"core","slug":"io-github-libtmux-junit5-faketmux-faketmux-controlcarrier"},{"id":"io.github.libtmux.junit5.FakeTmux.FakeTmux.output","name":"output","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeTmux.FakeTmux","signatures":[{"raw":"public synchronized void output(PaneId pane, String text)","params":[{"name":"pane","type":"PaneId"},{"name":"text","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Pushes what a pane wrote to every attached control client, as tmux's {@code %output}: a control byte or a backslash as three octal digits, and the rest as it is."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeTmux.java","line":267,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeTmux.output","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeTmux.FakeTmux.output","product":"core","slug":"io-github-libtmux-junit5-faketmux-faketmux-output"},{"id":"io.github.libtmux.junit5.FakeTmux.FakeTmux.notify","name":"notify","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeTmux.FakeTmux","signatures":[{"raw":"public synchronized void notify(String line)","params":[{"name":"line","type":"String"}],"returns":"void","typeScopeBoundary":false}],"doc":{"summary":"Pushes a notification line, such as {@code %window-renamed @1 logs}, to every attached client."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeTmux.java","line":285,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeTmux.notify","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeTmux.FakeTmux.notify","product":"core","slug":"io-github-libtmux-junit5-faketmux-faketmux-notify"},{"id":"io.github.libtmux.junit5.FakeTmux.FakeTmux.close","name":"close","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeTmux.FakeTmux","signatures":[{"raw":"@Override\n public void close()","params":[],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeTmux.java","line":294,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeTmux.close","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeTmux.FakeTmux.close","product":"core","slug":"io-github-libtmux-junit5-faketmux-faketmux-close"},{"id":"io.github.libtmux.junit5.FakeWindow.FakeWindow","name":"FakeWindow","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"One window in a {@link FakeSession}, holding its panes in creation order."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeWindow.java","line":7,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeWindow","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeWindow.FakeWindow","product":"core","slug":"io-github-libtmux-junit5-fakewindow-fakewindow"},{"id":"io.github.libtmux.junit5.FakeWindow.FakeWindow.id","name":"id","kind":"attribute","modifiers":["readonly"],"parent":"io.github.libtmux.junit5.FakeWindow.FakeWindow","signatures":[],"typeScopeBoundary":false,"type":"String","source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeWindow.java","line":8,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeWindow.id","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeWindow.FakeWindow.id","product":"core","slug":"io-github-libtmux-junit5-fakewindow-fakewindow-id"},{"id":"io.github.libtmux.junit5.FakeWindow.FakeWindow.index","name":"index","kind":"attribute","modifiers":["readonly"],"parent":"io.github.libtmux.junit5.FakeWindow.FakeWindow","signatures":[],"typeScopeBoundary":false,"type":"int","source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeWindow.java","line":9,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeWindow.index","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeWindow.FakeWindow.index","product":"core","slug":"io-github-libtmux-junit5-fakewindow-fakewindow-index"},{"id":"io.github.libtmux.junit5.FakeWindow.FakeWindow.name","name":"name","kind":"attribute","modifiers":[],"parent":"io.github.libtmux.junit5.FakeWindow.FakeWindow","signatures":[],"typeScopeBoundary":false,"type":"String","source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeWindow.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeWindow.name","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeWindow.FakeWindow.name","product":"core","slug":"io-github-libtmux-junit5-fakewindow-fakewindow-name"},{"id":"io.github.libtmux.junit5.FakeWindow.FakeWindow.active","name":"active","kind":"attribute","modifiers":[],"parent":"io.github.libtmux.junit5.FakeWindow.FakeWindow","signatures":[{"raw":"FakePane active()","params":[],"returns":"FakePane","typeScopeBoundary":false}],"typeScopeBoundary":false,"type":"boolean","source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeWindow.java","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeWindow.active","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeWindow.FakeWindow.active","product":"core","slug":"io-github-libtmux-junit5-fakewindow-fakewindow-active"},{"id":"io.github.libtmux.junit5.FakeWindow.FakeWindow.panes","name":"panes","kind":"attribute","modifiers":["readonly"],"parent":"io.github.libtmux.junit5.FakeWindow.FakeWindow","signatures":[],"typeScopeBoundary":false,"type":"List","value":"new ArrayList<>()","source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeWindow.java","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeWindow.panes","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeWindow.FakeWindow.panes","product":"core","slug":"io-github-libtmux-junit5-fakewindow-fakewindow-panes"},{"id":"io.github.libtmux.junit5.FakeWindow.FakeWindow.FakeWindow","name":"FakeWindow","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.FakeWindow.FakeWindow","signatures":[{"raw":"FakeWindow(String id, int index, String name)","params":[{"name":"id","type":"String"},{"name":"index","type":"int"},{"name":"name","type":"String"}],"typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeWindow.java","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.FakeWindow.FakeWindow","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.FakeWindow.FakeWindow.FakeWindow","product":"core","slug":"io-github-libtmux-junit5-fakewindow-fakewindow-fakewindow"},{"id":"io.github.libtmux.junit5.Flags.Flags","name":"Flags","kind":"class","modifiers":[],"signatures":[{"raw":"record Flags(Map values, Set switches, List positional)","params":[{"name":"values","type":"Map"},{"name":"switches","type":"Set"},{"name":"positional","type":"List"}]}],"typeScopeBoundary":false,"doc":{"summary":"A command's flags and the words after them, read as tmux's argument parser reads them."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Flags.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Flags","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Flags.Flags","product":"core","slug":"io-github-libtmux-junit5-flags-flags"},{"id":"io.github.libtmux.junit5.Flags.Flags.parse","name":"parse","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.junit5.Flags.Flags","signatures":[{"raw":"static Flags parse(List argv)","params":[{"name":"argv","type":"List"}],"returns":"Flags","typeScopeBoundary":true}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Flags.java","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Flags.parse","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Flags.Flags.parse","product":"core","slug":"io-github-libtmux-junit5-flags-flags-parse"},{"id":"io.github.libtmux.junit5.Flags.Flags.has","name":"has","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.Flags.Flags","signatures":[{"raw":"boolean has(String flag)","params":[{"name":"flag","type":"String"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Flags.java","line":59,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Flags.has","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Flags.Flags.has","product":"core","slug":"io-github-libtmux-junit5-flags-flags-has"},{"id":"io.github.libtmux.junit5.Flags.Flags.value","name":"value","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.Flags.Flags","signatures":[{"raw":"@Nullable\n String value(String flag)","params":[{"name":"flag","type":"String"}],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Flags.java","line":63,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Flags.value","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Flags.Flags.value","product":"core","slug":"io-github-libtmux-junit5-flags-flags-value"},{"id":"io.github.libtmux.junit5.Flags.Flags.values","name":"values","kind":"method","parent":"io.github.libtmux.junit5.Flags.Flags","modifiers":[],"signatures":[{"params":[],"returns":"Map"}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Flags.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Flags.values","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Flags.Flags.values","product":"core","slug":"io-github-libtmux-junit5-flags-flags-values"},{"id":"io.github.libtmux.junit5.Flags.Flags.switches","name":"switches","kind":"method","parent":"io.github.libtmux.junit5.Flags.Flags","modifiers":[],"signatures":[{"params":[],"returns":"Set"}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Flags.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Flags.switches","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Flags.Flags.switches","product":"core","slug":"io-github-libtmux-junit5-flags-flags-switches"},{"id":"io.github.libtmux.junit5.Flags.Flags.positional","name":"positional","kind":"method","parent":"io.github.libtmux.junit5.Flags.Flags","modifiers":[],"signatures":[{"params":[],"returns":"List"}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Flags.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Flags.positional","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Flags.Flags.positional","product":"core","slug":"io-github-libtmux-junit5-flags-flags-positional"},{"id":"io.github.libtmux.junit5.Formats.Formats","name":"Formats","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"The part of tmux's format language the library sends: variables, comparisons, {@code &&} and {@code ||}, {@code ?} conditionals, and the {@code W:} and {@code P:} loops."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Formats.java","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Formats","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Formats.Formats","product":"core","slug":"io-github-libtmux-junit5-formats-formats"},{"id":"io.github.libtmux.junit5.Formats.Formats.Scope","name":"Scope","kind":"interface","modifiers":[],"parent":"io.github.libtmux.junit5.Formats.Formats","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"What a format is expanded against: a row's variables, and the rows a loop visits."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Formats.java","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Formats.Scope","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Formats.Formats.Scope","product":"core","slug":"io-github-libtmux-junit5-formats-formats-scope"},{"id":"io.github.libtmux.junit5.Formats.Formats.Scope.get","name":"get","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.Formats.Formats.Scope","signatures":[{"raw":"@Nullable\n String get(String variable);","params":[{"name":"variable","type":"String"}],"returns":"String","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Formats.java","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Formats.Scope.get","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Formats.Formats.Scope.get","product":"core","slug":"io-github-libtmux-junit5-formats-formats-scope-get"},{"id":"io.github.libtmux.junit5.Formats.Formats.Scope.windows","name":"windows","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.Formats.Formats.Scope","signatures":[{"raw":"List windows();","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"The windows of this row's session, each at its active pane."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Formats.java","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Formats.Scope.windows","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Formats.Formats.Scope.windows","product":"core","slug":"io-github-libtmux-junit5-formats-formats-scope-windows"},{"id":"io.github.libtmux.junit5.Formats.Formats.Scope.panes","name":"panes","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.Formats.Formats.Scope","signatures":[{"raw":"List panes();","params":[],"returns":"List","typeScopeBoundary":false}],"doc":{"summary":"The panes of this row's window."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Formats.java","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Formats.Scope.panes","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Formats.Formats.Scope.panes","product":"core","slug":"io-github-libtmux-junit5-formats-formats-scope-panes"},{"id":"io.github.libtmux.junit5.Formats.Formats.literal","name":"literal","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.junit5.Formats.Formats","signatures":[{"raw":"static String literal(String value)","params":[{"name":"value","type":"String"}],"returns":"String","typeScopeBoundary":true}],"doc":{"summary":"Undoes {@code TmuxFormats.literal}: tmux reads {@code ##} in a format as one {@code #}."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Formats.java","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Formats.literal","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Formats.Formats.literal","product":"core","slug":"io-github-libtmux-junit5-formats-formats-literal"},{"id":"io.github.libtmux.junit5.Formats.Formats.expand","name":"expand","kind":"method","modifiers":["static","overload"],"parent":"io.github.libtmux.junit5.Formats.Formats","signatures":[{"raw":"static String expand(String format, Function variables)","params":[{"name":"format","type":"String"},{"name":"variables","type":"Function"}],"returns":"String","typeScopeBoundary":true},{"raw":"static String expand(String format, Scope variables)","params":[{"name":"format","type":"String"},{"name":"variables","type":"Scope"}],"returns":"String","typeScopeBoundary":true}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Formats.java","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Formats.expand","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Formats.Formats.expand","product":"core","slug":"io-github-libtmux-junit5-formats-formats-expand"},{"id":"io.github.libtmux.junit5.Formats.Formats.truthy","name":"truthy","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.junit5.Formats.Formats","signatures":[{"raw":"static boolean truthy(String value)","params":[{"name":"value","type":"String"}],"returns":"boolean","typeScopeBoundary":true}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Formats.java","line":177,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Formats.truthy","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Formats.Formats.truthy","product":"core","slug":"io-github-libtmux-junit5-formats-formats-truthy"},{"id":"io.github.libtmux.junit5.Groups.Groups","name":"Groups","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Reads a command group the way tmux's command parser reads it: words in single quotes, a quote spelled {@code '\\''}, a line break spelled {@code \"\\n\"}, commands separated by {@code ;}."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Groups.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Groups","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Groups.Groups","product":"core","slug":"io-github-libtmux-junit5-groups-groups"},{"id":"io.github.libtmux.junit5.Groups.Groups.parse","name":"parse","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.junit5.Groups.Groups","signatures":[{"raw":"static List> parse(String text)","params":[{"name":"text","type":"String"}],"returns":"List>","typeScopeBoundary":true}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Groups.java","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Groups.parse","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Groups.Groups.parse","product":"core","slug":"io-github-libtmux-junit5-groups-groups-parse"},{"id":"io.github.libtmux.junit5.NamedServerFixture.NamedServerFixture","name":"NamedServerFixture","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Owns the safe teardown of a tmux server addressed by socket name."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/NamedServerFixture.java","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.NamedServerFixture","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.NamedServerFixture.NamedServerFixture","product":"core","slug":"io-github-libtmux-junit5-namedserverfixture-namedserverfixture"},{"id":"io.github.libtmux.junit5.NamedServerFixture.NamedServerFixture.own","name":"own","kind":"method","modifiers":["static","overload"],"parent":"io.github.libtmux.junit5.NamedServerFixture.NamedServerFixture","signatures":[{"raw":"public static NamedServerFixture own(Server server, String expectedName, Path quarantine) throws IOException","params":[{"name":"server","type":"Server","doc":"the server this test started"},{"name":"expectedName","type":"String","doc":"the exact socket name the test supplied to tmux"},{"name":"quarantine","type":"Path","doc":"the {@code TMUX_TMPDIR} assigned to this test task"}],"returns":"NamedServerFixture","typeScopeBoundary":true,"returnsDoc":"cleanup bound to the reported process, path, and socket inode","raises":[{"type":"IOException","doc":"if the endpoint cannot be inspected"}]},{"raw":"public static NamedServerFixture own(Server server, Path expectedSocket, Path quarantine) throws IOException","params":[{"name":"server","type":"Server","doc":"the server this test started"},{"name":"expectedSocket","type":"Path","doc":"the exact socket path the test supplied to tmux"},{"name":"quarantine","type":"Path","doc":"the owned root that must contain the socket"}],"returns":"NamedServerFixture","typeScopeBoundary":true,"returnsDoc":"cleanup bound to the reported process, path, and socket inode","raises":[{"type":"IOException","doc":"if the endpoint cannot be inspected"}]}],"doc":{"summary":"Authenticates a live named server and takes responsibility for ending it."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/NamedServerFixture.java","line":49,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.NamedServerFixture.own","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.NamedServerFixture.NamedServerFixture.own","product":"core","slug":"io-github-libtmux-junit5-namedserverfixture-namedserverfixture-own"},{"id":"io.github.libtmux.junit5.NamedServerFixture.NamedServerFixture.socket","name":"socket","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.NamedServerFixture.NamedServerFixture","signatures":[{"raw":"public Path socket()","params":[],"returns":"Path","typeScopeBoundary":false}],"doc":{"summary":"Returns the exact socket path authenticated when ownership was taken."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/NamedServerFixture.java","line":117,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.NamedServerFixture.socket","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.NamedServerFixture.NamedServerFixture.socket","product":"core","slug":"io-github-libtmux-junit5-namedserverfixture-namedserverfixture-socket"},{"id":"io.github.libtmux.junit5.NamedServerFixture.NamedServerFixture.close","name":"close","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.NamedServerFixture.NamedServerFixture","signatures":[{"raw":"@Override\n public synchronized void close() throws IOException","params":[],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/NamedServerFixture.java","line":121,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.NamedServerFixture.close","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.NamedServerFixture.NamedServerFixture.close","product":"core","slug":"io-github-libtmux-junit5-namedserverfixture-namedserverfixture-close"},{"id":"io.github.libtmux.junit5.Target.Target","name":"Target","kind":"class","modifiers":[],"signatures":[{"raw":"record Target(FakeSession session, FakeWindow window, FakePane pane)","params":[{"name":"session","type":"FakeSession"},{"name":"window","type":"FakeWindow"},{"name":"pane","type":"FakePane"}]}],"typeScopeBoundary":false,"doc":{"summary":"A session, one of its windows, and one of that window's panes: what a command is scoped to."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Target.java","line":8,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Target","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Target.Target","product":"core","slug":"io-github-libtmux-junit5-target-target"},{"id":"io.github.libtmux.junit5.Target.Target.active","name":"active","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.junit5.Target.Target","signatures":[{"raw":"static Optional active(List sessions)","params":[{"name":"sessions","type":"List"}],"returns":"Optional","typeScopeBoundary":true}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Target.java","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Target.active","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Target.Target.active","product":"core","slug":"io-github-libtmux-junit5-target-target-active"},{"id":"io.github.libtmux.junit5.Target.Target.resolve","name":"resolve","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.junit5.Target.Target","signatures":[{"raw":"static Optional resolve(List sessions, @Nullable String spec)","params":[{"name":"sessions","type":"List"},{"name":"spec","type":"String"}],"returns":"Optional","typeScopeBoundary":true}],"doc":{"summary":"Resolves {@code $id}, {@code @id}, {@code %id} and {@code =name}, with any trailing separator."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Target.java","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Target.resolve","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Target.Target.resolve","product":"core","slug":"io-github-libtmux-junit5-target-target-resolve"},{"id":"io.github.libtmux.junit5.Target.Target.session","name":"session","kind":"method","parent":"io.github.libtmux.junit5.Target.Target","modifiers":[],"signatures":[{"params":[],"returns":"FakeSession"}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Target.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Target.session","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Target.Target.session","product":"core","slug":"io-github-libtmux-junit5-target-target-session"},{"id":"io.github.libtmux.junit5.Target.Target.window","name":"window","kind":"method","parent":"io.github.libtmux.junit5.Target.Target","modifiers":[],"signatures":[{"params":[],"returns":"FakeWindow"}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Target.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Target.window","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Target.Target.window","product":"core","slug":"io-github-libtmux-junit5-target-target-window"},{"id":"io.github.libtmux.junit5.Target.Target.pane","name":"pane","kind":"method","parent":"io.github.libtmux.junit5.Target.Target","modifiers":[],"signatures":[{"params":[],"returns":"FakePane"}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/Target.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.Target.pane","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.Target.Target.pane","product":"core","slug":"io-github-libtmux-junit5-target-target-pane"},{"id":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension","name":"TmuxExtension","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Gives each test its own tmux server and guarantees it is gone afterwards.","body":"All state lives in the extension store, never in fields. JUnit reuses one declaratively\nregistered extension instance for every test in a class, so a field is shared state the moment\ntests run in parallel, and one test's teardown then reaches another test's server.\n\nThe server is started eagerly, before the test body, and the aggregate that owns it is\nregistered before any process exists. Registering afterwards leaves a window in which a failure\npartway through setup leaks a running tmux that nothing is left holding.\n\nTeardown is driven from a lifecycle callback and the aggregate is also {@link AutoCloseable}\nfor the framework's own store handling. Relying on store auto-close alone is a silent dependency\non a configuration property: with it disabled that design releases nothing and reports nothing.\nThe aggregate closes exactly once, so either path alone is sufficient."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxExtension.java","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.TmuxExtension","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension","product":"core","slug":"io-github-libtmux-junit5-tmuxextension-tmuxextension"},{"id":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.fixtureRoot","name":"fixtureRoot","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension","signatures":[{"raw":"static Path fixtureRoot()","params":[],"returns":"Path","typeScopeBoundary":true}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxExtension.java","line":114,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.TmuxExtension.fixtureRoot","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.fixtureRoot","product":"core","slug":"io-github-libtmux-junit5-tmuxextension-tmuxextension-fixtureroot"},{"id":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.reapAbandoned","name":"reapAbandoned","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension","signatures":[{"raw":"static int reapAbandoned(Path root)","params":[{"name":"root","type":"Path"}],"returns":"int","typeScopeBoundary":true}],"doc":{"summary":"Ends every tmux server under {@code root} whose owning JVM is gone, and answers how many ended. Runs while other runs are using the same root, so it may only touch abandoned servers."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxExtension.java","line":122,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.TmuxExtension.reapAbandoned","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.reapAbandoned","product":"core","slug":"io-github-libtmux-junit5-tmuxextension-tmuxextension-reapabandoned"},{"id":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.startOf","name":"startOf","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension","signatures":[{"raw":"static Optional startOf(long pid)","params":[{"name":"pid","type":"long"}],"returns":"Optional","typeScopeBoundary":true}],"doc":{"summary":"When a process started, in a form every JVM on this machine reads the same way: the kernel's own ticks since boot on Linux, and the platform's start instant elsewhere."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxExtension.java","line":228,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.TmuxExtension.startOf","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.startOf","product":"core","slug":"io-github-libtmux-junit5-tmuxextension-tmuxextension-startof"},{"id":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.deleteTree","name":"deleteTree","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension","signatures":[{"raw":"static void deleteTree(Path root)","params":[{"name":"root","type":"Path"}],"returns":"void","typeScopeBoundary":true}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxExtension.java","line":255,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.TmuxExtension.deleteTree","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.deleteTree","product":"core","slug":"io-github-libtmux-junit5-tmuxextension-tmuxextension-deletetree"},{"id":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.beforeEach","name":"beforeEach","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension","signatures":[{"raw":"@Override\n public void beforeEach(ExtensionContext context)","params":[{"name":"context","type":"ExtensionContext"}],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxExtension.java","line":272,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.TmuxExtension.beforeEach","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.beforeEach","product":"core","slug":"io-github-libtmux-junit5-tmuxextension-tmuxextension-beforeeach"},{"id":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.supportsParameter","name":"supportsParameter","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension","signatures":[{"raw":"@Override\n public boolean supportsParameter(ParameterContext parameter, ExtensionContext context)","params":[{"name":"parameter","type":"ParameterContext"},{"name":"context","type":"ExtensionContext"}],"returns":"boolean","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxExtension.java","line":277,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.TmuxExtension.supportsParameter","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.supportsParameter","product":"core","slug":"io-github-libtmux-junit5-tmuxextension-tmuxextension-supportsparameter"},{"id":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.resolveParameter","name":"resolveParameter","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension","signatures":[{"raw":"@Override\n public Object resolveParameter(ParameterContext parameter, ExtensionContext context)","params":[{"name":"parameter","type":"ParameterContext"},{"name":"context","type":"ExtensionContext"}],"returns":"Object","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxExtension.java","line":284,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.TmuxExtension.resolveParameter","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.resolveParameter","product":"core","slug":"io-github-libtmux-junit5-tmuxextension-tmuxextension-resolveparameter"},{"id":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.afterEach","name":"afterEach","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension","signatures":[{"raw":"@Override\n public void afterEach(ExtensionContext context)","params":[{"name":"context","type":"ExtensionContext"}],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxExtension.java","line":292,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.TmuxExtension.afterEach","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.afterEach","product":"core","slug":"io-github-libtmux-junit5-tmuxextension-tmuxextension-aftereach"},{"id":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture","name":"Fixture","kind":"class","modifiers":["static","readonly"],"parent":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension","signatures":[],"typeScopeBoundary":true,"doc":{"summary":"One test's server, socket and directory, released exactly once."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxExtension.java","line":309,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.TmuxExtension.Fixture","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture","product":"core","slug":"io-github-libtmux-junit5-tmuxextension-tmuxextension-fixture"},{"id":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture.start","name":"start","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture","signatures":[{"raw":"synchronized void start()","params":[],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxExtension.java","line":320,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.TmuxExtension.Fixture.start","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture.start","product":"core","slug":"io-github-libtmux-junit5-tmuxextension-tmuxextension-fixture-start"},{"id":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture.server","name":"server","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture","signatures":[{"raw":"Server server()","params":[],"returns":"Server","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxExtension.java","line":370,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.TmuxExtension.Fixture.server","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture.server","product":"core","slug":"io-github-libtmux-junit5-tmuxextension-tmuxextension-fixture-server"},{"id":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture.socket","name":"socket","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture","signatures":[{"raw":"Path socket()","params":[],"returns":"Path","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxExtension.java","line":378,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.TmuxExtension.Fixture.socket","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture.socket","product":"core","slug":"io-github-libtmux-junit5-tmuxextension-tmuxextension-fixture-socket"},{"id":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture.close","name":"close","kind":"method","modifiers":[],"parent":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture","signatures":[{"raw":"@Override\n public synchronized void close()","params":[],"returns":"void","typeScopeBoundary":false}],"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxExtension.java","line":386,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.TmuxExtension.Fixture.close","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture.close","product":"core","slug":"io-github-libtmux-junit5-tmuxextension-tmuxextension-fixture-close"},{"id":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture.awaitExit","name":"awaitExit","kind":"method","modifiers":["static","overload"],"parent":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture","signatures":[{"raw":"static boolean awaitExit(Server server)","params":[{"name":"server","type":"Server"}],"returns":"boolean","typeScopeBoundary":true},{"raw":"static boolean awaitExit(Server server, long timeoutMillis)","params":[{"name":"server","type":"Server"},{"name":"timeoutMillis","type":"long"}],"returns":"boolean","typeScopeBoundary":true}],"doc":{"summary":"Exit is proved by asking, not assumed from a kill that may have raced."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxExtension.java","line":415,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.TmuxExtension.Fixture.awaitExit","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.TmuxExtension.TmuxExtension.Fixture.awaitExit","product":"core","slug":"io-github-libtmux-junit5-tmuxextension-tmuxextension-fixture-awaitexit"},{"id":"io.github.libtmux.junit5.TmuxSocketPath.TmuxSocketPath","name":"TmuxSocketPath","kind":"class","modifiers":[],"signatures":[{"raw":"public record TmuxSocketPath(Path path)","params":[{"name":"path","type":"Path","doc":"the exact socket path this test's tmux was started with"}]}],"typeScopeBoundary":false,"doc":{"summary":"The socket a fixture server is listening on.","body":"A distinct type rather than a bare {@link Path} so the extension can resolve it without\nclaiming every {@code Path} parameter a test might want from some other extension."},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxSocketPath.java","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.TmuxSocketPath","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.TmuxSocketPath.TmuxSocketPath","product":"core","slug":"io-github-libtmux-junit5-tmuxsocketpath-tmuxsocketpath"},{"id":"io.github.libtmux.junit5.TmuxSocketPath.TmuxSocketPath.path","name":"path","kind":"method","parent":"io.github.libtmux.junit5.TmuxSocketPath.TmuxSocketPath","modifiers":[],"signatures":[{"params":[],"returns":"Path"}],"doc":{"summary":"the exact socket path this test's tmux was started with"},"source":{"file":"libtmux-junit5/src/main/java/io/github/libtmux/junit5/TmuxSocketPath.java","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.junit5.TmuxSocketPath.path","namespace":"io.github.libtmux.junit5","publicId":"io.github.libtmux.junit5.TmuxSocketPath.TmuxSocketPath.path","product":"core","slug":"io-github-libtmux-junit5-tmuxsocketpath-tmuxsocketpath-path"},{"id":"io.github.libtmux.mcp.Main.Main","name":"Main","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Runs the tmux MCP server over stdin and stdout.","body":"An MCP client launches this as a subprocess and speaks JSON-RPC over its standard streams, so\n**nothing may write to stdout but the protocol**. Diagnostics go to stderr, which the\nclient is free to log or discard.\n\nWhich tmux server to expose is chosen the same way the library chooses it: a socket path, a\nsocket name, or tmux's own default.\n\nThe unordered toolset and named-tool environment variables resolve one immutable surface\nbefore tmux is opened. A tool outside it is neither listed nor callable.","examples":[{"lang":"java","code":"libtmux-mcp --socket /run/user/1000/tmux/default\nlibtmux-mcp --socket-name work --tmux /usr/local/bin/tmux"}]},"source":{"file":"libtmux-mcp/src/main/java/io/github/libtmux/mcp/Main.java","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.mcp.Main","namespace":"io.github.libtmux.mcp","publicId":"io.github.libtmux.mcp.Main.Main","product":"mcp","apiScope":"exported","slug":"io-github-libtmux-mcp-main-main"},{"id":"io.github.libtmux.mcp.Main.Main.main","name":"main","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.mcp.Main.Main","signatures":[{"raw":"public static void main(String[] args)","params":[{"name":"args","type":"String[]","doc":"{@code --socket PATH}, {@code --socket-name NAME}, {@code --tmux BINARY}"}],"returns":"void","typeScopeBoundary":true}],"doc":{"summary":"Serves a tmux server over stdin and stdout until the client closes them."},"source":{"file":"libtmux-mcp/src/main/java/io/github/libtmux/mcp/Main.java","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.mcp.Main.main","namespace":"io.github.libtmux.mcp","publicId":"io.github.libtmux.mcp.Main.Main.main","product":"mcp","apiScope":"exported","slug":"io-github-libtmux-mcp-main-main-main"},{"id":"io.github.libtmux.mcp.Main.Main.configure","name":"configure","kind":"method","modifiers":["static","overload"],"parent":"io.github.libtmux.mcp.Main.Main","signatures":[{"raw":"static ServerConfig configure(List args)","params":[{"name":"args","type":"List"}],"returns":"ServerConfig","typeScopeBoundary":true},{"raw":"static ServerConfig configure(List args, Map environment)","params":[{"name":"args","type":"List"},{"name":"environment","type":"Map"}],"returns":"ServerConfig","typeScopeBoundary":true}],"source":{"file":"libtmux-mcp/src/main/java/io/github/libtmux/mcp/Main.java","line":76,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.mcp.Main.configure","namespace":"io.github.libtmux.mcp","publicId":"io.github.libtmux.mcp.Main.Main.configure","product":"mcp","apiScope":"exported","slug":"io-github-libtmux-mcp-main-main-configure"},{"id":"io.github.libtmux.mcp.TmuxMcpServer.TmuxMcpServer","name":"TmuxMcpServer","kind":"class","modifiers":["readonly"],"signatures":[],"typeScopeBoundary":false,"doc":{"summary":"Exposes a tmux server to a model over the Model Context Protocol.","body":"Thin by design. What the tools do lives in {@link Catalog} and the classes it names, which is\nwhat gets tested against real tmux; this class describes them to a client and turns their answers\ninto protocol.\n\nThe SDK dispatches synchronous handlers on its bounded worker scheduler, not the transport I/O\nthread. Core operations remain typed and synchronous; wait and channel operations retain their\nown cancellation and timeout contracts."},"source":{"file":"libtmux-mcp/src/main/java/io/github/libtmux/mcp/TmuxMcpServer.java","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.mcp.TmuxMcpServer","namespace":"io.github.libtmux.mcp","publicId":"io.github.libtmux.mcp.TmuxMcpServer.TmuxMcpServer","product":"mcp","apiScope":"exported","slug":"io-github-libtmux-mcp-tmuxmcpserver-tmuxmcpserver"},{"id":"io.github.libtmux.mcp.TmuxMcpServer.TmuxMcpServer.overStdio","name":"overStdio","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.mcp.TmuxMcpServer.TmuxMcpServer","signatures":[{"raw":"public static McpSyncServer overStdio(Server server)","params":[{"name":"server","type":"Server"}],"returns":"McpSyncServer","typeScopeBoundary":true}],"doc":{"summary":"Serves a tmux server over stdin and stdout, which is how an MCP client launches a tool."},"source":{"file":"libtmux-mcp/src/main/java/io/github/libtmux/mcp/TmuxMcpServer.java","line":46,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.mcp.TmuxMcpServer.overStdio","namespace":"io.github.libtmux.mcp","publicId":"io.github.libtmux.mcp.TmuxMcpServer.TmuxMcpServer.overStdio","product":"mcp","apiScope":"exported","slug":"io-github-libtmux-mcp-tmuxmcpserver-tmuxmcpserver-overstdio"},{"id":"io.github.libtmux.mcp.TmuxMcpServer.TmuxMcpServer.serving","name":"serving","kind":"method","modifiers":["static"],"parent":"io.github.libtmux.mcp.TmuxMcpServer.TmuxMcpServer","signatures":[{"raw":"public static McpSyncServer serving(Server server, McpServerTransportProvider transport)","params":[{"name":"server","type":"Server"},{"name":"transport","type":"McpServerTransportProvider"}],"returns":"McpSyncServer","typeScopeBoundary":true}],"doc":{"summary":"Serves a tmux server over a caller-supplied transport.","body":"The returned server owns the transport. Ownership transfers on entry, so failed startup\ncloses it too."},"source":{"file":"libtmux-mcp/src/main/java/io/github/libtmux/mcp/TmuxMcpServer.java","line":92,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"qualifiedName":"io.github.libtmux.mcp.TmuxMcpServer.serving","namespace":"io.github.libtmux.mcp","publicId":"io.github.libtmux.mcp.TmuxMcpServer.TmuxMcpServer.serving","product":"mcp","apiScope":"exported","slug":"io-github-libtmux-mcp-tmuxmcpserver-tmuxmcpserver-serving"}],"sources":[{"product":"core","package":"io.github.libtmux:libtmux","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272","version":"0.0.1-alpha.17-SNAPSHOT"},{"product":"workspace","package":"libtmux-workspace","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272","version":"0.0.1-alpha.17-SNAPSHOT"},{"product":"mcp","package":"libtmux-mcp","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272","version":"0.0.1-alpha.17-SNAPSHOT"}],"generatedSources":{"libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Client_.java":"package io.github.libtmux;\n\nimport io.github.libtmux.query.Fields;\n\n/**\n * Typed fields of {@link Client}.\n */\npublic final class Client_ {\n private static final Fields.TextField NAME = Fields.text(\"client_name\", Client::name);\n\n private static final Fields.ToOneRef SESSION = Fields.toOne(\"session\", Client::session);\n\n private Client_() {\n }\n\n /**\n * The client's terminal name, which is how tmux addresses it.\n */\n public static Fields.TextField name() {\n return NAME;\n }\n\n /**\n * The session this client was attached to, if any.\n */\n public static Fields.ToOneRef session() {\n return SESSION;\n }\n}\n","libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Pane_.java":"package io.github.libtmux;\n\nimport io.github.libtmux.query.Fields;\n\n/**\n * Typed fields of {@link Pane}.\n */\npublic final class Pane_ {\n private static final Fields.TextField ID = Fields.text(\"pane_id\", pane -> pane.id().value());\n\n private static final Fields.TextField COMMAND = Fields.text(\"pane_current_command\", Pane::currentCommand);\n\n private static final Fields.NumberField INDEX = Fields.number(\"pane_index\", Pane::index);\n\n private static final Fields.FlagField ACTIVE = Fields.flag(\"pane_active\", Pane::active);\n\n private static final Fields.TextField TITLE = Fields.text(\"pane_title\", Pane::title);\n\n private static final Fields.TextField PATH = Fields.text(\"pane_current_path\", Pane::currentPathText);\n\n private static final Fields.NumberField WIDTH = Fields.number(\"pane_width\", pane -> pane.size().width());\n\n private static final Fields.NumberField HEIGHT = Fields.number(\"pane_height\", pane -> pane.size().height());\n\n private static final Fields.NumberField LEFT = Fields.number(\"pane_left\", pane -> pane.position().left());\n\n private static final Fields.NumberField TOP = Fields.number(\"pane_top\", pane -> pane.position().top());\n\n private static final Fields.FlagField AT_TOP = Fields.flag(\"pane_at_top\", pane -> pane.edges().top());\n\n private static final Fields.FlagField AT_BOTTOM = Fields.flag(\"pane_at_bottom\", pane -> pane.edges().bottom());\n\n private static final Fields.FlagField AT_LEFT = Fields.flag(\"pane_at_left\", pane -> pane.edges().left());\n\n private static final Fields.FlagField AT_RIGHT = Fields.flag(\"pane_at_right\", pane -> pane.edges().right());\n\n private Pane_() {\n }\n\n /**\n * The pane id.\n */\n public static Fields.TextField id() {\n return ID;\n }\n\n /**\n * The command tmux reported running in the pane.\n */\n public static Fields.TextField command() {\n return COMMAND;\n }\n\n /**\n * The pane's position in its window.\n */\n public static Fields.NumberField index() {\n return INDEX;\n }\n\n /**\n * Whether this was its window's active pane.\n */\n public static Fields.FlagField active() {\n return ACTIVE;\n }\n\n /**\n * The pane's title, which a program running in it can set.\n */\n public static Fields.TextField title() {\n return TITLE;\n }\n\n /**\n * The pane's working directory, as the text tmux reported.\n */\n public static Fields.TextField path() {\n return PATH;\n }\n\n /**\n * The pane's width, in cells.\n */\n public static Fields.NumberField width() {\n return WIDTH;\n }\n\n /**\n * The pane's height, in cells.\n */\n public static Fields.NumberField height() {\n return HEIGHT;\n }\n\n /**\n * The column of the pane's left edge in its window.\n */\n public static Fields.NumberField left() {\n return LEFT;\n }\n\n /**\n * The row of the pane's top edge in its window.\n */\n public static Fields.NumberField top() {\n return TOP;\n }\n\n /**\n * Whether the pane touches the top of its window.\n */\n public static Fields.FlagField atTop() {\n return AT_TOP;\n }\n\n /**\n * Whether the pane touches the bottom of its window.\n */\n public static Fields.FlagField atBottom() {\n return AT_BOTTOM;\n }\n\n /**\n * Whether the pane touches the left of its window.\n */\n public static Fields.FlagField atLeft() {\n return AT_LEFT;\n }\n\n /**\n * Whether the pane touches the right of its window.\n */\n public static Fields.FlagField atRight() {\n return AT_RIGHT;\n }\n}\n","libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Session_.java":"package io.github.libtmux;\n\nimport io.github.libtmux.query.Fields;\n\n/**\n * Typed fields of {@link Session}, for building an expression that can be read as well as run.\n *\n *

Each field exposes only the operators its type supports, so asking a flag to start with a\n * string does not compile. Every field names a tmux format, so a backend model can bind the handle\n * before translating the expression into tmux's own {@code -f} filter.\n */\npublic final class Session_ {\n private static final Fields.TextField ID = Fields.text(\"session_id\", session -> session.id().value());\n\n private static final Fields.TextField NAME = Fields.text(\"session_name\", Session::name);\n\n private static final Fields.FlagField ATTACHED = Fields.flag(\"session_attached\", Session::attached);\n\n private static final Fields.NumberField WINDOW_COUNT = Fields.number(\"session_windows\", session -> session.windows().size());\n\n private static final Fields.ToManyRef WINDOWS = Fields.toMany(\"windows\", Session::windows);\n\n private Session_() {\n }\n\n /**\n * The session id, as text, so it can be compared and listed.\n */\n public static Fields.TextField id() {\n return ID;\n }\n\n /**\n * The session name.\n */\n public static Fields.TextField name() {\n return NAME;\n }\n\n /**\n * Whether a client was attached when this was captured.\n */\n public static Fields.FlagField attached() {\n return ATTACHED;\n }\n\n /**\n * How many windows this session holds.\n */\n public static Fields.NumberField windowCount() {\n return WINDOW_COUNT;\n }\n\n /**\n * This session's windows.\n */\n public static Fields.ToManyRef windows() {\n return WINDOWS;\n }\n}\n","libtmux/build/generated/sources/fieldCatalog/java/main/io/github/libtmux/Window_.java":"package io.github.libtmux;\n\nimport io.github.libtmux.query.Fields;\n\n/**\n * Typed fields of {@link Window}.\n */\npublic final class Window_ {\n private static final Fields.TextField ID = Fields.text(\"window_id\", window -> window.id().value());\n\n private static final Fields.TextField NAME = Fields.text(\"window_name\", Window::name);\n\n private static final Fields.NumberField INDEX = Fields.number(\"window_index\", window -> window.index().value());\n\n private static final Fields.FlagField ACTIVE = Fields.flag(\"window_active\", Window::active);\n\n private static final Fields.FlagField LINKED = Fields.flag(\"window_linked\", Window::linked);\n\n private static final Fields.NumberField WIDTH = Fields.number(\"window_width\", window -> window.size().width());\n\n private static final Fields.NumberField HEIGHT = Fields.number(\"window_height\", window -> window.size().height());\n\n private static final Fields.NumberField PANE_COUNT = Fields.number(\"window_panes\", window -> window.panes().size());\n\n private static final Fields.ToManyRef PANES = Fields.toMany(\"panes\", Window::panes);\n\n private static final Fields.ToOneRef SESSION = Fields.toOne(\"session\", window -> java.util.Optional.of(window.session()));\n\n private Window_() {\n }\n\n /**\n * The underlying window id, shared by every link to it.\n */\n public static Fields.TextField id() {\n return ID;\n }\n\n /**\n * The window name.\n */\n public static Fields.TextField name() {\n return NAME;\n }\n\n /**\n * Where this link sits in its session.\n */\n public static Fields.NumberField index() {\n return INDEX;\n }\n\n /**\n * Whether this was its session's active window.\n */\n public static Fields.FlagField active() {\n return ACTIVE;\n }\n\n /**\n * Whether the underlying window is linked into more than one session.\n */\n public static Fields.FlagField linked() {\n return LINKED;\n }\n\n /**\n * The window's width, in cells.\n */\n public static Fields.NumberField width() {\n return WIDTH;\n }\n\n /**\n * The window's height, in cells.\n */\n public static Fields.NumberField height() {\n return HEIGHT;\n }\n\n /**\n * How many panes this link holds.\n */\n public static Fields.NumberField paneCount() {\n return PANE_COUNT;\n }\n\n /**\n * This link's panes.\n */\n public static Fields.ToManyRef panes() {\n return PANES;\n }\n\n /**\n * The session this link belongs to.\n */\n public static Fields.ToOneRef session() {\n return SESSION;\n }\n}\n"},"repo":"libtmux/libtmux-java"} diff --git a/site/src/data/api/kotlin.json b/site/src/data/api/kotlin.json index f0bdc31fe..d65fea074 100644 --- a/site/src/data/api/kotlin.json +++ b/site/src/data/api/kotlin.json @@ -1 +1 @@ -{"port":"kotlin","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractor":"@libtmux/api-model (kotlin syntax)","symbols":[{"id":"io.github.libtmux.kotlin.Batch","name":"Batch","kind":"class","signatures":[{"raw":"public class Batch","params":[]}],"imports":{"JavaBatch":"io.github.libtmux.batch.Batch"},"modifiers":[],"doc":{"summary":"Several tmux commands collected to run together in one invocation.","body":"Holds the Java handle privately, so a member here always wins over a same-named catalog-generated\nextension in `BatchOperations.kt`."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Batch.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-batch"},{"id":"io.github.libtmux.kotlin.Batch.server","name":"server","kind":"property","parent":"io.github.libtmux.kotlin.Batch","modifiers":[],"signatures":[{"raw":"public val server: Server","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Batch.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-batch-server"},{"id":"io.github.libtmux.kotlin.Batch.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.kotlin.Batch","signatures":[{"raw":"public val asJava: JavaBatch","params":[],"returns":"JavaBatch"}],"imports":{"JavaBatch":"io.github.libtmux.batch.Batch"},"modifiers":[],"doc":{"summary":"The Java batch this wraps: the same object, for a Java API that takes one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Batch.kt","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-batch-asjava"},{"id":"io.github.libtmux.kotlin.Batch.add","name":"add","kind":"method","parent":"io.github.libtmux.kotlin.Batch","signatures":[{"raw":"public fun add(vararg argv: String): Batch","params":[{"name":"argv","type":"String"}],"returns":"Batch"},{"raw":"public fun add(argv: List): Batch","params":[{"name":"argv","type":"List"}],"returns":"Batch"}],"imports":{"JavaBatch":"io.github.libtmux.batch.Batch"},"modifiers":["overload"],"doc":{"summary":"Adds one tmux command, its arguments already separate elements. Collected, not sent."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Batch.kt","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-batch-add"},{"id":"io.github.libtmux.kotlin.Batch.size","name":"size","kind":"method","parent":"io.github.libtmux.kotlin.Batch","signatures":[{"raw":"public fun size(): Int","params":[],"returns":"Int"}],"imports":{"JavaBatch":"io.github.libtmux.batch.Batch"},"modifiers":[],"doc":{"summary":"How many operations have been collected. A pure, local read."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Batch.kt","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-batch-size"},{"id":"io.github.libtmux.kotlin.Batch.length","name":"length","kind":"method","parent":"io.github.libtmux.kotlin.Batch","signatures":[{"raw":"public fun length(): Int","params":[],"returns":"Int"}],"imports":{"JavaBatch":"io.github.libtmux.batch.Batch"},"modifiers":[],"doc":{"summary":"How many bytes the collected operations come to as the one command tmux parses. A pure, local read."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Batch.kt","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-batch-length"},{"id":"io.github.libtmux.kotlin.Batch.equals","name":"equals","kind":"method","parent":"io.github.libtmux.kotlin.Batch","signatures":[{"raw":"override fun equals(other: Any?): Boolean","params":[{"name":"other","type":"Any?"}],"returns":"Boolean"}],"imports":{"JavaBatch":"io.github.libtmux.batch.Batch"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Batch.kt","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-batch-equals"},{"id":"io.github.libtmux.kotlin.Batch.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.kotlin.Batch","signatures":[{"raw":"override fun hashCode(): Int","params":[],"returns":"Int"}],"imports":{"JavaBatch":"io.github.libtmux.batch.Batch"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Batch.kt","line":33,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-batch-hashcode"},{"id":"io.github.libtmux.kotlin.Batch.toString","name":"toString","kind":"method","parent":"io.github.libtmux.kotlin.Batch","signatures":[{"raw":"override fun toString(): String","params":[],"returns":"String"}],"imports":{"JavaBatch":"io.github.libtmux.batch.Batch"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Batch.kt","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-batch-tostring"},{"id":"io.github.libtmux.kotlin.Buffers","name":"Buffers","kind":"class","signatures":[{"raw":"public class Buffers","params":[]}],"imports":{"JavaBuffers":"io.github.libtmux.Buffers"},"modifiers":[],"doc":{"summary":"The tmux server's paste buffers.","body":"Holds the Java handle privately, so a member here always wins over a same-named catalog-generated\nextension in `BuffersOperations.kt`."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Buffers.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-buffers"},{"id":"io.github.libtmux.kotlin.Buffers.server","name":"server","kind":"property","parent":"io.github.libtmux.kotlin.Buffers","modifiers":[],"signatures":[{"raw":"public val server: Server","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Buffers.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-buffers-server"},{"id":"io.github.libtmux.kotlin.Buffers.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.kotlin.Buffers","signatures":[{"raw":"public val asJava: JavaBuffers","params":[],"returns":"JavaBuffers"}],"imports":{"JavaBuffers":"io.github.libtmux.Buffers"},"modifiers":[],"doc":{"summary":"The Java buffers this wraps: the same object, for a Java API that takes one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Buffers.kt","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-buffers-asjava"},{"id":"io.github.libtmux.kotlin.Buffers.equals","name":"equals","kind":"method","parent":"io.github.libtmux.kotlin.Buffers","signatures":[{"raw":"override fun equals(other: Any?): Boolean","params":[{"name":"other","type":"Any?"}],"returns":"Boolean"}],"imports":{"JavaBuffers":"io.github.libtmux.Buffers"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Buffers.kt","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-buffers-equals"},{"id":"io.github.libtmux.kotlin.Buffers.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.kotlin.Buffers","signatures":[{"raw":"override fun hashCode(): Int","params":[],"returns":"Int"}],"imports":{"JavaBuffers":"io.github.libtmux.Buffers"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Buffers.kt","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-buffers-hashcode"},{"id":"io.github.libtmux.kotlin.Buffers.toString","name":"toString","kind":"method","parent":"io.github.libtmux.kotlin.Buffers","signatures":[{"raw":"override fun toString(): String","params":[],"returns":"String"}],"imports":{"JavaBuffers":"io.github.libtmux.Buffers"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Buffers.kt","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-buffers-tostring"},{"id":"io.github.libtmux.kotlin.Client","name":"Client","kind":"class","signatures":[{"raw":"public class Client","params":[]}],"imports":{"ClientAttachment":"io.github.libtmux.ClientAttachment","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"An attached tmux client and its captured properties.","body":"Holds the Java handle privately, so a member here always wins over a same-named catalog-generated\nextension in `ClientOperations.kt`. [Companion] hosts the generated query field namespace."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Client.kt","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client"},{"id":"io.github.libtmux.kotlin.Client.server","name":"server","kind":"property","parent":"io.github.libtmux.kotlin.Client","modifiers":[],"signatures":[{"raw":"public val server: Server","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Client.kt","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client-server"},{"id":"io.github.libtmux.kotlin.Client.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.kotlin.Client","signatures":[{"raw":"public val asJava: JavaClient","params":[],"returns":"JavaClient"}],"imports":{"ClientAttachment":"io.github.libtmux.ClientAttachment","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The Java client this wraps: the same object, for a Java API that takes one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Client.kt","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client-asjava"},{"id":"io.github.libtmux.kotlin.Client.name","name":"name","kind":"property","parent":"io.github.libtmux.kotlin.Client","signatures":[{"raw":"public val name: String","params":[],"returns":"String"}],"imports":{"ClientAttachment":"io.github.libtmux.ClientAttachment","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The client's terminal name, which is how tmux addresses it."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Client.kt","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client-name"},{"id":"io.github.libtmux.kotlin.Client.session","name":"session","kind":"property","parent":"io.github.libtmux.kotlin.Client","signatures":[{"raw":"public val session: Session?","params":[],"returns":"Session?"}],"imports":{"ClientAttachment":"io.github.libtmux.ClientAttachment","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The session this client was attached to when captured. A pure read of the capture."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Client.kt","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client-session"},{"id":"io.github.libtmux.kotlin.Client.attachment","name":"attachment","kind":"property","parent":"io.github.libtmux.kotlin.Client","signatures":[{"raw":"public val attachment: ClientAttachment?","params":[],"returns":"ClientAttachment?"}],"imports":{"ClientAttachment":"io.github.libtmux.ClientAttachment","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"What this client was looking at when captured. A pure read: it issues no command."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Client.kt","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client-attachment"},{"id":"io.github.libtmux.kotlin.Client.equals","name":"equals","kind":"method","parent":"io.github.libtmux.kotlin.Client","signatures":[{"raw":"override fun equals(other: Any?): Boolean","params":[{"name":"other","type":"Any?"}],"returns":"Boolean"}],"imports":{"ClientAttachment":"io.github.libtmux.ClientAttachment","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Client.kt","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client-equals"},{"id":"io.github.libtmux.kotlin.Client.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.kotlin.Client","signatures":[{"raw":"override fun hashCode(): Int","params":[],"returns":"Int"}],"imports":{"ClientAttachment":"io.github.libtmux.ClientAttachment","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Client.kt","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client-hashcode"},{"id":"io.github.libtmux.kotlin.Client.toString","name":"toString","kind":"method","parent":"io.github.libtmux.kotlin.Client","signatures":[{"raw":"override fun toString(): String","params":[],"returns":"String"}],"imports":{"ClientAttachment":"io.github.libtmux.ClientAttachment","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Client.kt","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client-tostring"},{"id":"io.github.libtmux.kotlin.Client.Companion","name":"Companion","kind":"module","parent":"io.github.libtmux.kotlin.Client","signatures":[{"raw":"public companion object","params":[]}],"imports":{"ClientAttachment":"io.github.libtmux.ClientAttachment","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Client.kt","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client-companion"},{"id":"io.github.libtmux.kotlin.CommandChain","name":"CommandChain","kind":"class","signatures":[{"raw":"public class CommandChain","params":[]}],"imports":{"JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"doc":{"summary":"A sequence of tmux commands where each one acts on what the last one made.","body":"Holds the Java handle privately, so a member here always wins over a same-named catalog-generated\nextension in `CommandChainOperations.kt`."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/CommandChain.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commandchain"},{"id":"io.github.libtmux.kotlin.CommandChain.server","name":"server","kind":"property","parent":"io.github.libtmux.kotlin.CommandChain","modifiers":[],"signatures":[{"raw":"public val server: Server","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/CommandChain.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commandchain-server"},{"id":"io.github.libtmux.kotlin.CommandChain.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.kotlin.CommandChain","signatures":[{"raw":"public val asJava: JavaCommandChain","params":[],"returns":"JavaCommandChain"}],"imports":{"JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"doc":{"summary":"The Java chain this wraps: the same object, for a Java API that takes one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/CommandChain.kt","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commandchain-asjava"},{"id":"io.github.libtmux.kotlin.CommandChain.newWindow","name":"newWindow","kind":"method","parent":"io.github.libtmux.kotlin.CommandChain","signatures":[{"raw":"public fun newWindow(name: String): CommandChain","params":[{"name":"name","type":"String"}],"returns":"CommandChain"}],"imports":{"JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"doc":{"summary":"Makes a window named [name], which the commands after it act on. Collected, not sent."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/CommandChain.kt","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commandchain-newwindow"},{"id":"io.github.libtmux.kotlin.CommandChain.renameWindow","name":"renameWindow","kind":"method","parent":"io.github.libtmux.kotlin.CommandChain","signatures":[{"raw":"public fun renameWindow(name: String): CommandChain","params":[{"name":"name","type":"String"}],"returns":"CommandChain"}],"imports":{"JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"doc":{"summary":"Renames the window the chain is on. Collected, not sent."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/CommandChain.kt","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commandchain-renamewindow"},{"id":"io.github.libtmux.kotlin.CommandChain.splitLeftRight","name":"splitLeftRight","kind":"method","parent":"io.github.libtmux.kotlin.CommandChain","signatures":[{"raw":"public fun splitLeftRight(): CommandChain","params":[],"returns":"CommandChain"}],"imports":{"JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"doc":{"summary":"Splits the current pane into left and right. Collected, not sent."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/CommandChain.kt","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commandchain-splitleftright"},{"id":"io.github.libtmux.kotlin.CommandChain.splitTopBottom","name":"splitTopBottom","kind":"method","parent":"io.github.libtmux.kotlin.CommandChain","signatures":[{"raw":"public fun splitTopBottom(): CommandChain","params":[],"returns":"CommandChain"}],"imports":{"JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"doc":{"summary":"Splits the current pane into top and bottom. Collected, not sent."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/CommandChain.kt","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commandchain-splittopbottom"},{"id":"io.github.libtmux.kotlin.CommandChain.sendLine","name":"sendLine","kind":"method","parent":"io.github.libtmux.kotlin.CommandChain","signatures":[{"raw":"public fun sendLine(command: String): CommandChain","params":[{"name":"command","type":"String"}],"returns":"CommandChain"}],"imports":{"JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"doc":{"summary":"Types [command] into the current pane and presses Enter. Collected, not sent."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/CommandChain.kt","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commandchain-sendline"},{"id":"io.github.libtmux.kotlin.CommandChain.then","name":"then","kind":"method","parent":"io.github.libtmux.kotlin.CommandChain","signatures":[{"raw":"public fun then(vararg argv: String): CommandChain","params":[{"name":"argv","type":"String"}],"returns":"CommandChain"},{"raw":"public fun then(argv: List): CommandChain","params":[{"name":"argv","type":"List"}],"returns":"CommandChain"}],"imports":{"JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":["overload"],"doc":{"summary":"Adds any tmux command. Collected, not sent."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/CommandChain.kt","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commandchain-then"},{"id":"io.github.libtmux.kotlin.CommandChain.equals","name":"equals","kind":"method","parent":"io.github.libtmux.kotlin.CommandChain","signatures":[{"raw":"override fun equals(other: Any?): Boolean","params":[{"name":"other","type":"Any?"}],"returns":"Boolean"}],"imports":{"JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/CommandChain.kt","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commandchain-equals"},{"id":"io.github.libtmux.kotlin.CommandChain.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.kotlin.CommandChain","signatures":[{"raw":"override fun hashCode(): Int","params":[],"returns":"Int"}],"imports":{"JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/CommandChain.kt","line":39,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commandchain-hashcode"},{"id":"io.github.libtmux.kotlin.CommandChain.toString","name":"toString","kind":"method","parent":"io.github.libtmux.kotlin.CommandChain","signatures":[{"raw":"override fun toString(): String","params":[],"returns":"String"}],"imports":{"JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/CommandChain.kt","line":41,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commandchain-tostring"},{"id":"io.github.libtmux.kotlin.Commands","name":"Commands","kind":"class","signatures":[{"raw":"public class Commands","params":[]}],"imports":{"JavaCommands":"io.github.libtmux.Commands"},"modifiers":[],"doc":{"summary":"The commands this tmux knows, read without starting a server to answer.","body":"Holds the Java handle privately, so a member here always wins over a same-named catalog-generated\nextension in `CommandsOperations.kt`."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Commands.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commands"},{"id":"io.github.libtmux.kotlin.Commands.server","name":"server","kind":"property","parent":"io.github.libtmux.kotlin.Commands","modifiers":[],"signatures":[{"raw":"public val server: Server","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Commands.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commands-server"},{"id":"io.github.libtmux.kotlin.Commands.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.kotlin.Commands","signatures":[{"raw":"public val asJava: JavaCommands","params":[],"returns":"JavaCommands"}],"imports":{"JavaCommands":"io.github.libtmux.Commands"},"modifiers":[],"doc":{"summary":"The Java commands this wraps: the same object, for a Java API that takes one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Commands.kt","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commands-asjava"},{"id":"io.github.libtmux.kotlin.Commands.equals","name":"equals","kind":"method","parent":"io.github.libtmux.kotlin.Commands","signatures":[{"raw":"override fun equals(other: Any?): Boolean","params":[{"name":"other","type":"Any?"}],"returns":"Boolean"}],"imports":{"JavaCommands":"io.github.libtmux.Commands"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Commands.kt","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commands-equals"},{"id":"io.github.libtmux.kotlin.Commands.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.kotlin.Commands","signatures":[{"raw":"override fun hashCode(): Int","params":[],"returns":"Int"}],"imports":{"JavaCommands":"io.github.libtmux.Commands"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Commands.kt","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commands-hashcode"},{"id":"io.github.libtmux.kotlin.Commands.toString","name":"toString","kind":"method","parent":"io.github.libtmux.kotlin.Commands","signatures":[{"raw":"override fun toString(): String","params":[],"returns":"String"}],"imports":{"JavaCommands":"io.github.libtmux.Commands"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Commands.kt","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commands-tostring"},{"id":"io.github.libtmux.kotlin.ControlClient","name":"ControlClient","kind":"class","signatures":[{"raw":"public class ControlClient : AutoCloseable","params":[],"returns":"AutoCloseable"}],"imports":{"ControlEvent":"io.github.libtmux.control.ControlEvent","Delivery":"io.github.libtmux.control.Delivery","PaneOutput":"io.github.libtmux.control.PaneOutput","Flow":"kotlinx.coroutines.flow.Flow","JavaControlClient":"io.github.libtmux.control.ControlClient"},"modifiers":[],"doc":{"summary":"A tmux client that stays attached and answers one command at a time.","body":"Holds the Java handle privately, so a member here always wins over a same-named catalog-generated\nextension in `ControlClientOperations.kt`."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/ControlClient.kt","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-controlclient"},{"id":"io.github.libtmux.kotlin.ControlClient.server","name":"server","kind":"property","parent":"io.github.libtmux.kotlin.ControlClient","modifiers":[],"signatures":[{"raw":"public val server: Server","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/ControlClient.kt","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-controlclient-server"},{"id":"io.github.libtmux.kotlin.ControlClient.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.kotlin.ControlClient","signatures":[{"raw":"public val asJava: JavaControlClient","params":[],"returns":"JavaControlClient"}],"imports":{"ControlEvent":"io.github.libtmux.control.ControlEvent","Delivery":"io.github.libtmux.control.Delivery","PaneOutput":"io.github.libtmux.control.PaneOutput","Flow":"kotlinx.coroutines.flow.Flow","JavaControlClient":"io.github.libtmux.control.ControlClient"},"modifiers":[],"doc":{"summary":"The Java control client this wraps: the same object, for a Java API that takes one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/ControlClient.kt","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-controlclient-asjava"},{"id":"io.github.libtmux.kotlin.ControlClient.isAlive","name":"isAlive","kind":"property","parent":"io.github.libtmux.kotlin.ControlClient","signatures":[{"raw":"public val isAlive: Boolean","params":[],"returns":"Boolean"}],"imports":{"ControlEvent":"io.github.libtmux.control.ControlEvent","Delivery":"io.github.libtmux.control.Delivery","PaneOutput":"io.github.libtmux.control.PaneOutput","Flow":"kotlinx.coroutines.flow.Flow","JavaControlClient":"io.github.libtmux.control.ControlClient"},"modifiers":[],"doc":{"summary":"Whether the client is still running."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/ControlClient.kt","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-controlclient-isalive"},{"id":"io.github.libtmux.kotlin.ControlClient.standardError","name":"standardError","kind":"property","parent":"io.github.libtmux.kotlin.ControlClient","signatures":[{"raw":"public val standardError: String","params":[],"returns":"String"}],"imports":{"ControlEvent":"io.github.libtmux.control.ControlEvent","Delivery":"io.github.libtmux.control.Delivery","PaneOutput":"io.github.libtmux.control.PaneOutput","Flow":"kotlinx.coroutines.flow.Flow","JavaControlClient":"io.github.libtmux.control.ControlClient"},"modifiers":[],"doc":{"summary":"The error text captured from this control process, at most 4096 bytes."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/ControlClient.kt","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-controlclient-standarderror"},{"id":"io.github.libtmux.kotlin.ControlClient.standardErrorTruncated","name":"standardErrorTruncated","kind":"property","parent":"io.github.libtmux.kotlin.ControlClient","signatures":[{"raw":"public val standardErrorTruncated: Boolean","params":[],"returns":"Boolean"}],"imports":{"ControlEvent":"io.github.libtmux.control.ControlEvent","Delivery":"io.github.libtmux.control.Delivery","PaneOutput":"io.github.libtmux.control.PaneOutput","Flow":"kotlinx.coroutines.flow.Flow","JavaControlClient":"io.github.libtmux.control.ControlClient"},"modifiers":[],"doc":{"summary":"Whether [standardError] stopped before the process finished writing it."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/ControlClient.kt","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-controlclient-standarderrortruncated"},{"id":"io.github.libtmux.kotlin.ControlClient.output","name":"output","kind":"method","parent":"io.github.libtmux.kotlin.ControlClient","signatures":[{"raw":"public fun output(capacity: Int, onSubscribed: suspend () -> Unit = {}): Flow>","params":[{"name":"capacity","type":"Int"},{"name":"onSubscribed","type":"suspend","default":"{}"}],"returns":"Flow>"}],"imports":{"ControlEvent":"io.github.libtmux.control.ControlEvent","Delivery":"io.github.libtmux.control.Delivery","PaneOutput":"io.github.libtmux.control.PaneOutput","Flow":"kotlinx.coroutines.flow.Flow","JavaControlClient":"io.github.libtmux.control.ControlClient"},"modifiers":[],"doc":{"summary":"Terminal output tmux pushes, as a cold [Flow].","body":"A fresh Java subscription opens per [kotlinx.coroutines.flow.Flow.collect] and closes when\ncollection ends, cancels, or throws — fan-out means collecting twice, each with its own gap\naccounting. Not `suspend`: opening the subscription is local and does no tmux round trip: only\ncollecting it reads.\n\nOutput tmux sends before the subscription opens is not delivered, and a cold flow opens it\nonly when collection starts. So a command whose output is wanted belongs in [onSubscribed],\nwhich runs once the subscription exists and before the first read, rather than before\n`collect`: `control.output(32) { control.send(\"send-keys\", ...) }`."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/ControlClient.kt","line":45,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-controlclient-output"},{"id":"io.github.libtmux.kotlin.ControlClient.events","name":"events","kind":"method","parent":"io.github.libtmux.kotlin.ControlClient","signatures":[{"raw":"public fun events(capacity: Int, onSubscribed: suspend () -> Unit = {}): Flow>","params":[{"name":"capacity","type":"Int"},{"name":"onSubscribed","type":"suspend","default":"{}"}],"returns":"Flow>"}],"imports":{"ControlEvent":"io.github.libtmux.control.ControlEvent","Delivery":"io.github.libtmux.control.Delivery","PaneOutput":"io.github.libtmux.control.PaneOutput","Flow":"kotlinx.coroutines.flow.Flow","JavaControlClient":"io.github.libtmux.control.ControlClient"},"modifiers":[],"doc":{"summary":"State changes tmux volunteers, as a cold [Flow]. Reads, and takes [onSubscribed], as [output] does."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/ControlClient.kt","line":49,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-controlclient-events"},{"id":"io.github.libtmux.kotlin.ControlClient.close","name":"close","kind":"method","parent":"io.github.libtmux.kotlin.ControlClient","signatures":[{"raw":"override fun close()","params":[]}],"imports":{"ControlEvent":"io.github.libtmux.control.ControlEvent","Delivery":"io.github.libtmux.control.Delivery","PaneOutput":"io.github.libtmux.control.PaneOutput","Flow":"kotlinx.coroutines.flow.Flow","JavaControlClient":"io.github.libtmux.control.ControlClient"},"modifiers":[],"doc":{"summary":"Ends the client, rejecting queued requests and resolving picked requests as uncertain."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/ControlClient.kt","line":53,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-controlclient-close"},{"id":"io.github.libtmux.kotlin.LibTmuxDsl","name":"LibTmuxDsl","kind":"class","signatures":[{"raw":"@DslMarker\npublic annotation class LibTmuxDsl","params":[]}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"doc":{"summary":"Marks every builder below so an inner block cannot reach an outer block's receiver by accident: `split { directory = x }` inside `window { }` resolves to the innermost [SplitBuilder], never to the [WindowBuilder] it is nested in. Reaching the outer receiver on purpose still works, spelled explicitly (`this@window.directory = x`)."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-libtmuxdsl"},{"id":"io.github.libtmux.kotlin.SessionBuilder","name":"SessionBuilder","kind":"class","signatures":[{"raw":"@LibTmuxDsl\npublic class SessionBuilder","params":[]}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"doc":{"summary":"Configure a new session, its initial command, and its windows with [Server.newSession]."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":60,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-sessionbuilder"},{"id":"io.github.libtmux.kotlin.SessionBuilder.name","name":"name","kind":"property","parent":"io.github.libtmux.kotlin.SessionBuilder","signatures":[{"raw":"public var name: String?","params":[],"returns":"String?"}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":66,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-sessionbuilder-name"},{"id":"io.github.libtmux.kotlin.SessionBuilder.directory","name":"directory","kind":"property","parent":"io.github.libtmux.kotlin.SessionBuilder","signatures":[{"raw":"public var directory: Path?","params":[],"returns":"Path?"}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"doc":{"summary":"The session's working directory, which its first window starts in too."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":69,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-sessionbuilder-directory"},{"id":"io.github.libtmux.kotlin.SessionBuilder.running","name":"running","kind":"method","parent":"io.github.libtmux.kotlin.SessionBuilder","signatures":[{"raw":"public fun running(vararg argv: String)","params":[{"name":"argv","type":"String"}]}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"doc":{"summary":"Runs [argv] in the first window instead of the default shell."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":72,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-sessionbuilder-running"},{"id":"io.github.libtmux.kotlin.SessionBuilder.env","name":"env","kind":"method","parent":"io.github.libtmux.kotlin.SessionBuilder","signatures":[{"raw":"public fun env(name: String, value: String)","params":[{"name":"name","type":"String"},{"name":"value","type":"String"}]}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"doc":{"summary":"Adds a variable to the new session's environment, keeping any already set."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":77,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-sessionbuilder-env"},{"id":"io.github.libtmux.kotlin.SessionBuilder.window","name":"window","kind":"method","parent":"io.github.libtmux.kotlin.SessionBuilder","signatures":[{"raw":"public fun window(configure: WindowBuilder.() -> Unit)","params":[{"name":"configure","type":"WindowBuilder.() -> Unit"}]}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":81,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-sessionbuilder-window"},{"id":"io.github.libtmux.kotlin.WindowBuilder","name":"WindowBuilder","kind":"class","signatures":[{"raw":"@LibTmuxDsl\npublic class WindowBuilder","params":[]}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"doc":{"summary":"Configure a window and its pane splits inside a [SessionBuilder] block."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":103,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-windowbuilder"},{"id":"io.github.libtmux.kotlin.WindowBuilder.name","name":"name","kind":"property","parent":"io.github.libtmux.kotlin.WindowBuilder","signatures":[{"raw":"public var name: String?","params":[],"returns":"String?"}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":110,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-windowbuilder-name"},{"id":"io.github.libtmux.kotlin.WindowBuilder.directory","name":"directory","kind":"property","parent":"io.github.libtmux.kotlin.WindowBuilder","signatures":[{"raw":"public var directory: Path?","params":[],"returns":"Path?"}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":112,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-windowbuilder-directory"},{"id":"io.github.libtmux.kotlin.WindowBuilder.running","name":"running","kind":"method","parent":"io.github.libtmux.kotlin.WindowBuilder","signatures":[{"raw":"public fun running(vararg argv: String)","params":[{"name":"argv","type":"String"}]}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"doc":{"summary":"Runs [argv] in this window instead of the default shell."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":115,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-windowbuilder-running"},{"id":"io.github.libtmux.kotlin.WindowBuilder.env","name":"env","kind":"method","parent":"io.github.libtmux.kotlin.WindowBuilder","signatures":[{"raw":"public fun env(name: String, value: String)","params":[{"name":"name","type":"String"},{"name":"value","type":"String"}]}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"doc":{"summary":"Adds a variable to the new window's environment, keeping any already set."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":120,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-windowbuilder-env"},{"id":"io.github.libtmux.kotlin.WindowBuilder.split","name":"split","kind":"method","parent":"io.github.libtmux.kotlin.WindowBuilder","signatures":[{"raw":"public fun split(configure: SplitBuilder.() -> Unit = {})","params":[{"name":"configure","type":"SplitBuilder.() -> Unit","default":"{}"}]}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":124,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-windowbuilder-split"},{"id":"io.github.libtmux.kotlin.SplitBuilder","name":"SplitBuilder","kind":"class","signatures":[{"raw":"@LibTmuxDsl\npublic class SplitBuilder","params":[]}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"doc":{"summary":"Choose the position, size, and working directory of a new pane split."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":139,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-splitbuilder"},{"id":"io.github.libtmux.kotlin.SplitBuilder.directory","name":"directory","kind":"property","parent":"io.github.libtmux.kotlin.SplitBuilder","signatures":[{"raw":"public var directory: Path?","params":[],"returns":"Path?"}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":143,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-splitbuilder-directory"},{"id":"io.github.libtmux.kotlin.SplitBuilder.below","name":"below","kind":"method","parent":"io.github.libtmux.kotlin.SplitBuilder","signatures":[{"raw":"public fun below()","params":[]}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"doc":{"summary":"Puts the new pane below this one. tmux's own default if no direction is chosen."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":150,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-splitbuilder-below"},{"id":"io.github.libtmux.kotlin.SplitBuilder.above","name":"above","kind":"method","parent":"io.github.libtmux.kotlin.SplitBuilder","signatures":[{"raw":"public fun above()","params":[]}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"doc":{"summary":"Puts the new pane above this one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":155,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-splitbuilder-above"},{"id":"io.github.libtmux.kotlin.SplitBuilder.toRight","name":"toRight","kind":"method","parent":"io.github.libtmux.kotlin.SplitBuilder","signatures":[{"raw":"public fun toRight()","params":[]}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"doc":{"summary":"Puts the new pane to the right of this one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":160,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-splitbuilder-toright"},{"id":"io.github.libtmux.kotlin.SplitBuilder.toLeft","name":"toLeft","kind":"method","parent":"io.github.libtmux.kotlin.SplitBuilder","signatures":[{"raw":"public fun toLeft()","params":[]}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"doc":{"summary":"Puts the new pane to the left of this one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":165,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-splitbuilder-toleft"},{"id":"io.github.libtmux.kotlin.SplitBuilder.cells","name":"cells","kind":"method","parent":"io.github.libtmux.kotlin.SplitBuilder","signatures":[{"raw":"public fun cells(count: Int)","params":[{"name":"count","type":"Int"}]}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"doc":{"summary":"Sizes the new pane by an exact number of cells."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":170,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-splitbuilder-cells"},{"id":"io.github.libtmux.kotlin.SplitBuilder.percent","name":"percent","kind":"method","parent":"io.github.libtmux.kotlin.SplitBuilder","signatures":[{"raw":"public fun percent(share: Int)","params":[{"name":"share","type":"Int"}]}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"doc":{"summary":"Sizes the new pane as a percentage of the space being split."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":175,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-splitbuilder-percent"},{"id":"io.github.libtmux.kotlin.SplitBuilder.env","name":"env","kind":"method","parent":"io.github.libtmux.kotlin.SplitBuilder","signatures":[{"raw":"public fun env(name: String, value: String)","params":[{"name":"name","type":"String"},{"name":"value","type":"String"}]}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"doc":{"summary":"Adds a variable to the new pane's environment, keeping any already set."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":180,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-splitbuilder-env"},{"id":"io.github.libtmux.kotlin.Environment","name":"Environment","kind":"class","signatures":[{"raw":"public class Environment","params":[]}],"imports":{"JavaEnvironment":"io.github.libtmux.Environment"},"modifiers":[],"doc":{"summary":"Read and update environment variables used to start processes in tmux.","body":"Holds the Java handle privately, so a member here always wins over a same-named catalog-generated\nextension in `EnvironmentOperations.kt`."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Environment.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-environment"},{"id":"io.github.libtmux.kotlin.Environment.server","name":"server","kind":"property","parent":"io.github.libtmux.kotlin.Environment","modifiers":[],"signatures":[{"raw":"public val server: Server","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Environment.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-environment-server"},{"id":"io.github.libtmux.kotlin.Environment.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.kotlin.Environment","signatures":[{"raw":"public val asJava: JavaEnvironment","params":[],"returns":"JavaEnvironment"}],"imports":{"JavaEnvironment":"io.github.libtmux.Environment"},"modifiers":[],"doc":{"summary":"The Java environment this wraps: the same object, for a Java API that takes one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Environment.kt","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-environment-asjava"},{"id":"io.github.libtmux.kotlin.Environment.equals","name":"equals","kind":"method","parent":"io.github.libtmux.kotlin.Environment","signatures":[{"raw":"override fun equals(other: Any?): Boolean","params":[{"name":"other","type":"Any?"}],"returns":"Boolean"}],"imports":{"JavaEnvironment":"io.github.libtmux.Environment"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Environment.kt","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-environment-equals"},{"id":"io.github.libtmux.kotlin.Environment.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.kotlin.Environment","signatures":[{"raw":"override fun hashCode(): Int","params":[],"returns":"Int"}],"imports":{"JavaEnvironment":"io.github.libtmux.Environment"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Environment.kt","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-environment-hashcode"},{"id":"io.github.libtmux.kotlin.Environment.toString","name":"toString","kind":"method","parent":"io.github.libtmux.kotlin.Environment","signatures":[{"raw":"override fun toString(): String","params":[],"returns":"String"}],"imports":{"JavaEnvironment":"io.github.libtmux.Environment"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Environment.kt","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-environment-tostring"},{"id":"io.github.libtmux.kotlin.ExecutionPolicy","name":"ExecutionPolicy","kind":"class","signatures":[{"raw":"public class ExecutionPolicy(\n public val commands: CoroutineDispatcher,\n public val streamReads: CoroutineDispatcher,\n public val defaultDeadline: Duration = Duration.INFINITE,\n)","params":[{"name":"commands","type":"CoroutineDispatcher"},{"name":"streamReads","type":"CoroutineDispatcher"},{"name":"defaultDeadline","type":"Duration","default":"Duration.INFINITE"}]}],"imports":{"ServerConfig":"io.github.libtmux.ServerConfig","Duration":"kotlin.time.Duration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers"},"modifiers":[],"doc":{"summary":"Controls the dispatchers and concurrency limits for a [Server]'s suspending operations.","body":"Two independently sized pools, not one: [commands] backs every `suspend` operation this module\ngenerates or hand-writes, sized from the transport's own admission bound rather than a guess.\n[streamReads] backs only what still genuinely blocks a thread — [Server.liveState]'s background\npump. [ControlClient.output] and [ControlClient.events] hold no thread from either pool; they are\nbuilt on [io.github.libtmux.control.EventSubscription.poll] and `onReady`, not on a blocking read."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/ExecutionPolicy.kt","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-executionpolicy"},{"id":"io.github.libtmux.kotlin.ExecutionPolicy.commands","name":"commands","kind":"property","parent":"io.github.libtmux.kotlin.ExecutionPolicy","modifiers":[],"signatures":[{"raw":"public val commands: CoroutineDispatcher","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/ExecutionPolicy.kt","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-executionpolicy-commands"},{"id":"io.github.libtmux.kotlin.ExecutionPolicy.streamReads","name":"streamReads","kind":"property","parent":"io.github.libtmux.kotlin.ExecutionPolicy","modifiers":[],"signatures":[{"raw":"public val streamReads: CoroutineDispatcher","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/ExecutionPolicy.kt","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-executionpolicy-streamreads"},{"id":"io.github.libtmux.kotlin.ExecutionPolicy.defaultDeadline","name":"defaultDeadline","kind":"property","parent":"io.github.libtmux.kotlin.ExecutionPolicy","modifiers":[],"signatures":[{"raw":"public val defaultDeadline: Duration = Duration.INFINITE","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/ExecutionPolicy.kt","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-executionpolicy-defaultdeadline"},{"id":"io.github.libtmux.kotlin.ExecutionPolicy.Companion","name":"Companion","kind":"module","parent":"io.github.libtmux.kotlin.ExecutionPolicy","signatures":[{"raw":"public companion object","params":[]}],"imports":{"ServerConfig":"io.github.libtmux.ServerConfig","Duration":"kotlin.time.Duration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/ExecutionPolicy.kt","line":22,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-executionpolicy-companion"},{"id":"io.github.libtmux.kotlin.ExecutionPolicy.Companion.default","name":"default","kind":"method","parent":"io.github.libtmux.kotlin.ExecutionPolicy.Companion","signatures":[{"raw":"public fun default(\n config: ServerConfig,\n streamReadCapacity: Int = DEFAULT_STREAM_READ_CAPACITY,\n ): ExecutionPolicy","params":[{"name":"config","type":"ServerConfig"},{"name":"streamReadCapacity","type":"Int","default":"DEFAULT_STREAM_READ_CAPACITY"}],"returns":"ExecutionPolicy"}],"imports":{"ServerConfig":"io.github.libtmux.ServerConfig","Duration":"kotlin.time.Duration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers"},"modifiers":[],"doc":{"summary":"Sizes [commands] from `config`'s own [ServerConfig.maxConcurrentCommands], and [streamReads] independently: it bounds a structurally different resource, open [Server.liveState] watches, not tmux process admission."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/ExecutionPolicy.kt","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-executionpolicy-companion-default"},{"id":"io.github.libtmux.kotlin.Hooks","name":"Hooks","kind":"class","signatures":[{"raw":"public class Hooks","params":[]}],"imports":{"JavaHooks":"io.github.libtmux.Hooks"},"modifiers":[],"doc":{"summary":"Read and update hooks for the server, session, window, or pane that owns this handle.","body":"Holds the Java handle privately, so a member here always wins over a same-named catalog-generated\nextension in `HooksOperations.kt`."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Hooks.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-hooks"},{"id":"io.github.libtmux.kotlin.Hooks.server","name":"server","kind":"property","parent":"io.github.libtmux.kotlin.Hooks","modifiers":[],"signatures":[{"raw":"public val server: Server","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Hooks.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-hooks-server"},{"id":"io.github.libtmux.kotlin.Hooks.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.kotlin.Hooks","signatures":[{"raw":"public val asJava: JavaHooks","params":[],"returns":"JavaHooks"}],"imports":{"JavaHooks":"io.github.libtmux.Hooks"},"modifiers":[],"doc":{"summary":"The Java hooks this wraps: the same object, for a Java API that takes one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Hooks.kt","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-hooks-asjava"},{"id":"io.github.libtmux.kotlin.Hooks.equals","name":"equals","kind":"method","parent":"io.github.libtmux.kotlin.Hooks","signatures":[{"raw":"override fun equals(other: Any?): Boolean","params":[{"name":"other","type":"Any?"}],"returns":"Boolean"}],"imports":{"JavaHooks":"io.github.libtmux.Hooks"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Hooks.kt","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-hooks-equals"},{"id":"io.github.libtmux.kotlin.Hooks.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.kotlin.Hooks","signatures":[{"raw":"override fun hashCode(): Int","params":[],"returns":"Int"}],"imports":{"JavaHooks":"io.github.libtmux.Hooks"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Hooks.kt","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-hooks-hashcode"},{"id":"io.github.libtmux.kotlin.Hooks.toString","name":"toString","kind":"method","parent":"io.github.libtmux.kotlin.Hooks","signatures":[{"raw":"override fun toString(): String","params":[],"returns":"String"}],"imports":{"JavaHooks":"io.github.libtmux.Hooks"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Hooks.kt","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-hooks-tostring"},{"id":"io.github.libtmux.kotlin.Keys","name":"Keys","kind":"class","signatures":[{"raw":"public class Keys","params":[]}],"imports":{"JavaKeys":"io.github.libtmux.Keys"},"modifiers":[],"doc":{"summary":"The server's key bindings, in one key table or across all of them.","body":"Holds the Java handle privately, so a member here always wins over a same-named catalog-generated\nextension in `KeysOperations.kt`."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Keys.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-keys"},{"id":"io.github.libtmux.kotlin.Keys.server","name":"server","kind":"property","parent":"io.github.libtmux.kotlin.Keys","modifiers":[],"signatures":[{"raw":"public val server: Server","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Keys.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-keys-server"},{"id":"io.github.libtmux.kotlin.Keys.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.kotlin.Keys","signatures":[{"raw":"public val asJava: JavaKeys","params":[],"returns":"JavaKeys"}],"imports":{"JavaKeys":"io.github.libtmux.Keys"},"modifiers":[],"doc":{"summary":"The Java keys this wraps: the same object, for a Java API that takes one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Keys.kt","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-keys-asjava"},{"id":"io.github.libtmux.kotlin.Keys.`in`","name":"`in`","kind":"method","parent":"io.github.libtmux.kotlin.Keys","signatures":[{"raw":"public fun `in`(table: String): Keys","params":[{"name":"table","type":"String"}],"returns":"Keys"}],"imports":{"JavaKeys":"io.github.libtmux.Keys"},"modifiers":[],"doc":{"summary":"The same bindings, in one named table. A pure, local view: it issues no command."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Keys.kt","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-keys-in"},{"id":"io.github.libtmux.kotlin.Keys.equals","name":"equals","kind":"method","parent":"io.github.libtmux.kotlin.Keys","signatures":[{"raw":"override fun equals(other: Any?): Boolean","params":[{"name":"other","type":"Any?"}],"returns":"Boolean"}],"imports":{"JavaKeys":"io.github.libtmux.Keys"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Keys.kt","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-keys-equals"},{"id":"io.github.libtmux.kotlin.Keys.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.kotlin.Keys","signatures":[{"raw":"override fun hashCode(): Int","params":[],"returns":"Int"}],"imports":{"JavaKeys":"io.github.libtmux.Keys"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Keys.kt","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-keys-hashcode"},{"id":"io.github.libtmux.kotlin.Keys.toString","name":"toString","kind":"method","parent":"io.github.libtmux.kotlin.Keys","signatures":[{"raw":"override fun toString(): String","params":[],"returns":"String"}],"imports":{"JavaKeys":"io.github.libtmux.Keys"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Keys.kt","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-keys-tostring"},{"id":"io.github.libtmux.kotlin.MessageLog","name":"MessageLog","kind":"class","signatures":[{"raw":"public class MessageLog","params":[]}],"imports":{"JavaMessageLog":"io.github.libtmux.MessageLog"},"modifiers":[],"doc":{"summary":"The server's own message log, newest last.","body":"Holds the Java handle privately, so a member here always wins over a same-named catalog-generated\nextension in `MessageLogOperations.kt`."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/MessageLog.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-messagelog"},{"id":"io.github.libtmux.kotlin.MessageLog.server","name":"server","kind":"property","parent":"io.github.libtmux.kotlin.MessageLog","modifiers":[],"signatures":[{"raw":"public val server: Server","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/MessageLog.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-messagelog-server"},{"id":"io.github.libtmux.kotlin.MessageLog.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.kotlin.MessageLog","signatures":[{"raw":"public val asJava: JavaMessageLog","params":[],"returns":"JavaMessageLog"}],"imports":{"JavaMessageLog":"io.github.libtmux.MessageLog"},"modifiers":[],"doc":{"summary":"The Java message log this wraps: the same object, for a Java API that takes one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/MessageLog.kt","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-messagelog-asjava"},{"id":"io.github.libtmux.kotlin.MessageLog.equals","name":"equals","kind":"method","parent":"io.github.libtmux.kotlin.MessageLog","signatures":[{"raw":"override fun equals(other: Any?): Boolean","params":[{"name":"other","type":"Any?"}],"returns":"Boolean"}],"imports":{"JavaMessageLog":"io.github.libtmux.MessageLog"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/MessageLog.kt","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-messagelog-equals"},{"id":"io.github.libtmux.kotlin.MessageLog.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.kotlin.MessageLog","signatures":[{"raw":"override fun hashCode(): Int","params":[],"returns":"Int"}],"imports":{"JavaMessageLog":"io.github.libtmux.MessageLog"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/MessageLog.kt","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-messagelog-hashcode"},{"id":"io.github.libtmux.kotlin.MessageLog.toString","name":"toString","kind":"method","parent":"io.github.libtmux.kotlin.MessageLog","signatures":[{"raw":"override fun toString(): String","params":[],"returns":"String"}],"imports":{"JavaMessageLog":"io.github.libtmux.MessageLog"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/MessageLog.kt","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-messagelog-tostring"},{"id":"io.github.libtmux.kotlin.Options","name":"Options","kind":"class","signatures":[{"raw":"public class Options","params":[]}],"imports":{"OptionKey":"io.github.libtmux.OptionKey","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaOptions":"io.github.libtmux.Options"},"modifiers":[],"doc":{"summary":"Read and update options for the server, session, window, or pane that owns this handle.","body":"Holds the Java handle privately, so a member here always wins over a same-named catalog-generated\nextension in `OptionsOperations.kt`. `get`/`set` are hand-written in both overloads: a Kotlin member\nmakes every same-named extension unreachable regardless of its own parameter types, so the\n`OptionKey` overload cannot be added beside a generated `get(String)`/`set(String, String)`\nwithout also hand-writing those."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Options.kt","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-options"},{"id":"io.github.libtmux.kotlin.Options.server","name":"server","kind":"property","parent":"io.github.libtmux.kotlin.Options","modifiers":[],"signatures":[{"raw":"public val server: Server","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Options.kt","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-options-server"},{"id":"io.github.libtmux.kotlin.Options.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.kotlin.Options","signatures":[{"raw":"public val asJava: JavaOptions","params":[],"returns":"JavaOptions"}],"imports":{"OptionKey":"io.github.libtmux.OptionKey","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaOptions":"io.github.libtmux.Options"},"modifiers":[],"doc":{"summary":"The Java options this wraps: the same object, for a Java API that takes one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Options.kt","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-options-asjava"},{"id":"io.github.libtmux.kotlin.Options.get","name":"get","kind":"method","parent":"io.github.libtmux.kotlin.Options","signatures":[{"raw":"public suspend fun get(name: String): String?","params":[{"name":"name","type":"String"}],"returns":"String?","returnsDoc":"empty only when tmux does not know the option"},{"raw":"public suspend fun get(key: OptionKey): T?","params":[{"name":"key","type":"OptionKey"}],"returns":"T?","typeParams":["T"],"typeParameters":[{"name":"T","bound":"Any"}]}],"imports":{"OptionKey":"io.github.libtmux.OptionKey","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaOptions":"io.github.libtmux.Options"},"modifiers":["async","overload"],"doc":{"summary":"The value in effect at this scope, inherited from a parent scope when this one does not set it."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Options.kt","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-options-get"},{"id":"io.github.libtmux.kotlin.Options.set","name":"set","kind":"method","parent":"io.github.libtmux.kotlin.Options","signatures":[{"raw":"public suspend fun set(name: String, value: String)","params":[{"name":"name","type":"String"},{"name":"value","type":"String"}]},{"raw":"public suspend fun set(key: OptionKey, value: T)","params":[{"name":"key","type":"OptionKey"},{"name":"value","type":"T"}],"typeParams":["T"],"typeParameters":[{"name":"T","bound":"Any"}]}],"imports":{"OptionKey":"io.github.libtmux.OptionKey","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaOptions":"io.github.libtmux.Options"},"modifiers":["async","overload"],"doc":{"summary":"Sets one option at this scope."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Options.kt","line":34,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-options-set"},{"id":"io.github.libtmux.kotlin.Options.equals","name":"equals","kind":"method","parent":"io.github.libtmux.kotlin.Options","signatures":[{"raw":"override fun equals(other: Any?): Boolean","params":[{"name":"other","type":"Any?"}],"returns":"Boolean"}],"imports":{"OptionKey":"io.github.libtmux.OptionKey","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaOptions":"io.github.libtmux.Options"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Options.kt","line":43,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-options-equals"},{"id":"io.github.libtmux.kotlin.Options.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.kotlin.Options","signatures":[{"raw":"override fun hashCode(): Int","params":[],"returns":"Int"}],"imports":{"OptionKey":"io.github.libtmux.OptionKey","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaOptions":"io.github.libtmux.Options"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Options.kt","line":45,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-options-hashcode"},{"id":"io.github.libtmux.kotlin.Options.toString","name":"toString","kind":"method","parent":"io.github.libtmux.kotlin.Options","signatures":[{"raw":"override fun toString(): String","params":[],"returns":"String"}],"imports":{"OptionKey":"io.github.libtmux.OptionKey","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaOptions":"io.github.libtmux.Options"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Options.kt","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-options-tostring"},{"id":"io.github.libtmux.kotlin.Pane","name":"Pane","kind":"class","signatures":[{"raw":"public class Pane","params":[]}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"doc":{"summary":"A tmux pane, with operations for input, output, and layout.","body":"Holds the Java handle privately, so a member here always wins over a same-named catalog-generated\nextension in `PaneOperations.kt`. [Companion] hosts the generated query field namespace\n(`Pane.command`, `Pane.active`, ...)."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane"},{"id":"io.github.libtmux.kotlin.Pane.server","name":"server","kind":"property","parent":"io.github.libtmux.kotlin.Pane","modifiers":[],"signatures":[{"raw":"public val server: Server","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-server"},{"id":"io.github.libtmux.kotlin.Pane.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public val asJava: JavaPane","params":[],"returns":"JavaPane"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"doc":{"summary":"The Java pane this wraps: the same object, for a Java API that takes one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-asjava"},{"id":"io.github.libtmux.kotlin.Pane.id","name":"id","kind":"property","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public val id: PaneId","params":[],"returns":"PaneId"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"doc":{"summary":"The pane's stable id."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-id"},{"id":"io.github.libtmux.kotlin.Pane.index","name":"index","kind":"property","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public val index: Int","params":[],"returns":"Int"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"doc":{"summary":"The pane's position, which shifts as neighbours come and go."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-index"},{"id":"io.github.libtmux.kotlin.Pane.active","name":"active","kind":"property","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public val active: Boolean","params":[],"returns":"Boolean"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"doc":{"summary":"Whether this was its window's active pane when captured."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-active"},{"id":"io.github.libtmux.kotlin.Pane.currentCommand","name":"currentCommand","kind":"property","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public val currentCommand: String","params":[],"returns":"String"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"doc":{"summary":"The command tmux reported running here."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":41,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-currentcommand"},{"id":"io.github.libtmux.kotlin.Pane.floating","name":"floating","kind":"property","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public val floating: Boolean?","params":[],"returns":"Boolean?"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"doc":{"summary":"Whether this pane floats, or null when the running tmux cannot say."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":44,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-floating"},{"id":"io.github.libtmux.kotlin.Pane.size","name":"size","kind":"property","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public val size: Dimensions","params":[],"returns":"Dimensions"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"doc":{"summary":"How large the pane was when captured, in terminal cells."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-size"},{"id":"io.github.libtmux.kotlin.Pane.position","name":"position","kind":"property","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public val position: PanePosition","params":[],"returns":"PanePosition"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"doc":{"summary":"Where the pane's top-left corner sat in its window when captured, in terminal cells."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":50,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-position"},{"id":"io.github.libtmux.kotlin.Pane.title","name":"title","kind":"property","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public val title: String","params":[],"returns":"String"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"doc":{"summary":"The pane title, which a program running inside it can change."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":53,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-title"},{"id":"io.github.libtmux.kotlin.Pane.currentPath","name":"currentPath","kind":"property","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public val currentPath: Path","params":[],"returns":"Path"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"doc":{"summary":"The working directory tmux reported for the pane."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":56,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-currentpath"},{"id":"io.github.libtmux.kotlin.Pane.pid","name":"pid","kind":"property","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public val pid: Long?","params":[],"returns":"Long?"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"doc":{"summary":"The process id of the program running in the pane, captured at the time of the read."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":59,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-pid"},{"id":"io.github.libtmux.kotlin.Pane.edges","name":"edges","kind":"property","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public val edges: PaneEdges","params":[],"returns":"PaneEdges"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"doc":{"summary":"Which sides of its window the pane touches."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":62,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-edges"},{"id":"io.github.libtmux.kotlin.Pane.window","name":"window","kind":"property","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public val window: Window","params":[],"returns":"Window"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"doc":{"summary":"The window link this pane was reached through. A pure read of the capture."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":65,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-window"},{"id":"io.github.libtmux.kotlin.Pane.batch","name":"batch","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public fun batch(): Batch","params":[],"returns":"Batch"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"doc":{"summary":"Collects commands fenced to the server incarnation that produced this pane."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":68,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-batch"},{"id":"io.github.libtmux.kotlin.Pane.hooks","name":"hooks","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public fun hooks(): Hooks","params":[],"returns":"Hooks"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"doc":{"summary":"This pane's own hooks."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":71,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-hooks"},{"id":"io.github.libtmux.kotlin.Pane.options","name":"options","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public fun options(): Options","params":[],"returns":"Options"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"doc":{"summary":"This pane's own options."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":74,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-options"},{"id":"io.github.libtmux.kotlin.Pane.awaitText","name":"awaitText","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun awaitText(\n text: String,\n timeout: Duration,\n every: Duration = 50.milliseconds,\n dispatcher: CoroutineDispatcher = Dispatchers.IO,\n ): TextOutcome","params":[{"name":"text","type":"String"},{"name":"timeout","type":"Duration","doc":"how long to keep looking, finite and not negative"},{"name":"every","type":"Duration","default":"50.milliseconds","doc":"how long to leave between looks, at least 10 ms"},{"name":"dispatcher","type":"CoroutineDispatcher","default":"Dispatchers.IO","doc":"where the blocking wait runs"}],"returns":"TextOutcome","returnsDoc":"why the wait ended"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":["async"],"doc":{"summary":"Waits until [text] shows in this pane.","body":"Cancelling the coroutine interrupts the wait. That is not a timeout, and it does not stop a\nprogram already running in the pane.","examples":[{"lang":"console","intro":"Send input and wait for output before capturing the pane. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/build.gradle.kts","code":"plugins {\n kotlin(\"jvm\") version \"2.4.10\"\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-kotlin:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\nkotlin { jvmToolchain(25) }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"kotlin","intro":"Save this complete program as src/main/kotlin/Capture.kt. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/kotlin/io/github/libtmux/examples/api/kotlin/Capture.kt","code":"package io.github.libtmux.examples.api.kotlin\n\nimport io.github.libtmux.ServerConfig\nimport io.github.libtmux.ServerEndpoint\nimport io.github.libtmux.SessionSpec\nimport io.github.libtmux.TextOutcome\nimport io.github.libtmux.kotlin.*\nimport java.nio.file.Path\nimport kotlin.system.exitProcess\nimport kotlinx.coroutines.runBlocking\nimport kotlin.time.Duration.Companion.seconds\n\n/** Send input and wait for output before capturing the pane. */\nfun main(args: Array) {\n try {\n require(args.size == 3) { \"expected: tmux-binary socket-path config-file\" }\n val config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build()\n runBlocking {\n withServer(config) { server ->\n val session = server.newSession(\n SessionSpec.builder().named(\"api-capture\").running(\"/bin/sh\").build()\n )\n val pane = session.windows.first().panes.first()\n pane.sendKeys(listOf(\"printf 'api-%s\\\\n' keys\", \"Enter\"))\n check(pane.awaitText(\"api-keys\", timeout = 5.seconds) != TextOutcome.TIMED_OUT) {\n \"timed out waiting for keys output\"\n }\n pane.sendLine(\"printf 'api-%s\\\\n' line\")\n check(pane.awaitText(\"api-line\", timeout = 5.seconds) != TextOutcome.TIMED_OUT) {\n \"timed out waiting for line output\"\n }\n val lines = pane.capture()\n for (expected in listOf(\"api-keys\", \"api-line\")) {\n check(lines.any { it.trim() == expected }) { \"capture is missing $expected\" }\n println(expected)\n }\n }\n }\n } catch (error: Exception) {\n if (error is InterruptedException) Thread.currentThread().interrupt()\n System.err.println(\"Example failed: ${error.message}\")\n exitProcess(1)\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.kotlin.CaptureKt && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"api-keys\napi-line\n"}]},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":87,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-awaittext"},{"id":"io.github.libtmux.kotlin.Pane.await","name":"await","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun await(\n timeout: Duration,\n every: Duration = 50.milliseconds,\n dispatcher: CoroutineDispatcher = Dispatchers.IO,\n settled: (Pane) -> Boolean,\n ): WakeReason","params":[{"name":"timeout","type":"Duration","doc":"how long to keep looking, finite and not negative"},{"name":"every","type":"Duration","default":"50.milliseconds","doc":"how long to leave between looks, at least 10 ms"},{"name":"dispatcher","type":"CoroutineDispatcher","default":"Dispatchers.IO","doc":"where the blocking wait runs"},{"name":"settled","type":"(Pane) -> Boolean"}],"returns":"WakeReason","returnsDoc":"why the wait ended"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":["async"],"doc":{"summary":"Waits until [settled] accepts this pane, read fresh from tmux before each test.","body":"Cancelling the coroutine interrupts the wait. That is not a timeout. A read already sent to\ntmux is not taken back."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":106,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-await"},{"id":"io.github.libtmux.kotlin.Pane.run","name":"run","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun run(\n command: String,\n timeout: Duration,\n dispatcher: CoroutineDispatcher = Dispatchers.IO,\n ): PaneRun","params":[{"name":"command","type":"String","doc":"a line of shell, run as `eval` would run it"},{"name":"timeout","type":"Duration","doc":"how long to wait for it to end"},{"name":"dispatcher","type":"CoroutineDispatcher","default":"Dispatchers.IO","doc":"where the blocking wait runs"}],"returns":"PaneRun","returnsDoc":"the command's exit status and what it printed"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":["async"],"doc":{"summary":"Runs a shell command in this pane to its end, and answers with its exit status and output.","body":"Cancelling the coroutine interrupts the wait. The command keeps running in the pane; only the\nwait for its end is what cancellation reaches."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":127,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-run"},{"id":"io.github.libtmux.kotlin.Pane.equals","name":"equals","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"override fun equals(other: Any?): Boolean","params":[{"name":"other","type":"Any?"}],"returns":"Boolean"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":133,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-equals"},{"id":"io.github.libtmux.kotlin.Pane.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"override fun hashCode(): Int","params":[],"returns":"Int"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":135,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-hashcode"},{"id":"io.github.libtmux.kotlin.Pane.toString","name":"toString","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"override fun toString(): String","params":[],"returns":"String"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":137,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-tostring"},{"id":"io.github.libtmux.kotlin.Pane.Companion","name":"Companion","kind":"module","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public companion object","params":[]}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":139,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-companion"},{"id":"io.github.libtmux.kotlin.Prompt","name":"Prompt","kind":"class","signatures":[{"raw":"public class Prompt","params":[]}],"imports":{"JavaPrompt":"io.github.libtmux.Prompt"},"modifiers":[],"doc":{"summary":"The server's command-prompt history.","body":"Holds the Java handle privately, so a member here always wins over a same-named catalog-generated\nextension in `PromptOperations.kt`."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Prompt.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-prompt"},{"id":"io.github.libtmux.kotlin.Prompt.server","name":"server","kind":"property","parent":"io.github.libtmux.kotlin.Prompt","modifiers":[],"signatures":[{"raw":"public val server: Server","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Prompt.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-prompt-server"},{"id":"io.github.libtmux.kotlin.Prompt.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.kotlin.Prompt","signatures":[{"raw":"public val asJava: JavaPrompt","params":[],"returns":"JavaPrompt"}],"imports":{"JavaPrompt":"io.github.libtmux.Prompt"},"modifiers":[],"doc":{"summary":"The Java prompt this wraps: the same object, for a Java API that takes one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Prompt.kt","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-prompt-asjava"},{"id":"io.github.libtmux.kotlin.Prompt.equals","name":"equals","kind":"method","parent":"io.github.libtmux.kotlin.Prompt","signatures":[{"raw":"override fun equals(other: Any?): Boolean","params":[{"name":"other","type":"Any?"}],"returns":"Boolean"}],"imports":{"JavaPrompt":"io.github.libtmux.Prompt"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Prompt.kt","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-prompt-equals"},{"id":"io.github.libtmux.kotlin.Prompt.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.kotlin.Prompt","signatures":[{"raw":"override fun hashCode(): Int","params":[],"returns":"Int"}],"imports":{"JavaPrompt":"io.github.libtmux.Prompt"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Prompt.kt","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-prompt-hashcode"},{"id":"io.github.libtmux.kotlin.Prompt.toString","name":"toString","kind":"method","parent":"io.github.libtmux.kotlin.Prompt","signatures":[{"raw":"override fun toString(): String","params":[],"returns":"String"}],"imports":{"JavaPrompt":"io.github.libtmux.Prompt"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Prompt.kt","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-prompt-tostring"},{"id":"io.github.libtmux.kotlin.retryIfSafe","name":"retryIfSafe","kind":"function","signatures":[{"raw":"public suspend fun retryIfSafe(times: Int = 1, block: suspend () -> T): T","params":[{"name":"times","type":"Int","default":"1"},{"name":"block","type":"suspend"}],"returns":"T","typeParams":["T"],"typeParameters":[{"name":"T"}]}],"imports":{"DispatchException":"io.github.libtmux.exception.DispatchException"},"modifiers":["async"],"doc":{"summary":"Retries [block] up to [times] more times after a [DispatchException] whose [DispatchException.safeToRetry] says the exact same request can be sent again.","body":"No retry executor lives in this library: [DispatchException.safeToRetry] is computed by the\noperation that threw it from its own catalogued idempotence, so this needs no per-call lookup and\ncomposes with any retry library a caller already uses instead of replacing it."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Retry.kt","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-retryifsafe"},{"id":"io.github.libtmux.kotlin.withServer","name":"withServer","kind":"function","signatures":[{"raw":"public suspend fun withServer(\n config: ServerConfig,\n policy: ExecutionPolicy = ExecutionPolicy.default(config),\n block: suspend (Server) -> R,\n): R","params":[{"name":"config","type":"ServerConfig"},{"name":"policy","type":"ExecutionPolicy","default":"ExecutionPolicy.default(config)"},{"name":"block","type":"suspend"}],"returns":"R","typeParams":["R"],"typeParameters":[{"name":"R"}]}],"imports":{"ServerConfig":"io.github.libtmux.ServerConfig","Duration":"kotlin.time.Duration","toKotlinDuration":"kotlin.time.toKotlinDuration","NonCancellable":"kotlinx.coroutines.NonCancellable","withContext":"kotlinx.coroutines.withContext"},"modifiers":["async"],"doc":{"summary":"Opens a [Server], runs [block], and closes it — even if [block] throws or is cancelled.","body":"The rule this follows, stated once: the scope that acquired a Java `AutoCloseable` is the only\nthing that closes it. [close][Server.close] runs with [NonCancellable] so a cancelled [block]\nstill releases the transport's threads.","examples":[{"lang":"console","intro":"Connect to a private tmux server. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/build.gradle.kts","code":"plugins {\n kotlin(\"jvm\") version \"2.4.10\"\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-kotlin:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\nkotlin { jvmToolchain(25) }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"kotlin","intro":"Save this complete program as src/main/kotlin/Connect.kt. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/kotlin/io/github/libtmux/examples/api/kotlin/Connect.kt","code":"package io.github.libtmux.examples.api.kotlin\n\nimport io.github.libtmux.ServerConfig\nimport io.github.libtmux.ServerEndpoint\nimport io.github.libtmux.kotlin.*\nimport java.nio.file.Path\nimport kotlin.system.exitProcess\nimport kotlinx.coroutines.runBlocking\n\n/** Connect to a private tmux server. */\nfun main(args: Array) {\n try {\n require(args.size == 3) { \"expected: tmux-binary socket-path config-file\" }\n val config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build()\n runBlocking {\n withServer(config) { server ->\n println(\"connected=${server.isAlive()}\")\n }\n }\n } catch (error: Exception) {\n if (error is InterruptedException) Thread.currentThread().interrupt()\n System.err.println(\"Example failed: ${error.message}\")\n exitProcess(1)\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.kotlin.ConnectKt && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"connected=true\n"}]},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Scopes.kt","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-withserver"},{"id":"io.github.libtmux.kotlin.withControl","name":"withControl","kind":"function","signatures":[{"raw":"public suspend fun withControl(\n server: Server,\n session: Session,\n timeout: Duration = server.config.defaultTimeout().toKotlinDuration(),\n block: suspend (ControlClient) -> R,\n): R","params":[{"name":"server","type":"Server"},{"name":"session","type":"Session"},{"name":"timeout","type":"Duration","default":"server.config.defaultTimeout().toKotlinDuration()"},{"name":"block","type":"suspend"}],"returns":"R","typeParams":["R"],"typeParameters":[{"name":"R"}]}],"imports":{"ServerConfig":"io.github.libtmux.ServerConfig","Duration":"kotlin.time.Duration","toKotlinDuration":"kotlin.time.toKotlinDuration","NonCancellable":"kotlinx.coroutines.NonCancellable","withContext":"kotlinx.coroutines.withContext"},"modifiers":["async"],"doc":{"summary":"As [withServer], for a [ControlClient] attached through [server]."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Scopes.kt","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-withcontrol"},{"id":"io.github.libtmux.kotlin.Server","name":"Server","kind":"class","signatures":[{"raw":"public class Server : AutoCloseable","params":[],"returns":"AutoCloseable"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"Manages sessions, windows, and panes on a tmux server.","body":"Use [open] with a [ServerConfig] to select a server by socket name or path. From this object,\ncreate sessions or query the server's existing sessions, windows, and panes. Each [Session]\ncontains windows, and each [Window] contains panes.\n\nOperations that contact tmux are `suspend` functions dispatched through [policy]. Call [close]\nafter the last operation to release resources owned by this object. The tmux server and its\nsessions keep running.\n\n[asJava] exposes the underlying [JavaServer] for interoperability. Both objects share the same\nresources, so closing either closes both.","examples":[{"lang":"console","intro":"Connect to a private tmux server. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/build.gradle.kts","code":"plugins {\n kotlin(\"jvm\") version \"2.4.10\"\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-kotlin:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\nkotlin { jvmToolchain(25) }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"kotlin","intro":"Save this complete program as src/main/kotlin/Connect.kt. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/kotlin/io/github/libtmux/examples/api/kotlin/Connect.kt","code":"package io.github.libtmux.examples.api.kotlin\n\nimport io.github.libtmux.ServerConfig\nimport io.github.libtmux.ServerEndpoint\nimport io.github.libtmux.kotlin.*\nimport java.nio.file.Path\nimport kotlin.system.exitProcess\nimport kotlinx.coroutines.runBlocking\n\n/** Connect to a private tmux server. */\nfun main(args: Array) {\n try {\n require(args.size == 3) { \"expected: tmux-binary socket-path config-file\" }\n val config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build()\n runBlocking {\n withServer(config) { server ->\n println(\"connected=${server.isAlive()}\")\n }\n }\n } catch (error: Exception) {\n if (error is InterruptedException) Thread.currentThread().interrupt()\n System.err.println(\"Example failed: ${error.message}\")\n exitProcess(1)\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.kotlin.ConnectKt && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"connected=true\n"}]},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server"},{"id":"io.github.libtmux.kotlin.Server.policy","name":"policy","kind":"property","parent":"io.github.libtmux.kotlin.Server","modifiers":[],"signatures":[{"raw":"public val policy: ExecutionPolicy","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":34,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-policy"},{"id":"io.github.libtmux.kotlin.Server.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public val asJava: JavaServer","params":[],"returns":"JavaServer"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"The Java server this wraps, for an operation this class does not mirror or a Java API that takes one. The same object, not a copy: closing either closes both."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":41,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-asjava"},{"id":"io.github.libtmux.kotlin.Server.config","name":"config","kind":"property","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public val config: ServerConfig","params":[],"returns":"ServerConfig"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"How this server was configured."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":44,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-config"},{"id":"io.github.libtmux.kotlin.Server.identity","name":"identity","kind":"property","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public val identity: ServerIdentity","params":[],"returns":"ServerIdentity"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"Which server this is. Every handle taken from it is scoped by this."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-identity"},{"id":"io.github.libtmux.kotlin.Server.admissionBound","name":"admissionBound","kind":"property","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public val admissionBound: Int","params":[],"returns":"Int"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"How many tmux commands this server's transport runs at once, from [ExecutionPolicy.default]."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":50,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-admissionbound"},{"id":"io.github.libtmux.kotlin.Server.batch","name":"batch","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public fun batch(): Batch","params":[],"returns":"Batch"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"Collects several commands to run in one tmux invocation."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":53,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-batch"},{"id":"io.github.libtmux.kotlin.Server.chain","name":"chain","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public fun chain(): CommandChain","params":[],"returns":"CommandChain"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"Starts a chain of commands where each one acts on what the last one made."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":56,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-chain"},{"id":"io.github.libtmux.kotlin.Server.shell","name":"shell","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public fun shell(): Shell","params":[],"returns":"Shell"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"Shell commands run by tmux, and tmux commands chosen by a shell exit status."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":59,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-shell"},{"id":"io.github.libtmux.kotlin.Server.commands","name":"commands","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public fun commands(): Commands","params":[],"returns":"Commands"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"The commands this tmux knows."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":62,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-commands"},{"id":"io.github.libtmux.kotlin.Server.messageLog","name":"messageLog","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public fun messageLog(): MessageLog","params":[],"returns":"MessageLog"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"The server's message log."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":65,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-messagelog"},{"id":"io.github.libtmux.kotlin.Server.prompt","name":"prompt","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public fun prompt(): Prompt","params":[],"returns":"Prompt"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"The command prompt's history."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":68,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-prompt"},{"id":"io.github.libtmux.kotlin.Server.channel","name":"channel","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public fun channel(name: String): Channel","params":[{"name":"name","type":"String"}],"returns":"Channel"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"One of this server's wait-for channels, which is where a signal is sent and waited for."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":71,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-channel"},{"id":"io.github.libtmux.kotlin.Server.keys","name":"keys","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public fun keys(): Keys","params":[],"returns":"Keys"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"The server's key bindings: `prefix` when binding, every table when listing."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":74,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-keys"},{"id":"io.github.libtmux.kotlin.Server.buffers","name":"buffers","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public fun buffers(): Buffers","params":[],"returns":"Buffers"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"The server's paste buffers, which every session shares."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":77,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-buffers"},{"id":"io.github.libtmux.kotlin.Server.options","name":"options","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public fun options(): Options","params":[],"returns":"Options"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"The server-wide options, the ones tmux keeps once per server."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":80,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-options"},{"id":"io.github.libtmux.kotlin.Server.globalOptions","name":"globalOptions","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public fun globalOptions(): Options","params":[],"returns":"Options"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"The global session options every session inherits unless it sets its own."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":83,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-globaloptions"},{"id":"io.github.libtmux.kotlin.Server.environment","name":"environment","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public fun environment(): Environment","params":[],"returns":"Environment"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"The server's environment, which every session inherits and every new process is given."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":86,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-environment"},{"id":"io.github.libtmux.kotlin.Server.hooks","name":"hooks","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public fun hooks(): Hooks","params":[],"returns":"Hooks"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"The global hooks every session inherits."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":89,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-hooks"},{"id":"io.github.libtmux.kotlin.Server.session","name":"session","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun session(expression: FilterExpr): Session","params":[{"name":"expression","type":"FilterExpr"}],"returns":"Session","raises":[{"type":"CardinalityException.NoMatch","doc":"if nothing matched"},{"type":"CardinalityException.MultipleMatches","doc":"if more than one session matched"}]},{"raw":"public suspend fun Server.session(name: String): Session?","params":[{"name":"name","type":"String"}],"returns":"Session?","receiver":{"name":"this","type":"Server"}},{"raw":"public suspend fun Server.session(id: SessionId): Session?","params":[{"name":"id","type":"SessionId"}],"returns":"Session?","receiver":{"name":"this","type":"Server"}}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":["async","overload"],"doc":{"summary":"The one session this expression matches, captured now."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":97,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-session"},{"id":"io.github.libtmux.kotlin.Server.sessionOrNull","name":"sessionOrNull","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun sessionOrNull(expression: FilterExpr): Session?","params":[{"name":"expression","type":"FilterExpr"}],"returns":"Session?"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":["async"],"doc":{"summary":"The one session this expression matches, or null when none does."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":102,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-sessionornull"},{"id":"io.github.libtmux.kotlin.Server.window","name":"window","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun window(expression: FilterExpr): Window","params":[{"name":"expression","type":"FilterExpr"}],"returns":"Window","raises":[{"type":"CardinalityException.NoMatch","doc":"if nothing matched"},{"type":"CardinalityException.MultipleMatches","doc":"if more than one link matched"}]},{"raw":"public suspend fun Server.window(context: WindowContext): Window?","params":[{"name":"context","type":"WindowContext"}],"returns":"Window?","receiver":{"name":"this","type":"Server"}}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":["async","overload"],"doc":{"summary":"The one window link this expression matches, captured now."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":113,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-window"},{"id":"io.github.libtmux.kotlin.Server.windowOrNull","name":"windowOrNull","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun windowOrNull(expression: FilterExpr): Window?","params":[{"name":"expression","type":"FilterExpr"}],"returns":"Window?"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":["async"],"doc":{"summary":"The one window link this expression matches, or null when none does."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":118,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-windowornull"},{"id":"io.github.libtmux.kotlin.Server.pane","name":"pane","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun pane(expression: FilterExpr): Pane","params":[{"name":"expression","type":"FilterExpr"}],"returns":"Pane","raises":[{"type":"CardinalityException.NoMatch","doc":"if nothing matched"},{"type":"CardinalityException.MultipleMatches","doc":"if more than one pane matched"}]},{"raw":"public suspend fun Server.pane(id: PaneId): Pane?","params":[{"name":"id","type":"PaneId"}],"returns":"Pane?","receiver":{"name":"this","type":"Server"}}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":["async","overload"],"doc":{"summary":"The one pane this expression matches, captured now."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":129,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-pane"},{"id":"io.github.libtmux.kotlin.Server.paneOrNull","name":"paneOrNull","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun paneOrNull(expression: FilterExpr): Pane?","params":[{"name":"expression","type":"FilterExpr"}],"returns":"Pane?"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":["async"],"doc":{"summary":"The one pane this expression matches, or null when none does."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":133,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-paneornull"},{"id":"io.github.libtmux.kotlin.Server.control","name":"control","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun control(\n session: Session,\n timeout: Duration = config.defaultTimeout().toKotlinDuration(),\n ): ControlClient","params":[{"name":"session","type":"Session"},{"name":"timeout","type":"Duration","default":"config.defaultTimeout().toKotlinDuration()","doc":"how long to wait for the client to become ready"}],"returns":"ControlClient"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":["async"],"doc":{"summary":"Attaches a control client to this session's server, and only to the process this capture named."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":144,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-control"},{"id":"io.github.libtmux.kotlin.Server.close","name":"close","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"override fun close()","params":[]}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"Releases an owned transport. Idempotent, and never kills tmux."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":163,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-close"},{"id":"io.github.libtmux.kotlin.Server.Companion","name":"Companion","kind":"module","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public companion object","params":[]}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":167,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-companion"},{"id":"io.github.libtmux.kotlin.Server.Companion.open","name":"open","kind":"method","parent":"io.github.libtmux.kotlin.Server.Companion","signatures":[{"raw":"public suspend fun open(\n config: ServerConfig,\n policy: ExecutionPolicy = ExecutionPolicy.default(config),\n ): Server","params":[{"name":"config","type":"ServerConfig"},{"name":"policy","type":"ExecutionPolicy","default":"ExecutionPolicy.default(config)"}],"returns":"Server"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":["async"],"doc":{"summary":"A server over a transport it owns and closes.","examples":[{"lang":"console","intro":"Connect to a private tmux server. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/build.gradle.kts","code":"plugins {\n kotlin(\"jvm\") version \"2.4.10\"\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-kotlin:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\nkotlin { jvmToolchain(25) }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"kotlin","intro":"Save this complete program as src/main/kotlin/Connect.kt. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/kotlin/io/github/libtmux/examples/api/kotlin/Connect.kt","code":"package io.github.libtmux.examples.api.kotlin\n\nimport io.github.libtmux.ServerConfig\nimport io.github.libtmux.ServerEndpoint\nimport io.github.libtmux.kotlin.*\nimport java.nio.file.Path\nimport kotlin.system.exitProcess\nimport kotlinx.coroutines.runBlocking\n\n/** Connect to a private tmux server. */\nfun main(args: Array) {\n try {\n require(args.size == 3) { \"expected: tmux-binary socket-path config-file\" }\n val config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build()\n runBlocking {\n withServer(config) { server ->\n println(\"connected=${server.isAlive()}\")\n }\n }\n } catch (error: Exception) {\n if (error is InterruptedException) Thread.currentThread().interrupt()\n System.err.println(\"Example failed: ${error.message}\")\n exitProcess(1)\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.kotlin.ConnectKt && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"connected=true\n"}]},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":170,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-companion-open"},{"id":"io.github.libtmux.kotlin.Server.Companion.fromJava","name":"fromJava","kind":"method","parent":"io.github.libtmux.kotlin.Server.Companion","signatures":[{"raw":"public fun fromJava(\n server: JavaServer,\n policy: ExecutionPolicy = ExecutionPolicy.default(server.config()),\n ): Server","params":[{"name":"server","type":"JavaServer"},{"name":"policy","type":"ExecutionPolicy","default":"ExecutionPolicy.default(server.config())"}],"returns":"Server"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"A wrapper over a server opened in Java, such as a test fixture's. It takes the server as it is: closing the wrapper closes it."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":179,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-companion-fromjava"},{"id":"io.github.libtmux.kotlin.Session","name":"Session","kind":"class","signatures":[{"raw":"public class Session","params":[]}],"imports":{"SessionId":"io.github.libtmux.SessionId","JavaSession":"io.github.libtmux.Session"},"modifiers":[],"doc":{"summary":"A tmux session and its captured windows and properties.","body":"Holds the Java handle privately, so a member here always wins over a same-named catalog-generated\nextension in `SessionOperations.kt`. [Companion] hosts the generated query field namespace\n(`Session.name`, `Session.attached`, ...)."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Session.kt","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session"},{"id":"io.github.libtmux.kotlin.Session.server","name":"server","kind":"property","parent":"io.github.libtmux.kotlin.Session","modifiers":[],"signatures":[{"raw":"public val server: Server","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Session.kt","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-server"},{"id":"io.github.libtmux.kotlin.Session.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public val asJava: JavaSession","params":[],"returns":"JavaSession"}],"imports":{"SessionId":"io.github.libtmux.SessionId","JavaSession":"io.github.libtmux.Session"},"modifiers":[],"doc":{"summary":"The Java session this wraps: the same object, for a Java API that takes one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Session.kt","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-asjava"},{"id":"io.github.libtmux.kotlin.Session.id","name":"id","kind":"property","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public val id: SessionId","params":[],"returns":"SessionId"}],"imports":{"SessionId":"io.github.libtmux.SessionId","JavaSession":"io.github.libtmux.Session"},"modifiers":[],"doc":{"summary":"The session's stable id."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Session.kt","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-id"},{"id":"io.github.libtmux.kotlin.Session.name","name":"name","kind":"property","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public val name: String","params":[],"returns":"String"}],"imports":{"SessionId":"io.github.libtmux.SessionId","JavaSession":"io.github.libtmux.Session"},"modifiers":[],"doc":{"summary":"The session name, which a user may change at any time."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Session.kt","line":22,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-name"},{"id":"io.github.libtmux.kotlin.Session.attached","name":"attached","kind":"property","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public val attached: Boolean","params":[],"returns":"Boolean"}],"imports":{"SessionId":"io.github.libtmux.SessionId","JavaSession":"io.github.libtmux.Session"},"modifiers":[],"doc":{"summary":"Whether a client was attached when this was captured."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Session.kt","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-attached"},{"id":"io.github.libtmux.kotlin.Session.activeWindow","name":"activeWindow","kind":"property","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public val activeWindow: Window?","params":[],"returns":"Window?"}],"imports":{"SessionId":"io.github.libtmux.SessionId","JavaSession":"io.github.libtmux.Session"},"modifiers":[],"doc":{"summary":"The window tmux had active in this session. A pure read of the capture."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Session.kt","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-activewindow"},{"id":"io.github.libtmux.kotlin.Session.activePane","name":"activePane","kind":"property","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public val activePane: Pane?","params":[],"returns":"Pane?"}],"imports":{"SessionId":"io.github.libtmux.SessionId","JavaSession":"io.github.libtmux.Session"},"modifiers":[],"doc":{"summary":"The active pane of the active window. A pure read of the capture."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Session.kt","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-activepane"},{"id":"io.github.libtmux.kotlin.Session.windows","name":"windows","kind":"property","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public val windows: List","params":[],"returns":"List"}],"imports":{"SessionId":"io.github.libtmux.SessionId","JavaSession":"io.github.libtmux.Session"},"modifiers":[],"doc":{"summary":"This session's windows, in tmux's order. A pure read of the capture.","examples":[{"lang":"console","intro":"List all windows, then the windows captured for one session. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/build.gradle.kts","code":"plugins {\n kotlin(\"jvm\") version \"2.4.10\"\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-kotlin:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\nkotlin { jvmToolchain(25) }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"kotlin","intro":"Save this complete program as src/main/kotlin/ListWindows.kt. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/kotlin/io/github/libtmux/examples/api/kotlin/ListWindows.kt","code":"package io.github.libtmux.examples.api.kotlin\n\nimport io.github.libtmux.ServerConfig\nimport io.github.libtmux.ServerEndpoint\nimport io.github.libtmux.kotlin.*\nimport io.github.libtmux.kotlin.query.name\nimport java.nio.file.Path\nimport kotlin.system.exitProcess\nimport kotlinx.coroutines.runBlocking\n\n/** List all windows, then the windows captured for one session. */\nfun main(args: Array) {\n try {\n require(args.size == 3) { \"expected: tmux-binary socket-path config-file\" }\n val config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build()\n runBlocking {\n withServer(config) { server ->\n println(\"windows=\" + server.windows().map { it.name }.sorted().joinToString(\",\"))\n val session = server.session(Session.name eq \"work-one\")\n println(\"session-windows=\" + session.windows.map { it.name }.sorted().joinToString(\",\"))\n }\n }\n } catch (error: Exception) {\n if (error is InterruptedException) Thread.currentThread().interrupt()\n System.err.println(\"Example failed: ${error.message}\")\n exitProcess(1)\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.kotlin.ListWindowsKt && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"windows=editor,editor,logs\nsession-windows=editor,logs\n"}]},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Session.kt","line":34,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-windows"},{"id":"io.github.libtmux.kotlin.Session.options","name":"options","kind":"method","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public fun options(): Options","params":[],"returns":"Options"}],"imports":{"SessionId":"io.github.libtmux.SessionId","JavaSession":"io.github.libtmux.Session"},"modifiers":[],"doc":{"summary":"This session's own options."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Session.kt","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-options"},{"id":"io.github.libtmux.kotlin.Session.environment","name":"environment","kind":"method","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public fun environment(): Environment","params":[],"returns":"Environment"}],"imports":{"SessionId":"io.github.libtmux.SessionId","JavaSession":"io.github.libtmux.Session"},"modifiers":[],"doc":{"summary":"This session's own environment, which a process started in it is given on top of the server's."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Session.kt","line":40,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-environment"},{"id":"io.github.libtmux.kotlin.Session.hooks","name":"hooks","kind":"method","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public fun hooks(): Hooks","params":[],"returns":"Hooks"}],"imports":{"SessionId":"io.github.libtmux.SessionId","JavaSession":"io.github.libtmux.Session"},"modifiers":[],"doc":{"summary":"This session's own hooks."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Session.kt","line":43,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-hooks"},{"id":"io.github.libtmux.kotlin.Session.equals","name":"equals","kind":"method","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"override fun equals(other: Any?): Boolean","params":[{"name":"other","type":"Any?"}],"returns":"Boolean"}],"imports":{"SessionId":"io.github.libtmux.SessionId","JavaSession":"io.github.libtmux.Session"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Session.kt","line":45,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-equals"},{"id":"io.github.libtmux.kotlin.Session.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"override fun hashCode(): Int","params":[],"returns":"Int"}],"imports":{"SessionId":"io.github.libtmux.SessionId","JavaSession":"io.github.libtmux.Session"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Session.kt","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-hashcode"},{"id":"io.github.libtmux.kotlin.Session.toString","name":"toString","kind":"method","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"override fun toString(): String","params":[],"returns":"String"}],"imports":{"SessionId":"io.github.libtmux.SessionId","JavaSession":"io.github.libtmux.Session"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Session.kt","line":49,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-tostring"},{"id":"io.github.libtmux.kotlin.Session.Companion","name":"Companion","kind":"module","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public companion object","params":[]}],"imports":{"SessionId":"io.github.libtmux.SessionId","JavaSession":"io.github.libtmux.Session"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Session.kt","line":51,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-companion"},{"id":"io.github.libtmux.kotlin.Shell","name":"Shell","kind":"class","signatures":[{"raw":"public class Shell","params":[]}],"imports":{"JavaShell":"io.github.libtmux.Shell"},"modifiers":[],"doc":{"summary":"A shell command run by tmux, and a tmux command chosen by a shell command's exit status.","body":"Holds the Java handle privately, so a member here always wins over a same-named catalog-generated\nextension in `ShellOperations.kt`."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Shell.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-shell"},{"id":"io.github.libtmux.kotlin.Shell.server","name":"server","kind":"property","parent":"io.github.libtmux.kotlin.Shell","modifiers":[],"signatures":[{"raw":"public val server: Server","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Shell.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-shell-server"},{"id":"io.github.libtmux.kotlin.Shell.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.kotlin.Shell","signatures":[{"raw":"public val asJava: JavaShell","params":[],"returns":"JavaShell"}],"imports":{"JavaShell":"io.github.libtmux.Shell"},"modifiers":[],"doc":{"summary":"The Java shell this wraps: the same object, for a Java API that takes one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Shell.kt","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-shell-asjava"},{"id":"io.github.libtmux.kotlin.Shell.equals","name":"equals","kind":"method","parent":"io.github.libtmux.kotlin.Shell","signatures":[{"raw":"override fun equals(other: Any?): Boolean","params":[{"name":"other","type":"Any?"}],"returns":"Boolean"}],"imports":{"JavaShell":"io.github.libtmux.Shell"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Shell.kt","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-shell-equals"},{"id":"io.github.libtmux.kotlin.Shell.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.kotlin.Shell","signatures":[{"raw":"override fun hashCode(): Int","params":[],"returns":"Int"}],"imports":{"JavaShell":"io.github.libtmux.Shell"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Shell.kt","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-shell-hashcode"},{"id":"io.github.libtmux.kotlin.Shell.toString","name":"toString","kind":"method","parent":"io.github.libtmux.kotlin.Shell","signatures":[{"raw":"override fun toString(): String","params":[],"returns":"String"}],"imports":{"JavaShell":"io.github.libtmux.Shell"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Shell.kt","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-shell-tostring"},{"id":"io.github.libtmux.kotlin.Window","name":"Window","kind":"class","signatures":[{"raw":"public class Window","params":[]}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"A tmux window at a specific position in a session.","body":"Holds the Java handle privately, so a member here always wins over a same-named catalog-generated\nextension in `WindowOperations.kt`. [Companion] hosts the generated query field namespace."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window"},{"id":"io.github.libtmux.kotlin.Window.server","name":"server","kind":"property","parent":"io.github.libtmux.kotlin.Window","modifiers":[],"signatures":[{"raw":"public val server: Server","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-server"},{"id":"io.github.libtmux.kotlin.Window.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public val asJava: JavaWindow","params":[],"returns":"JavaWindow"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"The Java window this wraps: the same object, for a Java API that takes one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-asjava"},{"id":"io.github.libtmux.kotlin.Window.id","name":"id","kind":"property","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public val id: WindowId","params":[],"returns":"WindowId"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"The underlying window, shared by every link to it."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":22,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-id"},{"id":"io.github.libtmux.kotlin.Window.index","name":"index","kind":"property","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public val index: WindowIndex","params":[],"returns":"WindowIndex"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"Where this link sits in its session."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-index"},{"id":"io.github.libtmux.kotlin.Window.context","name":"context","kind":"property","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public val context: WindowContext","params":[],"returns":"WindowContext"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"The winlink this handle addresses."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-context"},{"id":"io.github.libtmux.kotlin.Window.name","name":"name","kind":"property","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public val name: String","params":[],"returns":"String"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"The window name."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-name"},{"id":"io.github.libtmux.kotlin.Window.active","name":"active","kind":"property","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public val active: Boolean","params":[],"returns":"Boolean"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"Whether this was its session's active window when captured."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":34,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-active"},{"id":"io.github.libtmux.kotlin.Window.linked","name":"linked","kind":"property","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public val linked: Boolean","params":[],"returns":"Boolean"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"Whether the underlying window is linked into more than one session."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-linked"},{"id":"io.github.libtmux.kotlin.Window.size","name":"size","kind":"property","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public val size: Dimensions","params":[],"returns":"Dimensions"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"How large the window was when captured, in terminal cells."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":40,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-size"},{"id":"io.github.libtmux.kotlin.Window.layout","name":"layout","kind":"property","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public val layout: WindowLayout","params":[],"returns":"WindowLayout"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"tmux's own layout for this window, in whichever form this server writes it."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":43,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-layout"},{"id":"io.github.libtmux.kotlin.Window.activePane","name":"activePane","kind":"property","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public val activePane: Pane?","params":[],"returns":"Pane?"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"The pane tmux had active here. A pure read of the capture."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":46,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-activepane"},{"id":"io.github.libtmux.kotlin.Window.session","name":"session","kind":"property","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public val session: Session","params":[],"returns":"Session"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"The session this link belongs to. A pure read of the capture."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":49,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-session"},{"id":"io.github.libtmux.kotlin.Window.panes","name":"panes","kind":"property","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public val panes: List","params":[],"returns":"List"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"This link's panes, in tmux's order. A pure read of the capture.","examples":[{"lang":"console","intro":"List all panes, then the panes captured for one window. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/build.gradle.kts","code":"plugins {\n kotlin(\"jvm\") version \"2.4.10\"\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-kotlin:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\nkotlin { jvmToolchain(25) }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"kotlin","intro":"Save this complete program as src/main/kotlin/ListPanes.kt. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/kotlin/io/github/libtmux/examples/api/kotlin/ListPanes.kt","code":"package io.github.libtmux.examples.api.kotlin\n\nimport io.github.libtmux.ServerConfig\nimport io.github.libtmux.ServerEndpoint\nimport io.github.libtmux.kotlin.*\nimport io.github.libtmux.kotlin.query.name\nimport java.nio.file.Path\nimport kotlin.system.exitProcess\nimport kotlinx.coroutines.runBlocking\n\n/** List all panes, then the panes captured for one window. */\nfun main(args: Array) {\n try {\n require(args.size == 3) { \"expected: tmux-binary socket-path config-file\" }\n val config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build()\n runBlocking {\n withServer(config) { server ->\n println(\"panes=${server.panes().size}\")\n val session = server.session(Session.name eq \"work-one\")\n val window = session.windows.single { it.name == \"editor\" }\n println(\"window-panes=${window.panes.size}\")\n }\n }\n } catch (error: Exception) {\n if (error is InterruptedException) Thread.currentThread().interrupt()\n System.err.println(\"Example failed: ${error.message}\")\n exitProcess(1)\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.kotlin.ListPanesKt && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"panes=4\nwindow-panes=2\n"}]},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":52,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-panes"},{"id":"io.github.libtmux.kotlin.Window.hooks","name":"hooks","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public fun hooks(): Hooks","params":[],"returns":"Hooks"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"This window's own hooks, which every link to it shares."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":55,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-hooks"},{"id":"io.github.libtmux.kotlin.Window.options","name":"options","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public fun options(): Options","params":[],"returns":"Options"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"This window's own options, which every link to it shares."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":58,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-options"},{"id":"io.github.libtmux.kotlin.Window.equals","name":"equals","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"override fun equals(other: Any?): Boolean","params":[{"name":"other","type":"Any?"}],"returns":"Boolean"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":60,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-equals"},{"id":"io.github.libtmux.kotlin.Window.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"override fun hashCode(): Int","params":[],"returns":"Int"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":62,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-hashcode"},{"id":"io.github.libtmux.kotlin.Window.toString","name":"toString","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"override fun toString(): String","params":[],"returns":"String"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":64,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-tostring"},{"id":"io.github.libtmux.kotlin.Window.Companion","name":"Companion","kind":"module","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public companion object","params":[]}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":66,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-companion"},{"id":"io.github.libtmux.kotlin.query.TextField","name":"TextField","kind":"class","signatures":[{"raw":"@JvmInline\npublic value class TextField","params":[],"typeParams":["T"],"typeParameters":[{"name":"T","bound":"Any"}]}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"doc":{"summary":"Kotlin-idiomatic wrappers over [Fields]' typed field handles, each holding the Java handle it wraps. A value class, so this costs nothing beyond the Java object it already holds — the same choice [io.github.libtmux.kotlin.Server]'s live handles reject, made here on purpose: a field handle carries exactly one property, which is what makes the boxing tradeoff free."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-textfield"},{"id":"io.github.libtmux.kotlin.query.TextField.eq","name":"eq","kind":"method","parent":"io.github.libtmux.kotlin.query.TextField","signatures":[{"raw":"public infix fun eq(value: String): FilterExpr","params":[{"name":"value","type":"String"}],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-textfield-eq"},{"id":"io.github.libtmux.kotlin.query.TextField.ne","name":"ne","kind":"method","parent":"io.github.libtmux.kotlin.query.TextField","signatures":[{"raw":"public infix fun ne(value: String): FilterExpr","params":[{"name":"value","type":"String"}],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-textfield-ne"},{"id":"io.github.libtmux.kotlin.query.TextField.startsWith","name":"startsWith","kind":"method","parent":"io.github.libtmux.kotlin.query.TextField","signatures":[{"raw":"public infix fun startsWith(value: String): FilterExpr","params":[{"name":"value","type":"String"}],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-textfield-startswith"},{"id":"io.github.libtmux.kotlin.query.TextField.endsWith","name":"endsWith","kind":"method","parent":"io.github.libtmux.kotlin.query.TextField","signatures":[{"raw":"public infix fun endsWith(value: String): FilterExpr","params":[{"name":"value","type":"String"}],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-textfield-endswith"},{"id":"io.github.libtmux.kotlin.query.TextField.contains","name":"contains","kind":"method","parent":"io.github.libtmux.kotlin.query.TextField","signatures":[{"raw":"public infix fun contains(value: String): FilterExpr","params":[{"name":"value","type":"String"}],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-textfield-contains"},{"id":"io.github.libtmux.kotlin.query.TextField.matches","name":"matches","kind":"method","parent":"io.github.libtmux.kotlin.query.TextField","signatures":[{"raw":"public infix fun matches(pattern: Pattern): FilterExpr","params":[{"name":"pattern","type":"Pattern"}],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-textfield-matches"},{"id":"io.github.libtmux.kotlin.query.TextField.oneOf","name":"oneOf","kind":"method","parent":"io.github.libtmux.kotlin.query.TextField","signatures":[{"raw":"public infix fun oneOf(values: Collection): FilterExpr","params":[{"name":"values","type":"Collection"}],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-textfield-oneof"},{"id":"io.github.libtmux.kotlin.query.NumberField","name":"NumberField","kind":"class","signatures":[{"raw":"@JvmInline\npublic value class NumberField","params":[],"typeParams":["T"],"typeParameters":[{"name":"T","bound":"Any"}]}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"doc":{"summary":"Build numeric comparisons for a captured tmux field."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-numberfield"},{"id":"io.github.libtmux.kotlin.query.NumberField.eq","name":"eq","kind":"method","parent":"io.github.libtmux.kotlin.query.NumberField","signatures":[{"raw":"public infix fun eq(value: Int): FilterExpr","params":[{"name":"value","type":"Int"}],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-numberfield-eq"},{"id":"io.github.libtmux.kotlin.query.NumberField.ne","name":"ne","kind":"method","parent":"io.github.libtmux.kotlin.query.NumberField","signatures":[{"raw":"public infix fun ne(value: Int): FilterExpr","params":[{"name":"value","type":"Int"}],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-numberfield-ne"},{"id":"io.github.libtmux.kotlin.query.NumberField.lessThan","name":"lessThan","kind":"method","parent":"io.github.libtmux.kotlin.query.NumberField","signatures":[{"raw":"public infix fun lessThan(value: Int): FilterExpr","params":[{"name":"value","type":"Int"}],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-numberfield-lessthan"},{"id":"io.github.libtmux.kotlin.query.NumberField.atMost","name":"atMost","kind":"method","parent":"io.github.libtmux.kotlin.query.NumberField","signatures":[{"raw":"public infix fun atMost(value: Int): FilterExpr","params":[{"name":"value","type":"Int"}],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-numberfield-atmost"},{"id":"io.github.libtmux.kotlin.query.NumberField.greaterThan","name":"greaterThan","kind":"method","parent":"io.github.libtmux.kotlin.query.NumberField","signatures":[{"raw":"public infix fun greaterThan(value: Int): FilterExpr","params":[{"name":"value","type":"Int"}],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-numberfield-greaterthan"},{"id":"io.github.libtmux.kotlin.query.NumberField.atLeast","name":"atLeast","kind":"method","parent":"io.github.libtmux.kotlin.query.NumberField","signatures":[{"raw":"public infix fun atLeast(value: Int): FilterExpr","params":[{"name":"value","type":"Int"}],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-numberfield-atleast"},{"id":"io.github.libtmux.kotlin.query.FlagField","name":"FlagField","kind":"class","signatures":[{"raw":"@JvmInline\npublic value class FlagField","params":[],"typeParams":["T"],"typeParameters":[{"name":"T","bound":"Any"}]}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"doc":{"summary":"Match a captured boolean field against true or false."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-flagfield"},{"id":"io.github.libtmux.kotlin.query.FlagField.isTrue","name":"isTrue","kind":"method","parent":"io.github.libtmux.kotlin.query.FlagField","signatures":[{"raw":"public fun isTrue(): FilterExpr","params":[],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-flagfield-istrue"},{"id":"io.github.libtmux.kotlin.query.FlagField.isFalse","name":"isFalse","kind":"method","parent":"io.github.libtmux.kotlin.query.FlagField","signatures":[{"raw":"public fun isFalse(): FilterExpr","params":[],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":39,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-flagfield-isfalse"},{"id":"io.github.libtmux.kotlin.query.ToManyField","name":"ToManyField","kind":"class","signatures":[{"raw":"@JvmInline\npublic value class ToManyField","params":[],"typeParams":["T","R"],"typeParameters":[{"name":"T","bound":"Any"},{"name":"R","bound":"Any"}]}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"doc":{"summary":"Match an object by the captured children related to it."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":43,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-tomanyfield"},{"id":"io.github.libtmux.kotlin.query.ToManyField.any","name":"any","kind":"method","parent":"io.github.libtmux.kotlin.query.ToManyField","signatures":[{"raw":"public infix fun any(predicate: FilterExpr): FilterExpr","params":[{"name":"predicate","type":"FilterExpr"}],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":45,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-tomanyfield-any"},{"id":"io.github.libtmux.kotlin.query.ToManyField.all","name":"all","kind":"method","parent":"io.github.libtmux.kotlin.query.ToManyField","signatures":[{"raw":"public infix fun all(predicate: FilterExpr): FilterExpr","params":[{"name":"predicate","type":"FilterExpr"}],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":46,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-tomanyfield-all"},{"id":"io.github.libtmux.kotlin.query.ToManyField.none","name":"none","kind":"method","parent":"io.github.libtmux.kotlin.query.ToManyField","signatures":[{"raw":"public infix fun none(predicate: FilterExpr): FilterExpr","params":[{"name":"predicate","type":"FilterExpr"}],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-tomanyfield-none"},{"id":"io.github.libtmux.kotlin.query.ToOneField","name":"ToOneField","kind":"class","signatures":[{"raw":"@JvmInline\npublic value class ToOneField","params":[],"typeParams":["T","R"],"typeParameters":[{"name":"T","bound":"Any"},{"name":"R","bound":"Any"}]}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"doc":{"summary":"Match an object by one captured related object."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":51,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-toonefield"},{"id":"io.github.libtmux.kotlin.query.ToOneField.matching","name":"matching","kind":"method","parent":"io.github.libtmux.kotlin.query.ToOneField","signatures":[{"raw":"public infix fun matching(predicate: FilterExpr): FilterExpr","params":[{"name":"predicate","type":"FilterExpr"}],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":53,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-toonefield-matching"},{"id":"io.github.libtmux.kotlin.Batch.run","name":"run","kind":"method","parent":"io.github.libtmux.kotlin.Batch","signatures":[{"raw":"public suspend fun Batch.run(): BatchResult","params":[],"returns":"BatchResult","receiver":{"name":"this","type":"Batch"}}],"imports":{"BatchResult":"io.github.libtmux.batch.BatchResult","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Runs every collected operation in one tmux invocation."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/BatchOperations.kt","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-batch-run"},{"id":"io.github.libtmux.kotlin.Buffers.delete","name":"delete","kind":"method","parent":"io.github.libtmux.kotlin.Buffers","signatures":[{"raw":"public suspend fun Buffers.delete(name: String): Unit","params":[{"name":"name","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Buffers"}}],"imports":{"BufferInfo":"io.github.libtmux.BufferInfo","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Removes a buffer by its exact name."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/BuffersOperations.kt","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-buffers-delete"},{"id":"io.github.libtmux.kotlin.Buffers.list","name":"list","kind":"method","parent":"io.github.libtmux.kotlin.Buffers","signatures":[{"raw":"public suspend fun Buffers.list(): List","params":[],"returns":"List","receiver":{"name":"this","type":"Buffers"}}],"imports":{"BufferInfo":"io.github.libtmux.BufferInfo","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Captures every buffer the server holds, in tmux's order."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/BuffersOperations.kt","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-buffers-list"},{"id":"io.github.libtmux.kotlin.Buffers.load","name":"load","kind":"method","parent":"io.github.libtmux.kotlin.Buffers","signatures":[{"raw":"public suspend fun Buffers.load(name: String, `file`: Path): Unit","params":[{"name":"name","type":"String"},{"name":"`file`","type":"Path"}],"returns":"Unit","receiver":{"name":"this","type":"Buffers"}}],"imports":{"BufferInfo":"io.github.libtmux.BufferInfo","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Reads a file into a named buffer."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/BuffersOperations.kt","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-buffers-load"},{"id":"io.github.libtmux.kotlin.Buffers.save","name":"save","kind":"method","parent":"io.github.libtmux.kotlin.Buffers","signatures":[{"raw":"public suspend fun Buffers.save(name: String, `file`: Path): Unit","params":[{"name":"name","type":"String"},{"name":"`file`","type":"Path"}],"returns":"Unit","receiver":{"name":"this","type":"Buffers"}}],"imports":{"BufferInfo":"io.github.libtmux.BufferInfo","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Writes a buffer's contents to a file."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/BuffersOperations.kt","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-buffers-save"},{"id":"io.github.libtmux.kotlin.Buffers.`set`","name":"`set`","kind":"method","parent":"io.github.libtmux.kotlin.Buffers","signatures":[{"raw":"public suspend fun Buffers.`set`(name: String, contents: String): Unit","params":[{"name":"name","type":"String"},{"name":"contents","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Buffers"}}],"imports":{"BufferInfo":"io.github.libtmux.BufferInfo","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Puts text in a named buffer, replacing whatever was there."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/BuffersOperations.kt","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-buffers-set"},{"id":"io.github.libtmux.kotlin.Buffers.show","name":"show","kind":"method","parent":"io.github.libtmux.kotlin.Buffers","signatures":[{"raw":"public suspend fun Buffers.show(name: String): String","params":[{"name":"name","type":"String"}],"returns":"String","receiver":{"name":"this","type":"Buffers"}}],"imports":{"BufferInfo":"io.github.libtmux.BufferInfo","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"What a buffer holds, without any line breaks it ends with."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/BuffersOperations.kt","line":41,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-buffers-show"},{"id":"io.github.libtmux.kotlin.Client.detach","name":"detach","kind":"method","parent":"io.github.libtmux.kotlin.Client","signatures":[{"raw":"public suspend fun Client.detach(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Client"}}],"imports":{"ClientAttachment":"io.github.libtmux.ClientAttachment","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Detaches this client, leaving whatever it was attached to running."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ClientOperations.kt","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client-detach"},{"id":"io.github.libtmux.kotlin.Client.detachOthers","name":"detachOthers","kind":"method","parent":"io.github.libtmux.kotlin.Client","signatures":[{"raw":"public suspend fun Client.detachOthers(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Client"}}],"imports":{"ClientAttachment":"io.github.libtmux.ClientAttachment","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Detaches every other client, leaving this one attached."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ClientOperations.kt","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client-detachothers"},{"id":"io.github.libtmux.kotlin.Client.fetchAttachment","name":"fetchAttachment","kind":"method","parent":"io.github.libtmux.kotlin.Client","signatures":[{"raw":"public suspend fun Client.fetchAttachment(): ClientAttachment?","params":[],"returns":"ClientAttachment?","receiver":{"name":"this","type":"Client"}}],"imports":{"ClientAttachment":"io.github.libtmux.ClientAttachment","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Takes a new capture and returns what this client is looking at now."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ClientOperations.kt","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client-fetchattachment"},{"id":"io.github.libtmux.kotlin.Client.redraw","name":"redraw","kind":"method","parent":"io.github.libtmux.kotlin.Client","signatures":[{"raw":"public suspend fun Client.redraw(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Client"}}],"imports":{"ClientAttachment":"io.github.libtmux.ClientAttachment","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Asks tmux to redraw this client."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ClientOperations.kt","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client-redraw"},{"id":"io.github.libtmux.kotlin.Client.refresh","name":"refresh","kind":"method","parent":"io.github.libtmux.kotlin.Client","signatures":[{"raw":"public suspend fun Client.refresh(): Client","params":[],"returns":"Client","receiver":{"name":"this","type":"Client"}}],"imports":{"ClientAttachment":"io.github.libtmux.ClientAttachment","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Takes a new capture and returns this client as it is now."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ClientOperations.kt","line":33,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client-refresh"},{"id":"io.github.libtmux.kotlin.Client.switchTo","name":"switchTo","kind":"method","parent":"io.github.libtmux.kotlin.Client","signatures":[{"raw":"public suspend fun Client.switchTo(session: Session): Unit","params":[{"name":"session","type":"Session"}],"returns":"Unit","receiver":{"name":"this","type":"Client"}}],"imports":{"ClientAttachment":"io.github.libtmux.ClientAttachment","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Moves this client to another session."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ClientOperations.kt","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client-switchto"},{"id":"io.github.libtmux.kotlin.CommandChain.arrange","name":"arrange","kind":"method","parent":"io.github.libtmux.kotlin.CommandChain","signatures":[{"raw":"public suspend fun CommandChain.arrange(layout: String): CommandChain","params":[{"name":"layout","type":"String"}],"returns":"CommandChain","receiver":{"name":"this","type":"CommandChain"}}],"imports":{"BatchResult":"io.github.libtmux.batch.BatchResult","String":"kotlin.String","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Arranges the current window."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/CommandChainOperations.kt","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commandchain-arrange"},{"id":"io.github.libtmux.kotlin.CommandChain.run","name":"run","kind":"method","parent":"io.github.libtmux.kotlin.CommandChain","signatures":[{"raw":"public suspend fun CommandChain.run(): BatchResult","params":[],"returns":"BatchResult","receiver":{"name":"this","type":"CommandChain"}}],"imports":{"BatchResult":"io.github.libtmux.batch.BatchResult","String":"kotlin.String","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Runs the whole chain in one tmux invocation, attributing each step."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/CommandChainOperations.kt","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commandchain-run"},{"id":"io.github.libtmux.kotlin.Commands.list","name":"list","kind":"method","parent":"io.github.libtmux.kotlin.Commands","signatures":[{"raw":"public suspend fun Commands.list(): List","params":[],"returns":"List","receiver":{"name":"this","type":"Commands"}}],"imports":{"String":"kotlin.String","List":"kotlin.collections.List","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Every command, as tmux prints it."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/CommandsOperations.kt","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commands-list"},{"id":"io.github.libtmux.kotlin.ControlClient.send","name":"send","kind":"method","parent":"io.github.libtmux.kotlin.ControlClient","signatures":[{"raw":"public suspend fun ControlClient.send(vararg argv: String): ControlReply","params":[{"name":"argv","type":"String"}],"returns":"ControlReply","receiver":{"name":"this","type":"ControlClient"}},{"raw":"public suspend fun ControlClient.send(argv: List): ControlReply","params":[{"name":"argv","type":"List"}],"returns":"ControlReply","receiver":{"name":"this","type":"ControlClient"}},{"raw":"public suspend fun ControlClient.send(argv: List, timeout: Duration): ControlReply","params":[{"name":"argv","type":"List"},{"name":"timeout","type":"Duration"}],"returns":"ControlReply","receiver":{"name":"this","type":"ControlClient"}}],"imports":{"ControlReply":"io.github.libtmux.control.ControlReply","String":"kotlin.String","List":"kotlin.collections.List","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Runs one command and waits for its reply."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ControlClientOperations.kt","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-controlclient-send"},{"id":"io.github.libtmux.kotlin.ControlClient.unwatch","name":"unwatch","kind":"method","parent":"io.github.libtmux.kotlin.ControlClient","signatures":[{"raw":"public suspend fun ControlClient.unwatch(name: String): ControlReply","params":[{"name":"name","type":"String"}],"returns":"ControlReply","receiver":{"name":"this","type":"ControlClient"}}],"imports":{"ControlReply":"io.github.libtmux.control.ControlReply","String":"kotlin.String","List":"kotlin.collections.List","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Stops a watch."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ControlClientOperations.kt","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-controlclient-unwatch"},{"id":"io.github.libtmux.kotlin.ControlClient.watch","name":"watch","kind":"method","parent":"io.github.libtmux.kotlin.ControlClient","signatures":[{"raw":"public suspend fun ControlClient.watch(\n name: String,\n target: String,\n format: String,\n): ControlReply","params":[{"name":"name","type":"String"},{"name":"target","type":"String"},{"name":"format","type":"String"}],"returns":"ControlReply","receiver":{"name":"this","type":"ControlClient"}}],"imports":{"ControlReply":"io.github.libtmux.control.ControlReply","String":"kotlin.String","List":"kotlin.collections.List","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Asks tmux to report a format whenever its value changes."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ControlClientOperations.kt","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-controlclient-watch"},{"id":"io.github.libtmux.kotlin.Environment.all","name":"all","kind":"method","parent":"io.github.libtmux.kotlin.Environment","signatures":[{"raw":"public suspend fun Environment.all(): Map","params":[],"returns":"Map","receiver":{"name":"this","type":"Environment"}}],"imports":{"Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","Map":"kotlin.collections.Map","Set":"kotlin.collections.Set","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Every name set at this scope, in tmux's order."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/EnvironmentOperations.kt","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-environment-all"},{"id":"io.github.libtmux.kotlin.Environment.effective","name":"effective","kind":"method","parent":"io.github.libtmux.kotlin.Environment","signatures":[{"raw":"public suspend fun Environment.effective(): Map","params":[],"returns":"Map","receiver":{"name":"this","type":"Environment"}}],"imports":{"Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","Map":"kotlin.collections.Map","Set":"kotlin.collections.Set","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"What a process started from this scope is actually handed, both scopes taken together."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/EnvironmentOperations.kt","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-environment-effective"},{"id":"io.github.libtmux.kotlin.Environment.`get`","name":"`get`","kind":"method","parent":"io.github.libtmux.kotlin.Environment","signatures":[{"raw":"public suspend fun Environment.`get`(name: String): String?","params":[{"name":"name","type":"String"}],"returns":"String?","receiver":{"name":"this","type":"Environment"}}],"imports":{"Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","Map":"kotlin.collections.Map","Set":"kotlin.collections.Set","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"The value set for this name, or empty when it is removed or absent."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/EnvironmentOperations.kt","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-environment-get"},{"id":"io.github.libtmux.kotlin.Environment.isRemoved","name":"isRemoved","kind":"method","parent":"io.github.libtmux.kotlin.Environment","signatures":[{"raw":"public suspend fun Environment.isRemoved(name: String): Boolean","params":[{"name":"name","type":"String"}],"returns":"Boolean","receiver":{"name":"this","type":"Environment"}}],"imports":{"Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","Map":"kotlin.collections.Map","Set":"kotlin.collections.Set","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Whether new processes are told not to inherit this name."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/EnvironmentOperations.kt","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-environment-isremoved"},{"id":"io.github.libtmux.kotlin.Environment.remove","name":"remove","kind":"method","parent":"io.github.libtmux.kotlin.Environment","signatures":[{"raw":"public suspend fun Environment.remove(name: String): Unit","params":[{"name":"name","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Environment"}}],"imports":{"Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","Map":"kotlin.collections.Map","Set":"kotlin.collections.Set","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Tells processes started after this not to inherit the name."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/EnvironmentOperations.kt","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-environment-remove"},{"id":"io.github.libtmux.kotlin.Environment.removed","name":"removed","kind":"method","parent":"io.github.libtmux.kotlin.Environment","signatures":[{"raw":"public suspend fun Environment.removed(): Set","params":[],"returns":"Set","receiver":{"name":"this","type":"Environment"}}],"imports":{"Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","Map":"kotlin.collections.Map","Set":"kotlin.collections.Set","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Every name this scope tells a new process not to inherit."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/EnvironmentOperations.kt","line":41,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-environment-removed"},{"id":"io.github.libtmux.kotlin.Environment.`set`","name":"`set`","kind":"method","parent":"io.github.libtmux.kotlin.Environment","signatures":[{"raw":"public suspend fun Environment.`set`(name: String, `value`: String): Unit","params":[{"name":"name","type":"String"},{"name":"`value`","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Environment"}}],"imports":{"Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","Map":"kotlin.collections.Map","Set":"kotlin.collections.Set","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Sets a name to a literal value."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/EnvironmentOperations.kt","line":46,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-environment-set"},{"id":"io.github.libtmux.kotlin.Environment.setExpanded","name":"setExpanded","kind":"method","parent":"io.github.libtmux.kotlin.Environment","signatures":[{"raw":"public suspend fun Environment.setExpanded(name: String, format: String): Unit","params":[{"name":"name","type":"String"},{"name":"format","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Environment"}}],"imports":{"Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","Map":"kotlin.collections.Map","Set":"kotlin.collections.Set","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Sets a name to what a tmux format expands to now."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/EnvironmentOperations.kt","line":51,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-environment-setexpanded"},{"id":"io.github.libtmux.kotlin.Environment.unset","name":"unset","kind":"method","parent":"io.github.libtmux.kotlin.Environment","signatures":[{"raw":"public suspend fun Environment.unset(name: String): Unit","params":[{"name":"name","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Environment"}}],"imports":{"Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","Map":"kotlin.collections.Map","Set":"kotlin.collections.Set","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Removes the name from this scope, so it is neither set nor marked."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/EnvironmentOperations.kt","line":56,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-environment-unset"},{"id":"io.github.libtmux.kotlin.Hooks.all","name":"all","kind":"method","parent":"io.github.libtmux.kotlin.Hooks","signatures":[{"raw":"public suspend fun Hooks.all(): Map>","params":[],"returns":"Map>","receiver":{"name":"this","type":"Hooks"}}],"imports":{"String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Every hook at this scope, keyed by event, each with its commands in the order tmux runs them."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/HooksOperations.kt","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-hooks-all"},{"id":"io.github.libtmux.kotlin.Hooks.append","name":"append","kind":"method","parent":"io.github.libtmux.kotlin.Hooks","signatures":[{"raw":"public suspend fun Hooks.append(event: String, command: List): Unit","params":[{"name":"event","type":"String"},{"name":"command","type":"List"}],"returns":"Unit","receiver":{"name":"this","type":"Hooks"}},{"raw":"public suspend fun Hooks.append(event: String, command: String): Unit","params":[{"name":"event","type":"String"},{"name":"command","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Hooks"}}],"imports":{"String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"As [.append(String, String)], with the command as words."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/HooksOperations.kt","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-hooks-append"},{"id":"io.github.libtmux.kotlin.Hooks.run","name":"run","kind":"method","parent":"io.github.libtmux.kotlin.Hooks","signatures":[{"raw":"public suspend fun Hooks.run(event: String): Unit","params":[{"name":"event","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Hooks"}}],"imports":{"String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Runs what is bound to an event now, without waiting for the event."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/HooksOperations.kt","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-hooks-run"},{"id":"io.github.libtmux.kotlin.Hooks.`set`","name":"`set`","kind":"method","parent":"io.github.libtmux.kotlin.Hooks","signatures":[{"raw":"public suspend fun Hooks.`set`(event: String, command: String): Unit","params":[{"name":"event","type":"String"},{"name":"command","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Hooks"}},{"raw":"public suspend fun Hooks.`set`(event: String, command: List): Unit","params":[{"name":"event","type":"String"},{"name":"command","type":"List"}],"returns":"Unit","receiver":{"name":"this","type":"Hooks"}}],"imports":{"String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Binds a tmux command to an event at this scope, replacing anything already bound to it."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/HooksOperations.kt","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-hooks-set"},{"id":"io.github.libtmux.kotlin.Hooks.unset","name":"unset","kind":"method","parent":"io.github.libtmux.kotlin.Hooks","signatures":[{"raw":"public suspend fun Hooks.unset(event: String): Unit","params":[{"name":"event","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Hooks"}}],"imports":{"String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Removes everything bound to an event at this scope."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/HooksOperations.kt","line":45,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-hooks-unset"},{"id":"io.github.libtmux.kotlin.Keys.bind","name":"bind","kind":"method","parent":"io.github.libtmux.kotlin.Keys","signatures":[{"raw":"public suspend fun Keys.bind(key: String, command: List): Unit","params":[{"name":"key","type":"String"},{"name":"command","type":"List"}],"returns":"Unit","receiver":{"name":"this","type":"Keys"}}],"imports":{"String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Binds a key to a tmux command, given as its words."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/KeysOperations.kt","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-keys-bind"},{"id":"io.github.libtmux.kotlin.Keys.list","name":"list","kind":"method","parent":"io.github.libtmux.kotlin.Keys","signatures":[{"raw":"public suspend fun Keys.list(): List","params":[],"returns":"List","receiver":{"name":"this","type":"Keys"}}],"imports":{"String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"The bindings as tmux lists them, one per line."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/KeysOperations.kt","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-keys-list"},{"id":"io.github.libtmux.kotlin.Keys.unbind","name":"unbind","kind":"method","parent":"io.github.libtmux.kotlin.Keys","signatures":[{"raw":"public suspend fun Keys.unbind(key: String): Unit","params":[{"name":"key","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Keys"}}],"imports":{"String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Removes a key's binding."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/KeysOperations.kt","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-keys-unbind"},{"id":"io.github.libtmux.kotlin.MessageLog.lines","name":"lines","kind":"method","parent":"io.github.libtmux.kotlin.MessageLog","signatures":[{"raw":"public suspend fun MessageLog.lines(): List","params":[],"returns":"List","receiver":{"name":"this","type":"MessageLog"}}],"imports":{"String":"kotlin.String","List":"kotlin.collections.List","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"The log lines."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/MessageLogOperations.kt","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-messagelog-lines"},{"id":"io.github.libtmux.kotlin.Options.all","name":"all","kind":"method","parent":"io.github.libtmux.kotlin.Options","signatures":[{"raw":"public suspend fun Options.all(): Map","params":[],"returns":"Map","receiver":{"name":"this","type":"Options"}}],"imports":{"Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Every option set at this scope, in tmux's order."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/OptionsOperations.kt","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-options-all"},{"id":"io.github.libtmux.kotlin.Options.append","name":"append","kind":"method","parent":"io.github.libtmux.kotlin.Options","signatures":[{"raw":"public suspend fun Options.append(name: String, suffix: String): Unit","params":[{"name":"name","type":"String"},{"name":"suffix","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Options"}}],"imports":{"Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Adds to the end of a string option, rather than replacing it."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/OptionsOperations.kt","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-options-append"},{"id":"io.github.libtmux.kotlin.Options.effective","name":"effective","kind":"method","parent":"io.github.libtmux.kotlin.Options","signatures":[{"raw":"public suspend fun Options.effective(): Map","params":[],"returns":"Map","receiver":{"name":"this","type":"Options"}}],"imports":{"Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Every option tmux lists at this scope, including inherited built-in values."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/OptionsOperations.kt","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-options-effective"},{"id":"io.github.libtmux.kotlin.Options.setExpanded","name":"setExpanded","kind":"method","parent":"io.github.libtmux.kotlin.Options","signatures":[{"raw":"public suspend fun Options.setExpanded(name: String, format: String): Unit","params":[{"name":"name","type":"String"},{"name":"format","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Options"}}],"imports":{"Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Sets one option to what a tmux format comes to, rather than to the format itself."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/OptionsOperations.kt","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-options-setexpanded"},{"id":"io.github.libtmux.kotlin.Options.setIfAbsent","name":"setIfAbsent","kind":"method","parent":"io.github.libtmux.kotlin.Options","signatures":[{"raw":"public suspend fun Options.setIfAbsent(name: String, `value`: String): Boolean","params":[{"name":"name","type":"String"},{"name":"`value`","type":"String"}],"returns":"Boolean","receiver":{"name":"this","type":"Options"}}],"imports":{"Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Sets one option only if this scope does not already set it."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/OptionsOperations.kt","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-options-setifabsent"},{"id":"io.github.libtmux.kotlin.Options.unset","name":"unset","kind":"method","parent":"io.github.libtmux.kotlin.Options","signatures":[{"raw":"public suspend fun Options.unset(name: String): Unit","params":[{"name":"name","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Options"}}],"imports":{"Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Removes one option at this scope, so it falls back to whatever it inherits."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/OptionsOperations.kt","line":40,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-options-unset"},{"id":"io.github.libtmux.kotlin.Pane.breakOut","name":"breakOut","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.breakOut(): Window","params":[],"returns":"Window","receiver":{"name":"this","type":"Pane"}},{"raw":"public suspend fun Pane.breakOut(windowName: String): Window","params":[{"name":"windowName","type":"String"}],"returns":"Window","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Moves this pane into a window of its own, leaving tmux to name it."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-breakout"},{"id":"io.github.libtmux.kotlin.Pane.capture","name":"capture","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.capture(): List","params":[],"returns":"List","receiver":{"name":"this","type":"Pane"}},{"raw":"public suspend fun Pane.capture(spec: CaptureSpec): List","params":[{"name":"spec","type":"CaptureSpec"}],"returns":"List","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"This pane's visible content, one element per line.","examples":[{"lang":"console","intro":"Send input and wait for output before capturing the pane. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/build.gradle.kts","code":"plugins {\n kotlin(\"jvm\") version \"2.4.10\"\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-kotlin:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\nkotlin { jvmToolchain(25) }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"kotlin","intro":"Save this complete program as src/main/kotlin/Capture.kt. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/kotlin/io/github/libtmux/examples/api/kotlin/Capture.kt","code":"package io.github.libtmux.examples.api.kotlin\n\nimport io.github.libtmux.ServerConfig\nimport io.github.libtmux.ServerEndpoint\nimport io.github.libtmux.SessionSpec\nimport io.github.libtmux.TextOutcome\nimport io.github.libtmux.kotlin.*\nimport java.nio.file.Path\nimport kotlin.system.exitProcess\nimport kotlinx.coroutines.runBlocking\nimport kotlin.time.Duration.Companion.seconds\n\n/** Send input and wait for output before capturing the pane. */\nfun main(args: Array) {\n try {\n require(args.size == 3) { \"expected: tmux-binary socket-path config-file\" }\n val config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build()\n runBlocking {\n withServer(config) { server ->\n val session = server.newSession(\n SessionSpec.builder().named(\"api-capture\").running(\"/bin/sh\").build()\n )\n val pane = session.windows.first().panes.first()\n pane.sendKeys(listOf(\"printf 'api-%s\\\\n' keys\", \"Enter\"))\n check(pane.awaitText(\"api-keys\", timeout = 5.seconds) != TextOutcome.TIMED_OUT) {\n \"timed out waiting for keys output\"\n }\n pane.sendLine(\"printf 'api-%s\\\\n' line\")\n check(pane.awaitText(\"api-line\", timeout = 5.seconds) != TextOutcome.TIMED_OUT) {\n \"timed out waiting for line output\"\n }\n val lines = pane.capture()\n for (expected in listOf(\"api-keys\", \"api-line\")) {\n check(lines.any { it.trim() == expected }) { \"capture is missing $expected\" }\n println(expected)\n }\n }\n }\n } catch (error: Exception) {\n if (error is InterruptedException) Thread.currentThread().interrupt()\n System.err.println(\"Example failed: ${error.message}\")\n exitProcess(1)\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.kotlin.CaptureKt && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"api-keys\napi-line\n"}]},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":34,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-capture"},{"id":"io.github.libtmux.kotlin.Pane.clearHistory","name":"clearHistory","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.clearHistory(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Discards this pane's scrollback."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":44,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-clearhistory"},{"id":"io.github.libtmux.kotlin.Pane.copyMode","name":"copyMode","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.copyMode(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Puts this pane into copy mode, where its scrollback can be navigated."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":49,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-copymode"},{"id":"io.github.libtmux.kotlin.Pane.dead","name":"dead","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.dead(): Boolean","params":[],"returns":"Boolean","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Whether this pane's process has exited, read fresh rather than from the capture."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":54,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-dead"},{"id":"io.github.libtmux.kotlin.Pane.exitMode","name":"exitMode","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.exitMode(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Leaves whichever mode this pane is in."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":59,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-exitmode"},{"id":"io.github.libtmux.kotlin.Pane.expand","name":"expand","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.expand(format: String): String","params":[{"name":"format","type":"String"}],"returns":"String","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Expands a tmux format in this pane's context, and answers with what it came to."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":64,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-expand"},{"id":"io.github.libtmux.kotlin.Pane.joinTo","name":"joinTo","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.joinTo(window: Window): Unit","params":[{"name":"window","type":"Window"}],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Moves this pane into another window, splitting it."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":69,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-jointo"},{"id":"io.github.libtmux.kotlin.Pane.kill","name":"kill","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.kill(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Closes this pane."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":74,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-kill"},{"id":"io.github.libtmux.kotlin.Pane.mode","name":"mode","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.mode(): PaneMode?","params":[],"returns":"PaneMode?","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Which mode this pane is in at this moment, or empty when it is in none."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":79,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-mode"},{"id":"io.github.libtmux.kotlin.Pane.noteTyped","name":"noteTyped","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.noteTyped(text: String): Unit","params":[{"name":"text","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Notes text that reached this pane without going through this handle, so a wait discounts its echo the way it discounts text sent through [.sendLiteral]."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":85,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-notetyped"},{"id":"io.github.libtmux.kotlin.Pane.paste","name":"paste","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.paste(text: String): Unit","params":[{"name":"text","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Pane"}},{"raw":"public suspend fun Pane.paste(text: String, beforePaste: Runnable): Unit","params":[{"name":"text","type":"String"},{"name":"beforePaste","type":"Runnable"}],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Pastes text into this pane as one block, leaving nothing behind on the server."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":90,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-paste"},{"id":"io.github.libtmux.kotlin.Pane.pasteBuffer","name":"pasteBuffer","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.pasteBuffer(name: String): Unit","params":[{"name":"name","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Pastes a named buffer into this pane, as though it had been typed."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":100,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-pastebuffer"},{"id":"io.github.libtmux.kotlin.Pane.pipeTo","name":"pipeTo","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.pipeTo(shellCommand: String): Unit","params":[{"name":"shellCommand","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Sends everything this pane prints to a shell command, until [.stopPiping]."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":105,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-pipeto"},{"id":"io.github.libtmux.kotlin.Pane.refresh","name":"refresh","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.refresh(): Pane","params":[],"returns":"Pane","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Takes a new capture and returns this pane as it is now."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":110,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-refresh"},{"id":"io.github.libtmux.kotlin.Pane.resize","name":"resize","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.resize(direction: Direction, cells: Int): Unit","params":[{"name":"direction","type":"Direction"},{"name":"cells","type":"Int"}],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Grows this pane by a number of cells in one direction."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":115,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-resize"},{"id":"io.github.libtmux.kotlin.Pane.resizeTo","name":"resizeTo","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.resizeTo(size: Dimensions): Unit","params":[{"name":"size","type":"Dimensions"}],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Resizes this pane."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":120,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-resizeto"},{"id":"io.github.libtmux.kotlin.Pane.respawn","name":"respawn","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.respawn(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Pane"}},{"raw":"public suspend fun Pane.respawn(vararg command: String): Unit","params":[{"name":"command","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Kills whatever runs here and starts the pane's default command again."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":125,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-respawn"},{"id":"io.github.libtmux.kotlin.Pane.respawnIn","name":"respawnIn","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.respawnIn(directory: Path): Unit","params":[{"name":"directory","type":"Path"}],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Restarts the configured pane process in a caller-supplied literal directory, resolved against this process's working directory when relative."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":136,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-respawnin"},{"id":"io.github.libtmux.kotlin.Pane.retitle","name":"retitle","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.retitle(title: String): Pane","params":[{"name":"title","type":"String"}],"returns":"Pane","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Retitles this pane and returns its replacement capture."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":141,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-retitle"},{"id":"io.github.libtmux.kotlin.Pane.select","name":"select","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.select(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Makes this the active pane of its window."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":146,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-select"},{"id":"io.github.libtmux.kotlin.Pane.send","name":"send","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.send(keys: String): Unit","params":[{"name":"keys","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Sends keys to this pane without pressing Enter."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":151,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-send"},{"id":"io.github.libtmux.kotlin.Pane.sendKeys","name":"sendKeys","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.sendKeys(keys: List): Unit","params":[{"name":"keys","type":"List"}],"returns":"Unit","receiver":{"name":"this","type":"Pane"}},{"raw":"public suspend fun Pane.sendKeys(keys: List, beforeSend: Runnable): Unit","params":[{"name":"keys","type":"List"},{"name":"beforeSend","type":"Runnable"}],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Sends an ordered group of key names to this pane, as tmux resolves them.","examples":[{"lang":"console","intro":"Send input and wait for output before capturing the pane. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/build.gradle.kts","code":"plugins {\n kotlin(\"jvm\") version \"2.4.10\"\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-kotlin:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\nkotlin { jvmToolchain(25) }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"kotlin","intro":"Save this complete program as src/main/kotlin/Capture.kt. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/kotlin/io/github/libtmux/examples/api/kotlin/Capture.kt","code":"package io.github.libtmux.examples.api.kotlin\n\nimport io.github.libtmux.ServerConfig\nimport io.github.libtmux.ServerEndpoint\nimport io.github.libtmux.SessionSpec\nimport io.github.libtmux.TextOutcome\nimport io.github.libtmux.kotlin.*\nimport java.nio.file.Path\nimport kotlin.system.exitProcess\nimport kotlinx.coroutines.runBlocking\nimport kotlin.time.Duration.Companion.seconds\n\n/** Send input and wait for output before capturing the pane. */\nfun main(args: Array) {\n try {\n require(args.size == 3) { \"expected: tmux-binary socket-path config-file\" }\n val config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build()\n runBlocking {\n withServer(config) { server ->\n val session = server.newSession(\n SessionSpec.builder().named(\"api-capture\").running(\"/bin/sh\").build()\n )\n val pane = session.windows.first().panes.first()\n pane.sendKeys(listOf(\"printf 'api-%s\\\\n' keys\", \"Enter\"))\n check(pane.awaitText(\"api-keys\", timeout = 5.seconds) != TextOutcome.TIMED_OUT) {\n \"timed out waiting for keys output\"\n }\n pane.sendLine(\"printf 'api-%s\\\\n' line\")\n check(pane.awaitText(\"api-line\", timeout = 5.seconds) != TextOutcome.TIMED_OUT) {\n \"timed out waiting for line output\"\n }\n val lines = pane.capture()\n for (expected in listOf(\"api-keys\", \"api-line\")) {\n check(lines.any { it.trim() == expected }) { \"capture is missing $expected\" }\n println(expected)\n }\n }\n }\n } catch (error: Exception) {\n if (error is InterruptedException) Thread.currentThread().interrupt()\n System.err.println(\"Example failed: ${error.message}\")\n exitProcess(1)\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.kotlin.CaptureKt && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"api-keys\napi-line\n"}]},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":156,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-sendkeys"},{"id":"io.github.libtmux.kotlin.Pane.sendLine","name":"sendLine","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.sendLine(command: String): Unit","params":[{"name":"command","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Sends a line to this pane and presses Enter, which is how a command gets run.","examples":[{"lang":"console","intro":"Send input and wait for output before capturing the pane. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/build.gradle.kts","code":"plugins {\n kotlin(\"jvm\") version \"2.4.10\"\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-kotlin:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\nkotlin { jvmToolchain(25) }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"kotlin","intro":"Save this complete program as src/main/kotlin/Capture.kt. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/kotlin/io/github/libtmux/examples/api/kotlin/Capture.kt","code":"package io.github.libtmux.examples.api.kotlin\n\nimport io.github.libtmux.ServerConfig\nimport io.github.libtmux.ServerEndpoint\nimport io.github.libtmux.SessionSpec\nimport io.github.libtmux.TextOutcome\nimport io.github.libtmux.kotlin.*\nimport java.nio.file.Path\nimport kotlin.system.exitProcess\nimport kotlinx.coroutines.runBlocking\nimport kotlin.time.Duration.Companion.seconds\n\n/** Send input and wait for output before capturing the pane. */\nfun main(args: Array) {\n try {\n require(args.size == 3) { \"expected: tmux-binary socket-path config-file\" }\n val config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build()\n runBlocking {\n withServer(config) { server ->\n val session = server.newSession(\n SessionSpec.builder().named(\"api-capture\").running(\"/bin/sh\").build()\n )\n val pane = session.windows.first().panes.first()\n pane.sendKeys(listOf(\"printf 'api-%s\\\\n' keys\", \"Enter\"))\n check(pane.awaitText(\"api-keys\", timeout = 5.seconds) != TextOutcome.TIMED_OUT) {\n \"timed out waiting for keys output\"\n }\n pane.sendLine(\"printf 'api-%s\\\\n' line\")\n check(pane.awaitText(\"api-line\", timeout = 5.seconds) != TextOutcome.TIMED_OUT) {\n \"timed out waiting for line output\"\n }\n val lines = pane.capture()\n for (expected in listOf(\"api-keys\", \"api-line\")) {\n check(lines.any { it.trim() == expected }) { \"capture is missing $expected\" }\n println(expected)\n }\n }\n }\n } catch (error: Exception) {\n if (error is InterruptedException) Thread.currentThread().interrupt()\n System.err.println(\"Example failed: ${error.message}\")\n exitProcess(1)\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.kotlin.CaptureKt && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"api-keys\napi-line\n"}]},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":166,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-sendline"},{"id":"io.github.libtmux.kotlin.Pane.sendLiteral","name":"sendLiteral","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.sendLiteral(keys: List): Unit","params":[{"name":"keys","type":"List"}],"returns":"Unit","receiver":{"name":"this","type":"Pane"}},{"raw":"public suspend fun Pane.sendLiteral(keys: List, beforeSend: Runnable): Unit","params":[{"name":"keys","type":"List"},{"name":"beforeSend","type":"Runnable"}],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Sends an ordered group of strings to this pane as the characters they spell."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":171,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-sendliteral"},{"id":"io.github.libtmux.kotlin.Pane.split","name":"split","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.split(): Pane","params":[],"returns":"Pane","receiver":{"name":"this","type":"Pane"}},{"raw":"public suspend fun Pane.split(spec: SplitSpec): Pane","params":[{"name":"spec","type":"SplitSpec"}],"returns":"Pane","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Splits this pane in half, putting the new one below it."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":181,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-split"},{"id":"io.github.libtmux.kotlin.Pane.stopPiping","name":"stopPiping","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.stopPiping(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Stops sending this pane's output anywhere."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":191,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-stoppiping"},{"id":"io.github.libtmux.kotlin.Pane.swapWith","name":"swapWith","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.swapWith(other: Pane): Unit","params":[{"name":"other","type":"Pane"}],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Swaps this pane's position with another's."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":196,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-swapwith"},{"id":"io.github.libtmux.kotlin.Pane.variables","name":"variables","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.variables(names: List): Map","params":[{"name":"names","type":"List"}],"returns":"Map","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Reads validated tmux variables in this pane's format context."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":201,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-variables"},{"id":"io.github.libtmux.kotlin.Prompt.clear","name":"clear","kind":"method","parent":"io.github.libtmux.kotlin.Prompt","signatures":[{"raw":"public suspend fun Prompt.clear(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Prompt"}}],"imports":{"String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Forgets what has been typed at the prompt."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PromptOperations.kt","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-prompt-clear"},{"id":"io.github.libtmux.kotlin.Prompt.history","name":"history","kind":"method","parent":"io.github.libtmux.kotlin.Prompt","signatures":[{"raw":"public suspend fun Prompt.history(): List","params":[],"returns":"List","receiver":{"name":"this","type":"Prompt"}}],"imports":{"String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"What has been typed at the prompt, oldest first."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PromptOperations.kt","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-prompt-history"},{"id":"io.github.libtmux.kotlin.Server.attachedSessions","name":"attachedSessions","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.attachedSessions(): List","params":[],"returns":"List","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Captures every session a client is attached to."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-attachedsessions"},{"id":"io.github.libtmux.kotlin.Server.clients","name":"clients","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.clients(): List","params":[],"returns":"List","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Captures every attached client."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-clients"},{"id":"io.github.libtmux.kotlin.Server.cmd","name":"cmd","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.cmd(vararg argv: String): CommandResult","params":[{"name":"argv","type":"String"}],"returns":"CommandResult","receiver":{"name":"this","type":"Server"}},{"raw":"public suspend fun Server.cmd(argv: List): CommandResult","params":[{"name":"argv","type":"List"}],"returns":"CommandResult","receiver":{"name":"this","type":"Server"}},{"raw":"public suspend fun Server.cmd(argv: List, timeout: Duration): CommandResult","params":[{"name":"argv","type":"List"},{"name":"timeout","type":"Duration"}],"returns":"CommandResult","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Runs one tmux command against this server."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-cmd"},{"id":"io.github.libtmux.kotlin.Server.expand","name":"expand","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.expand(format: String): String","params":[{"name":"format","type":"String"}],"returns":"String","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Expands a tmux format against the server, and answers with what it came to."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":52,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-expand"},{"id":"io.github.libtmux.kotlin.Server.hasSession","name":"hasSession","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.hasSession(name: String): Boolean","params":[{"name":"name","type":"String"}],"returns":"Boolean","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Whether a session with this name exists."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":57,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-hassession"},{"id":"io.github.libtmux.kotlin.Server.isAlive","name":"isAlive","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.isAlive(): Boolean","params":[],"returns":"Boolean","receiver":{"name":"this","type":"Server"}},{"raw":"public suspend fun Server.isAlive(timeout: Duration): Boolean","params":[{"name":"timeout","type":"Duration"}],"returns":"Boolean","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Whether the server is running and answering."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":62,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-isalive"},{"id":"io.github.libtmux.kotlin.Server.killServer","name":"killServer","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.killServer(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Server"}},{"raw":"public suspend fun Server.killServer(timeout: Duration): Unit","params":[{"name":"timeout","type":"Duration"}],"returns":"Unit","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Ends the tmux server and every session on it."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":72,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-killserver"},{"id":"io.github.libtmux.kotlin.Server.killSession","name":"killSession","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.killSession(name: String): Unit","params":[{"name":"name","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Ends the session with this name, and everything in it."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":82,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-killsession"},{"id":"io.github.libtmux.kotlin.Server.lock","name":"lock","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.lock(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Locks every client attached to this server."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":87,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-lock"},{"id":"io.github.libtmux.kotlin.Server.newSession","name":"newSession","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.newSession(name: String): Session","params":[{"name":"name","type":"String"}],"returns":"Session","receiver":{"name":"this","type":"Server"}},{"raw":"public suspend fun Server.newSession(spec: SessionSpec): Session","params":[{"name":"spec","type":"SessionSpec"}],"returns":"Session","receiver":{"name":"this","type":"Server"}},{"raw":"public suspend fun Server.newSession(configure: SessionBuilder.() -> Unit): Session","params":[{"name":"configure","type":"SessionBuilder.() -> Unit"}],"returns":"Session","receiver":{"name":"this","type":"Server"},"raises":[{"type":"IllegalArgumentException","doc":"if the session and its first window block both set a directory, or both set a command: tmux has one of each for that window"}]}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Creates a detached session and returns that exact session.","examples":[{"lang":"console","intro":"Create a session running cat. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/build.gradle.kts","code":"plugins {\n kotlin(\"jvm\") version \"2.4.10\"\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-kotlin:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\nkotlin { jvmToolchain(25) }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"kotlin","intro":"Save this complete program as src/main/kotlin/NewSession.kt. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/kotlin/io/github/libtmux/examples/api/kotlin/NewSession.kt","code":"package io.github.libtmux.examples.api.kotlin\n\nimport io.github.libtmux.ServerConfig\nimport io.github.libtmux.ServerEndpoint\nimport io.github.libtmux.SessionSpec\nimport io.github.libtmux.kotlin.*\nimport java.nio.file.Path\nimport kotlin.system.exitProcess\nimport kotlinx.coroutines.runBlocking\n\n/** Create a session running cat. */\nfun main(args: Array) {\n try {\n require(args.size == 3) { \"expected: tmux-binary socket-path config-file\" }\n val config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build()\n runBlocking {\n withServer(config) { server ->\n val session = server.newSession(\n SessionSpec.builder().named(\"api-session\").running(\"/bin/cat\").build()\n )\n println(\"created=${session.name}\")\n }\n }\n } catch (error: Exception) {\n if (error is InterruptedException) Thread.currentThread().interrupt()\n System.err.println(\"Example failed: ${error.message}\")\n exitProcess(1)\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.kotlin.NewSessionKt && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"created=api-session\n"}]},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":92,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-newsession"},{"id":"io.github.libtmux.kotlin.Server.paneFields","name":"paneFields","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.paneFields(names: List): Map>","params":[{"name":"names","type":"List"}],"returns":"Map>","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Chosen fields for every pane on the server, from one listing."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":107,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-panefields"},{"id":"io.github.libtmux.kotlin.Server.panes","name":"panes","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.panes(): List","params":[],"returns":"List","receiver":{"name":"this","type":"Server"}},{"raw":"public suspend fun Server.panes(expression: FilterExpr): List","params":[{"name":"expression","type":"FilterExpr"}],"returns":"List","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Captures every pane on the server.","examples":[{"lang":"console","intro":"List all panes, then the panes captured for one window. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/build.gradle.kts","code":"plugins {\n kotlin(\"jvm\") version \"2.4.10\"\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-kotlin:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\nkotlin { jvmToolchain(25) }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"kotlin","intro":"Save this complete program as src/main/kotlin/ListPanes.kt. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/kotlin/io/github/libtmux/examples/api/kotlin/ListPanes.kt","code":"package io.github.libtmux.examples.api.kotlin\n\nimport io.github.libtmux.ServerConfig\nimport io.github.libtmux.ServerEndpoint\nimport io.github.libtmux.kotlin.*\nimport io.github.libtmux.kotlin.query.name\nimport java.nio.file.Path\nimport kotlin.system.exitProcess\nimport kotlinx.coroutines.runBlocking\n\n/** List all panes, then the panes captured for one window. */\nfun main(args: Array) {\n try {\n require(args.size == 3) { \"expected: tmux-binary socket-path config-file\" }\n val config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build()\n runBlocking {\n withServer(config) { server ->\n println(\"panes=${server.panes().size}\")\n val session = server.session(Session.name eq \"work-one\")\n val window = session.windows.single { it.name == \"editor\" }\n println(\"window-panes=${window.panes.size}\")\n }\n }\n } catch (error: Exception) {\n if (error is InterruptedException) Thread.currentThread().interrupt()\n System.err.println(\"Example failed: ${error.message}\")\n exitProcess(1)\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.kotlin.ListPanesKt && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"panes=4\nwindow-panes=2\n"}]},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":112,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-panes"},{"id":"io.github.libtmux.kotlin.Server.requireAlive","name":"requireAlive","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.requireAlive(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Requires a running tmux daemon that answers the liveness probe."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":122,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-requirealive"},{"id":"io.github.libtmux.kotlin.Server.run","name":"run","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.run(argv: List): CommandResult","params":[{"name":"argv","type":"List"}],"returns":"CommandResult","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Runs a command that is expected to work, and raises when it did not."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":127,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-run"},{"id":"io.github.libtmux.kotlin.Server.sessions","name":"sessions","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.sessions(): List","params":[],"returns":"List","receiver":{"name":"this","type":"Server"}},{"raw":"public suspend fun Server.sessions(expression: FilterExpr): List","params":[{"name":"expression","type":"FilterExpr"}],"returns":"List","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Every session, captured now.","examples":[{"lang":"console","intro":"List the sessions returned by a server read. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/build.gradle.kts","code":"plugins {\n kotlin(\"jvm\") version \"2.4.10\"\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-kotlin:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\nkotlin { jvmToolchain(25) }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"kotlin","intro":"Save this complete program as src/main/kotlin/ListSessions.kt. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/kotlin/io/github/libtmux/examples/api/kotlin/ListSessions.kt","code":"package io.github.libtmux.examples.api.kotlin\n\nimport io.github.libtmux.ServerConfig\nimport io.github.libtmux.ServerEndpoint\nimport io.github.libtmux.kotlin.*\nimport java.nio.file.Path\nimport kotlin.system.exitProcess\nimport kotlinx.coroutines.runBlocking\n\n/** List the sessions returned by a server read. */\nfun main(args: Array) {\n try {\n require(args.size == 3) { \"expected: tmux-binary socket-path config-file\" }\n val config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build()\n runBlocking {\n withServer(config) { server ->\n println(\"sessions=\" + server.sessions().map { it.name }.sorted().joinToString(\",\"))\n }\n }\n } catch (error: Exception) {\n if (error is InterruptedException) Thread.currentThread().interrupt()\n System.err.println(\"Example failed: ${error.message}\")\n exitProcess(1)\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.kotlin.ListSessionsKt && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"sessions=work-one,work-two\n"},{"lang":"console","intro":"Select sessions with a typed name filter. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/build.gradle.kts","code":"plugins {\n kotlin(\"jvm\") version \"2.4.10\"\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-kotlin:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\nkotlin { jvmToolchain(25) }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"kotlin","intro":"Save this complete program as src/main/kotlin/Query.kt. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/kotlin/io/github/libtmux/examples/api/kotlin/Query.kt","code":"package io.github.libtmux.examples.api.kotlin\n\nimport io.github.libtmux.ServerConfig\nimport io.github.libtmux.ServerEndpoint\nimport io.github.libtmux.kotlin.*\nimport io.github.libtmux.kotlin.query.name\nimport java.nio.file.Path\nimport kotlin.system.exitProcess\nimport kotlinx.coroutines.runBlocking\n\n/** Select sessions with a typed name filter. */\nfun main(args: Array) {\n try {\n require(args.size == 3) { \"expected: tmux-binary socket-path config-file\" }\n val config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build()\n runBlocking {\n withServer(config) { server ->\n val matches = server.sessions(Session.name eq \"work-one\")\n println(\"matches=\" + matches.map { it.name }.sorted().joinToString(\",\"))\n }\n }\n } catch (error: Exception) {\n if (error is InterruptedException) Thread.currentThread().interrupt()\n System.err.println(\"Example failed: ${error.message}\")\n exitProcess(1)\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.kotlin.QueryKt && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"matches=work-one\n"}]},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":142,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-sessions"},{"id":"io.github.libtmux.kotlin.Server.snapshot","name":"snapshot","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.snapshot(): ServerSnapshot","params":[],"returns":"ServerSnapshot","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Captures the whole hierarchy in at most four listings, retrying once if the server is replaced."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":153,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-snapshot"},{"id":"io.github.libtmux.kotlin.Server.sourceFile","name":"sourceFile","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.sourceFile(`file`: Path): Unit","params":[{"name":"`file`","type":"Path"}],"returns":"Unit","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Runs a file of tmux commands, as a configuration file would be run."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":158,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-sourcefile"},{"id":"io.github.libtmux.kotlin.Server.variables","name":"variables","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.variables(names: List): Map","params":[{"name":"names","type":"List"}],"returns":"Map","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Reads only validated tmux variable names, never caller-authored format syntax."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":163,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-variables"},{"id":"io.github.libtmux.kotlin.Server.version","name":"version","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.version(): TmuxVersion","params":[],"returns":"TmuxVersion","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Which tmux this server is running."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":168,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-version"},{"id":"io.github.libtmux.kotlin.Server.windows","name":"windows","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.windows(): List","params":[],"returns":"List","receiver":{"name":"this","type":"Server"}},{"raw":"public suspend fun Server.windows(expression: FilterExpr): List","params":[{"name":"expression","type":"FilterExpr"}],"returns":"List","receiver":{"name":"this","type":"Server"}},{"raw":"public suspend fun Server.windows(id: WindowId): List","params":[{"name":"id","type":"WindowId"}],"returns":"List","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Captures every winlink, preserving each session and index placement.","examples":[{"lang":"console","intro":"List all windows, then the windows captured for one session. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/build.gradle.kts","code":"plugins {\n kotlin(\"jvm\") version \"2.4.10\"\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-kotlin:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\nkotlin { jvmToolchain(25) }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"kotlin","intro":"Save this complete program as src/main/kotlin/ListWindows.kt. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/kotlin/io/github/libtmux/examples/api/kotlin/ListWindows.kt","code":"package io.github.libtmux.examples.api.kotlin\n\nimport io.github.libtmux.ServerConfig\nimport io.github.libtmux.ServerEndpoint\nimport io.github.libtmux.kotlin.*\nimport io.github.libtmux.kotlin.query.name\nimport java.nio.file.Path\nimport kotlin.system.exitProcess\nimport kotlinx.coroutines.runBlocking\n\n/** List all windows, then the windows captured for one session. */\nfun main(args: Array) {\n try {\n require(args.size == 3) { \"expected: tmux-binary socket-path config-file\" }\n val config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build()\n runBlocking {\n withServer(config) { server ->\n println(\"windows=\" + server.windows().map { it.name }.sorted().joinToString(\",\"))\n val session = server.session(Session.name eq \"work-one\")\n println(\"session-windows=\" + session.windows.map { it.name }.sorted().joinToString(\",\"))\n }\n }\n } catch (error: Exception) {\n if (error is InterruptedException) Thread.currentThread().interrupt()\n System.err.println(\"Example failed: ${error.message}\")\n exitProcess(1)\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.kotlin.ListWindowsKt && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"windows=editor,editor,logs\nsession-windows=editor,logs\n"}]},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":178,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-windows"},{"id":"io.github.libtmux.kotlin.Session.detachClients","name":"detachClients","kind":"method","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public suspend fun Session.detachClients(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Session"}}],"imports":{"WindowSpec":"io.github.libtmux.WindowSpec","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Detaches every client attached to this session, leaving the session running."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/SessionOperations.kt","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-detachclients"},{"id":"io.github.libtmux.kotlin.Session.expand","name":"expand","kind":"method","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public suspend fun Session.expand(format: String): String","params":[{"name":"format","type":"String"}],"returns":"String","receiver":{"name":"this","type":"Session"}}],"imports":{"WindowSpec":"io.github.libtmux.WindowSpec","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Expands a tmux format in this session's context, and answers with what it came to."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/SessionOperations.kt","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-expand"},{"id":"io.github.libtmux.kotlin.Session.kill","name":"kill","kind":"method","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public suspend fun Session.kill(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Session"}}],"imports":{"WindowSpec":"io.github.libtmux.WindowSpec","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Ends this session."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/SessionOperations.kt","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-kill"},{"id":"io.github.libtmux.kotlin.Session.lastWindow","name":"lastWindow","kind":"method","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public suspend fun Session.lastWindow(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Session"}}],"imports":{"WindowSpec":"io.github.libtmux.WindowSpec","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Returns to the window that was active before this one."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/SessionOperations.kt","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-lastwindow"},{"id":"io.github.libtmux.kotlin.Session.newWindow","name":"newWindow","kind":"method","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public suspend fun Session.newWindow(name: String): Window","params":[{"name":"name","type":"String"}],"returns":"Window","receiver":{"name":"this","type":"Session"}},{"raw":"public suspend fun Session.newWindow(spec: WindowSpec): Window","params":[{"name":"spec","type":"WindowSpec"}],"returns":"Window","receiver":{"name":"this","type":"Session"}}],"imports":{"WindowSpec":"io.github.libtmux.WindowSpec","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Creates a window in this session and returns that exact window.","examples":[{"lang":"console","intro":"Create a window and read the updated session. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/build.gradle.kts","code":"plugins {\n kotlin(\"jvm\") version \"2.4.10\"\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-kotlin:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\nkotlin { jvmToolchain(25) }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"kotlin","intro":"Save this complete program as src/main/kotlin/NewWindow.kt. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/kotlin/io/github/libtmux/examples/api/kotlin/NewWindow.kt","code":"package io.github.libtmux.examples.api.kotlin\n\nimport io.github.libtmux.ServerConfig\nimport io.github.libtmux.ServerEndpoint\nimport io.github.libtmux.WindowSpec\nimport io.github.libtmux.kotlin.*\nimport io.github.libtmux.kotlin.query.name\nimport java.nio.file.Path\nimport kotlin.system.exitProcess\nimport kotlinx.coroutines.runBlocking\n\n/** Create a window and read the updated session. */\nfun main(args: Array) {\n try {\n require(args.size == 3) { \"expected: tmux-binary socket-path config-file\" }\n val config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build()\n runBlocking {\n withServer(config) { server ->\n val session = server.session(Session.name eq \"work-one\")\n val window = session.newWindow(\n WindowSpec.builder().named(\"api-window\").running(\"/bin/cat\").build()\n )\n println(\"created=${window.name}\")\n val refreshed = server.session(Session.name eq \"work-one\")\n println(\"windows=\" + refreshed.windows.map { it.name }.sorted().joinToString(\",\"))\n }\n }\n } catch (error: Exception) {\n if (error is InterruptedException) Thread.currentThread().interrupt()\n System.err.println(\"Example failed: ${error.message}\")\n exitProcess(1)\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.kotlin.NewWindowKt && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"created=api-window\nwindows=api-window,editor,logs\n"}]},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/SessionOperations.kt","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-newwindow"},{"id":"io.github.libtmux.kotlin.Session.nextWindow","name":"nextWindow","kind":"method","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public suspend fun Session.nextWindow(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Session"}}],"imports":{"WindowSpec":"io.github.libtmux.WindowSpec","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Moves to the next window in this session, wrapping at the end."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/SessionOperations.kt","line":45,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-nextwindow"},{"id":"io.github.libtmux.kotlin.Session.previousWindow","name":"previousWindow","kind":"method","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public suspend fun Session.previousWindow(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Session"}}],"imports":{"WindowSpec":"io.github.libtmux.WindowSpec","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Moves to the previous window in this session, wrapping at the start."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/SessionOperations.kt","line":50,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-previouswindow"},{"id":"io.github.libtmux.kotlin.Session.refresh","name":"refresh","kind":"method","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public suspend fun Session.refresh(): Session","params":[],"returns":"Session","receiver":{"name":"this","type":"Session"}}],"imports":{"WindowSpec":"io.github.libtmux.WindowSpec","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Takes a new capture and returns this session as it is now."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/SessionOperations.kt","line":55,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-refresh"},{"id":"io.github.libtmux.kotlin.Session.rename","name":"rename","kind":"method","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public suspend fun Session.rename(name: String): Session","params":[{"name":"name","type":"String"}],"returns":"Session","receiver":{"name":"this","type":"Session"}}],"imports":{"WindowSpec":"io.github.libtmux.WindowSpec","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Renames this session and returns its replacement capture."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/SessionOperations.kt","line":60,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-rename"},{"id":"io.github.libtmux.kotlin.Session.selectWindow","name":"selectWindow","kind":"method","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public suspend fun Session.selectWindow(window: Window): Unit","params":[{"name":"window","type":"Window"}],"returns":"Unit","receiver":{"name":"this","type":"Session"}}],"imports":{"WindowSpec":"io.github.libtmux.WindowSpec","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Makes a window of this session the active one."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/SessionOperations.kt","line":65,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-selectwindow"},{"id":"io.github.libtmux.kotlin.Session.setHistoryLimit","name":"setHistoryLimit","kind":"method","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public suspend fun Session.setHistoryLimit(lines: Int): Unit","params":[{"name":"lines","type":"Int"}],"returns":"Unit","receiver":{"name":"this","type":"Session"}}],"imports":{"WindowSpec":"io.github.libtmux.WindowSpec","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Sets the scrollback retained by panes created in this session."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/SessionOperations.kt","line":70,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-sethistorylimit"},{"id":"io.github.libtmux.kotlin.Shell.capturing","name":"capturing","kind":"method","parent":"io.github.libtmux.kotlin.Shell","signatures":[{"raw":"public suspend fun Shell.capturing(command: String): List","params":[{"name":"command","type":"String"}],"returns":"List","receiver":{"name":"this","type":"Shell"}}],"imports":{"String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Runs a shell command and answers with what it printed."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ShellOperations.kt","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-shell-capturing"},{"id":"io.github.libtmux.kotlin.Shell.choose","name":"choose","kind":"method","parent":"io.github.libtmux.kotlin.Shell","signatures":[{"raw":"public suspend fun Shell.choose(condition: String, whenTrue: String): Unit","params":[{"name":"condition","type":"String"},{"name":"whenTrue","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Shell"}},{"raw":"public suspend fun Shell.choose(\n condition: String,\n whenTrue: String,\n whenFalse: String,\n): Unit","params":[{"name":"condition","type":"String"},{"name":"whenTrue","type":"String"},{"name":"whenFalse","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Shell"}}],"imports":{"String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Runs one tmux command when a shell command succeeds."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ShellOperations.kt","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-shell-choose"},{"id":"io.github.libtmux.kotlin.Shell.run","name":"run","kind":"method","parent":"io.github.libtmux.kotlin.Shell","signatures":[{"raw":"public suspend fun Shell.run(command: String): Unit","params":[{"name":"command","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Shell"}}],"imports":{"String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Runs a shell command for its effect."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ShellOperations.kt","line":33,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-shell-run"},{"id":"io.github.libtmux.kotlin.Window.applyLayout","name":"applyLayout","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.applyLayout(layout: WindowLayout): Unit","params":[{"name":"layout","type":"WindowLayout"}],"returns":"Unit","receiver":{"name":"this","type":"Window"}},{"raw":"public suspend fun Window.applyLayout(layout: String): Unit","params":[{"name":"layout","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Restores an exact arrangement previously read from [.layout()]."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-applylayout"},{"id":"io.github.libtmux.kotlin.Window.displayPopup","name":"displayPopup","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.displayPopup(shellCommand: String): Unit","params":[{"name":"shellCommand","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Shows a popup over this window, running a command in it."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-displaypopup"},{"id":"io.github.libtmux.kotlin.Window.expand","name":"expand","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.expand(format: String): String","params":[{"name":"format","type":"String"}],"returns":"String","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Expands a tmux format in this window's context, and answers with what it came to."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":33,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-expand"},{"id":"io.github.libtmux.kotlin.Window.kill","name":"kill","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.kill(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Closes this window."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-kill"},{"id":"io.github.libtmux.kotlin.Window.linkTo","name":"linkTo","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.linkTo(session: Session): Unit","params":[{"name":"session","type":"Session"}],"returns":"Unit","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Links this window into another session, so one window sits in both."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":43,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-linkto"},{"id":"io.github.libtmux.kotlin.Window.moveTo","name":"moveTo","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.moveTo(session: Session): Unit","params":[{"name":"session","type":"Session"}],"returns":"Unit","receiver":{"name":"this","type":"Window"}},{"raw":"public suspend fun Window.moveTo(session: Session, index: Int): Unit","params":[{"name":"session","type":"Session"},{"name":"index","type":"Int"}],"returns":"Unit","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Moves this window into another session."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":48,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-moveto"},{"id":"io.github.libtmux.kotlin.Window.nextLayout","name":"nextLayout","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.nextLayout(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Moves to the next built-in layout, as tmux's own binding does."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":58,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-nextlayout"},{"id":"io.github.libtmux.kotlin.Window.previousLayout","name":"previousLayout","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.previousLayout(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Moves to the previous built-in layout, as tmux's own binding does."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":63,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-previouslayout"},{"id":"io.github.libtmux.kotlin.Window.refresh","name":"refresh","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.refresh(): Window","params":[],"returns":"Window","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Takes a new capture and returns this winlink as it is now."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":68,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-refresh"},{"id":"io.github.libtmux.kotlin.Window.rename","name":"rename","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.rename(name: String): Window","params":[{"name":"name","type":"String"}],"returns":"Window","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Renames this window and returns its replacement capture."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":73,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-rename"},{"id":"io.github.libtmux.kotlin.Window.resizeTo","name":"resizeTo","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.resizeTo(size: Dimensions): Unit","params":[{"name":"size","type":"Dimensions"}],"returns":"Unit","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Resizes this window in terminal cells."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":78,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-resizeto"},{"id":"io.github.libtmux.kotlin.Window.respawn","name":"respawn","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.respawn(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Kills what is running in this window and starts it again."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":83,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-respawn"},{"id":"io.github.libtmux.kotlin.Window.rotate","name":"rotate","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.rotate(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Rotates the panes within this window."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":88,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-rotate"},{"id":"io.github.libtmux.kotlin.Window.select","name":"select","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.select(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Makes this the active window of its session."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":93,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-select"},{"id":"io.github.libtmux.kotlin.Window.selectLayout","name":"selectLayout","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.selectLayout(layout: Layout): Unit","params":[{"name":"layout","type":"Layout"}],"returns":"Unit","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Rearranges this window's panes into one of tmux's built-in layouts."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":98,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-selectlayout"},{"id":"io.github.libtmux.kotlin.Window.split","name":"split","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.split(): Pane","params":[],"returns":"Pane","receiver":{"name":"this","type":"Window"}},{"raw":"public suspend fun Window.split(spec: SplitSpec): Pane","params":[{"name":"spec","type":"SplitSpec"}],"returns":"Pane","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Splits this window's active pane in half, putting the new one below it."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":103,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-split"},{"id":"io.github.libtmux.kotlin.Window.stopSynchronizingPanes","name":"stopSynchronizingPanes","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.stopSynchronizingPanes(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Stops copying input between this window's panes."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":113,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-stopsynchronizingpanes"},{"id":"io.github.libtmux.kotlin.Window.synchronizePanes","name":"synchronizePanes","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.synchronizePanes(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Copies input to one pane into every pane in this window, until [.stopSynchronizingPanes]."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":118,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-synchronizepanes"},{"id":"io.github.libtmux.kotlin.Window.unlink","name":"unlink","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.unlink(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Removes this link, leaving the window wherever else it is linked."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":123,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-unlink"},{"id":"io.github.libtmux.kotlin.Client.Companion.name","name":"name","kind":"property","parent":"io.github.libtmux.kotlin.Client.Companion","signatures":[{"raw":"public val KotlinClient.Companion.name: TextField","params":[],"returns":"TextField","receiver":{"name":"this","type":"KotlinClient.Companion"}}],"imports":{"Client_":"io.github.libtmux.Client_","Session":"io.github.libtmux.Session","LibtmuxClient":"io.github.libtmux.Client","KotlinClient":"io.github.libtmux.kotlin.Client"},"modifiers":[],"doc":{"summary":"The client's terminal name, which is how tmux addresses it."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/ClientFields.kt","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client-companion-name"},{"id":"io.github.libtmux.kotlin.Client.Companion.session","name":"session","kind":"property","parent":"io.github.libtmux.kotlin.Client.Companion","signatures":[{"raw":"public val KotlinClient.Companion.session: ToOneField","params":[],"returns":"ToOneField","receiver":{"name":"this","type":"KotlinClient.Companion"}}],"imports":{"Client_":"io.github.libtmux.Client_","Session":"io.github.libtmux.Session","LibtmuxClient":"io.github.libtmux.Client","KotlinClient":"io.github.libtmux.kotlin.Client"},"modifiers":[],"doc":{"summary":"The session this client was attached to, if any."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/ClientFields.kt","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client-companion-session"},{"id":"io.github.libtmux.kotlin.Pane.Companion.id","name":"id","kind":"property","parent":"io.github.libtmux.kotlin.Pane.Companion","signatures":[{"raw":"public val KotlinPane.Companion.id: TextField","params":[],"returns":"TextField","receiver":{"name":"this","type":"KotlinPane.Companion"}}],"imports":{"Pane_":"io.github.libtmux.Pane_","LibtmuxPane":"io.github.libtmux.Pane","KotlinPane":"io.github.libtmux.kotlin.Pane"},"modifiers":[],"doc":{"summary":"The pane id."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/PaneFields.kt","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-companion-id"},{"id":"io.github.libtmux.kotlin.Pane.Companion.command","name":"command","kind":"property","parent":"io.github.libtmux.kotlin.Pane.Companion","signatures":[{"raw":"public val KotlinPane.Companion.command: TextField","params":[],"returns":"TextField","receiver":{"name":"this","type":"KotlinPane.Companion"}}],"imports":{"Pane_":"io.github.libtmux.Pane_","LibtmuxPane":"io.github.libtmux.Pane","KotlinPane":"io.github.libtmux.kotlin.Pane"},"modifiers":[],"doc":{"summary":"The command tmux reported running in the pane."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/PaneFields.kt","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-companion-command"},{"id":"io.github.libtmux.kotlin.Pane.Companion.index","name":"index","kind":"property","parent":"io.github.libtmux.kotlin.Pane.Companion","signatures":[{"raw":"public val KotlinPane.Companion.index: NumberField","params":[],"returns":"NumberField","receiver":{"name":"this","type":"KotlinPane.Companion"}}],"imports":{"Pane_":"io.github.libtmux.Pane_","LibtmuxPane":"io.github.libtmux.Pane","KotlinPane":"io.github.libtmux.kotlin.Pane"},"modifiers":[],"doc":{"summary":"The pane's position in its window."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/PaneFields.kt","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-companion-index"},{"id":"io.github.libtmux.kotlin.Pane.Companion.active","name":"active","kind":"property","parent":"io.github.libtmux.kotlin.Pane.Companion","signatures":[{"raw":"public val KotlinPane.Companion.active: FlagField","params":[],"returns":"FlagField","receiver":{"name":"this","type":"KotlinPane.Companion"}}],"imports":{"Pane_":"io.github.libtmux.Pane_","LibtmuxPane":"io.github.libtmux.Pane","KotlinPane":"io.github.libtmux.kotlin.Pane"},"modifiers":[],"doc":{"summary":"Whether this was its window's active pane."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/PaneFields.kt","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-companion-active"},{"id":"io.github.libtmux.kotlin.Pane.Companion.title","name":"title","kind":"property","parent":"io.github.libtmux.kotlin.Pane.Companion","signatures":[{"raw":"public val KotlinPane.Companion.title: TextField","params":[],"returns":"TextField","receiver":{"name":"this","type":"KotlinPane.Companion"}}],"imports":{"Pane_":"io.github.libtmux.Pane_","LibtmuxPane":"io.github.libtmux.Pane","KotlinPane":"io.github.libtmux.kotlin.Pane"},"modifiers":[],"doc":{"summary":"The pane's title, which a program running in it can set."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/PaneFields.kt","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-companion-title"},{"id":"io.github.libtmux.kotlin.Pane.Companion.path","name":"path","kind":"property","parent":"io.github.libtmux.kotlin.Pane.Companion","signatures":[{"raw":"public val KotlinPane.Companion.path: TextField","params":[],"returns":"TextField","receiver":{"name":"this","type":"KotlinPane.Companion"}}],"imports":{"Pane_":"io.github.libtmux.Pane_","LibtmuxPane":"io.github.libtmux.Pane","KotlinPane":"io.github.libtmux.kotlin.Pane"},"modifiers":[],"doc":{"summary":"The pane's working directory, as the text tmux reported."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/PaneFields.kt","line":42,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-companion-path"},{"id":"io.github.libtmux.kotlin.Pane.Companion.width","name":"width","kind":"property","parent":"io.github.libtmux.kotlin.Pane.Companion","signatures":[{"raw":"public val KotlinPane.Companion.width: NumberField","params":[],"returns":"NumberField","receiver":{"name":"this","type":"KotlinPane.Companion"}}],"imports":{"Pane_":"io.github.libtmux.Pane_","LibtmuxPane":"io.github.libtmux.Pane","KotlinPane":"io.github.libtmux.kotlin.Pane"},"modifiers":[],"doc":{"summary":"The pane's width, in cells."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/PaneFields.kt","line":48,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-companion-width"},{"id":"io.github.libtmux.kotlin.Pane.Companion.height","name":"height","kind":"property","parent":"io.github.libtmux.kotlin.Pane.Companion","signatures":[{"raw":"public val KotlinPane.Companion.height: NumberField","params":[],"returns":"NumberField","receiver":{"name":"this","type":"KotlinPane.Companion"}}],"imports":{"Pane_":"io.github.libtmux.Pane_","LibtmuxPane":"io.github.libtmux.Pane","KotlinPane":"io.github.libtmux.kotlin.Pane"},"modifiers":[],"doc":{"summary":"The pane's height, in cells."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/PaneFields.kt","line":54,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-companion-height"},{"id":"io.github.libtmux.kotlin.Pane.Companion.left","name":"left","kind":"property","parent":"io.github.libtmux.kotlin.Pane.Companion","signatures":[{"raw":"public val KotlinPane.Companion.left: NumberField","params":[],"returns":"NumberField","receiver":{"name":"this","type":"KotlinPane.Companion"}}],"imports":{"Pane_":"io.github.libtmux.Pane_","LibtmuxPane":"io.github.libtmux.Pane","KotlinPane":"io.github.libtmux.kotlin.Pane"},"modifiers":[],"doc":{"summary":"The column of the pane's left edge in its window."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/PaneFields.kt","line":60,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-companion-left"},{"id":"io.github.libtmux.kotlin.Pane.Companion.top","name":"top","kind":"property","parent":"io.github.libtmux.kotlin.Pane.Companion","signatures":[{"raw":"public val KotlinPane.Companion.top: NumberField","params":[],"returns":"NumberField","receiver":{"name":"this","type":"KotlinPane.Companion"}}],"imports":{"Pane_":"io.github.libtmux.Pane_","LibtmuxPane":"io.github.libtmux.Pane","KotlinPane":"io.github.libtmux.kotlin.Pane"},"modifiers":[],"doc":{"summary":"The row of the pane's top edge in its window."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/PaneFields.kt","line":66,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-companion-top"},{"id":"io.github.libtmux.kotlin.Pane.Companion.atTop","name":"atTop","kind":"property","parent":"io.github.libtmux.kotlin.Pane.Companion","signatures":[{"raw":"public val KotlinPane.Companion.atTop: FlagField","params":[],"returns":"FlagField","receiver":{"name":"this","type":"KotlinPane.Companion"}}],"imports":{"Pane_":"io.github.libtmux.Pane_","LibtmuxPane":"io.github.libtmux.Pane","KotlinPane":"io.github.libtmux.kotlin.Pane"},"modifiers":[],"doc":{"summary":"Whether the pane touches the top of its window."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/PaneFields.kt","line":72,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-companion-attop"},{"id":"io.github.libtmux.kotlin.Pane.Companion.atBottom","name":"atBottom","kind":"property","parent":"io.github.libtmux.kotlin.Pane.Companion","signatures":[{"raw":"public val KotlinPane.Companion.atBottom: FlagField","params":[],"returns":"FlagField","receiver":{"name":"this","type":"KotlinPane.Companion"}}],"imports":{"Pane_":"io.github.libtmux.Pane_","LibtmuxPane":"io.github.libtmux.Pane","KotlinPane":"io.github.libtmux.kotlin.Pane"},"modifiers":[],"doc":{"summary":"Whether the pane touches the bottom of its window."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/PaneFields.kt","line":78,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-companion-atbottom"},{"id":"io.github.libtmux.kotlin.Pane.Companion.atLeft","name":"atLeft","kind":"property","parent":"io.github.libtmux.kotlin.Pane.Companion","signatures":[{"raw":"public val KotlinPane.Companion.atLeft: FlagField","params":[],"returns":"FlagField","receiver":{"name":"this","type":"KotlinPane.Companion"}}],"imports":{"Pane_":"io.github.libtmux.Pane_","LibtmuxPane":"io.github.libtmux.Pane","KotlinPane":"io.github.libtmux.kotlin.Pane"},"modifiers":[],"doc":{"summary":"Whether the pane touches the left of its window."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/PaneFields.kt","line":84,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-companion-atleft"},{"id":"io.github.libtmux.kotlin.Pane.Companion.atRight","name":"atRight","kind":"property","parent":"io.github.libtmux.kotlin.Pane.Companion","signatures":[{"raw":"public val KotlinPane.Companion.atRight: FlagField","params":[],"returns":"FlagField","receiver":{"name":"this","type":"KotlinPane.Companion"}}],"imports":{"Pane_":"io.github.libtmux.Pane_","LibtmuxPane":"io.github.libtmux.Pane","KotlinPane":"io.github.libtmux.kotlin.Pane"},"modifiers":[],"doc":{"summary":"Whether the pane touches the right of its window."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/PaneFields.kt","line":90,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-companion-atright"},{"id":"io.github.libtmux.kotlin.Session.Companion.id","name":"id","kind":"property","parent":"io.github.libtmux.kotlin.Session.Companion","signatures":[{"raw":"public val KotlinSession.Companion.id: TextField","params":[],"returns":"TextField","receiver":{"name":"this","type":"KotlinSession.Companion"}}],"imports":{"Session_":"io.github.libtmux.Session_","Window":"io.github.libtmux.Window","LibtmuxSession":"io.github.libtmux.Session","KotlinSession":"io.github.libtmux.kotlin.Session"},"modifiers":[],"doc":{"summary":"The session id, as text, so it can be compared and listed."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/SessionFields.kt","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-companion-id"},{"id":"io.github.libtmux.kotlin.Session.Companion.name","name":"name","kind":"property","parent":"io.github.libtmux.kotlin.Session.Companion","signatures":[{"raw":"public val KotlinSession.Companion.name: TextField","params":[],"returns":"TextField","receiver":{"name":"this","type":"KotlinSession.Companion"}}],"imports":{"Session_":"io.github.libtmux.Session_","Window":"io.github.libtmux.Window","LibtmuxSession":"io.github.libtmux.Session","KotlinSession":"io.github.libtmux.kotlin.Session"},"modifiers":[],"doc":{"summary":"The session name."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/SessionFields.kt","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-companion-name"},{"id":"io.github.libtmux.kotlin.Session.Companion.attached","name":"attached","kind":"property","parent":"io.github.libtmux.kotlin.Session.Companion","signatures":[{"raw":"public val KotlinSession.Companion.attached: FlagField","params":[],"returns":"FlagField","receiver":{"name":"this","type":"KotlinSession.Companion"}}],"imports":{"Session_":"io.github.libtmux.Session_","Window":"io.github.libtmux.Window","LibtmuxSession":"io.github.libtmux.Session","KotlinSession":"io.github.libtmux.kotlin.Session"},"modifiers":[],"doc":{"summary":"Whether a client was attached when this was captured."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/SessionFields.kt","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-companion-attached"},{"id":"io.github.libtmux.kotlin.Session.Companion.windowCount","name":"windowCount","kind":"property","parent":"io.github.libtmux.kotlin.Session.Companion","signatures":[{"raw":"public val KotlinSession.Companion.windowCount: NumberField","params":[],"returns":"NumberField","receiver":{"name":"this","type":"KotlinSession.Companion"}}],"imports":{"Session_":"io.github.libtmux.Session_","Window":"io.github.libtmux.Window","LibtmuxSession":"io.github.libtmux.Session","KotlinSession":"io.github.libtmux.kotlin.Session"},"modifiers":[],"doc":{"summary":"How many windows this session holds."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/SessionFields.kt","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-companion-windowcount"},{"id":"io.github.libtmux.kotlin.Session.Companion.windows","name":"windows","kind":"property","parent":"io.github.libtmux.kotlin.Session.Companion","signatures":[{"raw":"public val KotlinSession.Companion.windows: ToManyField","params":[],"returns":"ToManyField","receiver":{"name":"this","type":"KotlinSession.Companion"}}],"imports":{"Session_":"io.github.libtmux.Session_","Window":"io.github.libtmux.Window","LibtmuxSession":"io.github.libtmux.Session","KotlinSession":"io.github.libtmux.kotlin.Session"},"modifiers":[],"doc":{"summary":"This session's windows."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/SessionFields.kt","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-companion-windows"},{"id":"io.github.libtmux.kotlin.Window.Companion.id","name":"id","kind":"property","parent":"io.github.libtmux.kotlin.Window.Companion","signatures":[{"raw":"public val KotlinWindow.Companion.id: TextField","params":[],"returns":"TextField","receiver":{"name":"this","type":"KotlinWindow.Companion"}}],"imports":{"Pane":"io.github.libtmux.Pane","Session":"io.github.libtmux.Session","Window_":"io.github.libtmux.Window_","LibtmuxWindow":"io.github.libtmux.Window","KotlinWindow":"io.github.libtmux.kotlin.Window"},"modifiers":[],"doc":{"summary":"The underlying window id, shared by every link to it."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/WindowFields.kt","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-companion-id"},{"id":"io.github.libtmux.kotlin.Window.Companion.name","name":"name","kind":"property","parent":"io.github.libtmux.kotlin.Window.Companion","signatures":[{"raw":"public val KotlinWindow.Companion.name: TextField","params":[],"returns":"TextField","receiver":{"name":"this","type":"KotlinWindow.Companion"}}],"imports":{"Pane":"io.github.libtmux.Pane","Session":"io.github.libtmux.Session","Window_":"io.github.libtmux.Window_","LibtmuxWindow":"io.github.libtmux.Window","KotlinWindow":"io.github.libtmux.kotlin.Window"},"modifiers":[],"doc":{"summary":"The window name."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/WindowFields.kt","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-companion-name"},{"id":"io.github.libtmux.kotlin.Window.Companion.index","name":"index","kind":"property","parent":"io.github.libtmux.kotlin.Window.Companion","signatures":[{"raw":"public val KotlinWindow.Companion.index: NumberField","params":[],"returns":"NumberField","receiver":{"name":"this","type":"KotlinWindow.Companion"}}],"imports":{"Pane":"io.github.libtmux.Pane","Session":"io.github.libtmux.Session","Window_":"io.github.libtmux.Window_","LibtmuxWindow":"io.github.libtmux.Window","KotlinWindow":"io.github.libtmux.kotlin.Window"},"modifiers":[],"doc":{"summary":"Where this link sits in its session."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/WindowFields.kt","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-companion-index"},{"id":"io.github.libtmux.kotlin.Window.Companion.active","name":"active","kind":"property","parent":"io.github.libtmux.kotlin.Window.Companion","signatures":[{"raw":"public val KotlinWindow.Companion.active: FlagField","params":[],"returns":"FlagField","receiver":{"name":"this","type":"KotlinWindow.Companion"}}],"imports":{"Pane":"io.github.libtmux.Pane","Session":"io.github.libtmux.Session","Window_":"io.github.libtmux.Window_","LibtmuxWindow":"io.github.libtmux.Window","KotlinWindow":"io.github.libtmux.kotlin.Window"},"modifiers":[],"doc":{"summary":"Whether this was its session's active window."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/WindowFields.kt","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-companion-active"},{"id":"io.github.libtmux.kotlin.Window.Companion.linked","name":"linked","kind":"property","parent":"io.github.libtmux.kotlin.Window.Companion","signatures":[{"raw":"public val KotlinWindow.Companion.linked: FlagField","params":[],"returns":"FlagField","receiver":{"name":"this","type":"KotlinWindow.Companion"}}],"imports":{"Pane":"io.github.libtmux.Pane","Session":"io.github.libtmux.Session","Window_":"io.github.libtmux.Window_","LibtmuxWindow":"io.github.libtmux.Window","KotlinWindow":"io.github.libtmux.kotlin.Window"},"modifiers":[],"doc":{"summary":"Whether the underlying window is linked into more than one session."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/WindowFields.kt","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-companion-linked"},{"id":"io.github.libtmux.kotlin.Window.Companion.width","name":"width","kind":"property","parent":"io.github.libtmux.kotlin.Window.Companion","signatures":[{"raw":"public val KotlinWindow.Companion.width: NumberField","params":[],"returns":"NumberField","receiver":{"name":"this","type":"KotlinWindow.Companion"}}],"imports":{"Pane":"io.github.libtmux.Pane","Session":"io.github.libtmux.Session","Window_":"io.github.libtmux.Window_","LibtmuxWindow":"io.github.libtmux.Window","KotlinWindow":"io.github.libtmux.kotlin.Window"},"modifiers":[],"doc":{"summary":"The window's width, in cells."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/WindowFields.kt","line":44,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-companion-width"},{"id":"io.github.libtmux.kotlin.Window.Companion.height","name":"height","kind":"property","parent":"io.github.libtmux.kotlin.Window.Companion","signatures":[{"raw":"public val KotlinWindow.Companion.height: NumberField","params":[],"returns":"NumberField","receiver":{"name":"this","type":"KotlinWindow.Companion"}}],"imports":{"Pane":"io.github.libtmux.Pane","Session":"io.github.libtmux.Session","Window_":"io.github.libtmux.Window_","LibtmuxWindow":"io.github.libtmux.Window","KotlinWindow":"io.github.libtmux.kotlin.Window"},"modifiers":[],"doc":{"summary":"The window's height, in cells."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/WindowFields.kt","line":50,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-companion-height"},{"id":"io.github.libtmux.kotlin.Window.Companion.paneCount","name":"paneCount","kind":"property","parent":"io.github.libtmux.kotlin.Window.Companion","signatures":[{"raw":"public val KotlinWindow.Companion.paneCount: NumberField","params":[],"returns":"NumberField","receiver":{"name":"this","type":"KotlinWindow.Companion"}}],"imports":{"Pane":"io.github.libtmux.Pane","Session":"io.github.libtmux.Session","Window_":"io.github.libtmux.Window_","LibtmuxWindow":"io.github.libtmux.Window","KotlinWindow":"io.github.libtmux.kotlin.Window"},"modifiers":[],"doc":{"summary":"How many panes this link holds."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/WindowFields.kt","line":56,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-companion-panecount"},{"id":"io.github.libtmux.kotlin.Window.Companion.panes","name":"panes","kind":"property","parent":"io.github.libtmux.kotlin.Window.Companion","signatures":[{"raw":"public val KotlinWindow.Companion.panes: ToManyField","params":[],"returns":"ToManyField","receiver":{"name":"this","type":"KotlinWindow.Companion"}}],"imports":{"Pane":"io.github.libtmux.Pane","Session":"io.github.libtmux.Session","Window_":"io.github.libtmux.Window_","LibtmuxWindow":"io.github.libtmux.Window","KotlinWindow":"io.github.libtmux.kotlin.Window"},"modifiers":[],"doc":{"summary":"This link's panes."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/WindowFields.kt","line":62,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-companion-panes"},{"id":"io.github.libtmux.kotlin.Window.Companion.session","name":"session","kind":"property","parent":"io.github.libtmux.kotlin.Window.Companion","signatures":[{"raw":"public val KotlinWindow.Companion.session: ToOneField","params":[],"returns":"ToOneField","receiver":{"name":"this","type":"KotlinWindow.Companion"}}],"imports":{"Pane":"io.github.libtmux.Pane","Session":"io.github.libtmux.Session","Window_":"io.github.libtmux.Window_","LibtmuxWindow":"io.github.libtmux.Window","KotlinWindow":"io.github.libtmux.kotlin.Window"},"modifiers":[],"doc":{"summary":"The session this link belongs to."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/WindowFields.kt","line":68,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-companion-session"},{"id":"io.github.libtmux.query.FilterExpr.not","name":"not","kind":"function","signatures":[{"raw":"public operator fun FilterExpr.not(): FilterExpr","params":[],"returns":"FilterExpr","receiver":{"name":"this","type":"FilterExpr"},"typeParams":["T"],"typeParameters":[{"name":"T","bound":"Any"}]}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","JavaClient":"io.github.libtmux.Client","JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"Inverts an expression, so `!Pane_.active().isTrue()` says what it means.","body":"There is no matching `and` or `or` here, deliberately. Those are already methods on\n[FilterExpr], and an extension of the same name would be shadowed by the member inside its own\nbody while winning at an infix call site — correct either way, but for a reason no reader should\nhave to work out. `a.and(b)` is one character longer than `a and b` and always means the thing it\nappears to.\n\n`negate` rather than `not` on the Java side because [java.util.function.Predicate] already owns\n`not`, and these expressions are predicates.\n\nThe bound is `T : Any` rather than `T`, and that is not a style choice. The core is `@NullMarked`,\nso Kotlin reads `FilterExpr` as `FilterExpr`; an unbounded `T` here would admit a\nnullable entity the core says cannot exist. Compiled with `-Xjspecify-annotations=strict`, so it\nis an error rather than a warning — this file did not compile until the bound was written."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Filters.kt","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-query-filterexpr-not"},{"id":"io.github.libtmux.kotlin.Iterable.filter","name":"filter","kind":"function","signatures":[{"raw":"public fun Iterable.filter(expression: FilterExpr): List","params":[{"name":"expression","type":"FilterExpr"}],"returns":"List","receiver":{"name":"this","type":"Iterable"},"typeParams":["T"],"typeParameters":[{"name":"T","bound":"Any"}]},{"raw":"public fun Iterable.filter(expression: FilterExpr): List","params":[{"name":"expression","type":"FilterExpr"}],"returns":"List","receiver":{"name":"this","type":"Iterable"}},{"raw":"public fun Iterable.filter(expression: FilterExpr): List","params":[{"name":"expression","type":"FilterExpr"}],"returns":"List","receiver":{"name":"this","type":"Iterable"}},{"raw":"public fun Iterable.filter(expression: FilterExpr): List","params":[{"name":"expression","type":"FilterExpr"}],"returns":"List","receiver":{"name":"this","type":"Iterable"}},{"raw":"public fun Iterable.filter(expression: FilterExpr): List","params":[{"name":"expression","type":"FilterExpr"}],"returns":"List","receiver":{"name":"this","type":"Iterable"}}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","JavaClient":"io.github.libtmux.Client","JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":["overload"],"doc":{"summary":"Selects the elements an expression matches.","body":"Kotlin's own `filter` takes a function, not a [java.util.function.Predicate], so handing it a\n[FilterExpr] does not compile — the one place where reading the Java documentation and writing\nKotlin part company. This is that overload, so `panes.filter(Pane_.active().isTrue())` means what\nit appears to.\n\nThe list is already in hand: this asks tmux nothing."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Filters.kt","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-iterable-filter"},{"id":"io.github.libtmux.kotlin.Server.liveState","name":"liveState","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.liveState(\n session: Session,\n scope: CoroutineScope,\n attachTimeout: Duration = config.defaultTimeout().toKotlinDuration(),\n): StateFlow","params":[{"name":"session","type":"Session"},{"name":"scope","type":"CoroutineScope"},{"name":"attachTimeout","type":"Duration","default":"config.defaultTimeout().toKotlinDuration()","doc":"how long to wait for the first attach, and the deadline each later rebuild wait uses to recheck [scope] for cancellation"}],"returns":"StateFlow","receiver":{"name":"this","type":"Server"},"raises":[{"type":"io.github.libtmux.exception.TargetGoneException","doc":"synchronously if [session]'s server has already gone when this is called; later, the same failure ends [scope] instead, since it surfaces from the launched pump rather than from this call"}]}],"imports":{"ServerMirror":"io.github.libtmux.snapshot.ServerMirror","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","CoroutineScope":"kotlinx.coroutines.CoroutineScope","NonCancellable":"kotlinx.coroutines.NonCancellable","cancelChildren":"kotlinx.coroutines.cancelChildren","coroutineScope":"kotlinx.coroutines.coroutineScope","MutableStateFlow":"kotlinx.coroutines.flow.MutableStateFlow","StateFlow":"kotlinx.coroutines.flow.StateFlow","asStateFlow":"kotlinx.coroutines.flow.asStateFlow","isActive":"kotlinx.coroutines.isActive","launch":"kotlinx.coroutines.launch","runInterruptible":"kotlinx.coroutines.runInterruptible","withContext":"kotlinx.coroutines.withContext"},"modifiers":["async"],"doc":{"summary":"A live, continuously rebuilt view of [server], as a [StateFlow].","body":"Wraps Java's [ServerMirror] rather than reinventing it: every routine case — resnapshot on\nnotification, on gap, and on reconnect; conflation while a rebuild is in flight; ending once\n[session] itself is gone — is already handled once, correctly, inside [ServerMirror]. This\nfunction's only job is pumping [ServerMirror.awaitNewer] on a dedicated thread from\n[ExecutionPolicy.streamReads] and publishing what comes back. Named `liveState`, not `ServerMirror`,\nso it does not collide with the Java type it wraps.\n\n[scope] owns the returned [StateFlow]'s whole lifetime: closing the mirror is this function's own\n`launch`+`finally`, tied to [scope]'s cancellation, so the caller never has to close it by hand."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/LiveState.kt","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-livestate"},{"id":"io.github.libtmux.kotlin.Server.withLiveState","name":"withLiveState","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.withLiveState(\n session: Session,\n attachTimeout: Duration = config.defaultTimeout().toKotlinDuration(),\n block: suspend (StateFlow) -> R,\n): R","params":[{"name":"session","type":"Session"},{"name":"attachTimeout","type":"Duration","default":"config.defaultTimeout().toKotlinDuration()"},{"name":"block","type":"suspend"}],"returns":"R","receiver":{"name":"this","type":"Server"},"typeParams":["R"],"typeParameters":[{"name":"R"}]}],"imports":{"ServerMirror":"io.github.libtmux.snapshot.ServerMirror","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","CoroutineScope":"kotlinx.coroutines.CoroutineScope","NonCancellable":"kotlinx.coroutines.NonCancellable","cancelChildren":"kotlinx.coroutines.cancelChildren","coroutineScope":"kotlinx.coroutines.coroutineScope","MutableStateFlow":"kotlinx.coroutines.flow.MutableStateFlow","StateFlow":"kotlinx.coroutines.flow.StateFlow","asStateFlow":"kotlinx.coroutines.flow.asStateFlow","isActive":"kotlinx.coroutines.isActive","launch":"kotlinx.coroutines.launch","runInterruptible":"kotlinx.coroutines.runInterruptible","withContext":"kotlinx.coroutines.withContext"},"modifiers":["async"],"doc":{"summary":"As [liveState], scoped to [block]: opens the live view, runs [block] against it, and cancels the background pump before returning — the same `withServer`/`withControl` shape, for the one resource [liveState] itself cannot close on its own.","body":"[liveState]'s pump runs until [scope] ends, by design (a caller collecting it for the life of a\nprogram passes its own long-lived scope) — which means a bare `coroutineScope { liveState(...) }`\nnever returns: `coroutineScope` waits for every child, the pump included, and nothing inside it\nasks the pump to stop. This cancels that one child explicitly once [block] is done, whether it\nreturns or throws."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/LiveState.kt","line":86,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-withlivestate"},{"id":"java.util.OptionalInt.orNull","name":"orNull","kind":"function","signatures":[{"raw":"public fun OptionalInt.orNull(): Int?","params":[],"returns":"Int?","receiver":{"name":"this","type":"OptionalInt"}}],"imports":{"OptionalInt":"java.util.OptionalInt","OptionalLong":"java.util.OptionalLong"},"modifiers":[],"doc":{"summary":"The value, or null when absent: an exit status, a captured server pid."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Optionals.kt","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"java-util-optionalint-ornull"},{"id":"java.util.OptionalLong.orNull","name":"orNull","kind":"function","signatures":[{"raw":"public fun OptionalLong.orNull(): Long?","params":[],"returns":"Long?","receiver":{"name":"this","type":"OptionalLong"}}],"imports":{"OptionalInt":"java.util.OptionalInt","OptionalLong":"java.util.OptionalLong"},"modifiers":[],"doc":{"summary":"The value, or null when absent."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Optionals.kt","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"java-util-optionallong-ornull"},{"id":"io.github.libtmux.Channel.await","name":"await","kind":"function","signatures":[{"raw":"public suspend fun Channel.await(\n timeout: Duration,\n dispatcher: CoroutineDispatcher = Dispatchers.IO,\n): WakeReason","params":[{"name":"timeout","type":"Duration","doc":"how long to wait, finite and positive"},{"name":"dispatcher","type":"CoroutineDispatcher","default":"Dispatchers.IO","doc":"where the blocking wait runs"}],"returns":"WakeReason","receiver":{"name":"this","type":"Channel"},"returnsDoc":"why the wait ended"}],"imports":{"Channel":"io.github.libtmux.Channel","WakeReason":"io.github.libtmux.WakeReason","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Waits for something to signal this channel.","body":"Cancelling the coroutine interrupts the wait. That is not a timeout. A `wait-for` tmux has already\naccepted is not taken back."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Waits.kt","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-channel-await"},{"id":"io.github.libtmux.Channel.awaitReservingCapacity","name":"awaitReservingCapacity","kind":"function","signatures":[{"raw":"public suspend fun Channel.awaitReservingCapacity(\n timeout: Duration,\n dispatcher: CoroutineDispatcher = Dispatchers.IO,\n): WakeReason","params":[{"name":"timeout","type":"Duration","doc":"how long to wait, finite and positive"},{"name":"dispatcher","type":"CoroutineDispatcher","default":"Dispatchers.IO","doc":"where the blocking wait runs"}],"returns":"WakeReason","receiver":{"name":"this","type":"Channel"}}],"imports":{"Channel":"io.github.libtmux.Channel","WakeReason":"io.github.libtmux.WakeReason","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"As [await], while preserving process capacity for a call that signals it."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Waits.kt","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-channel-awaitreservingcapacity"}],"sources":[{"product":"core","package":"io.github.libtmux:libtmux-kotlin","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272","version":"0.0.1-alpha.17-SNAPSHOT"}],"generatedSources":{"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/BatchOperations.kt":"// GENERATED by build-logic/codegen from operation-catalog.json. Do not edit;\n// regenerate with the generateOperationWrappers Gradle task.\npackage io.github.libtmux.kotlin\n\nimport io.github.libtmux.batch.BatchResult\nimport kotlin.time.toJavaDuration\nimport kotlinx.coroutines.runInterruptible\n\n/**\n * Runs every collected operation in one tmux invocation.\n */\npublic suspend fun Batch.run(): BatchResult = runInterruptible(server.policy.commands) { java.run() }\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/BuffersOperations.kt":"// GENERATED by build-logic/codegen from operation-catalog.json. Do not edit;\n// regenerate with the generateOperationWrappers Gradle task.\npackage io.github.libtmux.kotlin\n\nimport io.github.libtmux.BufferInfo\nimport java.nio.`file`.Path\nimport kotlin.String\nimport kotlin.Unit\nimport kotlin.collections.List\nimport kotlin.time.toJavaDuration\nimport kotlinx.coroutines.runInterruptible\n\n/**\n * Removes a buffer by its exact name.\n */\npublic suspend fun Buffers.delete(name: String): Unit = runInterruptible(server.policy.commands) { java.delete(name) }\n\n/**\n * Captures every buffer the server holds, in tmux's order.\n */\npublic suspend fun Buffers.list(): List = runInterruptible(server.policy.commands) { java.list() }\n\n/**\n * Reads a file into a named buffer.\n */\npublic suspend fun Buffers.load(name: String, `file`: Path): Unit = runInterruptible(server.policy.commands) { java.load(name, file) }\n\n/**\n * Writes a buffer's contents to a file.\n */\npublic suspend fun Buffers.save(name: String, `file`: Path): Unit = runInterruptible(server.policy.commands) { java.save(name, file) }\n\n/**\n * Puts text in a named buffer, replacing whatever was there.\n */\npublic suspend fun Buffers.`set`(name: String, contents: String): Unit = runInterruptible(server.policy.commands) { java.set(name, contents) }\n\n/**\n * What a buffer holds, without any line breaks it ends with.\n */\npublic suspend fun Buffers.show(name: String): String = runInterruptible(server.policy.commands) { java.show(name) }\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ClientOperations.kt":"// GENERATED by build-logic/codegen from operation-catalog.json. Do not edit;\n// regenerate with the generateOperationWrappers Gradle task.\npackage io.github.libtmux.kotlin\n\nimport io.github.libtmux.ClientAttachment\nimport kotlin.Unit\nimport kotlin.time.toJavaDuration\nimport kotlinx.coroutines.runInterruptible\n\n/**\n * Detaches this client, leaving whatever it was attached to running.\n */\npublic suspend fun Client.detach(): Unit = runInterruptible(server.policy.commands) { java.detach() }\n\n/**\n * Detaches every other client, leaving this one attached.\n */\npublic suspend fun Client.detachOthers(): Unit = runInterruptible(server.policy.commands) { java.detachOthers() }\n\n/**\n * Takes a new capture and returns what this client is looking at now.\n */\npublic suspend fun Client.fetchAttachment(): ClientAttachment? = runInterruptible(server.policy.commands) { java.fetchAttachment().orElse(null) }\n\n/**\n * Asks tmux to redraw this client.\n */\npublic suspend fun Client.redraw(): Unit = runInterruptible(server.policy.commands) { java.redraw() }\n\n/**\n * Takes a new capture and returns this client as it is now.\n */\npublic suspend fun Client.refresh(): Client = runInterruptible(server.policy.commands) { Client(java.refresh(), this.server) }\n\n/**\n * Moves this client to another session.\n */\npublic suspend fun Client.switchTo(session: Session): Unit = runInterruptible(server.policy.commands) { java.switchTo(session.java) }\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/CommandChainOperations.kt":"// GENERATED by build-logic/codegen from operation-catalog.json. Do not edit;\n// regenerate with the generateOperationWrappers Gradle task.\npackage io.github.libtmux.kotlin\n\nimport io.github.libtmux.batch.BatchResult\nimport kotlin.String\nimport kotlin.time.toJavaDuration\nimport kotlinx.coroutines.runInterruptible\n\n/**\n * Arranges the current window.\n */\npublic suspend fun CommandChain.arrange(layout: String): CommandChain = runInterruptible(server.policy.commands) { CommandChain(java.arrange(layout), this.server) }\n\n/**\n * Runs the whole chain in one tmux invocation, attributing each step.\n */\npublic suspend fun CommandChain.run(): BatchResult = runInterruptible(server.policy.commands) { java.run() }\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/CommandsOperations.kt":"// GENERATED by build-logic/codegen from operation-catalog.json. Do not edit;\n// regenerate with the generateOperationWrappers Gradle task.\npackage io.github.libtmux.kotlin\n\nimport kotlin.String\nimport kotlin.collections.List\nimport kotlin.time.toJavaDuration\nimport kotlinx.coroutines.runInterruptible\n\n/**\n * Every command, as tmux prints it.\n */\npublic suspend fun Commands.list(): List = runInterruptible(server.policy.commands) { java.list() }\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ControlClientOperations.kt":"// GENERATED by build-logic/codegen from operation-catalog.json. Do not edit;\n// regenerate with the generateOperationWrappers Gradle task.\npackage io.github.libtmux.kotlin\n\nimport io.github.libtmux.control.ControlReply\nimport kotlin.String\nimport kotlin.collections.List\nimport kotlin.time.Duration\nimport kotlin.time.toJavaDuration\nimport kotlinx.coroutines.runInterruptible\n\n/**\n * Runs one command and waits for its reply.\n */\npublic suspend fun ControlClient.send(vararg argv: String): ControlReply = runInterruptible(server.policy.commands) { java.send(*argv) }\n\n/**\n * Runs one command and waits for its reply.\n */\npublic suspend fun ControlClient.send(argv: List): ControlReply = runInterruptible(server.policy.commands) { java.send(argv) }\n\n/**\n * Runs one command and waits for its reply.\n */\npublic suspend fun ControlClient.send(argv: List, timeout: Duration): ControlReply = runInterruptible(server.policy.commands) { java.send(argv, timeout.toJavaDuration()) }\n\n/**\n * Stops a watch.\n */\npublic suspend fun ControlClient.unwatch(name: String): ControlReply = runInterruptible(server.policy.commands) { java.unwatch(name) }\n\n/**\n * Asks tmux to report a format whenever its value changes.\n */\npublic suspend fun ControlClient.watch(\n name: String,\n target: String,\n format: String,\n): ControlReply = runInterruptible(server.policy.commands) { java.watch(name, target, format) }\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/EnvironmentOperations.kt":"// GENERATED by build-logic/codegen from operation-catalog.json. Do not edit;\n// regenerate with the generateOperationWrappers Gradle task.\npackage io.github.libtmux.kotlin\n\nimport kotlin.Boolean\nimport kotlin.String\nimport kotlin.Unit\nimport kotlin.collections.Map\nimport kotlin.collections.Set\nimport kotlin.time.toJavaDuration\nimport kotlinx.coroutines.runInterruptible\n\n/**\n * Every name set at this scope, in tmux's order.\n */\npublic suspend fun Environment.all(): Map = runInterruptible(server.policy.commands) { java.all() }\n\n/**\n * What a process started from this scope is actually handed, both scopes taken together.\n */\npublic suspend fun Environment.effective(): Map = runInterruptible(server.policy.commands) { java.effective() }\n\n/**\n * The value set for this name, or empty when it is removed or absent.\n */\npublic suspend fun Environment.`get`(name: String): String? = runInterruptible(server.policy.commands) { java.get(name).orElse(null) }\n\n/**\n * Whether new processes are told not to inherit this name.\n */\npublic suspend fun Environment.isRemoved(name: String): Boolean = runInterruptible(server.policy.commands) { java.isRemoved(name) }\n\n/**\n * Tells processes started after this not to inherit the name.\n */\npublic suspend fun Environment.remove(name: String): Unit = runInterruptible(server.policy.commands) { java.remove(name) }\n\n/**\n * Every name this scope tells a new process not to inherit.\n */\npublic suspend fun Environment.removed(): Set = runInterruptible(server.policy.commands) { java.removed() }\n\n/**\n * Sets a name to a literal value.\n */\npublic suspend fun Environment.`set`(name: String, `value`: String): Unit = runInterruptible(server.policy.commands) { java.set(name, value) }\n\n/**\n * Sets a name to what a tmux format expands to now.\n */\npublic suspend fun Environment.setExpanded(name: String, format: String): Unit = runInterruptible(server.policy.commands) { java.setExpanded(name, format) }\n\n/**\n * Removes the name from this scope, so it is neither set nor marked.\n */\npublic suspend fun Environment.unset(name: String): Unit = runInterruptible(server.policy.commands) { java.unset(name) }\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/HooksOperations.kt":"// GENERATED by build-logic/codegen from operation-catalog.json. Do not edit;\n// regenerate with the generateOperationWrappers Gradle task.\npackage io.github.libtmux.kotlin\n\nimport kotlin.String\nimport kotlin.Unit\nimport kotlin.collections.List\nimport kotlin.collections.Map\nimport kotlin.time.toJavaDuration\nimport kotlinx.coroutines.runInterruptible\n\n/**\n * Every hook at this scope, keyed by event, each with its commands in the order tmux runs them.\n */\npublic suspend fun Hooks.all(): Map> = runInterruptible(server.policy.commands) { java.all() }\n\n/**\n * As [.append(String, String)], with the command as words.\n */\npublic suspend fun Hooks.append(event: String, command: List): Unit = runInterruptible(server.policy.commands) { java.append(event, command) }\n\n/**\n * Binds another command to an event, after whatever is already bound to it.\n */\npublic suspend fun Hooks.append(event: String, command: String): Unit = runInterruptible(server.policy.commands) { java.append(event, command) }\n\n/**\n * Runs what is bound to an event now, without waiting for the event.\n */\npublic suspend fun Hooks.run(event: String): Unit = runInterruptible(server.policy.commands) { java.run(event) }\n\n/**\n * Binds a tmux command to an event at this scope, replacing anything already bound to it.\n */\npublic suspend fun Hooks.`set`(event: String, command: String): Unit = runInterruptible(server.policy.commands) { java.set(event, command) }\n\n/**\n * As [.set(String, String)], with the command as words rather than a line tmux parses.\n */\npublic suspend fun Hooks.`set`(event: String, command: List): Unit = runInterruptible(server.policy.commands) { java.set(event, command) }\n\n/**\n * Removes everything bound to an event at this scope.\n */\npublic suspend fun Hooks.unset(event: String): Unit = runInterruptible(server.policy.commands) { java.unset(event) }\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/KeysOperations.kt":"// GENERATED by build-logic/codegen from operation-catalog.json. Do not edit;\n// regenerate with the generateOperationWrappers Gradle task.\npackage io.github.libtmux.kotlin\n\nimport kotlin.String\nimport kotlin.Unit\nimport kotlin.collections.List\nimport kotlin.time.toJavaDuration\nimport kotlinx.coroutines.runInterruptible\n\n/**\n * Binds a key to a tmux command, given as its words.\n */\npublic suspend fun Keys.bind(key: String, command: List): Unit = runInterruptible(server.policy.commands) { java.bind(key, command) }\n\n/**\n * The bindings as tmux lists them, one per line.\n */\npublic suspend fun Keys.list(): List = runInterruptible(server.policy.commands) { java.list() }\n\n/**\n * Removes a key's binding.\n */\npublic suspend fun Keys.unbind(key: String): Unit = runInterruptible(server.policy.commands) { java.unbind(key) }\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/MessageLogOperations.kt":"// GENERATED by build-logic/codegen from operation-catalog.json. Do not edit;\n// regenerate with the generateOperationWrappers Gradle task.\npackage io.github.libtmux.kotlin\n\nimport kotlin.String\nimport kotlin.collections.List\nimport kotlin.time.toJavaDuration\nimport kotlinx.coroutines.runInterruptible\n\n/**\n * The log lines.\n */\npublic suspend fun MessageLog.lines(): List = runInterruptible(server.policy.commands) { java.lines() }\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/OptionsOperations.kt":"// GENERATED by build-logic/codegen from operation-catalog.json. Do not edit;\n// regenerate with the generateOperationWrappers Gradle task.\npackage io.github.libtmux.kotlin\n\nimport kotlin.Boolean\nimport kotlin.String\nimport kotlin.Unit\nimport kotlin.collections.Map\nimport kotlin.time.toJavaDuration\nimport kotlinx.coroutines.runInterruptible\n\n/**\n * Every option set at this scope, in tmux's order.\n */\npublic suspend fun Options.all(): Map = runInterruptible(server.policy.commands) { java.all() }\n\n/**\n * Adds to the end of a string option, rather than replacing it.\n */\npublic suspend fun Options.append(name: String, suffix: String): Unit = runInterruptible(server.policy.commands) { java.append(name, suffix) }\n\n/**\n * Every option tmux lists at this scope, including inherited built-in values.\n */\npublic suspend fun Options.effective(): Map = runInterruptible(server.policy.commands) { java.effective() }\n\n/**\n * Sets one option to what a tmux format comes to, rather than to the format itself.\n */\npublic suspend fun Options.setExpanded(name: String, format: String): Unit = runInterruptible(server.policy.commands) { java.setExpanded(name, format) }\n\n/**\n * Sets one option only if this scope does not already set it.\n */\npublic suspend fun Options.setIfAbsent(name: String, `value`: String): Boolean = runInterruptible(server.policy.commands) { java.setIfAbsent(name, value) }\n\n/**\n * Removes one option at this scope, so it falls back to whatever it inherits.\n */\npublic suspend fun Options.unset(name: String): Unit = runInterruptible(server.policy.commands) { java.unset(name) }\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt":"// GENERATED by build-logic/codegen from operation-catalog.json. Do not edit;\n// regenerate with the generateOperationWrappers Gradle task.\npackage io.github.libtmux.kotlin\n\nimport io.github.libtmux.CaptureSpec\nimport io.github.libtmux.Dimensions\nimport io.github.libtmux.Direction\nimport io.github.libtmux.PaneMode\nimport io.github.libtmux.SplitSpec\nimport java.lang.Runnable\nimport java.nio.`file`.Path\nimport kotlin.Boolean\nimport kotlin.Int\nimport kotlin.String\nimport kotlin.Unit\nimport kotlin.collections.List\nimport kotlin.collections.Map\nimport kotlin.time.toJavaDuration\nimport kotlinx.coroutines.runInterruptible\n\n/**\n * Moves this pane into a window of its own, leaving tmux to name it.\n */\npublic suspend fun Pane.breakOut(): Window = runInterruptible(server.policy.commands) { Window(java.breakOut(), this.server) }\n\n/**\n * Moves this pane into a window of its own with the given name.\n */\npublic suspend fun Pane.breakOut(windowName: String): Window = runInterruptible(server.policy.commands) { Window(java.breakOut(windowName), this.server) }\n\n/**\n * This pane's visible content, one element per line.\n */\npublic suspend fun Pane.capture(): List = runInterruptible(server.policy.commands) { java.capture() }\n\n/**\n * Reads part of this pane according to a spec, which may be reused across panes.\n */\npublic suspend fun Pane.capture(spec: CaptureSpec): List = runInterruptible(server.policy.commands) { java.capture(spec) }\n\n/**\n * Discards this pane's scrollback.\n */\npublic suspend fun Pane.clearHistory(): Unit = runInterruptible(server.policy.commands) { java.clearHistory() }\n\n/**\n * Puts this pane into copy mode, where its scrollback can be navigated.\n */\npublic suspend fun Pane.copyMode(): Unit = runInterruptible(server.policy.commands) { java.copyMode() }\n\n/**\n * Whether this pane's process has exited, read fresh rather than from the capture.\n */\npublic suspend fun Pane.dead(): Boolean = runInterruptible(server.policy.commands) { java.dead() }\n\n/**\n * Leaves whichever mode this pane is in.\n */\npublic suspend fun Pane.exitMode(): Unit = runInterruptible(server.policy.commands) { java.exitMode() }\n\n/**\n * Expands a tmux format in this pane's context, and answers with what it came to.\n */\npublic suspend fun Pane.expand(format: String): String = runInterruptible(server.policy.commands) { java.expand(format) }\n\n/**\n * Moves this pane into another window, splitting it.\n */\npublic suspend fun Pane.joinTo(window: Window): Unit = runInterruptible(server.policy.commands) { java.joinTo(window.java) }\n\n/**\n * Closes this pane.\n */\npublic suspend fun Pane.kill(): Unit = runInterruptible(server.policy.commands) { java.kill() }\n\n/**\n * Which mode this pane is in at this moment, or empty when it is in none.\n */\npublic suspend fun Pane.mode(): PaneMode? = runInterruptible(server.policy.commands) { java.mode().orElse(null) }\n\n/**\n * Notes text that reached this pane without going through this handle, so a wait discounts its\n * echo the way it discounts text sent through [.sendLiteral].\n */\npublic suspend fun Pane.noteTyped(text: String): Unit = runInterruptible(server.policy.commands) { java.noteTyped(text) }\n\n/**\n * Pastes text into this pane as one block, leaving nothing behind on the server.\n */\npublic suspend fun Pane.paste(text: String): Unit = runInterruptible(server.policy.commands) { java.paste(text) }\n\n/**\n * As [.paste(String)], after a caller rechecks state once its private buffer is ready.\n */\npublic suspend fun Pane.paste(text: String, beforePaste: Runnable): Unit = runInterruptible(server.policy.commands) { java.paste(text, beforePaste) }\n\n/**\n * Pastes a named buffer into this pane, as though it had been typed.\n */\npublic suspend fun Pane.pasteBuffer(name: String): Unit = runInterruptible(server.policy.commands) { java.pasteBuffer(name) }\n\n/**\n * Sends everything this pane prints to a shell command, until [.stopPiping].\n */\npublic suspend fun Pane.pipeTo(shellCommand: String): Unit = runInterruptible(server.policy.commands) { java.pipeTo(shellCommand) }\n\n/**\n * Takes a new capture and returns this pane as it is now.\n */\npublic suspend fun Pane.refresh(): Pane = runInterruptible(server.policy.commands) { Pane(java.refresh(), this.server) }\n\n/**\n * Grows this pane by a number of cells in one direction.\n */\npublic suspend fun Pane.resize(direction: Direction, cells: Int): Unit = runInterruptible(server.policy.commands) { java.resize(direction, cells) }\n\n/**\n * Resizes this pane.\n */\npublic suspend fun Pane.resizeTo(size: Dimensions): Unit = runInterruptible(server.policy.commands) { java.resizeTo(size) }\n\n/**\n * Kills whatever runs here and starts the pane's default command again.\n */\npublic suspend fun Pane.respawn(): Unit = runInterruptible(server.policy.commands) { java.respawn() }\n\n/**\n * Kills whatever runs here and starts the given command instead.\n */\npublic suspend fun Pane.respawn(vararg command: String): Unit = runInterruptible(server.policy.commands) { java.respawn(*command) }\n\n/**\n * Restarts the configured pane process in a caller-supplied literal directory, resolved against\n * this process's working directory when relative.\n */\npublic suspend fun Pane.respawnIn(directory: Path): Unit = runInterruptible(server.policy.commands) { java.respawnIn(directory) }\n\n/**\n * Retitles this pane and returns its replacement capture.\n */\npublic suspend fun Pane.retitle(title: String): Pane = runInterruptible(server.policy.commands) { Pane(java.retitle(title), this.server) }\n\n/**\n * Makes this the active pane of its window.\n */\npublic suspend fun Pane.select(): Unit = runInterruptible(server.policy.commands) { java.select() }\n\n/**\n * Sends keys to this pane without pressing Enter.\n */\npublic suspend fun Pane.send(keys: String): Unit = runInterruptible(server.policy.commands) { java.send(keys) }\n\n/**\n * Sends an ordered group of key names to this pane, as tmux resolves them.\n */\npublic suspend fun Pane.sendKeys(keys: List): Unit = runInterruptible(server.policy.commands) { java.sendKeys(keys) }\n\n/**\n * As [.sendKeys(List)], after a caller validates the prepared input destination.\n */\npublic suspend fun Pane.sendKeys(keys: List, beforeSend: Runnable): Unit = runInterruptible(server.policy.commands) { java.sendKeys(keys, beforeSend) }\n\n/**\n * Sends a line to this pane and presses Enter, which is how a command gets run.\n */\npublic suspend fun Pane.sendLine(command: String): Unit = runInterruptible(server.policy.commands) { java.sendLine(command) }\n\n/**\n * Sends an ordered group of strings to this pane as the characters they spell.\n */\npublic suspend fun Pane.sendLiteral(keys: List): Unit = runInterruptible(server.policy.commands) { java.sendLiteral(keys) }\n\n/**\n * As [.sendLiteral(List)], after a caller validates the prepared input destination.\n */\npublic suspend fun Pane.sendLiteral(keys: List, beforeSend: Runnable): Unit = runInterruptible(server.policy.commands) { java.sendLiteral(keys, beforeSend) }\n\n/**\n * Splits this pane in half, putting the new one below it.\n */\npublic suspend fun Pane.split(): Pane = runInterruptible(server.policy.commands) { Pane(java.split(), this.server) }\n\n/**\n * Splits this pane according to a spec, which may be reused across panes.\n */\npublic suspend fun Pane.split(spec: SplitSpec): Pane = runInterruptible(server.policy.commands) { Pane(java.split(spec), this.server) }\n\n/**\n * Stops sending this pane's output anywhere.\n */\npublic suspend fun Pane.stopPiping(): Unit = runInterruptible(server.policy.commands) { java.stopPiping() }\n\n/**\n * Swaps this pane's position with another's.\n */\npublic suspend fun Pane.swapWith(other: Pane): Unit = runInterruptible(server.policy.commands) { java.swapWith(other.java) }\n\n/**\n * Reads validated tmux variables in this pane's format context.\n */\npublic suspend fun Pane.variables(names: List): Map = runInterruptible(server.policy.commands) { java.variables(names) }\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PromptOperations.kt":"// GENERATED by build-logic/codegen from operation-catalog.json. Do not edit;\n// regenerate with the generateOperationWrappers Gradle task.\npackage io.github.libtmux.kotlin\n\nimport kotlin.String\nimport kotlin.Unit\nimport kotlin.collections.List\nimport kotlin.time.toJavaDuration\nimport kotlinx.coroutines.runInterruptible\n\n/**\n * Forgets what has been typed at the prompt.\n */\npublic suspend fun Prompt.clear(): Unit = runInterruptible(server.policy.commands) { java.clear() }\n\n/**\n * What has been typed at the prompt, oldest first.\n */\npublic suspend fun Prompt.history(): List = runInterruptible(server.policy.commands) { java.history() }\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt":"// GENERATED by build-logic/codegen from operation-catalog.json. Do not edit;\n// regenerate with the generateOperationWrappers Gradle task.\npackage io.github.libtmux.kotlin\n\nimport io.github.libtmux.PaneId\nimport io.github.libtmux.SessionId\nimport io.github.libtmux.SessionSpec\nimport io.github.libtmux.TmuxVersion\nimport io.github.libtmux.WindowId\nimport io.github.libtmux.query.FilterExpr\nimport io.github.libtmux.snapshot.ServerSnapshot\nimport io.github.libtmux.snapshot.WindowContext\nimport io.github.libtmux.transport.CommandResult\nimport java.nio.`file`.Path\nimport kotlin.Boolean\nimport kotlin.String\nimport kotlin.Unit\nimport kotlin.collections.List\nimport kotlin.collections.Map\nimport kotlin.time.Duration\nimport kotlin.time.toJavaDuration\nimport kotlinx.coroutines.runInterruptible\n\n/**\n * Captures every session a client is attached to.\n */\npublic suspend fun Server.attachedSessions(): List = runInterruptible(policy.commands) { java.attachedSessions().map { Session(it, this) } }\n\n/**\n * Captures every attached client.\n */\npublic suspend fun Server.clients(): List = runInterruptible(policy.commands) { java.clients().map { Client(it, this) } }\n\n/**\n * Runs one tmux command against this server.\n */\npublic suspend fun Server.cmd(vararg argv: String): CommandResult = runInterruptible(policy.commands) { java.cmd(*argv) }\n\n/**\n * Runs one tmux command against this server.\n */\npublic suspend fun Server.cmd(argv: List): CommandResult = runInterruptible(policy.commands) { java.cmd(argv) }\n\n/**\n * Runs one tmux command against this server, overriding the configured deadline.\n */\npublic suspend fun Server.cmd(argv: List, timeout: Duration): CommandResult = runInterruptible(policy.commands) { java.cmd(argv, timeout.toJavaDuration()) }\n\n/**\n * Expands a tmux format against the server, and answers with what it came to.\n */\npublic suspend fun Server.expand(format: String): String = runInterruptible(policy.commands) { java.expand(format) }\n\n/**\n * Whether a session with this name exists.\n */\npublic suspend fun Server.hasSession(name: String): Boolean = runInterruptible(policy.commands) { java.hasSession(name) }\n\n/**\n * Whether the server is running and answering.\n */\npublic suspend fun Server.isAlive(): Boolean = runInterruptible(policy.commands) { java.isAlive() }\n\n/**\n * Whether the server is running and answering, within a deadline of the caller's choosing.\n */\npublic suspend fun Server.isAlive(timeout: Duration): Boolean = runInterruptible(policy.commands) { java.isAlive(timeout.toJavaDuration()) }\n\n/**\n * Ends the tmux server and every session on it.\n */\npublic suspend fun Server.killServer(): Unit = runInterruptible(policy.commands) { java.killServer() }\n\n/**\n * Ends the tmux server and every session on it, within a deadline of the caller's choosing.\n */\npublic suspend fun Server.killServer(timeout: Duration): Unit = runInterruptible(policy.commands) { java.killServer(timeout.toJavaDuration()) }\n\n/**\n * Ends the session with this name, and everything in it.\n */\npublic suspend fun Server.killSession(name: String): Unit = runInterruptible(policy.commands) { java.killSession(name) }\n\n/**\n * Locks every client attached to this server.\n */\npublic suspend fun Server.lock(): Unit = runInterruptible(policy.commands) { java.lock() }\n\n/**\n * Creates a detached session and returns that exact session.\n */\npublic suspend fun Server.newSession(name: String): Session = runInterruptible(policy.commands) { Session(java.newSession(name), this) }\n\n/**\n * Creates a session according to a spec, which may be reused across servers.\n */\npublic suspend fun Server.newSession(spec: SessionSpec): Session = runInterruptible(policy.commands) { Session(java.newSession(spec), this) }\n\n/**\n * The pane with this id, captured now.\n */\npublic suspend fun Server.pane(id: PaneId): Pane? = runInterruptible(policy.commands) { java.pane(id).map { Pane(it, this) }.orElse(null) }\n\n/**\n * Chosen fields for every pane on the server, from one listing.\n */\npublic suspend fun Server.paneFields(names: List): Map> = runInterruptible(policy.commands) { java.paneFields(names) }\n\n/**\n * Captures every pane on the server.\n */\npublic suspend fun Server.panes(): List = runInterruptible(policy.commands) { java.panes().map { Pane(it, this) } }\n\n/**\n * The panes this expression matches, captured now.\n */\npublic suspend fun Server.panes(expression: FilterExpr): List = runInterruptible(policy.commands) { java.panes(expression).map { Pane(it, this) } }\n\n/**\n * Requires a running tmux daemon that answers the liveness probe.\n */\npublic suspend fun Server.requireAlive(): Unit = runInterruptible(policy.commands) { java.requireAlive() }\n\n/**\n * Runs a command that is expected to work, and raises when it did not.\n */\npublic suspend fun Server.run(argv: List): CommandResult = runInterruptible(policy.commands) { java.run(argv) }\n\n/**\n * The session with this name, captured now.\n */\npublic suspend fun Server.session(name: String): Session? = runInterruptible(policy.commands) { java.session(name).map { Session(it, this) }.orElse(null) }\n\n/**\n * The session with this id, captured now.\n */\npublic suspend fun Server.session(id: SessionId): Session? = runInterruptible(policy.commands) { java.session(id).map { Session(it, this) }.orElse(null) }\n\n/**\n * Every session, captured now.\n */\npublic suspend fun Server.sessions(): List = runInterruptible(policy.commands) { java.sessions().map { Session(it, this) } }\n\n/**\n * The sessions this expression matches, captured now.\n */\npublic suspend fun Server.sessions(expression: FilterExpr): List = runInterruptible(policy.commands) { java.sessions(expression).map { Session(it, this) } }\n\n/**\n * Captures the whole hierarchy in at most four listings, retrying once if the server is\n * replaced.\n */\npublic suspend fun Server.snapshot(): ServerSnapshot = runInterruptible(policy.commands) { java.snapshot() }\n\n/**\n * Runs a file of tmux commands, as a configuration file would be run.\n */\npublic suspend fun Server.sourceFile(`file`: Path): Unit = runInterruptible(policy.commands) { java.sourceFile(file) }\n\n/**\n * Reads only validated tmux variable names, never caller-authored format syntax.\n */\npublic suspend fun Server.variables(names: List): Map = runInterruptible(policy.commands) { java.variables(names) }\n\n/**\n * Which tmux this server is running.\n */\npublic suspend fun Server.version(): TmuxVersion = runInterruptible(policy.commands) { java.version() }\n\n/**\n * The winlink at this exact position, captured now.\n */\npublic suspend fun Server.window(context: WindowContext): Window? = runInterruptible(policy.commands) { java.window(context).map { Window(it, this) }.orElse(null) }\n\n/**\n * Captures every winlink, preserving each session and index placement.\n */\npublic suspend fun Server.windows(): List = runInterruptible(policy.commands) { java.windows().map { Window(it, this) } }\n\n/**\n * The winlinks this expression matches, captured now.\n */\npublic suspend fun Server.windows(expression: FilterExpr): List = runInterruptible(policy.commands) { java.windows(expression).map { Window(it, this) } }\n\n/**\n * Every winlink of the window with this id, captured now.\n */\npublic suspend fun Server.windows(id: WindowId): List = runInterruptible(policy.commands) { java.windows(id).map { Window(it, this) } }\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/SessionOperations.kt":"// GENERATED by build-logic/codegen from operation-catalog.json. Do not edit;\n// regenerate with the generateOperationWrappers Gradle task.\npackage io.github.libtmux.kotlin\n\nimport io.github.libtmux.WindowSpec\nimport kotlin.Int\nimport kotlin.String\nimport kotlin.Unit\nimport kotlin.time.toJavaDuration\nimport kotlinx.coroutines.runInterruptible\n\n/**\n * Detaches every client attached to this session, leaving the session running.\n */\npublic suspend fun Session.detachClients(): Unit = runInterruptible(server.policy.commands) { java.detachClients() }\n\n/**\n * Expands a tmux format in this session's context, and answers with what it came to.\n */\npublic suspend fun Session.expand(format: String): String = runInterruptible(server.policy.commands) { java.expand(format) }\n\n/**\n * Ends this session.\n */\npublic suspend fun Session.kill(): Unit = runInterruptible(server.policy.commands) { java.kill() }\n\n/**\n * Returns to the window that was active before this one.\n */\npublic suspend fun Session.lastWindow(): Unit = runInterruptible(server.policy.commands) { java.lastWindow() }\n\n/**\n * Creates a window in this session and returns that exact window.\n */\npublic suspend fun Session.newWindow(name: String): Window = runInterruptible(server.policy.commands) { Window(java.newWindow(name), this.server) }\n\n/**\n * Creates a window in this session according to a spec, which may be reused across sessions.\n */\npublic suspend fun Session.newWindow(spec: WindowSpec): Window = runInterruptible(server.policy.commands) { Window(java.newWindow(spec), this.server) }\n\n/**\n * Moves to the next window in this session, wrapping at the end.\n */\npublic suspend fun Session.nextWindow(): Unit = runInterruptible(server.policy.commands) { java.nextWindow() }\n\n/**\n * Moves to the previous window in this session, wrapping at the start.\n */\npublic suspend fun Session.previousWindow(): Unit = runInterruptible(server.policy.commands) { java.previousWindow() }\n\n/**\n * Takes a new capture and returns this session as it is now.\n */\npublic suspend fun Session.refresh(): Session = runInterruptible(server.policy.commands) { Session(java.refresh(), this.server) }\n\n/**\n * Renames this session and returns its replacement capture.\n */\npublic suspend fun Session.rename(name: String): Session = runInterruptible(server.policy.commands) { Session(java.rename(name), this.server) }\n\n/**\n * Makes a window of this session the active one.\n */\npublic suspend fun Session.selectWindow(window: Window): Unit = runInterruptible(server.policy.commands) { java.selectWindow(window.java) }\n\n/**\n * Sets the scrollback retained by panes created in this session.\n */\npublic suspend fun Session.setHistoryLimit(lines: Int): Unit = runInterruptible(server.policy.commands) { java.setHistoryLimit(lines) }\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ShellOperations.kt":"// GENERATED by build-logic/codegen from operation-catalog.json. Do not edit;\n// regenerate with the generateOperationWrappers Gradle task.\npackage io.github.libtmux.kotlin\n\nimport kotlin.String\nimport kotlin.Unit\nimport kotlin.collections.List\nimport kotlin.time.toJavaDuration\nimport kotlinx.coroutines.runInterruptible\n\n/**\n * Runs a shell command and answers with what it printed.\n */\npublic suspend fun Shell.capturing(command: String): List = runInterruptible(server.policy.commands) { java.capturing(command) }\n\n/**\n * Runs one tmux command when a shell command succeeds.\n */\npublic suspend fun Shell.choose(condition: String, whenTrue: String): Unit = runInterruptible(server.policy.commands) { java.choose(condition, whenTrue) }\n\n/**\n * Runs one tmux command or another, according to whether a shell command succeeds.\n */\npublic suspend fun Shell.choose(\n condition: String,\n whenTrue: String,\n whenFalse: String,\n): Unit = runInterruptible(server.policy.commands) { java.choose(condition, whenTrue, whenFalse) }\n\n/**\n * Runs a shell command for its effect.\n */\npublic suspend fun Shell.run(command: String): Unit = runInterruptible(server.policy.commands) { java.run(command) }\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt":"// GENERATED by build-logic/codegen from operation-catalog.json. Do not edit;\n// regenerate with the generateOperationWrappers Gradle task.\npackage io.github.libtmux.kotlin\n\nimport io.github.libtmux.Dimensions\nimport io.github.libtmux.Layout\nimport io.github.libtmux.SplitSpec\nimport io.github.libtmux.WindowLayout\nimport kotlin.Int\nimport kotlin.String\nimport kotlin.Unit\nimport kotlin.time.toJavaDuration\nimport kotlinx.coroutines.runInterruptible\n\n/**\n * Restores an exact arrangement previously read from [.layout()].\n */\npublic suspend fun Window.applyLayout(layout: WindowLayout): Unit = runInterruptible(server.policy.commands) { java.applyLayout(layout) }\n\n/**\n * As [.applyLayout(WindowLayout)], for a layout held as text — one saved to a file, say.\n */\npublic suspend fun Window.applyLayout(layout: String): Unit = runInterruptible(server.policy.commands) { java.applyLayout(layout) }\n\n/**\n * Shows a popup over this window, running a command in it.\n */\npublic suspend fun Window.displayPopup(shellCommand: String): Unit = runInterruptible(server.policy.commands) { java.displayPopup(shellCommand) }\n\n/**\n * Expands a tmux format in this window's context, and answers with what it came to.\n */\npublic suspend fun Window.expand(format: String): String = runInterruptible(server.policy.commands) { java.expand(format) }\n\n/**\n * Closes this window.\n */\npublic suspend fun Window.kill(): Unit = runInterruptible(server.policy.commands) { java.kill() }\n\n/**\n * Links this window into another session, so one window sits in both.\n */\npublic suspend fun Window.linkTo(session: Session): Unit = runInterruptible(server.policy.commands) { java.linkTo(session.java) }\n\n/**\n * Moves this window into another session.\n */\npublic suspend fun Window.moveTo(session: Session): Unit = runInterruptible(server.policy.commands) { java.moveTo(session.java) }\n\n/**\n * Moves this window to an exact index in another session.\n */\npublic suspend fun Window.moveTo(session: Session, index: Int): Unit = runInterruptible(server.policy.commands) { java.moveTo(session.java, index) }\n\n/**\n * Moves to the next built-in layout, as tmux's own binding does.\n */\npublic suspend fun Window.nextLayout(): Unit = runInterruptible(server.policy.commands) { java.nextLayout() }\n\n/**\n * Moves to the previous built-in layout, as tmux's own binding does.\n */\npublic suspend fun Window.previousLayout(): Unit = runInterruptible(server.policy.commands) { java.previousLayout() }\n\n/**\n * Takes a new capture and returns this winlink as it is now.\n */\npublic suspend fun Window.refresh(): Window = runInterruptible(server.policy.commands) { Window(java.refresh(), this.server) }\n\n/**\n * Renames this window and returns its replacement capture.\n */\npublic suspend fun Window.rename(name: String): Window = runInterruptible(server.policy.commands) { Window(java.rename(name), this.server) }\n\n/**\n * Resizes this window in terminal cells.\n */\npublic suspend fun Window.resizeTo(size: Dimensions): Unit = runInterruptible(server.policy.commands) { java.resizeTo(size) }\n\n/**\n * Kills what is running in this window and starts it again.\n */\npublic suspend fun Window.respawn(): Unit = runInterruptible(server.policy.commands) { java.respawn() }\n\n/**\n * Rotates the panes within this window.\n */\npublic suspend fun Window.rotate(): Unit = runInterruptible(server.policy.commands) { java.rotate() }\n\n/**\n * Makes this the active window of its session.\n */\npublic suspend fun Window.select(): Unit = runInterruptible(server.policy.commands) { java.select() }\n\n/**\n * Rearranges this window's panes into one of tmux's built-in layouts.\n */\npublic suspend fun Window.selectLayout(layout: Layout): Unit = runInterruptible(server.policy.commands) { java.selectLayout(layout) }\n\n/**\n * Splits this window's active pane in half, putting the new one below it.\n */\npublic suspend fun Window.split(): Pane = runInterruptible(server.policy.commands) { Pane(java.split(), this.server) }\n\n/**\n * Splits this window's active pane according to a spec, which may be reused across windows.\n */\npublic suspend fun Window.split(spec: SplitSpec): Pane = runInterruptible(server.policy.commands) { Pane(java.split(spec), this.server) }\n\n/**\n * Stops copying input between this window's panes.\n */\npublic suspend fun Window.stopSynchronizingPanes(): Unit = runInterruptible(server.policy.commands) { java.stopSynchronizingPanes() }\n\n/**\n * Copies input to one pane into every pane in this window, until [.stopSynchronizingPanes].\n */\npublic suspend fun Window.synchronizePanes(): Unit = runInterruptible(server.policy.commands) { java.synchronizePanes() }\n\n/**\n * Removes this link, leaving the window wherever else it is linked.\n */\npublic suspend fun Window.unlink(): Unit = runInterruptible(server.policy.commands) { java.unlink() }\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/ClientFields.kt":"// GENERATED by build-logic/codegen from field-catalog.tsv. Do not edit;\n// regenerate with the generateFieldProperties Gradle task.\npackage io.github.libtmux.kotlin.query\n\nimport io.github.libtmux.Client_\nimport io.github.libtmux.Session\nimport io.github.libtmux.Client as LibtmuxClient\nimport io.github.libtmux.kotlin.Client as KotlinClient\n\n/**\n * The client's terminal name, which is how tmux addresses it.\n */\npublic val KotlinClient.Companion.name: TextField\n get() = TextField(Client_.name())\n\n/**\n * The session this client was attached to, if any.\n */\npublic val KotlinClient.Companion.session: ToOneField\n get() = ToOneField(Client_.session())\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/PaneFields.kt":"// GENERATED by build-logic/codegen from field-catalog.tsv. Do not edit;\n// regenerate with the generateFieldProperties Gradle task.\npackage io.github.libtmux.kotlin.query\n\nimport io.github.libtmux.Pane_\nimport io.github.libtmux.Pane as LibtmuxPane\nimport io.github.libtmux.kotlin.Pane as KotlinPane\n\n/**\n * The pane id.\n */\npublic val KotlinPane.Companion.id: TextField\n get() = TextField(Pane_.id())\n\n/**\n * The command tmux reported running in the pane.\n */\npublic val KotlinPane.Companion.command: TextField\n get() = TextField(Pane_.command())\n\n/**\n * The pane's position in its window.\n */\npublic val KotlinPane.Companion.index: NumberField\n get() = NumberField(Pane_.index())\n\n/**\n * Whether this was its window's active pane.\n */\npublic val KotlinPane.Companion.active: FlagField\n get() = FlagField(Pane_.active())\n\n/**\n * The pane's title, which a program running in it can set.\n */\npublic val KotlinPane.Companion.title: TextField\n get() = TextField(Pane_.title())\n\n/**\n * The pane's working directory, as the text tmux reported.\n */\npublic val KotlinPane.Companion.path: TextField\n get() = TextField(Pane_.path())\n\n/**\n * The pane's width, in cells.\n */\npublic val KotlinPane.Companion.width: NumberField\n get() = NumberField(Pane_.width())\n\n/**\n * The pane's height, in cells.\n */\npublic val KotlinPane.Companion.height: NumberField\n get() = NumberField(Pane_.height())\n\n/**\n * The column of the pane's left edge in its window.\n */\npublic val KotlinPane.Companion.left: NumberField\n get() = NumberField(Pane_.left())\n\n/**\n * The row of the pane's top edge in its window.\n */\npublic val KotlinPane.Companion.top: NumberField\n get() = NumberField(Pane_.top())\n\n/**\n * Whether the pane touches the top of its window.\n */\npublic val KotlinPane.Companion.atTop: FlagField\n get() = FlagField(Pane_.atTop())\n\n/**\n * Whether the pane touches the bottom of its window.\n */\npublic val KotlinPane.Companion.atBottom: FlagField\n get() = FlagField(Pane_.atBottom())\n\n/**\n * Whether the pane touches the left of its window.\n */\npublic val KotlinPane.Companion.atLeft: FlagField\n get() = FlagField(Pane_.atLeft())\n\n/**\n * Whether the pane touches the right of its window.\n */\npublic val KotlinPane.Companion.atRight: FlagField\n get() = FlagField(Pane_.atRight())\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/SessionFields.kt":"// GENERATED by build-logic/codegen from field-catalog.tsv. Do not edit;\n// regenerate with the generateFieldProperties Gradle task.\npackage io.github.libtmux.kotlin.query\n\nimport io.github.libtmux.Session_\nimport io.github.libtmux.Window\nimport io.github.libtmux.Session as LibtmuxSession\nimport io.github.libtmux.kotlin.Session as KotlinSession\n\n/**\n * The session id, as text, so it can be compared and listed.\n */\npublic val KotlinSession.Companion.id: TextField\n get() = TextField(Session_.id())\n\n/**\n * The session name.\n */\npublic val KotlinSession.Companion.name: TextField\n get() = TextField(Session_.name())\n\n/**\n * Whether a client was attached when this was captured.\n */\npublic val KotlinSession.Companion.attached: FlagField\n get() = FlagField(Session_.attached())\n\n/**\n * How many windows this session holds.\n */\npublic val KotlinSession.Companion.windowCount: NumberField\n get() = NumberField(Session_.windowCount())\n\n/**\n * This session's windows.\n */\npublic val KotlinSession.Companion.windows: ToManyField\n get() = ToManyField(Session_.windows())\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/WindowFields.kt":"// GENERATED by build-logic/codegen from field-catalog.tsv. Do not edit;\n// regenerate with the generateFieldProperties Gradle task.\npackage io.github.libtmux.kotlin.query\n\nimport io.github.libtmux.Pane\nimport io.github.libtmux.Session\nimport io.github.libtmux.Window_\nimport io.github.libtmux.Window as LibtmuxWindow\nimport io.github.libtmux.kotlin.Window as KotlinWindow\n\n/**\n * The underlying window id, shared by every link to it.\n */\npublic val KotlinWindow.Companion.id: TextField\n get() = TextField(Window_.id())\n\n/**\n * The window name.\n */\npublic val KotlinWindow.Companion.name: TextField\n get() = TextField(Window_.name())\n\n/**\n * Where this link sits in its session.\n */\npublic val KotlinWindow.Companion.index: NumberField\n get() = NumberField(Window_.index())\n\n/**\n * Whether this was its session's active window.\n */\npublic val KotlinWindow.Companion.active: FlagField\n get() = FlagField(Window_.active())\n\n/**\n * Whether the underlying window is linked into more than one session.\n */\npublic val KotlinWindow.Companion.linked: FlagField\n get() = FlagField(Window_.linked())\n\n/**\n * The window's width, in cells.\n */\npublic val KotlinWindow.Companion.width: NumberField\n get() = NumberField(Window_.width())\n\n/**\n * The window's height, in cells.\n */\npublic val KotlinWindow.Companion.height: NumberField\n get() = NumberField(Window_.height())\n\n/**\n * How many panes this link holds.\n */\npublic val KotlinWindow.Companion.paneCount: NumberField\n get() = NumberField(Window_.paneCount())\n\n/**\n * This link's panes.\n */\npublic val KotlinWindow.Companion.panes: ToManyField\n get() = ToManyField(Window_.panes())\n\n/**\n * The session this link belongs to.\n */\npublic val KotlinWindow.Companion.session: ToOneField\n get() = ToOneField(Window_.session())\n"},"repo":"libtmux/libtmux-java"} +{"port":"kotlin","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractor":"@libtmux/api-model (kotlin syntax)","symbols":[{"id":"io.github.libtmux.kotlin.Batch","name":"Batch","kind":"class","signatures":[{"raw":"public class Batch","params":[]}],"imports":{"JavaBatch":"io.github.libtmux.batch.Batch"},"modifiers":[],"doc":{"summary":"Several tmux commands collected to run together in one invocation.","body":"Holds the Java handle privately, so a member here always wins over a same-named catalog-generated\nextension in `BatchOperations.kt`."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Batch.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-batch"},{"id":"io.github.libtmux.kotlin.Batch.server","name":"server","kind":"property","parent":"io.github.libtmux.kotlin.Batch","modifiers":[],"signatures":[{"raw":"public val server: Server","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Batch.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-batch-server"},{"id":"io.github.libtmux.kotlin.Batch.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.kotlin.Batch","signatures":[{"raw":"public val asJava: JavaBatch","params":[],"returns":"JavaBatch"}],"imports":{"JavaBatch":"io.github.libtmux.batch.Batch"},"modifiers":[],"doc":{"summary":"The Java batch this wraps: the same object, for a Java API that takes one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Batch.kt","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-batch-asjava"},{"id":"io.github.libtmux.kotlin.Batch.add","name":"add","kind":"method","parent":"io.github.libtmux.kotlin.Batch","signatures":[{"raw":"public fun add(vararg argv: String): Batch","params":[{"name":"argv","type":"String"}],"returns":"Batch"},{"raw":"public fun add(argv: List): Batch","params":[{"name":"argv","type":"List"}],"returns":"Batch"}],"imports":{"JavaBatch":"io.github.libtmux.batch.Batch"},"modifiers":["overload"],"doc":{"summary":"Adds one tmux command, its arguments already separate elements. Collected, not sent."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Batch.kt","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-batch-add"},{"id":"io.github.libtmux.kotlin.Batch.size","name":"size","kind":"method","parent":"io.github.libtmux.kotlin.Batch","signatures":[{"raw":"public fun size(): Int","params":[],"returns":"Int"}],"imports":{"JavaBatch":"io.github.libtmux.batch.Batch"},"modifiers":[],"doc":{"summary":"How many operations have been collected. A pure, local read."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Batch.kt","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-batch-size"},{"id":"io.github.libtmux.kotlin.Batch.length","name":"length","kind":"method","parent":"io.github.libtmux.kotlin.Batch","signatures":[{"raw":"public fun length(): Int","params":[],"returns":"Int"}],"imports":{"JavaBatch":"io.github.libtmux.batch.Batch"},"modifiers":[],"doc":{"summary":"How many bytes the collected operations come to as the one command tmux parses. A pure, local read."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Batch.kt","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-batch-length"},{"id":"io.github.libtmux.kotlin.Batch.equals","name":"equals","kind":"method","parent":"io.github.libtmux.kotlin.Batch","signatures":[{"raw":"override fun equals(other: Any?): Boolean","params":[{"name":"other","type":"Any?"}],"returns":"Boolean"}],"imports":{"JavaBatch":"io.github.libtmux.batch.Batch"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Batch.kt","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-batch-equals"},{"id":"io.github.libtmux.kotlin.Batch.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.kotlin.Batch","signatures":[{"raw":"override fun hashCode(): Int","params":[],"returns":"Int"}],"imports":{"JavaBatch":"io.github.libtmux.batch.Batch"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Batch.kt","line":33,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-batch-hashcode"},{"id":"io.github.libtmux.kotlin.Batch.toString","name":"toString","kind":"method","parent":"io.github.libtmux.kotlin.Batch","signatures":[{"raw":"override fun toString(): String","params":[],"returns":"String"}],"imports":{"JavaBatch":"io.github.libtmux.batch.Batch"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Batch.kt","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-batch-tostring"},{"id":"io.github.libtmux.kotlin.Buffers","name":"Buffers","kind":"class","signatures":[{"raw":"public class Buffers","params":[]}],"imports":{"JavaBuffers":"io.github.libtmux.Buffers"},"modifiers":[],"doc":{"summary":"The tmux server's paste buffers.","body":"Holds the Java handle privately, so a member here always wins over a same-named catalog-generated\nextension in `BuffersOperations.kt`."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Buffers.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-buffers"},{"id":"io.github.libtmux.kotlin.Buffers.server","name":"server","kind":"property","parent":"io.github.libtmux.kotlin.Buffers","modifiers":[],"signatures":[{"raw":"public val server: Server","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Buffers.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-buffers-server"},{"id":"io.github.libtmux.kotlin.Buffers.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.kotlin.Buffers","signatures":[{"raw":"public val asJava: JavaBuffers","params":[],"returns":"JavaBuffers"}],"imports":{"JavaBuffers":"io.github.libtmux.Buffers"},"modifiers":[],"doc":{"summary":"The Java buffers this wraps: the same object, for a Java API that takes one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Buffers.kt","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-buffers-asjava"},{"id":"io.github.libtmux.kotlin.Buffers.equals","name":"equals","kind":"method","parent":"io.github.libtmux.kotlin.Buffers","signatures":[{"raw":"override fun equals(other: Any?): Boolean","params":[{"name":"other","type":"Any?"}],"returns":"Boolean"}],"imports":{"JavaBuffers":"io.github.libtmux.Buffers"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Buffers.kt","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-buffers-equals"},{"id":"io.github.libtmux.kotlin.Buffers.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.kotlin.Buffers","signatures":[{"raw":"override fun hashCode(): Int","params":[],"returns":"Int"}],"imports":{"JavaBuffers":"io.github.libtmux.Buffers"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Buffers.kt","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-buffers-hashcode"},{"id":"io.github.libtmux.kotlin.Buffers.toString","name":"toString","kind":"method","parent":"io.github.libtmux.kotlin.Buffers","signatures":[{"raw":"override fun toString(): String","params":[],"returns":"String"}],"imports":{"JavaBuffers":"io.github.libtmux.Buffers"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Buffers.kt","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-buffers-tostring"},{"id":"io.github.libtmux.kotlin.Client","name":"Client","kind":"class","signatures":[{"raw":"public class Client","params":[]}],"imports":{"ClientAttachment":"io.github.libtmux.ClientAttachment","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"An attached tmux client and its captured properties.","body":"Holds the Java handle privately, so a member here always wins over a same-named catalog-generated\nextension in `ClientOperations.kt`. [Companion] hosts the generated query field namespace."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Client.kt","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client"},{"id":"io.github.libtmux.kotlin.Client.server","name":"server","kind":"property","parent":"io.github.libtmux.kotlin.Client","modifiers":[],"signatures":[{"raw":"public val server: Server","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Client.kt","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client-server"},{"id":"io.github.libtmux.kotlin.Client.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.kotlin.Client","signatures":[{"raw":"public val asJava: JavaClient","params":[],"returns":"JavaClient"}],"imports":{"ClientAttachment":"io.github.libtmux.ClientAttachment","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The Java client this wraps: the same object, for a Java API that takes one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Client.kt","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client-asjava"},{"id":"io.github.libtmux.kotlin.Client.name","name":"name","kind":"property","parent":"io.github.libtmux.kotlin.Client","signatures":[{"raw":"public val name: String","params":[],"returns":"String"}],"imports":{"ClientAttachment":"io.github.libtmux.ClientAttachment","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The client's terminal name, which is how tmux addresses it."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Client.kt","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client-name"},{"id":"io.github.libtmux.kotlin.Client.session","name":"session","kind":"property","parent":"io.github.libtmux.kotlin.Client","signatures":[{"raw":"public val session: Session?","params":[],"returns":"Session?"}],"imports":{"ClientAttachment":"io.github.libtmux.ClientAttachment","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The session this client was attached to when captured. A pure read of the capture."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Client.kt","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client-session"},{"id":"io.github.libtmux.kotlin.Client.attachment","name":"attachment","kind":"property","parent":"io.github.libtmux.kotlin.Client","signatures":[{"raw":"public val attachment: ClientAttachment?","params":[],"returns":"ClientAttachment?"}],"imports":{"ClientAttachment":"io.github.libtmux.ClientAttachment","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"What this client was looking at when captured. A pure read: it issues no command."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Client.kt","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client-attachment"},{"id":"io.github.libtmux.kotlin.Client.equals","name":"equals","kind":"method","parent":"io.github.libtmux.kotlin.Client","signatures":[{"raw":"override fun equals(other: Any?): Boolean","params":[{"name":"other","type":"Any?"}],"returns":"Boolean"}],"imports":{"ClientAttachment":"io.github.libtmux.ClientAttachment","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Client.kt","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client-equals"},{"id":"io.github.libtmux.kotlin.Client.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.kotlin.Client","signatures":[{"raw":"override fun hashCode(): Int","params":[],"returns":"Int"}],"imports":{"ClientAttachment":"io.github.libtmux.ClientAttachment","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Client.kt","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client-hashcode"},{"id":"io.github.libtmux.kotlin.Client.toString","name":"toString","kind":"method","parent":"io.github.libtmux.kotlin.Client","signatures":[{"raw":"override fun toString(): String","params":[],"returns":"String"}],"imports":{"ClientAttachment":"io.github.libtmux.ClientAttachment","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Client.kt","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client-tostring"},{"id":"io.github.libtmux.kotlin.Client.Companion","name":"Companion","kind":"module","parent":"io.github.libtmux.kotlin.Client","signatures":[{"raw":"public companion object","params":[]}],"imports":{"ClientAttachment":"io.github.libtmux.ClientAttachment","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Client.kt","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client-companion"},{"id":"io.github.libtmux.kotlin.CommandChain","name":"CommandChain","kind":"class","signatures":[{"raw":"public class CommandChain","params":[]}],"imports":{"JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"doc":{"summary":"A sequence of tmux commands where each one acts on what the last one made.","body":"Holds the Java handle privately, so a member here always wins over a same-named catalog-generated\nextension in `CommandChainOperations.kt`."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/CommandChain.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commandchain"},{"id":"io.github.libtmux.kotlin.CommandChain.server","name":"server","kind":"property","parent":"io.github.libtmux.kotlin.CommandChain","modifiers":[],"signatures":[{"raw":"public val server: Server","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/CommandChain.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commandchain-server"},{"id":"io.github.libtmux.kotlin.CommandChain.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.kotlin.CommandChain","signatures":[{"raw":"public val asJava: JavaCommandChain","params":[],"returns":"JavaCommandChain"}],"imports":{"JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"doc":{"summary":"The Java chain this wraps: the same object, for a Java API that takes one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/CommandChain.kt","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commandchain-asjava"},{"id":"io.github.libtmux.kotlin.CommandChain.newWindow","name":"newWindow","kind":"method","parent":"io.github.libtmux.kotlin.CommandChain","signatures":[{"raw":"public fun newWindow(name: String): CommandChain","params":[{"name":"name","type":"String"}],"returns":"CommandChain"}],"imports":{"JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"doc":{"summary":"Makes a window named [name], which the commands after it act on. Collected, not sent."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/CommandChain.kt","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commandchain-newwindow"},{"id":"io.github.libtmux.kotlin.CommandChain.renameWindow","name":"renameWindow","kind":"method","parent":"io.github.libtmux.kotlin.CommandChain","signatures":[{"raw":"public fun renameWindow(name: String): CommandChain","params":[{"name":"name","type":"String"}],"returns":"CommandChain"}],"imports":{"JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"doc":{"summary":"Renames the window the chain is on. Collected, not sent."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/CommandChain.kt","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commandchain-renamewindow"},{"id":"io.github.libtmux.kotlin.CommandChain.splitLeftRight","name":"splitLeftRight","kind":"method","parent":"io.github.libtmux.kotlin.CommandChain","signatures":[{"raw":"public fun splitLeftRight(): CommandChain","params":[],"returns":"CommandChain"}],"imports":{"JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"doc":{"summary":"Splits the current pane into left and right. Collected, not sent."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/CommandChain.kt","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commandchain-splitleftright"},{"id":"io.github.libtmux.kotlin.CommandChain.splitTopBottom","name":"splitTopBottom","kind":"method","parent":"io.github.libtmux.kotlin.CommandChain","signatures":[{"raw":"public fun splitTopBottom(): CommandChain","params":[],"returns":"CommandChain"}],"imports":{"JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"doc":{"summary":"Splits the current pane into top and bottom. Collected, not sent."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/CommandChain.kt","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commandchain-splittopbottom"},{"id":"io.github.libtmux.kotlin.CommandChain.sendLine","name":"sendLine","kind":"method","parent":"io.github.libtmux.kotlin.CommandChain","signatures":[{"raw":"public fun sendLine(command: String): CommandChain","params":[{"name":"command","type":"String"}],"returns":"CommandChain"}],"imports":{"JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"doc":{"summary":"Types [command] into the current pane and presses Enter. Collected, not sent."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/CommandChain.kt","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commandchain-sendline"},{"id":"io.github.libtmux.kotlin.CommandChain.then","name":"then","kind":"method","parent":"io.github.libtmux.kotlin.CommandChain","signatures":[{"raw":"public fun then(vararg argv: String): CommandChain","params":[{"name":"argv","type":"String"}],"returns":"CommandChain"},{"raw":"public fun then(argv: List): CommandChain","params":[{"name":"argv","type":"List"}],"returns":"CommandChain"}],"imports":{"JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":["overload"],"doc":{"summary":"Adds any tmux command. Collected, not sent."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/CommandChain.kt","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commandchain-then"},{"id":"io.github.libtmux.kotlin.CommandChain.equals","name":"equals","kind":"method","parent":"io.github.libtmux.kotlin.CommandChain","signatures":[{"raw":"override fun equals(other: Any?): Boolean","params":[{"name":"other","type":"Any?"}],"returns":"Boolean"}],"imports":{"JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/CommandChain.kt","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commandchain-equals"},{"id":"io.github.libtmux.kotlin.CommandChain.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.kotlin.CommandChain","signatures":[{"raw":"override fun hashCode(): Int","params":[],"returns":"Int"}],"imports":{"JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/CommandChain.kt","line":39,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commandchain-hashcode"},{"id":"io.github.libtmux.kotlin.CommandChain.toString","name":"toString","kind":"method","parent":"io.github.libtmux.kotlin.CommandChain","signatures":[{"raw":"override fun toString(): String","params":[],"returns":"String"}],"imports":{"JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/CommandChain.kt","line":41,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commandchain-tostring"},{"id":"io.github.libtmux.kotlin.Commands","name":"Commands","kind":"class","signatures":[{"raw":"public class Commands","params":[]}],"imports":{"JavaCommands":"io.github.libtmux.Commands"},"modifiers":[],"doc":{"summary":"The commands this tmux knows, read without starting a server to answer.","body":"Holds the Java handle privately, so a member here always wins over a same-named catalog-generated\nextension in `CommandsOperations.kt`."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Commands.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commands"},{"id":"io.github.libtmux.kotlin.Commands.server","name":"server","kind":"property","parent":"io.github.libtmux.kotlin.Commands","modifiers":[],"signatures":[{"raw":"public val server: Server","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Commands.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commands-server"},{"id":"io.github.libtmux.kotlin.Commands.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.kotlin.Commands","signatures":[{"raw":"public val asJava: JavaCommands","params":[],"returns":"JavaCommands"}],"imports":{"JavaCommands":"io.github.libtmux.Commands"},"modifiers":[],"doc":{"summary":"The Java commands this wraps: the same object, for a Java API that takes one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Commands.kt","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commands-asjava"},{"id":"io.github.libtmux.kotlin.Commands.equals","name":"equals","kind":"method","parent":"io.github.libtmux.kotlin.Commands","signatures":[{"raw":"override fun equals(other: Any?): Boolean","params":[{"name":"other","type":"Any?"}],"returns":"Boolean"}],"imports":{"JavaCommands":"io.github.libtmux.Commands"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Commands.kt","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commands-equals"},{"id":"io.github.libtmux.kotlin.Commands.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.kotlin.Commands","signatures":[{"raw":"override fun hashCode(): Int","params":[],"returns":"Int"}],"imports":{"JavaCommands":"io.github.libtmux.Commands"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Commands.kt","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commands-hashcode"},{"id":"io.github.libtmux.kotlin.Commands.toString","name":"toString","kind":"method","parent":"io.github.libtmux.kotlin.Commands","signatures":[{"raw":"override fun toString(): String","params":[],"returns":"String"}],"imports":{"JavaCommands":"io.github.libtmux.Commands"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Commands.kt","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commands-tostring"},{"id":"io.github.libtmux.kotlin.ControlClient","name":"ControlClient","kind":"class","signatures":[{"raw":"public class ControlClient : AutoCloseable","params":[],"returns":"AutoCloseable"}],"imports":{"ControlEvent":"io.github.libtmux.control.ControlEvent","Delivery":"io.github.libtmux.control.Delivery","PaneOutput":"io.github.libtmux.control.PaneOutput","Flow":"kotlinx.coroutines.flow.Flow","JavaControlClient":"io.github.libtmux.control.ControlClient"},"modifiers":[],"doc":{"summary":"A tmux client that stays attached and answers one command at a time.","body":"Holds the Java handle privately, so a member here always wins over a same-named catalog-generated\nextension in `ControlClientOperations.kt`."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/ControlClient.kt","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-controlclient"},{"id":"io.github.libtmux.kotlin.ControlClient.server","name":"server","kind":"property","parent":"io.github.libtmux.kotlin.ControlClient","modifiers":[],"signatures":[{"raw":"public val server: Server","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/ControlClient.kt","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-controlclient-server"},{"id":"io.github.libtmux.kotlin.ControlClient.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.kotlin.ControlClient","signatures":[{"raw":"public val asJava: JavaControlClient","params":[],"returns":"JavaControlClient"}],"imports":{"ControlEvent":"io.github.libtmux.control.ControlEvent","Delivery":"io.github.libtmux.control.Delivery","PaneOutput":"io.github.libtmux.control.PaneOutput","Flow":"kotlinx.coroutines.flow.Flow","JavaControlClient":"io.github.libtmux.control.ControlClient"},"modifiers":[],"doc":{"summary":"The Java control client this wraps: the same object, for a Java API that takes one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/ControlClient.kt","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-controlclient-asjava"},{"id":"io.github.libtmux.kotlin.ControlClient.isAlive","name":"isAlive","kind":"property","parent":"io.github.libtmux.kotlin.ControlClient","signatures":[{"raw":"public val isAlive: Boolean","params":[],"returns":"Boolean"}],"imports":{"ControlEvent":"io.github.libtmux.control.ControlEvent","Delivery":"io.github.libtmux.control.Delivery","PaneOutput":"io.github.libtmux.control.PaneOutput","Flow":"kotlinx.coroutines.flow.Flow","JavaControlClient":"io.github.libtmux.control.ControlClient"},"modifiers":[],"doc":{"summary":"Whether the client is still running."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/ControlClient.kt","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-controlclient-isalive"},{"id":"io.github.libtmux.kotlin.ControlClient.standardError","name":"standardError","kind":"property","parent":"io.github.libtmux.kotlin.ControlClient","signatures":[{"raw":"public val standardError: String","params":[],"returns":"String"}],"imports":{"ControlEvent":"io.github.libtmux.control.ControlEvent","Delivery":"io.github.libtmux.control.Delivery","PaneOutput":"io.github.libtmux.control.PaneOutput","Flow":"kotlinx.coroutines.flow.Flow","JavaControlClient":"io.github.libtmux.control.ControlClient"},"modifiers":[],"doc":{"summary":"The error text captured from this control process, at most 4096 bytes."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/ControlClient.kt","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-controlclient-standarderror"},{"id":"io.github.libtmux.kotlin.ControlClient.standardErrorTruncated","name":"standardErrorTruncated","kind":"property","parent":"io.github.libtmux.kotlin.ControlClient","signatures":[{"raw":"public val standardErrorTruncated: Boolean","params":[],"returns":"Boolean"}],"imports":{"ControlEvent":"io.github.libtmux.control.ControlEvent","Delivery":"io.github.libtmux.control.Delivery","PaneOutput":"io.github.libtmux.control.PaneOutput","Flow":"kotlinx.coroutines.flow.Flow","JavaControlClient":"io.github.libtmux.control.ControlClient"},"modifiers":[],"doc":{"summary":"Whether [standardError] stopped before the process finished writing it."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/ControlClient.kt","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-controlclient-standarderrortruncated"},{"id":"io.github.libtmux.kotlin.ControlClient.output","name":"output","kind":"method","parent":"io.github.libtmux.kotlin.ControlClient","signatures":[{"raw":"public fun output(capacity: Int, onSubscribed: suspend () -> Unit = {}): Flow>","params":[{"name":"capacity","type":"Int"},{"name":"onSubscribed","type":"suspend","default":"{}"}],"returns":"Flow>"}],"imports":{"ControlEvent":"io.github.libtmux.control.ControlEvent","Delivery":"io.github.libtmux.control.Delivery","PaneOutput":"io.github.libtmux.control.PaneOutput","Flow":"kotlinx.coroutines.flow.Flow","JavaControlClient":"io.github.libtmux.control.ControlClient"},"modifiers":[],"doc":{"summary":"Terminal output tmux pushes, as a cold [Flow].","body":"A fresh Java subscription opens per [kotlinx.coroutines.flow.Flow.collect] and closes when\ncollection ends, cancels, or throws — fan-out means collecting twice, each with its own gap\naccounting. Not `suspend`: opening the subscription is local and does no tmux round trip: only\ncollecting it reads.\n\nOutput tmux sends before the subscription opens is not delivered, and a cold flow opens it\nonly when collection starts. So a command whose output is wanted belongs in [onSubscribed],\nwhich runs once the subscription exists and before the first read, rather than before\n`collect`: `control.output(32) { control.send(\"send-keys\", ...) }`."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/ControlClient.kt","line":45,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-controlclient-output"},{"id":"io.github.libtmux.kotlin.ControlClient.events","name":"events","kind":"method","parent":"io.github.libtmux.kotlin.ControlClient","signatures":[{"raw":"public fun events(capacity: Int, onSubscribed: suspend () -> Unit = {}): Flow>","params":[{"name":"capacity","type":"Int"},{"name":"onSubscribed","type":"suspend","default":"{}"}],"returns":"Flow>"}],"imports":{"ControlEvent":"io.github.libtmux.control.ControlEvent","Delivery":"io.github.libtmux.control.Delivery","PaneOutput":"io.github.libtmux.control.PaneOutput","Flow":"kotlinx.coroutines.flow.Flow","JavaControlClient":"io.github.libtmux.control.ControlClient"},"modifiers":[],"doc":{"summary":"State changes tmux volunteers, as a cold [Flow]. Reads, and takes [onSubscribed], as [output] does."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/ControlClient.kt","line":49,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-controlclient-events"},{"id":"io.github.libtmux.kotlin.ControlClient.close","name":"close","kind":"method","parent":"io.github.libtmux.kotlin.ControlClient","signatures":[{"raw":"override fun close()","params":[]}],"imports":{"ControlEvent":"io.github.libtmux.control.ControlEvent","Delivery":"io.github.libtmux.control.Delivery","PaneOutput":"io.github.libtmux.control.PaneOutput","Flow":"kotlinx.coroutines.flow.Flow","JavaControlClient":"io.github.libtmux.control.ControlClient"},"modifiers":[],"doc":{"summary":"Ends the client, rejecting queued requests and resolving picked requests as uncertain."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/ControlClient.kt","line":53,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-controlclient-close"},{"id":"io.github.libtmux.kotlin.LibTmuxDsl","name":"LibTmuxDsl","kind":"class","signatures":[{"raw":"@DslMarker\npublic annotation class LibTmuxDsl","params":[]}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"doc":{"summary":"Marks every builder below so an inner block cannot reach an outer block's receiver by accident: `split { directory = x }` inside `window { }` resolves to the innermost [SplitBuilder], never to the [WindowBuilder] it is nested in. Reaching the outer receiver on purpose still works, spelled explicitly (`this@window.directory = x`)."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-libtmuxdsl"},{"id":"io.github.libtmux.kotlin.SessionBuilder","name":"SessionBuilder","kind":"class","signatures":[{"raw":"@LibTmuxDsl\npublic class SessionBuilder","params":[]}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"doc":{"summary":"Configure a new session, its initial command, and its windows with [Server.newSession]."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":60,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-sessionbuilder"},{"id":"io.github.libtmux.kotlin.SessionBuilder.name","name":"name","kind":"property","parent":"io.github.libtmux.kotlin.SessionBuilder","signatures":[{"raw":"public var name: String?","params":[],"returns":"String?"}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":66,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-sessionbuilder-name"},{"id":"io.github.libtmux.kotlin.SessionBuilder.directory","name":"directory","kind":"property","parent":"io.github.libtmux.kotlin.SessionBuilder","signatures":[{"raw":"public var directory: Path?","params":[],"returns":"Path?"}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"doc":{"summary":"The session's working directory, which its first window starts in too."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":69,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-sessionbuilder-directory"},{"id":"io.github.libtmux.kotlin.SessionBuilder.running","name":"running","kind":"method","parent":"io.github.libtmux.kotlin.SessionBuilder","signatures":[{"raw":"public fun running(vararg argv: String)","params":[{"name":"argv","type":"String"}]}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"doc":{"summary":"Runs [argv] in the first window instead of the default shell."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":72,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-sessionbuilder-running"},{"id":"io.github.libtmux.kotlin.SessionBuilder.env","name":"env","kind":"method","parent":"io.github.libtmux.kotlin.SessionBuilder","signatures":[{"raw":"public fun env(name: String, value: String)","params":[{"name":"name","type":"String"},{"name":"value","type":"String"}]}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"doc":{"summary":"Adds a variable to the new session's environment, keeping any already set."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":77,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-sessionbuilder-env"},{"id":"io.github.libtmux.kotlin.SessionBuilder.window","name":"window","kind":"method","parent":"io.github.libtmux.kotlin.SessionBuilder","signatures":[{"raw":"public fun window(configure: WindowBuilder.() -> Unit)","params":[{"name":"configure","type":"WindowBuilder.() -> Unit"}]}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":81,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-sessionbuilder-window"},{"id":"io.github.libtmux.kotlin.WindowBuilder","name":"WindowBuilder","kind":"class","signatures":[{"raw":"@LibTmuxDsl\npublic class WindowBuilder","params":[]}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"doc":{"summary":"Configure a window and its pane splits inside a [SessionBuilder] block."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":103,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-windowbuilder"},{"id":"io.github.libtmux.kotlin.WindowBuilder.name","name":"name","kind":"property","parent":"io.github.libtmux.kotlin.WindowBuilder","signatures":[{"raw":"public var name: String?","params":[],"returns":"String?"}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":110,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-windowbuilder-name"},{"id":"io.github.libtmux.kotlin.WindowBuilder.directory","name":"directory","kind":"property","parent":"io.github.libtmux.kotlin.WindowBuilder","signatures":[{"raw":"public var directory: Path?","params":[],"returns":"Path?"}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":112,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-windowbuilder-directory"},{"id":"io.github.libtmux.kotlin.WindowBuilder.running","name":"running","kind":"method","parent":"io.github.libtmux.kotlin.WindowBuilder","signatures":[{"raw":"public fun running(vararg argv: String)","params":[{"name":"argv","type":"String"}]}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"doc":{"summary":"Runs [argv] in this window instead of the default shell."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":115,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-windowbuilder-running"},{"id":"io.github.libtmux.kotlin.WindowBuilder.env","name":"env","kind":"method","parent":"io.github.libtmux.kotlin.WindowBuilder","signatures":[{"raw":"public fun env(name: String, value: String)","params":[{"name":"name","type":"String"},{"name":"value","type":"String"}]}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"doc":{"summary":"Adds a variable to the new window's environment, keeping any already set."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":120,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-windowbuilder-env"},{"id":"io.github.libtmux.kotlin.WindowBuilder.split","name":"split","kind":"method","parent":"io.github.libtmux.kotlin.WindowBuilder","signatures":[{"raw":"public fun split(configure: SplitBuilder.() -> Unit = {})","params":[{"name":"configure","type":"SplitBuilder.() -> Unit","default":"{}"}]}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":124,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-windowbuilder-split"},{"id":"io.github.libtmux.kotlin.SplitBuilder","name":"SplitBuilder","kind":"class","signatures":[{"raw":"@LibTmuxDsl\npublic class SplitBuilder","params":[]}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"doc":{"summary":"Choose the position, size, and working directory of a new pane split."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":139,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-splitbuilder"},{"id":"io.github.libtmux.kotlin.SplitBuilder.directory","name":"directory","kind":"property","parent":"io.github.libtmux.kotlin.SplitBuilder","signatures":[{"raw":"public var directory: Path?","params":[],"returns":"Path?"}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":143,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-splitbuilder-directory"},{"id":"io.github.libtmux.kotlin.SplitBuilder.below","name":"below","kind":"method","parent":"io.github.libtmux.kotlin.SplitBuilder","signatures":[{"raw":"public fun below()","params":[]}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"doc":{"summary":"Puts the new pane below this one. tmux's own default if no direction is chosen."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":150,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-splitbuilder-below"},{"id":"io.github.libtmux.kotlin.SplitBuilder.above","name":"above","kind":"method","parent":"io.github.libtmux.kotlin.SplitBuilder","signatures":[{"raw":"public fun above()","params":[]}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"doc":{"summary":"Puts the new pane above this one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":155,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-splitbuilder-above"},{"id":"io.github.libtmux.kotlin.SplitBuilder.toRight","name":"toRight","kind":"method","parent":"io.github.libtmux.kotlin.SplitBuilder","signatures":[{"raw":"public fun toRight()","params":[]}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"doc":{"summary":"Puts the new pane to the right of this one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":160,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-splitbuilder-toright"},{"id":"io.github.libtmux.kotlin.SplitBuilder.toLeft","name":"toLeft","kind":"method","parent":"io.github.libtmux.kotlin.SplitBuilder","signatures":[{"raw":"public fun toLeft()","params":[]}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"doc":{"summary":"Puts the new pane to the left of this one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":165,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-splitbuilder-toleft"},{"id":"io.github.libtmux.kotlin.SplitBuilder.cells","name":"cells","kind":"method","parent":"io.github.libtmux.kotlin.SplitBuilder","signatures":[{"raw":"public fun cells(count: Int)","params":[{"name":"count","type":"Int"}]}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"doc":{"summary":"Sizes the new pane by an exact number of cells."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":170,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-splitbuilder-cells"},{"id":"io.github.libtmux.kotlin.SplitBuilder.percent","name":"percent","kind":"method","parent":"io.github.libtmux.kotlin.SplitBuilder","signatures":[{"raw":"public fun percent(share: Int)","params":[{"name":"share","type":"Int"}]}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"doc":{"summary":"Sizes the new pane as a percentage of the space being split."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":175,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-splitbuilder-percent"},{"id":"io.github.libtmux.kotlin.SplitBuilder.env","name":"env","kind":"method","parent":"io.github.libtmux.kotlin.SplitBuilder","signatures":[{"raw":"public fun env(name: String, value: String)","params":[{"name":"name","type":"String"},{"name":"value","type":"String"}]}],"imports":{"SessionSpec":"io.github.libtmux.SessionSpec","SplitSpec":"io.github.libtmux.SplitSpec","WindowSpec":"io.github.libtmux.WindowSpec","Path":"java.nio.file.Path"},"modifiers":[],"doc":{"summary":"Adds a variable to the new pane's environment, keeping any already set."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt","line":180,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-splitbuilder-env"},{"id":"io.github.libtmux.kotlin.Environment","name":"Environment","kind":"class","signatures":[{"raw":"public class Environment","params":[]}],"imports":{"JavaEnvironment":"io.github.libtmux.Environment"},"modifiers":[],"doc":{"summary":"Read and update environment variables used to start processes in tmux.","body":"Holds the Java handle privately, so a member here always wins over a same-named catalog-generated\nextension in `EnvironmentOperations.kt`."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Environment.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-environment"},{"id":"io.github.libtmux.kotlin.Environment.server","name":"server","kind":"property","parent":"io.github.libtmux.kotlin.Environment","modifiers":[],"signatures":[{"raw":"public val server: Server","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Environment.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-environment-server"},{"id":"io.github.libtmux.kotlin.Environment.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.kotlin.Environment","signatures":[{"raw":"public val asJava: JavaEnvironment","params":[],"returns":"JavaEnvironment"}],"imports":{"JavaEnvironment":"io.github.libtmux.Environment"},"modifiers":[],"doc":{"summary":"The Java environment this wraps: the same object, for a Java API that takes one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Environment.kt","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-environment-asjava"},{"id":"io.github.libtmux.kotlin.Environment.equals","name":"equals","kind":"method","parent":"io.github.libtmux.kotlin.Environment","signatures":[{"raw":"override fun equals(other: Any?): Boolean","params":[{"name":"other","type":"Any?"}],"returns":"Boolean"}],"imports":{"JavaEnvironment":"io.github.libtmux.Environment"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Environment.kt","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-environment-equals"},{"id":"io.github.libtmux.kotlin.Environment.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.kotlin.Environment","signatures":[{"raw":"override fun hashCode(): Int","params":[],"returns":"Int"}],"imports":{"JavaEnvironment":"io.github.libtmux.Environment"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Environment.kt","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-environment-hashcode"},{"id":"io.github.libtmux.kotlin.Environment.toString","name":"toString","kind":"method","parent":"io.github.libtmux.kotlin.Environment","signatures":[{"raw":"override fun toString(): String","params":[],"returns":"String"}],"imports":{"JavaEnvironment":"io.github.libtmux.Environment"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Environment.kt","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-environment-tostring"},{"id":"io.github.libtmux.kotlin.ExecutionPolicy","name":"ExecutionPolicy","kind":"class","signatures":[{"raw":"public class ExecutionPolicy(\n public val commands: CoroutineDispatcher,\n public val streamReads: CoroutineDispatcher,\n public val defaultDeadline: Duration = Duration.INFINITE,\n)","params":[{"name":"commands","type":"CoroutineDispatcher"},{"name":"streamReads","type":"CoroutineDispatcher"},{"name":"defaultDeadline","type":"Duration","default":"Duration.INFINITE"}]}],"imports":{"ServerConfig":"io.github.libtmux.ServerConfig","Duration":"kotlin.time.Duration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers"},"modifiers":[],"doc":{"summary":"Controls the dispatchers and concurrency limits for a [Server]'s suspending operations.","body":"Two independently sized pools, not one: [commands] backs every `suspend` operation this module\ngenerates or hand-writes, sized from the transport's own admission bound rather than a guess.\n[streamReads] backs only what still genuinely blocks a thread — [Server.liveState]'s background\npump. [ControlClient.output] and [ControlClient.events] hold no thread from either pool; they are\nbuilt on [io.github.libtmux.control.EventSubscription.poll] and `onReady`, not on a blocking read."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/ExecutionPolicy.kt","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-executionpolicy"},{"id":"io.github.libtmux.kotlin.ExecutionPolicy.commands","name":"commands","kind":"property","parent":"io.github.libtmux.kotlin.ExecutionPolicy","modifiers":[],"signatures":[{"raw":"public val commands: CoroutineDispatcher","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/ExecutionPolicy.kt","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-executionpolicy-commands"},{"id":"io.github.libtmux.kotlin.ExecutionPolicy.streamReads","name":"streamReads","kind":"property","parent":"io.github.libtmux.kotlin.ExecutionPolicy","modifiers":[],"signatures":[{"raw":"public val streamReads: CoroutineDispatcher","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/ExecutionPolicy.kt","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-executionpolicy-streamreads"},{"id":"io.github.libtmux.kotlin.ExecutionPolicy.defaultDeadline","name":"defaultDeadline","kind":"property","parent":"io.github.libtmux.kotlin.ExecutionPolicy","modifiers":[],"signatures":[{"raw":"public val defaultDeadline: Duration = Duration.INFINITE","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/ExecutionPolicy.kt","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-executionpolicy-defaultdeadline"},{"id":"io.github.libtmux.kotlin.ExecutionPolicy.Companion","name":"Companion","kind":"module","parent":"io.github.libtmux.kotlin.ExecutionPolicy","signatures":[{"raw":"public companion object","params":[]}],"imports":{"ServerConfig":"io.github.libtmux.ServerConfig","Duration":"kotlin.time.Duration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/ExecutionPolicy.kt","line":22,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-executionpolicy-companion"},{"id":"io.github.libtmux.kotlin.ExecutionPolicy.Companion.default","name":"default","kind":"method","parent":"io.github.libtmux.kotlin.ExecutionPolicy.Companion","signatures":[{"raw":"public fun default(\n config: ServerConfig,\n streamReadCapacity: Int = DEFAULT_STREAM_READ_CAPACITY,\n ): ExecutionPolicy","params":[{"name":"config","type":"ServerConfig"},{"name":"streamReadCapacity","type":"Int","default":"DEFAULT_STREAM_READ_CAPACITY"}],"returns":"ExecutionPolicy"}],"imports":{"ServerConfig":"io.github.libtmux.ServerConfig","Duration":"kotlin.time.Duration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers"},"modifiers":[],"doc":{"summary":"Sizes [commands] from `config`'s own [ServerConfig.maxConcurrentCommands], and [streamReads] independently: it bounds a structurally different resource, open [Server.liveState] watches, not tmux process admission."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/ExecutionPolicy.kt","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-executionpolicy-companion-default"},{"id":"io.github.libtmux.kotlin.Hooks","name":"Hooks","kind":"class","signatures":[{"raw":"public class Hooks","params":[]}],"imports":{"JavaHooks":"io.github.libtmux.Hooks"},"modifiers":[],"doc":{"summary":"Read and update hooks for the server, session, window, or pane that owns this handle.","body":"Holds the Java handle privately, so a member here always wins over a same-named catalog-generated\nextension in `HooksOperations.kt`."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Hooks.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-hooks"},{"id":"io.github.libtmux.kotlin.Hooks.server","name":"server","kind":"property","parent":"io.github.libtmux.kotlin.Hooks","modifiers":[],"signatures":[{"raw":"public val server: Server","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Hooks.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-hooks-server"},{"id":"io.github.libtmux.kotlin.Hooks.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.kotlin.Hooks","signatures":[{"raw":"public val asJava: JavaHooks","params":[],"returns":"JavaHooks"}],"imports":{"JavaHooks":"io.github.libtmux.Hooks"},"modifiers":[],"doc":{"summary":"The Java hooks this wraps: the same object, for a Java API that takes one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Hooks.kt","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-hooks-asjava"},{"id":"io.github.libtmux.kotlin.Hooks.equals","name":"equals","kind":"method","parent":"io.github.libtmux.kotlin.Hooks","signatures":[{"raw":"override fun equals(other: Any?): Boolean","params":[{"name":"other","type":"Any?"}],"returns":"Boolean"}],"imports":{"JavaHooks":"io.github.libtmux.Hooks"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Hooks.kt","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-hooks-equals"},{"id":"io.github.libtmux.kotlin.Hooks.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.kotlin.Hooks","signatures":[{"raw":"override fun hashCode(): Int","params":[],"returns":"Int"}],"imports":{"JavaHooks":"io.github.libtmux.Hooks"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Hooks.kt","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-hooks-hashcode"},{"id":"io.github.libtmux.kotlin.Hooks.toString","name":"toString","kind":"method","parent":"io.github.libtmux.kotlin.Hooks","signatures":[{"raw":"override fun toString(): String","params":[],"returns":"String"}],"imports":{"JavaHooks":"io.github.libtmux.Hooks"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Hooks.kt","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-hooks-tostring"},{"id":"io.github.libtmux.kotlin.Keys","name":"Keys","kind":"class","signatures":[{"raw":"public class Keys","params":[]}],"imports":{"JavaKeys":"io.github.libtmux.Keys"},"modifiers":[],"doc":{"summary":"The server's key bindings, in one key table or across all of them.","body":"Holds the Java handle privately, so a member here always wins over a same-named catalog-generated\nextension in `KeysOperations.kt`."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Keys.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-keys"},{"id":"io.github.libtmux.kotlin.Keys.server","name":"server","kind":"property","parent":"io.github.libtmux.kotlin.Keys","modifiers":[],"signatures":[{"raw":"public val server: Server","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Keys.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-keys-server"},{"id":"io.github.libtmux.kotlin.Keys.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.kotlin.Keys","signatures":[{"raw":"public val asJava: JavaKeys","params":[],"returns":"JavaKeys"}],"imports":{"JavaKeys":"io.github.libtmux.Keys"},"modifiers":[],"doc":{"summary":"The Java keys this wraps: the same object, for a Java API that takes one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Keys.kt","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-keys-asjava"},{"id":"io.github.libtmux.kotlin.Keys.`in`","name":"`in`","kind":"method","parent":"io.github.libtmux.kotlin.Keys","signatures":[{"raw":"public fun `in`(table: String): Keys","params":[{"name":"table","type":"String"}],"returns":"Keys"}],"imports":{"JavaKeys":"io.github.libtmux.Keys"},"modifiers":[],"doc":{"summary":"The same bindings, in one named table. A pure, local view: it issues no command."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Keys.kt","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-keys-in"},{"id":"io.github.libtmux.kotlin.Keys.equals","name":"equals","kind":"method","parent":"io.github.libtmux.kotlin.Keys","signatures":[{"raw":"override fun equals(other: Any?): Boolean","params":[{"name":"other","type":"Any?"}],"returns":"Boolean"}],"imports":{"JavaKeys":"io.github.libtmux.Keys"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Keys.kt","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-keys-equals"},{"id":"io.github.libtmux.kotlin.Keys.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.kotlin.Keys","signatures":[{"raw":"override fun hashCode(): Int","params":[],"returns":"Int"}],"imports":{"JavaKeys":"io.github.libtmux.Keys"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Keys.kt","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-keys-hashcode"},{"id":"io.github.libtmux.kotlin.Keys.toString","name":"toString","kind":"method","parent":"io.github.libtmux.kotlin.Keys","signatures":[{"raw":"override fun toString(): String","params":[],"returns":"String"}],"imports":{"JavaKeys":"io.github.libtmux.Keys"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Keys.kt","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-keys-tostring"},{"id":"io.github.libtmux.kotlin.MessageLog","name":"MessageLog","kind":"class","signatures":[{"raw":"public class MessageLog","params":[]}],"imports":{"JavaMessageLog":"io.github.libtmux.MessageLog"},"modifiers":[],"doc":{"summary":"The server's own message log, newest last.","body":"Holds the Java handle privately, so a member here always wins over a same-named catalog-generated\nextension in `MessageLogOperations.kt`."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/MessageLog.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-messagelog"},{"id":"io.github.libtmux.kotlin.MessageLog.server","name":"server","kind":"property","parent":"io.github.libtmux.kotlin.MessageLog","modifiers":[],"signatures":[{"raw":"public val server: Server","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/MessageLog.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-messagelog-server"},{"id":"io.github.libtmux.kotlin.MessageLog.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.kotlin.MessageLog","signatures":[{"raw":"public val asJava: JavaMessageLog","params":[],"returns":"JavaMessageLog"}],"imports":{"JavaMessageLog":"io.github.libtmux.MessageLog"},"modifiers":[],"doc":{"summary":"The Java message log this wraps: the same object, for a Java API that takes one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/MessageLog.kt","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-messagelog-asjava"},{"id":"io.github.libtmux.kotlin.MessageLog.equals","name":"equals","kind":"method","parent":"io.github.libtmux.kotlin.MessageLog","signatures":[{"raw":"override fun equals(other: Any?): Boolean","params":[{"name":"other","type":"Any?"}],"returns":"Boolean"}],"imports":{"JavaMessageLog":"io.github.libtmux.MessageLog"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/MessageLog.kt","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-messagelog-equals"},{"id":"io.github.libtmux.kotlin.MessageLog.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.kotlin.MessageLog","signatures":[{"raw":"override fun hashCode(): Int","params":[],"returns":"Int"}],"imports":{"JavaMessageLog":"io.github.libtmux.MessageLog"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/MessageLog.kt","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-messagelog-hashcode"},{"id":"io.github.libtmux.kotlin.MessageLog.toString","name":"toString","kind":"method","parent":"io.github.libtmux.kotlin.MessageLog","signatures":[{"raw":"override fun toString(): String","params":[],"returns":"String"}],"imports":{"JavaMessageLog":"io.github.libtmux.MessageLog"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/MessageLog.kt","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-messagelog-tostring"},{"id":"io.github.libtmux.kotlin.Options","name":"Options","kind":"class","signatures":[{"raw":"public class Options","params":[]}],"imports":{"OptionKey":"io.github.libtmux.OptionKey","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaOptions":"io.github.libtmux.Options"},"modifiers":[],"doc":{"summary":"Read and update options for the server, session, window, or pane that owns this handle.","body":"Holds the Java handle privately, so a member here always wins over a same-named catalog-generated\nextension in `OptionsOperations.kt`. `get`/`set` are hand-written in both overloads: a Kotlin member\nmakes every same-named extension unreachable regardless of its own parameter types, so the\n`OptionKey` overload cannot be added beside a generated `get(String)`/`set(String, String)`\nwithout also hand-writing those."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Options.kt","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-options"},{"id":"io.github.libtmux.kotlin.Options.server","name":"server","kind":"property","parent":"io.github.libtmux.kotlin.Options","modifiers":[],"signatures":[{"raw":"public val server: Server","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Options.kt","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-options-server"},{"id":"io.github.libtmux.kotlin.Options.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.kotlin.Options","signatures":[{"raw":"public val asJava: JavaOptions","params":[],"returns":"JavaOptions"}],"imports":{"OptionKey":"io.github.libtmux.OptionKey","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaOptions":"io.github.libtmux.Options"},"modifiers":[],"doc":{"summary":"The Java options this wraps: the same object, for a Java API that takes one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Options.kt","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-options-asjava"},{"id":"io.github.libtmux.kotlin.Options.get","name":"get","kind":"method","parent":"io.github.libtmux.kotlin.Options","signatures":[{"raw":"public suspend fun get(name: String): String?","params":[{"name":"name","type":"String"}],"returns":"String?","returnsDoc":"empty only when tmux does not know the option"},{"raw":"public suspend fun get(key: OptionKey): T?","params":[{"name":"key","type":"OptionKey"}],"returns":"T?","typeParams":["T"],"typeParameters":[{"name":"T","bound":"Any"}]}],"imports":{"OptionKey":"io.github.libtmux.OptionKey","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaOptions":"io.github.libtmux.Options"},"modifiers":["async","overload"],"doc":{"summary":"The value in effect at this scope, inherited from a parent scope when this one does not set it."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Options.kt","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-options-get"},{"id":"io.github.libtmux.kotlin.Options.set","name":"set","kind":"method","parent":"io.github.libtmux.kotlin.Options","signatures":[{"raw":"public suspend fun set(name: String, value: String)","params":[{"name":"name","type":"String"},{"name":"value","type":"String"}]},{"raw":"public suspend fun set(key: OptionKey, value: T)","params":[{"name":"key","type":"OptionKey"},{"name":"value","type":"T"}],"typeParams":["T"],"typeParameters":[{"name":"T","bound":"Any"}]}],"imports":{"OptionKey":"io.github.libtmux.OptionKey","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaOptions":"io.github.libtmux.Options"},"modifiers":["async","overload"],"doc":{"summary":"Sets one option at this scope."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Options.kt","line":34,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-options-set"},{"id":"io.github.libtmux.kotlin.Options.equals","name":"equals","kind":"method","parent":"io.github.libtmux.kotlin.Options","signatures":[{"raw":"override fun equals(other: Any?): Boolean","params":[{"name":"other","type":"Any?"}],"returns":"Boolean"}],"imports":{"OptionKey":"io.github.libtmux.OptionKey","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaOptions":"io.github.libtmux.Options"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Options.kt","line":43,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-options-equals"},{"id":"io.github.libtmux.kotlin.Options.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.kotlin.Options","signatures":[{"raw":"override fun hashCode(): Int","params":[],"returns":"Int"}],"imports":{"OptionKey":"io.github.libtmux.OptionKey","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaOptions":"io.github.libtmux.Options"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Options.kt","line":45,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-options-hashcode"},{"id":"io.github.libtmux.kotlin.Options.toString","name":"toString","kind":"method","parent":"io.github.libtmux.kotlin.Options","signatures":[{"raw":"override fun toString(): String","params":[],"returns":"String"}],"imports":{"OptionKey":"io.github.libtmux.OptionKey","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaOptions":"io.github.libtmux.Options"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Options.kt","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-options-tostring"},{"id":"io.github.libtmux.kotlin.Pane","name":"Pane","kind":"class","signatures":[{"raw":"public class Pane","params":[]}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"doc":{"summary":"A tmux pane, with operations for input, output, and layout.","body":"Holds the Java handle privately, so a member here always wins over a same-named catalog-generated\nextension in `PaneOperations.kt`. [Companion] hosts the generated query field namespace\n(`Pane.command`, `Pane.active`, ...)."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane"},{"id":"io.github.libtmux.kotlin.Pane.server","name":"server","kind":"property","parent":"io.github.libtmux.kotlin.Pane","modifiers":[],"signatures":[{"raw":"public val server: Server","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-server"},{"id":"io.github.libtmux.kotlin.Pane.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public val asJava: JavaPane","params":[],"returns":"JavaPane"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"doc":{"summary":"The Java pane this wraps: the same object, for a Java API that takes one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-asjava"},{"id":"io.github.libtmux.kotlin.Pane.id","name":"id","kind":"property","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public val id: PaneId","params":[],"returns":"PaneId"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"doc":{"summary":"The pane's stable id."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-id"},{"id":"io.github.libtmux.kotlin.Pane.index","name":"index","kind":"property","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public val index: Int","params":[],"returns":"Int"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"doc":{"summary":"The pane's position, which shifts as neighbours come and go."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-index"},{"id":"io.github.libtmux.kotlin.Pane.active","name":"active","kind":"property","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public val active: Boolean","params":[],"returns":"Boolean"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"doc":{"summary":"Whether this was its window's active pane when captured."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-active"},{"id":"io.github.libtmux.kotlin.Pane.currentCommand","name":"currentCommand","kind":"property","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public val currentCommand: String","params":[],"returns":"String"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"doc":{"summary":"The command tmux reported running here."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":41,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-currentcommand"},{"id":"io.github.libtmux.kotlin.Pane.floating","name":"floating","kind":"property","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public val floating: Boolean?","params":[],"returns":"Boolean?"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"doc":{"summary":"Whether this pane floats, or null when the running tmux cannot say."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":44,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-floating"},{"id":"io.github.libtmux.kotlin.Pane.size","name":"size","kind":"property","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public val size: Dimensions","params":[],"returns":"Dimensions"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"doc":{"summary":"How large the pane was when captured, in terminal cells."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-size"},{"id":"io.github.libtmux.kotlin.Pane.position","name":"position","kind":"property","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public val position: PanePosition","params":[],"returns":"PanePosition"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"doc":{"summary":"Where the pane's top-left corner sat in its window when captured, in terminal cells."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":50,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-position"},{"id":"io.github.libtmux.kotlin.Pane.title","name":"title","kind":"property","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public val title: String","params":[],"returns":"String"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"doc":{"summary":"The pane title, which a program running inside it can change."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":53,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-title"},{"id":"io.github.libtmux.kotlin.Pane.currentPath","name":"currentPath","kind":"property","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public val currentPath: Path","params":[],"returns":"Path"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"doc":{"summary":"The working directory tmux reported for the pane."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":56,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-currentpath"},{"id":"io.github.libtmux.kotlin.Pane.pid","name":"pid","kind":"property","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public val pid: Long?","params":[],"returns":"Long?"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"doc":{"summary":"The process id of the program running in the pane, captured at the time of the read."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":59,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-pid"},{"id":"io.github.libtmux.kotlin.Pane.edges","name":"edges","kind":"property","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public val edges: PaneEdges","params":[],"returns":"PaneEdges"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"doc":{"summary":"Which sides of its window the pane touches."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":62,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-edges"},{"id":"io.github.libtmux.kotlin.Pane.window","name":"window","kind":"property","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public val window: Window","params":[],"returns":"Window"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"doc":{"summary":"The window link this pane was reached through. A pure read of the capture."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":65,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-window"},{"id":"io.github.libtmux.kotlin.Pane.batch","name":"batch","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public fun batch(): Batch","params":[],"returns":"Batch"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"doc":{"summary":"Collects commands fenced to the server incarnation that produced this pane."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":68,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-batch"},{"id":"io.github.libtmux.kotlin.Pane.hooks","name":"hooks","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public fun hooks(): Hooks","params":[],"returns":"Hooks"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"doc":{"summary":"This pane's own hooks."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":71,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-hooks"},{"id":"io.github.libtmux.kotlin.Pane.options","name":"options","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public fun options(): Options","params":[],"returns":"Options"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"doc":{"summary":"This pane's own options."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":74,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-options"},{"id":"io.github.libtmux.kotlin.Pane.awaitText","name":"awaitText","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun awaitText(\n text: String,\n timeout: Duration,\n every: Duration = 50.milliseconds,\n dispatcher: CoroutineDispatcher = Dispatchers.IO,\n ): TextOutcome","params":[{"name":"text","type":"String"},{"name":"timeout","type":"Duration","doc":"how long to keep looking, finite and not negative"},{"name":"every","type":"Duration","default":"50.milliseconds","doc":"how long to leave between looks, at least 10 ms"},{"name":"dispatcher","type":"CoroutineDispatcher","default":"Dispatchers.IO","doc":"where the blocking wait runs"}],"returns":"TextOutcome","returnsDoc":"why the wait ended"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":["async"],"doc":{"summary":"Waits until [text] shows in this pane.","body":"Cancelling the coroutine interrupts the wait. That is not a timeout, and it does not stop a\nprogram already running in the pane.","examples":[{"lang":"console","intro":"Send input and wait for output before capturing the pane. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/build.gradle.kts","code":"plugins {\n kotlin(\"jvm\") version \"2.4.10\"\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-kotlin:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\nkotlin { jvmToolchain(25) }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"kotlin","intro":"Save this complete program as src/main/kotlin/Capture.kt. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/kotlin/io/github/libtmux/examples/api/kotlin/Capture.kt","code":"package io.github.libtmux.examples.api.kotlin\n\nimport io.github.libtmux.ServerConfig\nimport io.github.libtmux.ServerEndpoint\nimport io.github.libtmux.SessionSpec\nimport io.github.libtmux.TextOutcome\nimport io.github.libtmux.kotlin.*\nimport java.nio.file.Path\nimport kotlin.system.exitProcess\nimport kotlinx.coroutines.runBlocking\nimport kotlin.time.Duration.Companion.seconds\n\n/** Send input and wait for output before capturing the pane. */\nfun main(args: Array) {\n try {\n require(args.size == 3) { \"expected: tmux-binary socket-path config-file\" }\n val config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build()\n runBlocking {\n withServer(config) { server ->\n val session = server.newSession(\n SessionSpec.builder().named(\"api-capture\").running(\"/bin/sh\").build()\n )\n val pane = session.windows.first().panes.first()\n pane.sendKeys(listOf(\"printf 'api-%s\\\\n' keys\", \"Enter\"))\n check(pane.awaitText(\"api-keys\", timeout = 5.seconds) != TextOutcome.TIMED_OUT) {\n \"timed out waiting for keys output\"\n }\n pane.sendLine(\"printf 'api-%s\\\\n' line\")\n check(pane.awaitText(\"api-line\", timeout = 5.seconds) != TextOutcome.TIMED_OUT) {\n \"timed out waiting for line output\"\n }\n val lines = pane.capture()\n for (expected in listOf(\"api-keys\", \"api-line\")) {\n check(lines.any { it.trim() == expected }) { \"capture is missing $expected\" }\n println(expected)\n }\n }\n }\n } catch (error: Exception) {\n if (error is InterruptedException) Thread.currentThread().interrupt()\n System.err.println(\"Example failed: ${error.message}\")\n exitProcess(1)\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.kotlin.CaptureKt && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"api-keys\napi-line\n"}]},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":87,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-awaittext"},{"id":"io.github.libtmux.kotlin.Pane.await","name":"await","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun await(\n timeout: Duration,\n every: Duration = 50.milliseconds,\n dispatcher: CoroutineDispatcher = Dispatchers.IO,\n settled: (Pane) -> Boolean,\n ): WakeReason","params":[{"name":"timeout","type":"Duration","doc":"how long to keep looking, finite and not negative"},{"name":"every","type":"Duration","default":"50.milliseconds","doc":"how long to leave between looks, at least 10 ms"},{"name":"dispatcher","type":"CoroutineDispatcher","default":"Dispatchers.IO","doc":"where the blocking wait runs"},{"name":"settled","type":"(Pane) -> Boolean"}],"returns":"WakeReason","returnsDoc":"why the wait ended"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":["async"],"doc":{"summary":"Waits until [settled] accepts this pane, read fresh from tmux before each test.","body":"Cancelling the coroutine interrupts the wait. That is not a timeout. A read already sent to\ntmux is not taken back."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":106,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-await"},{"id":"io.github.libtmux.kotlin.Pane.run","name":"run","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun run(\n command: String,\n timeout: Duration,\n dispatcher: CoroutineDispatcher = Dispatchers.IO,\n ): PaneRun","params":[{"name":"command","type":"String","doc":"a line of shell, run as `eval` would run it"},{"name":"timeout","type":"Duration","doc":"how long to wait for it to end"},{"name":"dispatcher","type":"CoroutineDispatcher","default":"Dispatchers.IO","doc":"where the blocking wait runs"}],"returns":"PaneRun","returnsDoc":"the command's exit status and what it printed"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":["async"],"doc":{"summary":"Runs a shell command in this pane to its end, and answers with its exit status and output.","body":"Cancelling the coroutine interrupts the wait. The command keeps running in the pane; only the\nwait for its end is what cancellation reaches."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":127,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-run"},{"id":"io.github.libtmux.kotlin.Pane.equals","name":"equals","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"override fun equals(other: Any?): Boolean","params":[{"name":"other","type":"Any?"}],"returns":"Boolean"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":133,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-equals"},{"id":"io.github.libtmux.kotlin.Pane.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"override fun hashCode(): Int","params":[],"returns":"Int"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":135,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-hashcode"},{"id":"io.github.libtmux.kotlin.Pane.toString","name":"toString","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"override fun toString(): String","params":[],"returns":"String"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":137,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-tostring"},{"id":"io.github.libtmux.kotlin.Pane.Companion","name":"Companion","kind":"module","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public companion object","params":[]}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","PaneEdges":"io.github.libtmux.PaneEdges","PaneId":"io.github.libtmux.PaneId","PaneRun":"io.github.libtmux.PaneRun","PanePosition":"io.github.libtmux.PanePosition","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason","Path":"java.nio.file.Path","Duration":"kotlin.time.Duration","milliseconds":"kotlin.time.Duration.Companion.milliseconds","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt","line":139,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-companion"},{"id":"io.github.libtmux.kotlin.Prompt","name":"Prompt","kind":"class","signatures":[{"raw":"public class Prompt","params":[]}],"imports":{"JavaPrompt":"io.github.libtmux.Prompt"},"modifiers":[],"doc":{"summary":"The server's command-prompt history.","body":"Holds the Java handle privately, so a member here always wins over a same-named catalog-generated\nextension in `PromptOperations.kt`."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Prompt.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-prompt"},{"id":"io.github.libtmux.kotlin.Prompt.server","name":"server","kind":"property","parent":"io.github.libtmux.kotlin.Prompt","modifiers":[],"signatures":[{"raw":"public val server: Server","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Prompt.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-prompt-server"},{"id":"io.github.libtmux.kotlin.Prompt.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.kotlin.Prompt","signatures":[{"raw":"public val asJava: JavaPrompt","params":[],"returns":"JavaPrompt"}],"imports":{"JavaPrompt":"io.github.libtmux.Prompt"},"modifiers":[],"doc":{"summary":"The Java prompt this wraps: the same object, for a Java API that takes one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Prompt.kt","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-prompt-asjava"},{"id":"io.github.libtmux.kotlin.Prompt.equals","name":"equals","kind":"method","parent":"io.github.libtmux.kotlin.Prompt","signatures":[{"raw":"override fun equals(other: Any?): Boolean","params":[{"name":"other","type":"Any?"}],"returns":"Boolean"}],"imports":{"JavaPrompt":"io.github.libtmux.Prompt"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Prompt.kt","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-prompt-equals"},{"id":"io.github.libtmux.kotlin.Prompt.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.kotlin.Prompt","signatures":[{"raw":"override fun hashCode(): Int","params":[],"returns":"Int"}],"imports":{"JavaPrompt":"io.github.libtmux.Prompt"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Prompt.kt","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-prompt-hashcode"},{"id":"io.github.libtmux.kotlin.Prompt.toString","name":"toString","kind":"method","parent":"io.github.libtmux.kotlin.Prompt","signatures":[{"raw":"override fun toString(): String","params":[],"returns":"String"}],"imports":{"JavaPrompt":"io.github.libtmux.Prompt"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Prompt.kt","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-prompt-tostring"},{"id":"io.github.libtmux.kotlin.retryIfSafe","name":"retryIfSafe","kind":"function","signatures":[{"raw":"public suspend fun retryIfSafe(times: Int = 1, block: suspend () -> T): T","params":[{"name":"times","type":"Int","default":"1"},{"name":"block","type":"suspend"}],"returns":"T","typeParams":["T"],"typeParameters":[{"name":"T"}]}],"imports":{"DispatchException":"io.github.libtmux.exception.DispatchException"},"modifiers":["async"],"doc":{"summary":"Retries [block] up to [times] more times after a [DispatchException] whose [DispatchException.safeToRetry] says the exact same request can be sent again.","body":"No retry executor lives in this library: [DispatchException.safeToRetry] is computed by the\noperation that threw it from its own catalogued idempotence, so this needs no per-call lookup and\ncomposes with any retry library a caller already uses instead of replacing it."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Retry.kt","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-retryifsafe"},{"id":"io.github.libtmux.kotlin.withServer","name":"withServer","kind":"function","signatures":[{"raw":"public suspend fun withServer(\n config: ServerConfig,\n policy: ExecutionPolicy = ExecutionPolicy.default(config),\n block: suspend (Server) -> R,\n): R","params":[{"name":"config","type":"ServerConfig"},{"name":"policy","type":"ExecutionPolicy","default":"ExecutionPolicy.default(config)"},{"name":"block","type":"suspend"}],"returns":"R","typeParams":["R"],"typeParameters":[{"name":"R"}]}],"imports":{"ServerConfig":"io.github.libtmux.ServerConfig","Duration":"kotlin.time.Duration","toKotlinDuration":"kotlin.time.toKotlinDuration","NonCancellable":"kotlinx.coroutines.NonCancellable","withContext":"kotlinx.coroutines.withContext"},"modifiers":["async"],"doc":{"summary":"Opens a [Server], runs [block], and closes it — even if [block] throws or is cancelled.","body":"The rule this follows, stated once: the scope that acquired a Java `AutoCloseable` is the only\nthing that closes it. [close][Server.close] runs with [NonCancellable] so a cancelled [block]\nstill releases the transport's threads.","examples":[{"lang":"console","intro":"Connect to a private tmux server. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/build.gradle.kts","code":"plugins {\n kotlin(\"jvm\") version \"2.4.10\"\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-kotlin:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\nkotlin { jvmToolchain(25) }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"kotlin","intro":"Save this complete program as src/main/kotlin/Connect.kt. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/kotlin/io/github/libtmux/examples/api/kotlin/Connect.kt","code":"package io.github.libtmux.examples.api.kotlin\n\nimport io.github.libtmux.ServerConfig\nimport io.github.libtmux.ServerEndpoint\nimport io.github.libtmux.kotlin.*\nimport java.nio.file.Path\nimport kotlin.system.exitProcess\nimport kotlinx.coroutines.runBlocking\n\n/** Connect to a private tmux server. */\nfun main(args: Array) {\n try {\n require(args.size == 3) { \"expected: tmux-binary socket-path config-file\" }\n val config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build()\n runBlocking {\n withServer(config) { server ->\n println(\"connected=${server.isAlive()}\")\n }\n }\n } catch (error: Exception) {\n if (error is InterruptedException) Thread.currentThread().interrupt()\n System.err.println(\"Example failed: ${error.message}\")\n exitProcess(1)\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.kotlin.ConnectKt && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"connected=true\n"}]},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Scopes.kt","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-withserver"},{"id":"io.github.libtmux.kotlin.withControl","name":"withControl","kind":"function","signatures":[{"raw":"public suspend fun withControl(\n server: Server,\n session: Session,\n timeout: Duration = server.config.defaultTimeout().toKotlinDuration(),\n block: suspend (ControlClient) -> R,\n): R","params":[{"name":"server","type":"Server"},{"name":"session","type":"Session"},{"name":"timeout","type":"Duration","default":"server.config.defaultTimeout().toKotlinDuration()"},{"name":"block","type":"suspend"}],"returns":"R","typeParams":["R"],"typeParameters":[{"name":"R"}]}],"imports":{"ServerConfig":"io.github.libtmux.ServerConfig","Duration":"kotlin.time.Duration","toKotlinDuration":"kotlin.time.toKotlinDuration","NonCancellable":"kotlinx.coroutines.NonCancellable","withContext":"kotlinx.coroutines.withContext"},"modifiers":["async"],"doc":{"summary":"As [withServer], for a [ControlClient] attached through [server]."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Scopes.kt","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-withcontrol"},{"id":"io.github.libtmux.kotlin.Server","name":"Server","kind":"class","signatures":[{"raw":"public class Server : AutoCloseable","params":[],"returns":"AutoCloseable"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"Manages sessions, windows, and panes on a tmux server.","body":"Use [open] with a [ServerConfig] to select a server by socket name or path. From this object,\ncreate sessions or query the server's existing sessions, windows, and panes. Each [Session]\ncontains windows, and each [Window] contains panes.\n\nOperations that contact tmux are `suspend` functions dispatched through [policy]. Call [close]\nafter the last operation to release resources owned by this object. The tmux server and its\nsessions keep running.\n\n[asJava] exposes the underlying [JavaServer] for interoperability. Both objects share the same\nresources, so closing either closes both.","examples":[{"lang":"console","intro":"Connect to a private tmux server. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/build.gradle.kts","code":"plugins {\n kotlin(\"jvm\") version \"2.4.10\"\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-kotlin:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\nkotlin { jvmToolchain(25) }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"kotlin","intro":"Save this complete program as src/main/kotlin/Connect.kt. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/kotlin/io/github/libtmux/examples/api/kotlin/Connect.kt","code":"package io.github.libtmux.examples.api.kotlin\n\nimport io.github.libtmux.ServerConfig\nimport io.github.libtmux.ServerEndpoint\nimport io.github.libtmux.kotlin.*\nimport java.nio.file.Path\nimport kotlin.system.exitProcess\nimport kotlinx.coroutines.runBlocking\n\n/** Connect to a private tmux server. */\nfun main(args: Array) {\n try {\n require(args.size == 3) { \"expected: tmux-binary socket-path config-file\" }\n val config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build()\n runBlocking {\n withServer(config) { server ->\n println(\"connected=${server.isAlive()}\")\n }\n }\n } catch (error: Exception) {\n if (error is InterruptedException) Thread.currentThread().interrupt()\n System.err.println(\"Example failed: ${error.message}\")\n exitProcess(1)\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.kotlin.ConnectKt && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"connected=true\n"}]},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server"},{"id":"io.github.libtmux.kotlin.Server.policy","name":"policy","kind":"property","parent":"io.github.libtmux.kotlin.Server","modifiers":[],"signatures":[{"raw":"public val policy: ExecutionPolicy","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":34,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-policy"},{"id":"io.github.libtmux.kotlin.Server.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public val asJava: JavaServer","params":[],"returns":"JavaServer"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"The Java server this wraps, for an operation this class does not mirror or a Java API that takes one. The same object, not a copy: closing either closes both."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":41,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-asjava"},{"id":"io.github.libtmux.kotlin.Server.config","name":"config","kind":"property","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public val config: ServerConfig","params":[],"returns":"ServerConfig"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"How this server was configured."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":44,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-config"},{"id":"io.github.libtmux.kotlin.Server.identity","name":"identity","kind":"property","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public val identity: ServerIdentity","params":[],"returns":"ServerIdentity"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"Which server this is. Every handle taken from it is scoped by this."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-identity"},{"id":"io.github.libtmux.kotlin.Server.admissionBound","name":"admissionBound","kind":"property","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public val admissionBound: Int","params":[],"returns":"Int"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"How many tmux commands this server's transport runs at once, from [ExecutionPolicy.default]."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":50,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-admissionbound"},{"id":"io.github.libtmux.kotlin.Server.batch","name":"batch","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public fun batch(): Batch","params":[],"returns":"Batch"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"Collects several commands to run in one tmux invocation."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":53,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-batch"},{"id":"io.github.libtmux.kotlin.Server.chain","name":"chain","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public fun chain(): CommandChain","params":[],"returns":"CommandChain"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"Starts a chain of commands where each one acts on what the last one made."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":56,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-chain"},{"id":"io.github.libtmux.kotlin.Server.shell","name":"shell","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public fun shell(): Shell","params":[],"returns":"Shell"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"Shell commands run by tmux, and tmux commands chosen by a shell exit status."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":59,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-shell"},{"id":"io.github.libtmux.kotlin.Server.commands","name":"commands","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public fun commands(): Commands","params":[],"returns":"Commands"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"The commands this tmux knows."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":62,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-commands"},{"id":"io.github.libtmux.kotlin.Server.messageLog","name":"messageLog","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public fun messageLog(): MessageLog","params":[],"returns":"MessageLog"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"The server's message log."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":65,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-messagelog"},{"id":"io.github.libtmux.kotlin.Server.prompt","name":"prompt","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public fun prompt(): Prompt","params":[],"returns":"Prompt"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"The command prompt's history."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":68,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-prompt"},{"id":"io.github.libtmux.kotlin.Server.channel","name":"channel","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public fun channel(name: String): Channel","params":[{"name":"name","type":"String"}],"returns":"Channel"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"One of this server's wait-for channels, which is where a signal is sent and waited for."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":71,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-channel"},{"id":"io.github.libtmux.kotlin.Server.keys","name":"keys","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public fun keys(): Keys","params":[],"returns":"Keys"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"The server's key bindings: `prefix` when binding, every table when listing."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":74,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-keys"},{"id":"io.github.libtmux.kotlin.Server.buffers","name":"buffers","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public fun buffers(): Buffers","params":[],"returns":"Buffers"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"The server's paste buffers, which every session shares."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":77,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-buffers"},{"id":"io.github.libtmux.kotlin.Server.options","name":"options","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public fun options(): Options","params":[],"returns":"Options"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"The server-wide options, the ones tmux keeps once per server."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":80,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-options"},{"id":"io.github.libtmux.kotlin.Server.globalOptions","name":"globalOptions","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public fun globalOptions(): Options","params":[],"returns":"Options"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"The global session options every session inherits unless it sets its own."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":83,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-globaloptions"},{"id":"io.github.libtmux.kotlin.Server.environment","name":"environment","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public fun environment(): Environment","params":[],"returns":"Environment"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"The server's environment, which every session inherits and every new process is given."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":86,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-environment"},{"id":"io.github.libtmux.kotlin.Server.hooks","name":"hooks","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public fun hooks(): Hooks","params":[],"returns":"Hooks"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"The global hooks every session inherits."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":89,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-hooks"},{"id":"io.github.libtmux.kotlin.Server.session","name":"session","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun session(expression: FilterExpr): Session","params":[{"name":"expression","type":"FilterExpr"}],"returns":"Session","raises":[{"type":"CardinalityException.NoMatch","doc":"if nothing matched"},{"type":"CardinalityException.MultipleMatches","doc":"if more than one session matched"}]},{"raw":"public suspend fun Server.session(name: String): Session?","params":[{"name":"name","type":"String"}],"returns":"Session?","receiver":{"name":"this","type":"Server"}},{"raw":"public suspend fun Server.session(id: SessionId): Session?","params":[{"name":"id","type":"SessionId"}],"returns":"Session?","receiver":{"name":"this","type":"Server"}}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":["async","overload"],"doc":{"summary":"The one session this expression matches, captured now."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":97,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-session"},{"id":"io.github.libtmux.kotlin.Server.sessionOrNull","name":"sessionOrNull","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun sessionOrNull(expression: FilterExpr): Session?","params":[{"name":"expression","type":"FilterExpr"}],"returns":"Session?"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":["async"],"doc":{"summary":"The one session this expression matches, or null when none does."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":102,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-sessionornull"},{"id":"io.github.libtmux.kotlin.Server.window","name":"window","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun window(expression: FilterExpr): Window","params":[{"name":"expression","type":"FilterExpr"}],"returns":"Window","raises":[{"type":"CardinalityException.NoMatch","doc":"if nothing matched"},{"type":"CardinalityException.MultipleMatches","doc":"if more than one link matched"}]},{"raw":"public suspend fun Server.window(context: WindowContext): Window?","params":[{"name":"context","type":"WindowContext"}],"returns":"Window?","receiver":{"name":"this","type":"Server"}}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":["async","overload"],"doc":{"summary":"The one window link this expression matches, captured now."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":113,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-window"},{"id":"io.github.libtmux.kotlin.Server.windowOrNull","name":"windowOrNull","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun windowOrNull(expression: FilterExpr): Window?","params":[{"name":"expression","type":"FilterExpr"}],"returns":"Window?"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":["async"],"doc":{"summary":"The one window link this expression matches, or null when none does."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":118,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-windowornull"},{"id":"io.github.libtmux.kotlin.Server.pane","name":"pane","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun pane(expression: FilterExpr): Pane","params":[{"name":"expression","type":"FilterExpr"}],"returns":"Pane","raises":[{"type":"CardinalityException.NoMatch","doc":"if nothing matched"},{"type":"CardinalityException.MultipleMatches","doc":"if more than one pane matched"}]},{"raw":"public suspend fun Server.pane(id: PaneId): Pane?","params":[{"name":"id","type":"PaneId"}],"returns":"Pane?","receiver":{"name":"this","type":"Server"}}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":["async","overload"],"doc":{"summary":"The one pane this expression matches, captured now."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":129,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-pane"},{"id":"io.github.libtmux.kotlin.Server.paneOrNull","name":"paneOrNull","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun paneOrNull(expression: FilterExpr): Pane?","params":[{"name":"expression","type":"FilterExpr"}],"returns":"Pane?"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":["async"],"doc":{"summary":"The one pane this expression matches, or null when none does."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":133,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-paneornull"},{"id":"io.github.libtmux.kotlin.Server.control","name":"control","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun control(\n session: Session,\n timeout: Duration = config.defaultTimeout().toKotlinDuration(),\n ): ControlClient","params":[{"name":"session","type":"Session"},{"name":"timeout","type":"Duration","default":"config.defaultTimeout().toKotlinDuration()","doc":"how long to wait for the client to become ready"}],"returns":"ControlClient"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":["async"],"doc":{"summary":"Attaches a control client to this session's server, and only to the process this capture named."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":144,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-control"},{"id":"io.github.libtmux.kotlin.Server.close","name":"close","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"override fun close()","params":[]}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"Releases an owned transport. Idempotent, and never kills tmux."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":163,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-close"},{"id":"io.github.libtmux.kotlin.Server.Companion","name":"Companion","kind":"module","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public companion object","params":[]}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":167,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-companion"},{"id":"io.github.libtmux.kotlin.Server.Companion.open","name":"open","kind":"method","parent":"io.github.libtmux.kotlin.Server.Companion","signatures":[{"raw":"public suspend fun open(\n config: ServerConfig,\n policy: ExecutionPolicy = ExecutionPolicy.default(config),\n ): Server","params":[{"name":"config","type":"ServerConfig"},{"name":"policy","type":"ExecutionPolicy","default":"ExecutionPolicy.default(config)"}],"returns":"Server"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":["async"],"doc":{"summary":"A server over a transport it owns and closes.","examples":[{"lang":"console","intro":"Connect to a private tmux server. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/build.gradle.kts","code":"plugins {\n kotlin(\"jvm\") version \"2.4.10\"\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-kotlin:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\nkotlin { jvmToolchain(25) }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"kotlin","intro":"Save this complete program as src/main/kotlin/Connect.kt. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/kotlin/io/github/libtmux/examples/api/kotlin/Connect.kt","code":"package io.github.libtmux.examples.api.kotlin\n\nimport io.github.libtmux.ServerConfig\nimport io.github.libtmux.ServerEndpoint\nimport io.github.libtmux.kotlin.*\nimport java.nio.file.Path\nimport kotlin.system.exitProcess\nimport kotlinx.coroutines.runBlocking\n\n/** Connect to a private tmux server. */\nfun main(args: Array) {\n try {\n require(args.size == 3) { \"expected: tmux-binary socket-path config-file\" }\n val config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build()\n runBlocking {\n withServer(config) { server ->\n println(\"connected=${server.isAlive()}\")\n }\n }\n } catch (error: Exception) {\n if (error is InterruptedException) Thread.currentThread().interrupt()\n System.err.println(\"Example failed: ${error.message}\")\n exitProcess(1)\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.kotlin.ConnectKt && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"connected=true\n"}]},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":170,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-companion-open"},{"id":"io.github.libtmux.kotlin.Server.Companion.fromJava","name":"fromJava","kind":"method","parent":"io.github.libtmux.kotlin.Server.Companion","signatures":[{"raw":"public fun fromJava(\n server: JavaServer,\n policy: ExecutionPolicy = ExecutionPolicy.default(server.config()),\n ): Server","params":[{"name":"server","type":"JavaServer"},{"name":"policy","type":"ExecutionPolicy","default":"ExecutionPolicy.default(server.config())"}],"returns":"Server"}],"imports":{"Channel":"io.github.libtmux.Channel","ServerConfig":"io.github.libtmux.ServerConfig","ServerIdentity":"io.github.libtmux.ServerIdentity","CardinalityException":"io.github.libtmux.exception.CardinalityException","DispatchException":"io.github.libtmux.exception.DispatchException","FilterExpr":"io.github.libtmux.query.FilterExpr","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","runInterruptible":"kotlinx.coroutines.runInterruptible","JavaPane":"io.github.libtmux.Pane","JavaServer":"io.github.libtmux.Server","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"A wrapper over a server opened in Java, such as a test fixture's. It takes the server as it is: closing the wrapper closes it."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt","line":179,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-companion-fromjava"},{"id":"io.github.libtmux.kotlin.Session","name":"Session","kind":"class","signatures":[{"raw":"public class Session","params":[]}],"imports":{"SessionId":"io.github.libtmux.SessionId","JavaSession":"io.github.libtmux.Session"},"modifiers":[],"doc":{"summary":"A tmux session and its captured windows and properties.","body":"Holds the Java handle privately, so a member here always wins over a same-named catalog-generated\nextension in `SessionOperations.kt`. [Companion] hosts the generated query field namespace\n(`Session.name`, `Session.attached`, ...)."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Session.kt","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session"},{"id":"io.github.libtmux.kotlin.Session.server","name":"server","kind":"property","parent":"io.github.libtmux.kotlin.Session","modifiers":[],"signatures":[{"raw":"public val server: Server","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Session.kt","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-server"},{"id":"io.github.libtmux.kotlin.Session.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public val asJava: JavaSession","params":[],"returns":"JavaSession"}],"imports":{"SessionId":"io.github.libtmux.SessionId","JavaSession":"io.github.libtmux.Session"},"modifiers":[],"doc":{"summary":"The Java session this wraps: the same object, for a Java API that takes one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Session.kt","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-asjava"},{"id":"io.github.libtmux.kotlin.Session.id","name":"id","kind":"property","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public val id: SessionId","params":[],"returns":"SessionId"}],"imports":{"SessionId":"io.github.libtmux.SessionId","JavaSession":"io.github.libtmux.Session"},"modifiers":[],"doc":{"summary":"The session's stable id."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Session.kt","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-id"},{"id":"io.github.libtmux.kotlin.Session.name","name":"name","kind":"property","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public val name: String","params":[],"returns":"String"}],"imports":{"SessionId":"io.github.libtmux.SessionId","JavaSession":"io.github.libtmux.Session"},"modifiers":[],"doc":{"summary":"The session name, which a user may change at any time."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Session.kt","line":22,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-name"},{"id":"io.github.libtmux.kotlin.Session.attached","name":"attached","kind":"property","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public val attached: Boolean","params":[],"returns":"Boolean"}],"imports":{"SessionId":"io.github.libtmux.SessionId","JavaSession":"io.github.libtmux.Session"},"modifiers":[],"doc":{"summary":"Whether a client was attached when this was captured."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Session.kt","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-attached"},{"id":"io.github.libtmux.kotlin.Session.activeWindow","name":"activeWindow","kind":"property","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public val activeWindow: Window?","params":[],"returns":"Window?"}],"imports":{"SessionId":"io.github.libtmux.SessionId","JavaSession":"io.github.libtmux.Session"},"modifiers":[],"doc":{"summary":"The window tmux had active in this session. A pure read of the capture."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Session.kt","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-activewindow"},{"id":"io.github.libtmux.kotlin.Session.activePane","name":"activePane","kind":"property","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public val activePane: Pane?","params":[],"returns":"Pane?"}],"imports":{"SessionId":"io.github.libtmux.SessionId","JavaSession":"io.github.libtmux.Session"},"modifiers":[],"doc":{"summary":"The active pane of the active window. A pure read of the capture."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Session.kt","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-activepane"},{"id":"io.github.libtmux.kotlin.Session.windows","name":"windows","kind":"property","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public val windows: List","params":[],"returns":"List"}],"imports":{"SessionId":"io.github.libtmux.SessionId","JavaSession":"io.github.libtmux.Session"},"modifiers":[],"doc":{"summary":"This session's windows, in tmux's order. A pure read of the capture.","examples":[{"lang":"console","intro":"List all windows, then the windows captured for one session. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/build.gradle.kts","code":"plugins {\n kotlin(\"jvm\") version \"2.4.10\"\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-kotlin:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\nkotlin { jvmToolchain(25) }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"kotlin","intro":"Save this complete program as src/main/kotlin/ListWindows.kt. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/kotlin/io/github/libtmux/examples/api/kotlin/ListWindows.kt","code":"package io.github.libtmux.examples.api.kotlin\n\nimport io.github.libtmux.ServerConfig\nimport io.github.libtmux.ServerEndpoint\nimport io.github.libtmux.kotlin.*\nimport io.github.libtmux.kotlin.query.name\nimport java.nio.file.Path\nimport kotlin.system.exitProcess\nimport kotlinx.coroutines.runBlocking\n\n/** List all windows, then the windows captured for one session. */\nfun main(args: Array) {\n try {\n require(args.size == 3) { \"expected: tmux-binary socket-path config-file\" }\n val config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build()\n runBlocking {\n withServer(config) { server ->\n println(\"windows=\" + server.windows().map { it.name }.sorted().joinToString(\",\"))\n val session = server.session(Session.name eq \"work-one\")\n println(\"session-windows=\" + session.windows.map { it.name }.sorted().joinToString(\",\"))\n }\n }\n } catch (error: Exception) {\n if (error is InterruptedException) Thread.currentThread().interrupt()\n System.err.println(\"Example failed: ${error.message}\")\n exitProcess(1)\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.kotlin.ListWindowsKt && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"windows=editor,editor,logs\nsession-windows=editor,logs\n"}]},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Session.kt","line":34,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-windows"},{"id":"io.github.libtmux.kotlin.Session.options","name":"options","kind":"method","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public fun options(): Options","params":[],"returns":"Options"}],"imports":{"SessionId":"io.github.libtmux.SessionId","JavaSession":"io.github.libtmux.Session"},"modifiers":[],"doc":{"summary":"This session's own options."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Session.kt","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-options"},{"id":"io.github.libtmux.kotlin.Session.environment","name":"environment","kind":"method","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public fun environment(): Environment","params":[],"returns":"Environment"}],"imports":{"SessionId":"io.github.libtmux.SessionId","JavaSession":"io.github.libtmux.Session"},"modifiers":[],"doc":{"summary":"This session's own environment, which a process started in it is given on top of the server's."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Session.kt","line":40,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-environment"},{"id":"io.github.libtmux.kotlin.Session.hooks","name":"hooks","kind":"method","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public fun hooks(): Hooks","params":[],"returns":"Hooks"}],"imports":{"SessionId":"io.github.libtmux.SessionId","JavaSession":"io.github.libtmux.Session"},"modifiers":[],"doc":{"summary":"This session's own hooks."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Session.kt","line":43,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-hooks"},{"id":"io.github.libtmux.kotlin.Session.equals","name":"equals","kind":"method","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"override fun equals(other: Any?): Boolean","params":[{"name":"other","type":"Any?"}],"returns":"Boolean"}],"imports":{"SessionId":"io.github.libtmux.SessionId","JavaSession":"io.github.libtmux.Session"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Session.kt","line":45,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-equals"},{"id":"io.github.libtmux.kotlin.Session.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"override fun hashCode(): Int","params":[],"returns":"Int"}],"imports":{"SessionId":"io.github.libtmux.SessionId","JavaSession":"io.github.libtmux.Session"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Session.kt","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-hashcode"},{"id":"io.github.libtmux.kotlin.Session.toString","name":"toString","kind":"method","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"override fun toString(): String","params":[],"returns":"String"}],"imports":{"SessionId":"io.github.libtmux.SessionId","JavaSession":"io.github.libtmux.Session"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Session.kt","line":49,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-tostring"},{"id":"io.github.libtmux.kotlin.Session.Companion","name":"Companion","kind":"module","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public companion object","params":[]}],"imports":{"SessionId":"io.github.libtmux.SessionId","JavaSession":"io.github.libtmux.Session"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Session.kt","line":51,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-companion"},{"id":"io.github.libtmux.kotlin.Shell","name":"Shell","kind":"class","signatures":[{"raw":"public class Shell","params":[]}],"imports":{"JavaShell":"io.github.libtmux.Shell"},"modifiers":[],"doc":{"summary":"A shell command run by tmux, and a tmux command chosen by a shell command's exit status.","body":"Holds the Java handle privately, so a member here always wins over a same-named catalog-generated\nextension in `ShellOperations.kt`."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Shell.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-shell"},{"id":"io.github.libtmux.kotlin.Shell.server","name":"server","kind":"property","parent":"io.github.libtmux.kotlin.Shell","modifiers":[],"signatures":[{"raw":"public val server: Server","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Shell.kt","line":11,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-shell-server"},{"id":"io.github.libtmux.kotlin.Shell.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.kotlin.Shell","signatures":[{"raw":"public val asJava: JavaShell","params":[],"returns":"JavaShell"}],"imports":{"JavaShell":"io.github.libtmux.Shell"},"modifiers":[],"doc":{"summary":"The Java shell this wraps: the same object, for a Java API that takes one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Shell.kt","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-shell-asjava"},{"id":"io.github.libtmux.kotlin.Shell.equals","name":"equals","kind":"method","parent":"io.github.libtmux.kotlin.Shell","signatures":[{"raw":"override fun equals(other: Any?): Boolean","params":[{"name":"other","type":"Any?"}],"returns":"Boolean"}],"imports":{"JavaShell":"io.github.libtmux.Shell"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Shell.kt","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-shell-equals"},{"id":"io.github.libtmux.kotlin.Shell.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.kotlin.Shell","signatures":[{"raw":"override fun hashCode(): Int","params":[],"returns":"Int"}],"imports":{"JavaShell":"io.github.libtmux.Shell"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Shell.kt","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-shell-hashcode"},{"id":"io.github.libtmux.kotlin.Shell.toString","name":"toString","kind":"method","parent":"io.github.libtmux.kotlin.Shell","signatures":[{"raw":"override fun toString(): String","params":[],"returns":"String"}],"imports":{"JavaShell":"io.github.libtmux.Shell"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Shell.kt","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-shell-tostring"},{"id":"io.github.libtmux.kotlin.Window","name":"Window","kind":"class","signatures":[{"raw":"public class Window","params":[]}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"A tmux window at a specific position in a session.","body":"Holds the Java handle privately, so a member here always wins over a same-named catalog-generated\nextension in `WindowOperations.kt`. [Companion] hosts the generated query field namespace."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window"},{"id":"io.github.libtmux.kotlin.Window.server","name":"server","kind":"property","parent":"io.github.libtmux.kotlin.Window","modifiers":[],"signatures":[{"raw":"public val server: Server","params":[]}],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-server"},{"id":"io.github.libtmux.kotlin.Window.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public val asJava: JavaWindow","params":[],"returns":"JavaWindow"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"The Java window this wraps: the same object, for a Java API that takes one."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-asjava"},{"id":"io.github.libtmux.kotlin.Window.id","name":"id","kind":"property","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public val id: WindowId","params":[],"returns":"WindowId"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"The underlying window, shared by every link to it."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":22,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-id"},{"id":"io.github.libtmux.kotlin.Window.index","name":"index","kind":"property","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public val index: WindowIndex","params":[],"returns":"WindowIndex"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"Where this link sits in its session."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-index"},{"id":"io.github.libtmux.kotlin.Window.context","name":"context","kind":"property","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public val context: WindowContext","params":[],"returns":"WindowContext"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"The winlink this handle addresses."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-context"},{"id":"io.github.libtmux.kotlin.Window.name","name":"name","kind":"property","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public val name: String","params":[],"returns":"String"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"The window name."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-name"},{"id":"io.github.libtmux.kotlin.Window.active","name":"active","kind":"property","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public val active: Boolean","params":[],"returns":"Boolean"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"Whether this was its session's active window when captured."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":34,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-active"},{"id":"io.github.libtmux.kotlin.Window.linked","name":"linked","kind":"property","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public val linked: Boolean","params":[],"returns":"Boolean"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"Whether the underlying window is linked into more than one session."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-linked"},{"id":"io.github.libtmux.kotlin.Window.size","name":"size","kind":"property","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public val size: Dimensions","params":[],"returns":"Dimensions"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"How large the window was when captured, in terminal cells."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":40,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-size"},{"id":"io.github.libtmux.kotlin.Window.layout","name":"layout","kind":"property","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public val layout: WindowLayout","params":[],"returns":"WindowLayout"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"tmux's own layout for this window, in whichever form this server writes it."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":43,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-layout"},{"id":"io.github.libtmux.kotlin.Window.activePane","name":"activePane","kind":"property","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public val activePane: Pane?","params":[],"returns":"Pane?"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"The pane tmux had active here. A pure read of the capture."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":46,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-activepane"},{"id":"io.github.libtmux.kotlin.Window.session","name":"session","kind":"property","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public val session: Session","params":[],"returns":"Session"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"The session this link belongs to. A pure read of the capture."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":49,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-session"},{"id":"io.github.libtmux.kotlin.Window.panes","name":"panes","kind":"property","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public val panes: List","params":[],"returns":"List"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"This link's panes, in tmux's order. A pure read of the capture.","examples":[{"lang":"console","intro":"List all panes, then the panes captured for one window. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/build.gradle.kts","code":"plugins {\n kotlin(\"jvm\") version \"2.4.10\"\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-kotlin:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\nkotlin { jvmToolchain(25) }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"kotlin","intro":"Save this complete program as src/main/kotlin/ListPanes.kt. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/kotlin/io/github/libtmux/examples/api/kotlin/ListPanes.kt","code":"package io.github.libtmux.examples.api.kotlin\n\nimport io.github.libtmux.ServerConfig\nimport io.github.libtmux.ServerEndpoint\nimport io.github.libtmux.kotlin.*\nimport io.github.libtmux.kotlin.query.name\nimport java.nio.file.Path\nimport kotlin.system.exitProcess\nimport kotlinx.coroutines.runBlocking\n\n/** List all panes, then the panes captured for one window. */\nfun main(args: Array) {\n try {\n require(args.size == 3) { \"expected: tmux-binary socket-path config-file\" }\n val config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build()\n runBlocking {\n withServer(config) { server ->\n println(\"panes=${server.panes().size}\")\n val session = server.session(Session.name eq \"work-one\")\n val window = session.windows.single { it.name == \"editor\" }\n println(\"window-panes=${window.panes.size}\")\n }\n }\n } catch (error: Exception) {\n if (error is InterruptedException) Thread.currentThread().interrupt()\n System.err.println(\"Example failed: ${error.message}\")\n exitProcess(1)\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.kotlin.ListPanesKt && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"panes=4\nwindow-panes=2\n"}]},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":52,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-panes"},{"id":"io.github.libtmux.kotlin.Window.hooks","name":"hooks","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public fun hooks(): Hooks","params":[],"returns":"Hooks"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"This window's own hooks, which every link to it shares."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":55,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-hooks"},{"id":"io.github.libtmux.kotlin.Window.options","name":"options","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public fun options(): Options","params":[],"returns":"Options"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"This window's own options, which every link to it shares."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":58,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-options"},{"id":"io.github.libtmux.kotlin.Window.equals","name":"equals","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"override fun equals(other: Any?): Boolean","params":[{"name":"other","type":"Any?"}],"returns":"Boolean"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":60,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-equals"},{"id":"io.github.libtmux.kotlin.Window.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"override fun hashCode(): Int","params":[],"returns":"Int"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":62,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-hashcode"},{"id":"io.github.libtmux.kotlin.Window.toString","name":"toString","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"override fun toString(): String","params":[],"returns":"String"}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":64,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-tostring"},{"id":"io.github.libtmux.kotlin.Window.Companion","name":"Companion","kind":"module","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public companion object","params":[]}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","WindowId":"io.github.libtmux.WindowId","WindowIndex":"io.github.libtmux.WindowIndex","WindowLayout":"io.github.libtmux.WindowLayout","WindowContext":"io.github.libtmux.snapshot.WindowContext","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Window.kt","line":66,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-companion"},{"id":"io.github.libtmux.kotlin.query.TextField","name":"TextField","kind":"class","signatures":[{"raw":"@JvmInline\npublic value class TextField","params":[],"typeParams":["T"],"typeParameters":[{"name":"T","bound":"Any"}]}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"doc":{"summary":"Kotlin-idiomatic wrappers over [Fields]' typed field handles, each holding the Java handle it wraps. A value class, so this costs nothing beyond the Java object it already holds — the same choice [io.github.libtmux.kotlin.Server]'s live handles reject, made here on purpose: a field handle carries exactly one property, which is what makes the boxing tradeoff free."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-textfield"},{"id":"io.github.libtmux.kotlin.query.TextField.eq","name":"eq","kind":"method","parent":"io.github.libtmux.kotlin.query.TextField","signatures":[{"raw":"public infix fun eq(value: String): FilterExpr","params":[{"name":"value","type":"String"}],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-textfield-eq"},{"id":"io.github.libtmux.kotlin.query.TextField.ne","name":"ne","kind":"method","parent":"io.github.libtmux.kotlin.query.TextField","signatures":[{"raw":"public infix fun ne(value: String): FilterExpr","params":[{"name":"value","type":"String"}],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-textfield-ne"},{"id":"io.github.libtmux.kotlin.query.TextField.startsWith","name":"startsWith","kind":"method","parent":"io.github.libtmux.kotlin.query.TextField","signatures":[{"raw":"public infix fun startsWith(value: String): FilterExpr","params":[{"name":"value","type":"String"}],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-textfield-startswith"},{"id":"io.github.libtmux.kotlin.query.TextField.endsWith","name":"endsWith","kind":"method","parent":"io.github.libtmux.kotlin.query.TextField","signatures":[{"raw":"public infix fun endsWith(value: String): FilterExpr","params":[{"name":"value","type":"String"}],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-textfield-endswith"},{"id":"io.github.libtmux.kotlin.query.TextField.contains","name":"contains","kind":"method","parent":"io.github.libtmux.kotlin.query.TextField","signatures":[{"raw":"public infix fun contains(value: String): FilterExpr","params":[{"name":"value","type":"String"}],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-textfield-contains"},{"id":"io.github.libtmux.kotlin.query.TextField.matches","name":"matches","kind":"method","parent":"io.github.libtmux.kotlin.query.TextField","signatures":[{"raw":"public infix fun matches(pattern: Pattern): FilterExpr","params":[{"name":"pattern","type":"Pattern"}],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-textfield-matches"},{"id":"io.github.libtmux.kotlin.query.TextField.oneOf","name":"oneOf","kind":"method","parent":"io.github.libtmux.kotlin.query.TextField","signatures":[{"raw":"public infix fun oneOf(values: Collection): FilterExpr","params":[{"name":"values","type":"Collection"}],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-textfield-oneof"},{"id":"io.github.libtmux.kotlin.query.NumberField","name":"NumberField","kind":"class","signatures":[{"raw":"@JvmInline\npublic value class NumberField","params":[],"typeParams":["T"],"typeParameters":[{"name":"T","bound":"Any"}]}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"doc":{"summary":"Build numeric comparisons for a captured tmux field."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-numberfield"},{"id":"io.github.libtmux.kotlin.query.NumberField.eq","name":"eq","kind":"method","parent":"io.github.libtmux.kotlin.query.NumberField","signatures":[{"raw":"public infix fun eq(value: Int): FilterExpr","params":[{"name":"value","type":"Int"}],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-numberfield-eq"},{"id":"io.github.libtmux.kotlin.query.NumberField.ne","name":"ne","kind":"method","parent":"io.github.libtmux.kotlin.query.NumberField","signatures":[{"raw":"public infix fun ne(value: Int): FilterExpr","params":[{"name":"value","type":"Int"}],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-numberfield-ne"},{"id":"io.github.libtmux.kotlin.query.NumberField.lessThan","name":"lessThan","kind":"method","parent":"io.github.libtmux.kotlin.query.NumberField","signatures":[{"raw":"public infix fun lessThan(value: Int): FilterExpr","params":[{"name":"value","type":"Int"}],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-numberfield-lessthan"},{"id":"io.github.libtmux.kotlin.query.NumberField.atMost","name":"atMost","kind":"method","parent":"io.github.libtmux.kotlin.query.NumberField","signatures":[{"raw":"public infix fun atMost(value: Int): FilterExpr","params":[{"name":"value","type":"Int"}],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-numberfield-atmost"},{"id":"io.github.libtmux.kotlin.query.NumberField.greaterThan","name":"greaterThan","kind":"method","parent":"io.github.libtmux.kotlin.query.NumberField","signatures":[{"raw":"public infix fun greaterThan(value: Int): FilterExpr","params":[{"name":"value","type":"Int"}],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-numberfield-greaterthan"},{"id":"io.github.libtmux.kotlin.query.NumberField.atLeast","name":"atLeast","kind":"method","parent":"io.github.libtmux.kotlin.query.NumberField","signatures":[{"raw":"public infix fun atLeast(value: Int): FilterExpr","params":[{"name":"value","type":"Int"}],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-numberfield-atleast"},{"id":"io.github.libtmux.kotlin.query.FlagField","name":"FlagField","kind":"class","signatures":[{"raw":"@JvmInline\npublic value class FlagField","params":[],"typeParams":["T"],"typeParameters":[{"name":"T","bound":"Any"}]}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"doc":{"summary":"Match a captured boolean field against true or false."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-flagfield"},{"id":"io.github.libtmux.kotlin.query.FlagField.isTrue","name":"isTrue","kind":"method","parent":"io.github.libtmux.kotlin.query.FlagField","signatures":[{"raw":"public fun isTrue(): FilterExpr","params":[],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-flagfield-istrue"},{"id":"io.github.libtmux.kotlin.query.FlagField.isFalse","name":"isFalse","kind":"method","parent":"io.github.libtmux.kotlin.query.FlagField","signatures":[{"raw":"public fun isFalse(): FilterExpr","params":[],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":39,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-flagfield-isfalse"},{"id":"io.github.libtmux.kotlin.query.ToManyField","name":"ToManyField","kind":"class","signatures":[{"raw":"@JvmInline\npublic value class ToManyField","params":[],"typeParams":["T","R"],"typeParameters":[{"name":"T","bound":"Any"},{"name":"R","bound":"Any"}]}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"doc":{"summary":"Match an object by the captured children related to it."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":43,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-tomanyfield"},{"id":"io.github.libtmux.kotlin.query.ToManyField.any","name":"any","kind":"method","parent":"io.github.libtmux.kotlin.query.ToManyField","signatures":[{"raw":"public infix fun any(predicate: FilterExpr): FilterExpr","params":[{"name":"predicate","type":"FilterExpr"}],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":45,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-tomanyfield-any"},{"id":"io.github.libtmux.kotlin.query.ToManyField.all","name":"all","kind":"method","parent":"io.github.libtmux.kotlin.query.ToManyField","signatures":[{"raw":"public infix fun all(predicate: FilterExpr): FilterExpr","params":[{"name":"predicate","type":"FilterExpr"}],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":46,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-tomanyfield-all"},{"id":"io.github.libtmux.kotlin.query.ToManyField.none","name":"none","kind":"method","parent":"io.github.libtmux.kotlin.query.ToManyField","signatures":[{"raw":"public infix fun none(predicate: FilterExpr): FilterExpr","params":[{"name":"predicate","type":"FilterExpr"}],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-tomanyfield-none"},{"id":"io.github.libtmux.kotlin.query.ToOneField","name":"ToOneField","kind":"class","signatures":[{"raw":"@JvmInline\npublic value class ToOneField","params":[],"typeParams":["T","R"],"typeParameters":[{"name":"T","bound":"Any"},{"name":"R","bound":"Any"}]}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"doc":{"summary":"Match an object by one captured related object."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":51,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-toonefield"},{"id":"io.github.libtmux.kotlin.query.ToOneField.matching","name":"matching","kind":"method","parent":"io.github.libtmux.kotlin.query.ToOneField","signatures":[{"raw":"public infix fun matching(predicate: FilterExpr): FilterExpr","params":[{"name":"predicate","type":"FilterExpr"}],"returns":"FilterExpr"}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","Fields":"io.github.libtmux.query.Fields","Pattern":"java.util.regex.Pattern"},"modifiers":[],"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/query/Fields.kt","line":53,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-query-toonefield-matching"},{"id":"io.github.libtmux.kotlin.Batch.run","name":"run","kind":"method","parent":"io.github.libtmux.kotlin.Batch","signatures":[{"raw":"public suspend fun Batch.run(): BatchResult","params":[],"returns":"BatchResult","receiver":{"name":"this","type":"Batch"}}],"imports":{"BatchResult":"io.github.libtmux.batch.BatchResult","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Runs every collected operation in one tmux invocation."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/BatchOperations.kt","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-batch-run"},{"id":"io.github.libtmux.kotlin.Buffers.delete","name":"delete","kind":"method","parent":"io.github.libtmux.kotlin.Buffers","signatures":[{"raw":"public suspend fun Buffers.delete(name: String): Unit","params":[{"name":"name","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Buffers"}}],"imports":{"BufferInfo":"io.github.libtmux.BufferInfo","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Removes a buffer by its exact name."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/BuffersOperations.kt","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-buffers-delete"},{"id":"io.github.libtmux.kotlin.Buffers.list","name":"list","kind":"method","parent":"io.github.libtmux.kotlin.Buffers","signatures":[{"raw":"public suspend fun Buffers.list(): List","params":[],"returns":"List","receiver":{"name":"this","type":"Buffers"}}],"imports":{"BufferInfo":"io.github.libtmux.BufferInfo","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Captures every buffer the server holds, in tmux's order."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/BuffersOperations.kt","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-buffers-list"},{"id":"io.github.libtmux.kotlin.Buffers.load","name":"load","kind":"method","parent":"io.github.libtmux.kotlin.Buffers","signatures":[{"raw":"public suspend fun Buffers.load(name: String, `file`: Path): Unit","params":[{"name":"name","type":"String"},{"name":"`file`","type":"Path"}],"returns":"Unit","receiver":{"name":"this","type":"Buffers"}}],"imports":{"BufferInfo":"io.github.libtmux.BufferInfo","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Reads a file into a named buffer."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/BuffersOperations.kt","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-buffers-load"},{"id":"io.github.libtmux.kotlin.Buffers.save","name":"save","kind":"method","parent":"io.github.libtmux.kotlin.Buffers","signatures":[{"raw":"public suspend fun Buffers.save(name: String, `file`: Path): Unit","params":[{"name":"name","type":"String"},{"name":"`file`","type":"Path"}],"returns":"Unit","receiver":{"name":"this","type":"Buffers"}}],"imports":{"BufferInfo":"io.github.libtmux.BufferInfo","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Writes a buffer's contents to a file."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/BuffersOperations.kt","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-buffers-save"},{"id":"io.github.libtmux.kotlin.Buffers.`set`","name":"`set`","kind":"method","parent":"io.github.libtmux.kotlin.Buffers","signatures":[{"raw":"public suspend fun Buffers.`set`(name: String, contents: String): Unit","params":[{"name":"name","type":"String"},{"name":"contents","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Buffers"}}],"imports":{"BufferInfo":"io.github.libtmux.BufferInfo","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Puts text in a named buffer, replacing whatever was there."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/BuffersOperations.kt","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-buffers-set"},{"id":"io.github.libtmux.kotlin.Buffers.show","name":"show","kind":"method","parent":"io.github.libtmux.kotlin.Buffers","signatures":[{"raw":"public suspend fun Buffers.show(name: String): String","params":[{"name":"name","type":"String"}],"returns":"String","receiver":{"name":"this","type":"Buffers"}}],"imports":{"BufferInfo":"io.github.libtmux.BufferInfo","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"What a buffer holds, without any line breaks it ends with."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/BuffersOperations.kt","line":41,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-buffers-show"},{"id":"io.github.libtmux.kotlin.Client.detach","name":"detach","kind":"method","parent":"io.github.libtmux.kotlin.Client","signatures":[{"raw":"public suspend fun Client.detach(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Client"}}],"imports":{"ClientAttachment":"io.github.libtmux.ClientAttachment","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Detaches this client, leaving whatever it was attached to running."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ClientOperations.kt","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client-detach"},{"id":"io.github.libtmux.kotlin.Client.detachOthers","name":"detachOthers","kind":"method","parent":"io.github.libtmux.kotlin.Client","signatures":[{"raw":"public suspend fun Client.detachOthers(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Client"}}],"imports":{"ClientAttachment":"io.github.libtmux.ClientAttachment","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Detaches every other client, leaving this one attached."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ClientOperations.kt","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client-detachothers"},{"id":"io.github.libtmux.kotlin.Client.fetchAttachment","name":"fetchAttachment","kind":"method","parent":"io.github.libtmux.kotlin.Client","signatures":[{"raw":"public suspend fun Client.fetchAttachment(): ClientAttachment?","params":[],"returns":"ClientAttachment?","receiver":{"name":"this","type":"Client"}}],"imports":{"ClientAttachment":"io.github.libtmux.ClientAttachment","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Takes a new capture and returns what this client is looking at now."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ClientOperations.kt","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client-fetchattachment"},{"id":"io.github.libtmux.kotlin.Client.redraw","name":"redraw","kind":"method","parent":"io.github.libtmux.kotlin.Client","signatures":[{"raw":"public suspend fun Client.redraw(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Client"}}],"imports":{"ClientAttachment":"io.github.libtmux.ClientAttachment","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Asks tmux to redraw this client."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ClientOperations.kt","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client-redraw"},{"id":"io.github.libtmux.kotlin.Client.refresh","name":"refresh","kind":"method","parent":"io.github.libtmux.kotlin.Client","signatures":[{"raw":"public suspend fun Client.refresh(): Client","params":[],"returns":"Client","receiver":{"name":"this","type":"Client"}}],"imports":{"ClientAttachment":"io.github.libtmux.ClientAttachment","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Takes a new capture and returns this client as it is now."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ClientOperations.kt","line":33,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client-refresh"},{"id":"io.github.libtmux.kotlin.Client.switchTo","name":"switchTo","kind":"method","parent":"io.github.libtmux.kotlin.Client","signatures":[{"raw":"public suspend fun Client.switchTo(session: Session): Unit","params":[{"name":"session","type":"Session"}],"returns":"Unit","receiver":{"name":"this","type":"Client"}}],"imports":{"ClientAttachment":"io.github.libtmux.ClientAttachment","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Moves this client to another session."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ClientOperations.kt","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client-switchto"},{"id":"io.github.libtmux.kotlin.CommandChain.arrange","name":"arrange","kind":"method","parent":"io.github.libtmux.kotlin.CommandChain","signatures":[{"raw":"public suspend fun CommandChain.arrange(layout: String): CommandChain","params":[{"name":"layout","type":"String"}],"returns":"CommandChain","receiver":{"name":"this","type":"CommandChain"}}],"imports":{"BatchResult":"io.github.libtmux.batch.BatchResult","String":"kotlin.String","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Arranges the current window."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/CommandChainOperations.kt","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commandchain-arrange"},{"id":"io.github.libtmux.kotlin.CommandChain.run","name":"run","kind":"method","parent":"io.github.libtmux.kotlin.CommandChain","signatures":[{"raw":"public suspend fun CommandChain.run(): BatchResult","params":[],"returns":"BatchResult","receiver":{"name":"this","type":"CommandChain"}}],"imports":{"BatchResult":"io.github.libtmux.batch.BatchResult","String":"kotlin.String","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Runs the whole chain in one tmux invocation, attributing each step."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/CommandChainOperations.kt","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commandchain-run"},{"id":"io.github.libtmux.kotlin.Commands.list","name":"list","kind":"method","parent":"io.github.libtmux.kotlin.Commands","signatures":[{"raw":"public suspend fun Commands.list(): List","params":[],"returns":"List","receiver":{"name":"this","type":"Commands"}}],"imports":{"String":"kotlin.String","List":"kotlin.collections.List","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Every command, as tmux prints it."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/CommandsOperations.kt","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-commands-list"},{"id":"io.github.libtmux.kotlin.ControlClient.send","name":"send","kind":"method","parent":"io.github.libtmux.kotlin.ControlClient","signatures":[{"raw":"public suspend fun ControlClient.send(vararg argv: String): ControlReply","params":[{"name":"argv","type":"String"}],"returns":"ControlReply","receiver":{"name":"this","type":"ControlClient"}},{"raw":"public suspend fun ControlClient.send(argv: List): ControlReply","params":[{"name":"argv","type":"List"}],"returns":"ControlReply","receiver":{"name":"this","type":"ControlClient"}},{"raw":"public suspend fun ControlClient.send(argv: List, timeout: Duration): ControlReply","params":[{"name":"argv","type":"List"},{"name":"timeout","type":"Duration"}],"returns":"ControlReply","receiver":{"name":"this","type":"ControlClient"}}],"imports":{"ControlReply":"io.github.libtmux.control.ControlReply","String":"kotlin.String","List":"kotlin.collections.List","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Runs one command and waits for its reply."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ControlClientOperations.kt","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-controlclient-send"},{"id":"io.github.libtmux.kotlin.ControlClient.unwatch","name":"unwatch","kind":"method","parent":"io.github.libtmux.kotlin.ControlClient","signatures":[{"raw":"public suspend fun ControlClient.unwatch(name: String): ControlReply","params":[{"name":"name","type":"String"}],"returns":"ControlReply","receiver":{"name":"this","type":"ControlClient"}}],"imports":{"ControlReply":"io.github.libtmux.control.ControlReply","String":"kotlin.String","List":"kotlin.collections.List","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Stops a watch."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ControlClientOperations.kt","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-controlclient-unwatch"},{"id":"io.github.libtmux.kotlin.ControlClient.watch","name":"watch","kind":"method","parent":"io.github.libtmux.kotlin.ControlClient","signatures":[{"raw":"public suspend fun ControlClient.watch(\n name: String,\n target: String,\n format: String,\n): ControlReply","params":[{"name":"name","type":"String"},{"name":"target","type":"String"},{"name":"format","type":"String"}],"returns":"ControlReply","receiver":{"name":"this","type":"ControlClient"}}],"imports":{"ControlReply":"io.github.libtmux.control.ControlReply","String":"kotlin.String","List":"kotlin.collections.List","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Asks tmux to report a format whenever its value changes."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ControlClientOperations.kt","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-controlclient-watch"},{"id":"io.github.libtmux.kotlin.Environment.all","name":"all","kind":"method","parent":"io.github.libtmux.kotlin.Environment","signatures":[{"raw":"public suspend fun Environment.all(): Map","params":[],"returns":"Map","receiver":{"name":"this","type":"Environment"}}],"imports":{"Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","Map":"kotlin.collections.Map","Set":"kotlin.collections.Set","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Every name set at this scope, in tmux's order."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/EnvironmentOperations.kt","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-environment-all"},{"id":"io.github.libtmux.kotlin.Environment.effective","name":"effective","kind":"method","parent":"io.github.libtmux.kotlin.Environment","signatures":[{"raw":"public suspend fun Environment.effective(): Map","params":[],"returns":"Map","receiver":{"name":"this","type":"Environment"}}],"imports":{"Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","Map":"kotlin.collections.Map","Set":"kotlin.collections.Set","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"What a process started from this scope is actually handed, both scopes taken together."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/EnvironmentOperations.kt","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-environment-effective"},{"id":"io.github.libtmux.kotlin.Environment.`get`","name":"`get`","kind":"method","parent":"io.github.libtmux.kotlin.Environment","signatures":[{"raw":"public suspend fun Environment.`get`(name: String): String?","params":[{"name":"name","type":"String"}],"returns":"String?","receiver":{"name":"this","type":"Environment"}}],"imports":{"Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","Map":"kotlin.collections.Map","Set":"kotlin.collections.Set","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"The value set for this name, or empty when it is removed or absent."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/EnvironmentOperations.kt","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-environment-get"},{"id":"io.github.libtmux.kotlin.Environment.isRemoved","name":"isRemoved","kind":"method","parent":"io.github.libtmux.kotlin.Environment","signatures":[{"raw":"public suspend fun Environment.isRemoved(name: String): Boolean","params":[{"name":"name","type":"String"}],"returns":"Boolean","receiver":{"name":"this","type":"Environment"}}],"imports":{"Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","Map":"kotlin.collections.Map","Set":"kotlin.collections.Set","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Whether new processes are told not to inherit this name."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/EnvironmentOperations.kt","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-environment-isremoved"},{"id":"io.github.libtmux.kotlin.Environment.remove","name":"remove","kind":"method","parent":"io.github.libtmux.kotlin.Environment","signatures":[{"raw":"public suspend fun Environment.remove(name: String): Unit","params":[{"name":"name","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Environment"}}],"imports":{"Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","Map":"kotlin.collections.Map","Set":"kotlin.collections.Set","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Tells processes started after this not to inherit the name."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/EnvironmentOperations.kt","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-environment-remove"},{"id":"io.github.libtmux.kotlin.Environment.removed","name":"removed","kind":"method","parent":"io.github.libtmux.kotlin.Environment","signatures":[{"raw":"public suspend fun Environment.removed(): Set","params":[],"returns":"Set","receiver":{"name":"this","type":"Environment"}}],"imports":{"Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","Map":"kotlin.collections.Map","Set":"kotlin.collections.Set","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Every name this scope tells a new process not to inherit."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/EnvironmentOperations.kt","line":41,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-environment-removed"},{"id":"io.github.libtmux.kotlin.Environment.`set`","name":"`set`","kind":"method","parent":"io.github.libtmux.kotlin.Environment","signatures":[{"raw":"public suspend fun Environment.`set`(name: String, `value`: String): Unit","params":[{"name":"name","type":"String"},{"name":"`value`","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Environment"}}],"imports":{"Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","Map":"kotlin.collections.Map","Set":"kotlin.collections.Set","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Sets a name to a literal value."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/EnvironmentOperations.kt","line":46,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-environment-set"},{"id":"io.github.libtmux.kotlin.Environment.setExpanded","name":"setExpanded","kind":"method","parent":"io.github.libtmux.kotlin.Environment","signatures":[{"raw":"public suspend fun Environment.setExpanded(name: String, format: String): Unit","params":[{"name":"name","type":"String"},{"name":"format","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Environment"}}],"imports":{"Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","Map":"kotlin.collections.Map","Set":"kotlin.collections.Set","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Sets a name to what a tmux format expands to now."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/EnvironmentOperations.kt","line":51,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-environment-setexpanded"},{"id":"io.github.libtmux.kotlin.Environment.unset","name":"unset","kind":"method","parent":"io.github.libtmux.kotlin.Environment","signatures":[{"raw":"public suspend fun Environment.unset(name: String): Unit","params":[{"name":"name","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Environment"}}],"imports":{"Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","Map":"kotlin.collections.Map","Set":"kotlin.collections.Set","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Removes the name from this scope, so it is neither set nor marked."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/EnvironmentOperations.kt","line":56,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-environment-unset"},{"id":"io.github.libtmux.kotlin.Hooks.all","name":"all","kind":"method","parent":"io.github.libtmux.kotlin.Hooks","signatures":[{"raw":"public suspend fun Hooks.all(): Map>","params":[],"returns":"Map>","receiver":{"name":"this","type":"Hooks"}}],"imports":{"String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Every hook at this scope, keyed by event, each with its commands in the order tmux runs them."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/HooksOperations.kt","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-hooks-all"},{"id":"io.github.libtmux.kotlin.Hooks.append","name":"append","kind":"method","parent":"io.github.libtmux.kotlin.Hooks","signatures":[{"raw":"public suspend fun Hooks.append(event: String, command: List): Unit","params":[{"name":"event","type":"String"},{"name":"command","type":"List"}],"returns":"Unit","receiver":{"name":"this","type":"Hooks"}},{"raw":"public suspend fun Hooks.append(event: String, command: String): Unit","params":[{"name":"event","type":"String"},{"name":"command","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Hooks"}}],"imports":{"String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"As [.append(String, String)], with the command as words."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/HooksOperations.kt","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-hooks-append"},{"id":"io.github.libtmux.kotlin.Hooks.run","name":"run","kind":"method","parent":"io.github.libtmux.kotlin.Hooks","signatures":[{"raw":"public suspend fun Hooks.run(event: String): Unit","params":[{"name":"event","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Hooks"}}],"imports":{"String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Runs what is bound to an event now, without waiting for the event."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/HooksOperations.kt","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-hooks-run"},{"id":"io.github.libtmux.kotlin.Hooks.`set`","name":"`set`","kind":"method","parent":"io.github.libtmux.kotlin.Hooks","signatures":[{"raw":"public suspend fun Hooks.`set`(event: String, command: String): Unit","params":[{"name":"event","type":"String"},{"name":"command","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Hooks"}},{"raw":"public suspend fun Hooks.`set`(event: String, command: List): Unit","params":[{"name":"event","type":"String"},{"name":"command","type":"List"}],"returns":"Unit","receiver":{"name":"this","type":"Hooks"}}],"imports":{"String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Binds a tmux command to an event at this scope, replacing anything already bound to it."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/HooksOperations.kt","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-hooks-set"},{"id":"io.github.libtmux.kotlin.Hooks.unset","name":"unset","kind":"method","parent":"io.github.libtmux.kotlin.Hooks","signatures":[{"raw":"public suspend fun Hooks.unset(event: String): Unit","params":[{"name":"event","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Hooks"}}],"imports":{"String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Removes everything bound to an event at this scope."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/HooksOperations.kt","line":45,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-hooks-unset"},{"id":"io.github.libtmux.kotlin.Keys.bind","name":"bind","kind":"method","parent":"io.github.libtmux.kotlin.Keys","signatures":[{"raw":"public suspend fun Keys.bind(key: String, command: List): Unit","params":[{"name":"key","type":"String"},{"name":"command","type":"List"}],"returns":"Unit","receiver":{"name":"this","type":"Keys"}}],"imports":{"String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Binds a key to a tmux command, given as its words."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/KeysOperations.kt","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-keys-bind"},{"id":"io.github.libtmux.kotlin.Keys.list","name":"list","kind":"method","parent":"io.github.libtmux.kotlin.Keys","signatures":[{"raw":"public suspend fun Keys.list(): List","params":[],"returns":"List","receiver":{"name":"this","type":"Keys"}}],"imports":{"String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"The bindings as tmux lists them, one per line."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/KeysOperations.kt","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-keys-list"},{"id":"io.github.libtmux.kotlin.Keys.unbind","name":"unbind","kind":"method","parent":"io.github.libtmux.kotlin.Keys","signatures":[{"raw":"public suspend fun Keys.unbind(key: String): Unit","params":[{"name":"key","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Keys"}}],"imports":{"String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Removes a key's binding."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/KeysOperations.kt","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-keys-unbind"},{"id":"io.github.libtmux.kotlin.MessageLog.lines","name":"lines","kind":"method","parent":"io.github.libtmux.kotlin.MessageLog","signatures":[{"raw":"public suspend fun MessageLog.lines(): List","params":[],"returns":"List","receiver":{"name":"this","type":"MessageLog"}}],"imports":{"String":"kotlin.String","List":"kotlin.collections.List","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"The log lines."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/MessageLogOperations.kt","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-messagelog-lines"},{"id":"io.github.libtmux.kotlin.Options.all","name":"all","kind":"method","parent":"io.github.libtmux.kotlin.Options","signatures":[{"raw":"public suspend fun Options.all(): Map","params":[],"returns":"Map","receiver":{"name":"this","type":"Options"}}],"imports":{"Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Every option set at this scope, in tmux's order."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/OptionsOperations.kt","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-options-all"},{"id":"io.github.libtmux.kotlin.Options.append","name":"append","kind":"method","parent":"io.github.libtmux.kotlin.Options","signatures":[{"raw":"public suspend fun Options.append(name: String, suffix: String): Unit","params":[{"name":"name","type":"String"},{"name":"suffix","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Options"}}],"imports":{"Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Adds to the end of a string option, rather than replacing it."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/OptionsOperations.kt","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-options-append"},{"id":"io.github.libtmux.kotlin.Options.effective","name":"effective","kind":"method","parent":"io.github.libtmux.kotlin.Options","signatures":[{"raw":"public suspend fun Options.effective(): Map","params":[],"returns":"Map","receiver":{"name":"this","type":"Options"}}],"imports":{"Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Every option tmux lists at this scope, including inherited built-in values."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/OptionsOperations.kt","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-options-effective"},{"id":"io.github.libtmux.kotlin.Options.setExpanded","name":"setExpanded","kind":"method","parent":"io.github.libtmux.kotlin.Options","signatures":[{"raw":"public suspend fun Options.setExpanded(name: String, format: String): Unit","params":[{"name":"name","type":"String"},{"name":"format","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Options"}}],"imports":{"Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Sets one option to what a tmux format comes to, rather than to the format itself."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/OptionsOperations.kt","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-options-setexpanded"},{"id":"io.github.libtmux.kotlin.Options.setIfAbsent","name":"setIfAbsent","kind":"method","parent":"io.github.libtmux.kotlin.Options","signatures":[{"raw":"public suspend fun Options.setIfAbsent(name: String, `value`: String): Boolean","params":[{"name":"name","type":"String"},{"name":"`value`","type":"String"}],"returns":"Boolean","receiver":{"name":"this","type":"Options"}}],"imports":{"Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Sets one option only if this scope does not already set it."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/OptionsOperations.kt","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-options-setifabsent"},{"id":"io.github.libtmux.kotlin.Options.unset","name":"unset","kind":"method","parent":"io.github.libtmux.kotlin.Options","signatures":[{"raw":"public suspend fun Options.unset(name: String): Unit","params":[{"name":"name","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Options"}}],"imports":{"Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Removes one option at this scope, so it falls back to whatever it inherits."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/OptionsOperations.kt","line":40,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-options-unset"},{"id":"io.github.libtmux.kotlin.Pane.breakOut","name":"breakOut","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.breakOut(): Window","params":[],"returns":"Window","receiver":{"name":"this","type":"Pane"}},{"raw":"public suspend fun Pane.breakOut(windowName: String): Window","params":[{"name":"windowName","type":"String"}],"returns":"Window","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Moves this pane into a window of its own, leaving tmux to name it."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-breakout"},{"id":"io.github.libtmux.kotlin.Pane.capture","name":"capture","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.capture(): List","params":[],"returns":"List","receiver":{"name":"this","type":"Pane"}},{"raw":"public suspend fun Pane.capture(spec: CaptureSpec): List","params":[{"name":"spec","type":"CaptureSpec"}],"returns":"List","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"This pane's visible content, one element per line.","examples":[{"lang":"console","intro":"Send input and wait for output before capturing the pane. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/build.gradle.kts","code":"plugins {\n kotlin(\"jvm\") version \"2.4.10\"\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-kotlin:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\nkotlin { jvmToolchain(25) }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"kotlin","intro":"Save this complete program as src/main/kotlin/Capture.kt. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/kotlin/io/github/libtmux/examples/api/kotlin/Capture.kt","code":"package io.github.libtmux.examples.api.kotlin\n\nimport io.github.libtmux.ServerConfig\nimport io.github.libtmux.ServerEndpoint\nimport io.github.libtmux.SessionSpec\nimport io.github.libtmux.TextOutcome\nimport io.github.libtmux.kotlin.*\nimport java.nio.file.Path\nimport kotlin.system.exitProcess\nimport kotlinx.coroutines.runBlocking\nimport kotlin.time.Duration.Companion.seconds\n\n/** Send input and wait for output before capturing the pane. */\nfun main(args: Array) {\n try {\n require(args.size == 3) { \"expected: tmux-binary socket-path config-file\" }\n val config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build()\n runBlocking {\n withServer(config) { server ->\n val session = server.newSession(\n SessionSpec.builder().named(\"api-capture\").running(\"/bin/sh\").build()\n )\n val pane = session.windows.first().panes.first()\n pane.sendKeys(listOf(\"printf 'api-%s\\\\n' keys\", \"Enter\"))\n check(pane.awaitText(\"api-keys\", timeout = 5.seconds) != TextOutcome.TIMED_OUT) {\n \"timed out waiting for keys output\"\n }\n pane.sendLine(\"printf 'api-%s\\\\n' line\")\n check(pane.awaitText(\"api-line\", timeout = 5.seconds) != TextOutcome.TIMED_OUT) {\n \"timed out waiting for line output\"\n }\n val lines = pane.capture()\n for (expected in listOf(\"api-keys\", \"api-line\")) {\n check(lines.any { it.trim() == expected }) { \"capture is missing $expected\" }\n println(expected)\n }\n }\n }\n } catch (error: Exception) {\n if (error is InterruptedException) Thread.currentThread().interrupt()\n System.err.println(\"Example failed: ${error.message}\")\n exitProcess(1)\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.kotlin.CaptureKt && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"api-keys\napi-line\n"}]},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":34,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-capture"},{"id":"io.github.libtmux.kotlin.Pane.clearHistory","name":"clearHistory","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.clearHistory(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Discards this pane's scrollback."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":44,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-clearhistory"},{"id":"io.github.libtmux.kotlin.Pane.copyMode","name":"copyMode","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.copyMode(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Puts this pane into copy mode, where its scrollback can be navigated."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":49,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-copymode"},{"id":"io.github.libtmux.kotlin.Pane.dead","name":"dead","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.dead(): Boolean","params":[],"returns":"Boolean","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Whether this pane's process has exited, read fresh rather than from the capture."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":54,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-dead"},{"id":"io.github.libtmux.kotlin.Pane.exitMode","name":"exitMode","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.exitMode(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Leaves whichever mode this pane is in."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":59,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-exitmode"},{"id":"io.github.libtmux.kotlin.Pane.expand","name":"expand","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.expand(format: String): String","params":[{"name":"format","type":"String"}],"returns":"String","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Expands a tmux format in this pane's context, and answers with what it came to."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":64,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-expand"},{"id":"io.github.libtmux.kotlin.Pane.joinTo","name":"joinTo","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.joinTo(window: Window): Unit","params":[{"name":"window","type":"Window"}],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Moves this pane into another window, splitting it."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":69,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-jointo"},{"id":"io.github.libtmux.kotlin.Pane.kill","name":"kill","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.kill(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Closes this pane."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":74,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-kill"},{"id":"io.github.libtmux.kotlin.Pane.mode","name":"mode","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.mode(): PaneMode?","params":[],"returns":"PaneMode?","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Which mode this pane is in at this moment, or empty when it is in none."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":79,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-mode"},{"id":"io.github.libtmux.kotlin.Pane.noteTyped","name":"noteTyped","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.noteTyped(text: String): Unit","params":[{"name":"text","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Notes text that reached this pane without going through this handle, so a wait discounts its echo the way it discounts text sent through [.sendLiteral]."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":85,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-notetyped"},{"id":"io.github.libtmux.kotlin.Pane.paste","name":"paste","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.paste(text: String): Unit","params":[{"name":"text","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Pane"}},{"raw":"public suspend fun Pane.paste(text: String, beforePaste: Runnable): Unit","params":[{"name":"text","type":"String"},{"name":"beforePaste","type":"Runnable"}],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Pastes text into this pane as one block, leaving nothing behind on the server."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":90,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-paste"},{"id":"io.github.libtmux.kotlin.Pane.pasteBuffer","name":"pasteBuffer","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.pasteBuffer(name: String): Unit","params":[{"name":"name","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Pastes a named buffer into this pane, as though it had been typed."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":100,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-pastebuffer"},{"id":"io.github.libtmux.kotlin.Pane.pipeTo","name":"pipeTo","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.pipeTo(shellCommand: String): Unit","params":[{"name":"shellCommand","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Sends everything this pane prints to a shell command, until [.stopPiping]."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":105,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-pipeto"},{"id":"io.github.libtmux.kotlin.Pane.refresh","name":"refresh","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.refresh(): Pane","params":[],"returns":"Pane","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Takes a new capture and returns this pane as it is now."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":110,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-refresh"},{"id":"io.github.libtmux.kotlin.Pane.resize","name":"resize","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.resize(direction: Direction, cells: Int): Unit","params":[{"name":"direction","type":"Direction"},{"name":"cells","type":"Int"}],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Grows this pane by a number of cells in one direction."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":115,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-resize"},{"id":"io.github.libtmux.kotlin.Pane.resizeTo","name":"resizeTo","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.resizeTo(size: Dimensions): Unit","params":[{"name":"size","type":"Dimensions"}],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Resizes this pane."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":120,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-resizeto"},{"id":"io.github.libtmux.kotlin.Pane.respawn","name":"respawn","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.respawn(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Pane"}},{"raw":"public suspend fun Pane.respawn(vararg command: String): Unit","params":[{"name":"command","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Kills whatever runs here and starts the pane's default command again."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":125,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-respawn"},{"id":"io.github.libtmux.kotlin.Pane.respawnIn","name":"respawnIn","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.respawnIn(directory: Path): Unit","params":[{"name":"directory","type":"Path"}],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Restarts the configured pane process in a caller-supplied literal directory, resolved against this process's working directory when relative."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":136,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-respawnin"},{"id":"io.github.libtmux.kotlin.Pane.retitle","name":"retitle","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.retitle(title: String): Pane","params":[{"name":"title","type":"String"}],"returns":"Pane","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Retitles this pane and returns its replacement capture."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":141,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-retitle"},{"id":"io.github.libtmux.kotlin.Pane.select","name":"select","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.select(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Makes this the active pane of its window."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":146,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-select"},{"id":"io.github.libtmux.kotlin.Pane.send","name":"send","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.send(keys: String): Unit","params":[{"name":"keys","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Sends keys to this pane without pressing Enter."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":151,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-send"},{"id":"io.github.libtmux.kotlin.Pane.sendKeys","name":"sendKeys","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.sendKeys(keys: List): Unit","params":[{"name":"keys","type":"List"}],"returns":"Unit","receiver":{"name":"this","type":"Pane"}},{"raw":"public suspend fun Pane.sendKeys(keys: List, beforeSend: Runnable): Unit","params":[{"name":"keys","type":"List"},{"name":"beforeSend","type":"Runnable"}],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Sends an ordered group of key names to this pane, as tmux resolves them.","examples":[{"lang":"console","intro":"Send input and wait for output before capturing the pane. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/build.gradle.kts","code":"plugins {\n kotlin(\"jvm\") version \"2.4.10\"\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-kotlin:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\nkotlin { jvmToolchain(25) }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"kotlin","intro":"Save this complete program as src/main/kotlin/Capture.kt. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/kotlin/io/github/libtmux/examples/api/kotlin/Capture.kt","code":"package io.github.libtmux.examples.api.kotlin\n\nimport io.github.libtmux.ServerConfig\nimport io.github.libtmux.ServerEndpoint\nimport io.github.libtmux.SessionSpec\nimport io.github.libtmux.TextOutcome\nimport io.github.libtmux.kotlin.*\nimport java.nio.file.Path\nimport kotlin.system.exitProcess\nimport kotlinx.coroutines.runBlocking\nimport kotlin.time.Duration.Companion.seconds\n\n/** Send input and wait for output before capturing the pane. */\nfun main(args: Array) {\n try {\n require(args.size == 3) { \"expected: tmux-binary socket-path config-file\" }\n val config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build()\n runBlocking {\n withServer(config) { server ->\n val session = server.newSession(\n SessionSpec.builder().named(\"api-capture\").running(\"/bin/sh\").build()\n )\n val pane = session.windows.first().panes.first()\n pane.sendKeys(listOf(\"printf 'api-%s\\\\n' keys\", \"Enter\"))\n check(pane.awaitText(\"api-keys\", timeout = 5.seconds) != TextOutcome.TIMED_OUT) {\n \"timed out waiting for keys output\"\n }\n pane.sendLine(\"printf 'api-%s\\\\n' line\")\n check(pane.awaitText(\"api-line\", timeout = 5.seconds) != TextOutcome.TIMED_OUT) {\n \"timed out waiting for line output\"\n }\n val lines = pane.capture()\n for (expected in listOf(\"api-keys\", \"api-line\")) {\n check(lines.any { it.trim() == expected }) { \"capture is missing $expected\" }\n println(expected)\n }\n }\n }\n } catch (error: Exception) {\n if (error is InterruptedException) Thread.currentThread().interrupt()\n System.err.println(\"Example failed: ${error.message}\")\n exitProcess(1)\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.kotlin.CaptureKt && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"api-keys\napi-line\n"}]},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":156,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-sendkeys"},{"id":"io.github.libtmux.kotlin.Pane.sendLine","name":"sendLine","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.sendLine(command: String): Unit","params":[{"name":"command","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Sends a line to this pane and presses Enter, which is how a command gets run.","examples":[{"lang":"console","intro":"Send input and wait for output before capturing the pane. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/build.gradle.kts","code":"plugins {\n kotlin(\"jvm\") version \"2.4.10\"\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-kotlin:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\nkotlin { jvmToolchain(25) }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"kotlin","intro":"Save this complete program as src/main/kotlin/Capture.kt. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/kotlin/io/github/libtmux/examples/api/kotlin/Capture.kt","code":"package io.github.libtmux.examples.api.kotlin\n\nimport io.github.libtmux.ServerConfig\nimport io.github.libtmux.ServerEndpoint\nimport io.github.libtmux.SessionSpec\nimport io.github.libtmux.TextOutcome\nimport io.github.libtmux.kotlin.*\nimport java.nio.file.Path\nimport kotlin.system.exitProcess\nimport kotlinx.coroutines.runBlocking\nimport kotlin.time.Duration.Companion.seconds\n\n/** Send input and wait for output before capturing the pane. */\nfun main(args: Array) {\n try {\n require(args.size == 3) { \"expected: tmux-binary socket-path config-file\" }\n val config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build()\n runBlocking {\n withServer(config) { server ->\n val session = server.newSession(\n SessionSpec.builder().named(\"api-capture\").running(\"/bin/sh\").build()\n )\n val pane = session.windows.first().panes.first()\n pane.sendKeys(listOf(\"printf 'api-%s\\\\n' keys\", \"Enter\"))\n check(pane.awaitText(\"api-keys\", timeout = 5.seconds) != TextOutcome.TIMED_OUT) {\n \"timed out waiting for keys output\"\n }\n pane.sendLine(\"printf 'api-%s\\\\n' line\")\n check(pane.awaitText(\"api-line\", timeout = 5.seconds) != TextOutcome.TIMED_OUT) {\n \"timed out waiting for line output\"\n }\n val lines = pane.capture()\n for (expected in listOf(\"api-keys\", \"api-line\")) {\n check(lines.any { it.trim() == expected }) { \"capture is missing $expected\" }\n println(expected)\n }\n }\n }\n } catch (error: Exception) {\n if (error is InterruptedException) Thread.currentThread().interrupt()\n System.err.println(\"Example failed: ${error.message}\")\n exitProcess(1)\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.kotlin.CaptureKt && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"api-keys\napi-line\n"}]},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":166,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-sendline"},{"id":"io.github.libtmux.kotlin.Pane.sendLiteral","name":"sendLiteral","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.sendLiteral(keys: List): Unit","params":[{"name":"keys","type":"List"}],"returns":"Unit","receiver":{"name":"this","type":"Pane"}},{"raw":"public suspend fun Pane.sendLiteral(keys: List, beforeSend: Runnable): Unit","params":[{"name":"keys","type":"List"},{"name":"beforeSend","type":"Runnable"}],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Sends an ordered group of strings to this pane as the characters they spell."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":171,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-sendliteral"},{"id":"io.github.libtmux.kotlin.Pane.split","name":"split","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.split(): Pane","params":[],"returns":"Pane","receiver":{"name":"this","type":"Pane"}},{"raw":"public suspend fun Pane.split(spec: SplitSpec): Pane","params":[{"name":"spec","type":"SplitSpec"}],"returns":"Pane","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Splits this pane in half, putting the new one below it."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":181,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-split"},{"id":"io.github.libtmux.kotlin.Pane.stopPiping","name":"stopPiping","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.stopPiping(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Stops sending this pane's output anywhere."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":191,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-stoppiping"},{"id":"io.github.libtmux.kotlin.Pane.swapWith","name":"swapWith","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.swapWith(other: Pane): Unit","params":[{"name":"other","type":"Pane"}],"returns":"Unit","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Swaps this pane's position with another's."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":196,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-swapwith"},{"id":"io.github.libtmux.kotlin.Pane.variables","name":"variables","kind":"method","parent":"io.github.libtmux.kotlin.Pane","signatures":[{"raw":"public suspend fun Pane.variables(names: List): Map","params":[{"name":"names","type":"List"}],"returns":"Map","receiver":{"name":"this","type":"Pane"}}],"imports":{"CaptureSpec":"io.github.libtmux.CaptureSpec","Dimensions":"io.github.libtmux.Dimensions","Direction":"io.github.libtmux.Direction","PaneMode":"io.github.libtmux.PaneMode","SplitSpec":"io.github.libtmux.SplitSpec","Runnable":"java.lang.Runnable","Boolean":"kotlin.Boolean","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Reads validated tmux variables in this pane's format context."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt","line":201,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-variables"},{"id":"io.github.libtmux.kotlin.Prompt.clear","name":"clear","kind":"method","parent":"io.github.libtmux.kotlin.Prompt","signatures":[{"raw":"public suspend fun Prompt.clear(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Prompt"}}],"imports":{"String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Forgets what has been typed at the prompt."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PromptOperations.kt","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-prompt-clear"},{"id":"io.github.libtmux.kotlin.Prompt.history","name":"history","kind":"method","parent":"io.github.libtmux.kotlin.Prompt","signatures":[{"raw":"public suspend fun Prompt.history(): List","params":[],"returns":"List","receiver":{"name":"this","type":"Prompt"}}],"imports":{"String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"What has been typed at the prompt, oldest first."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PromptOperations.kt","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-prompt-history"},{"id":"io.github.libtmux.kotlin.Server.attachedSessions","name":"attachedSessions","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.attachedSessions(): List","params":[],"returns":"List","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Captures every session a client is attached to."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-attachedsessions"},{"id":"io.github.libtmux.kotlin.Server.clients","name":"clients","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.clients(): List","params":[],"returns":"List","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Captures every attached client."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-clients"},{"id":"io.github.libtmux.kotlin.Server.cmd","name":"cmd","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.cmd(vararg argv: String): CommandResult","params":[{"name":"argv","type":"String"}],"returns":"CommandResult","receiver":{"name":"this","type":"Server"}},{"raw":"public suspend fun Server.cmd(argv: List): CommandResult","params":[{"name":"argv","type":"List"}],"returns":"CommandResult","receiver":{"name":"this","type":"Server"}},{"raw":"public suspend fun Server.cmd(argv: List, timeout: Duration): CommandResult","params":[{"name":"argv","type":"List"},{"name":"timeout","type":"Duration"}],"returns":"CommandResult","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Runs one tmux command against this server."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-cmd"},{"id":"io.github.libtmux.kotlin.Server.expand","name":"expand","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.expand(format: String): String","params":[{"name":"format","type":"String"}],"returns":"String","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Expands a tmux format against the server, and answers with what it came to."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":52,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-expand"},{"id":"io.github.libtmux.kotlin.Server.hasSession","name":"hasSession","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.hasSession(name: String): Boolean","params":[{"name":"name","type":"String"}],"returns":"Boolean","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Whether a session with this name exists."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":57,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-hassession"},{"id":"io.github.libtmux.kotlin.Server.isAlive","name":"isAlive","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.isAlive(): Boolean","params":[],"returns":"Boolean","receiver":{"name":"this","type":"Server"}},{"raw":"public suspend fun Server.isAlive(timeout: Duration): Boolean","params":[{"name":"timeout","type":"Duration"}],"returns":"Boolean","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Whether the server is running and answering."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":62,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-isalive"},{"id":"io.github.libtmux.kotlin.Server.killServer","name":"killServer","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.killServer(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Server"}},{"raw":"public suspend fun Server.killServer(timeout: Duration): Unit","params":[{"name":"timeout","type":"Duration"}],"returns":"Unit","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Ends the tmux server and every session on it."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":72,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-killserver"},{"id":"io.github.libtmux.kotlin.Server.killSession","name":"killSession","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.killSession(name: String): Unit","params":[{"name":"name","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Ends the session with this name, and everything in it."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":82,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-killsession"},{"id":"io.github.libtmux.kotlin.Server.lock","name":"lock","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.lock(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Locks every client attached to this server."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":87,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-lock"},{"id":"io.github.libtmux.kotlin.Server.newSession","name":"newSession","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.newSession(name: String): Session","params":[{"name":"name","type":"String"}],"returns":"Session","receiver":{"name":"this","type":"Server"}},{"raw":"public suspend fun Server.newSession(spec: SessionSpec): Session","params":[{"name":"spec","type":"SessionSpec"}],"returns":"Session","receiver":{"name":"this","type":"Server"}},{"raw":"public suspend fun Server.newSession(configure: SessionBuilder.() -> Unit): Session","params":[{"name":"configure","type":"SessionBuilder.() -> Unit"}],"returns":"Session","receiver":{"name":"this","type":"Server"},"raises":[{"type":"IllegalArgumentException","doc":"if the session and its first window block both set a directory, or both set a command: tmux has one of each for that window"}]}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Creates a detached session and returns that exact session.","examples":[{"lang":"console","intro":"Create a session running cat. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/build.gradle.kts","code":"plugins {\n kotlin(\"jvm\") version \"2.4.10\"\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-kotlin:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\nkotlin { jvmToolchain(25) }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"kotlin","intro":"Save this complete program as src/main/kotlin/NewSession.kt. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/kotlin/io/github/libtmux/examples/api/kotlin/NewSession.kt","code":"package io.github.libtmux.examples.api.kotlin\n\nimport io.github.libtmux.ServerConfig\nimport io.github.libtmux.ServerEndpoint\nimport io.github.libtmux.SessionSpec\nimport io.github.libtmux.kotlin.*\nimport java.nio.file.Path\nimport kotlin.system.exitProcess\nimport kotlinx.coroutines.runBlocking\n\n/** Create a session running cat. */\nfun main(args: Array) {\n try {\n require(args.size == 3) { \"expected: tmux-binary socket-path config-file\" }\n val config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build()\n runBlocking {\n withServer(config) { server ->\n val session = server.newSession(\n SessionSpec.builder().named(\"api-session\").running(\"/bin/cat\").build()\n )\n println(\"created=${session.name}\")\n }\n }\n } catch (error: Exception) {\n if (error is InterruptedException) Thread.currentThread().interrupt()\n System.err.println(\"Example failed: ${error.message}\")\n exitProcess(1)\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.kotlin.NewSessionKt && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"created=api-session\n"}]},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":92,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-newsession"},{"id":"io.github.libtmux.kotlin.Server.paneFields","name":"paneFields","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.paneFields(names: List): Map>","params":[{"name":"names","type":"List"}],"returns":"Map>","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Chosen fields for every pane on the server, from one listing."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":107,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-panefields"},{"id":"io.github.libtmux.kotlin.Server.panes","name":"panes","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.panes(): List","params":[],"returns":"List","receiver":{"name":"this","type":"Server"}},{"raw":"public suspend fun Server.panes(expression: FilterExpr): List","params":[{"name":"expression","type":"FilterExpr"}],"returns":"List","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Captures every pane on the server.","examples":[{"lang":"console","intro":"List all panes, then the panes captured for one window. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/build.gradle.kts","code":"plugins {\n kotlin(\"jvm\") version \"2.4.10\"\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-kotlin:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\nkotlin { jvmToolchain(25) }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"kotlin","intro":"Save this complete program as src/main/kotlin/ListPanes.kt. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/kotlin/io/github/libtmux/examples/api/kotlin/ListPanes.kt","code":"package io.github.libtmux.examples.api.kotlin\n\nimport io.github.libtmux.ServerConfig\nimport io.github.libtmux.ServerEndpoint\nimport io.github.libtmux.kotlin.*\nimport io.github.libtmux.kotlin.query.name\nimport java.nio.file.Path\nimport kotlin.system.exitProcess\nimport kotlinx.coroutines.runBlocking\n\n/** List all panes, then the panes captured for one window. */\nfun main(args: Array) {\n try {\n require(args.size == 3) { \"expected: tmux-binary socket-path config-file\" }\n val config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build()\n runBlocking {\n withServer(config) { server ->\n println(\"panes=${server.panes().size}\")\n val session = server.session(Session.name eq \"work-one\")\n val window = session.windows.single { it.name == \"editor\" }\n println(\"window-panes=${window.panes.size}\")\n }\n }\n } catch (error: Exception) {\n if (error is InterruptedException) Thread.currentThread().interrupt()\n System.err.println(\"Example failed: ${error.message}\")\n exitProcess(1)\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.kotlin.ListPanesKt && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"panes=4\nwindow-panes=2\n"}]},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":112,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-panes"},{"id":"io.github.libtmux.kotlin.Server.requireAlive","name":"requireAlive","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.requireAlive(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Requires a running tmux daemon that answers the liveness probe."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":122,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-requirealive"},{"id":"io.github.libtmux.kotlin.Server.run","name":"run","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.run(argv: List): CommandResult","params":[{"name":"argv","type":"List"}],"returns":"CommandResult","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Runs a command that is expected to work, and raises when it did not."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":127,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-run"},{"id":"io.github.libtmux.kotlin.Server.sessions","name":"sessions","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.sessions(): List","params":[],"returns":"List","receiver":{"name":"this","type":"Server"}},{"raw":"public suspend fun Server.sessions(expression: FilterExpr): List","params":[{"name":"expression","type":"FilterExpr"}],"returns":"List","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Every session, captured now.","examples":[{"lang":"console","intro":"List the sessions returned by a server read. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/build.gradle.kts","code":"plugins {\n kotlin(\"jvm\") version \"2.4.10\"\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-kotlin:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\nkotlin { jvmToolchain(25) }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"kotlin","intro":"Save this complete program as src/main/kotlin/ListSessions.kt. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/kotlin/io/github/libtmux/examples/api/kotlin/ListSessions.kt","code":"package io.github.libtmux.examples.api.kotlin\n\nimport io.github.libtmux.ServerConfig\nimport io.github.libtmux.ServerEndpoint\nimport io.github.libtmux.kotlin.*\nimport java.nio.file.Path\nimport kotlin.system.exitProcess\nimport kotlinx.coroutines.runBlocking\n\n/** List the sessions returned by a server read. */\nfun main(args: Array) {\n try {\n require(args.size == 3) { \"expected: tmux-binary socket-path config-file\" }\n val config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build()\n runBlocking {\n withServer(config) { server ->\n println(\"sessions=\" + server.sessions().map { it.name }.sorted().joinToString(\",\"))\n }\n }\n } catch (error: Exception) {\n if (error is InterruptedException) Thread.currentThread().interrupt()\n System.err.println(\"Example failed: ${error.message}\")\n exitProcess(1)\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.kotlin.ListSessionsKt && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"sessions=work-one,work-two\n"},{"lang":"console","intro":"Select sessions with a typed name filter. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/build.gradle.kts","code":"plugins {\n kotlin(\"jvm\") version \"2.4.10\"\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-kotlin:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\nkotlin { jvmToolchain(25) }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"kotlin","intro":"Save this complete program as src/main/kotlin/Query.kt. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/kotlin/io/github/libtmux/examples/api/kotlin/Query.kt","code":"package io.github.libtmux.examples.api.kotlin\n\nimport io.github.libtmux.ServerConfig\nimport io.github.libtmux.ServerEndpoint\nimport io.github.libtmux.kotlin.*\nimport io.github.libtmux.kotlin.query.name\nimport java.nio.file.Path\nimport kotlin.system.exitProcess\nimport kotlinx.coroutines.runBlocking\n\n/** Select sessions with a typed name filter. */\nfun main(args: Array) {\n try {\n require(args.size == 3) { \"expected: tmux-binary socket-path config-file\" }\n val config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build()\n runBlocking {\n withServer(config) { server ->\n val matches = server.sessions(Session.name eq \"work-one\")\n println(\"matches=\" + matches.map { it.name }.sorted().joinToString(\",\"))\n }\n }\n } catch (error: Exception) {\n if (error is InterruptedException) Thread.currentThread().interrupt()\n System.err.println(\"Example failed: ${error.message}\")\n exitProcess(1)\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.kotlin.QueryKt && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"matches=work-one\n"}]},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":142,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-sessions"},{"id":"io.github.libtmux.kotlin.Server.snapshot","name":"snapshot","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.snapshot(): ServerSnapshot","params":[],"returns":"ServerSnapshot","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Captures the whole hierarchy in at most four listings, retrying once if the server is replaced."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":153,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-snapshot"},{"id":"io.github.libtmux.kotlin.Server.sourceFile","name":"sourceFile","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.sourceFile(`file`: Path): Unit","params":[{"name":"`file`","type":"Path"}],"returns":"Unit","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Runs a file of tmux commands, as a configuration file would be run."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":158,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-sourcefile"},{"id":"io.github.libtmux.kotlin.Server.variables","name":"variables","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.variables(names: List): Map","params":[{"name":"names","type":"List"}],"returns":"Map","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Reads only validated tmux variable names, never caller-authored format syntax."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":163,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-variables"},{"id":"io.github.libtmux.kotlin.Server.version","name":"version","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.version(): TmuxVersion","params":[],"returns":"TmuxVersion","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Which tmux this server is running."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":168,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-version"},{"id":"io.github.libtmux.kotlin.Server.windows","name":"windows","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.windows(): List","params":[],"returns":"List","receiver":{"name":"this","type":"Server"}},{"raw":"public suspend fun Server.windows(expression: FilterExpr): List","params":[{"name":"expression","type":"FilterExpr"}],"returns":"List","receiver":{"name":"this","type":"Server"}},{"raw":"public suspend fun Server.windows(id: WindowId): List","params":[{"name":"id","type":"WindowId"}],"returns":"List","receiver":{"name":"this","type":"Server"}}],"imports":{"PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","SessionSpec":"io.github.libtmux.SessionSpec","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId","FilterExpr":"io.github.libtmux.query.FilterExpr","ServerSnapshot":"io.github.libtmux.snapshot.ServerSnapshot","WindowContext":"io.github.libtmux.snapshot.WindowContext","CommandResult":"io.github.libtmux.transport.CommandResult","Boolean":"kotlin.Boolean","String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","Map":"kotlin.collections.Map","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Captures every winlink, preserving each session and index placement.","examples":[{"lang":"console","intro":"List all windows, then the windows captured for one session. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/build.gradle.kts","code":"plugins {\n kotlin(\"jvm\") version \"2.4.10\"\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-kotlin:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\nkotlin { jvmToolchain(25) }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"kotlin","intro":"Save this complete program as src/main/kotlin/ListWindows.kt. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/kotlin/io/github/libtmux/examples/api/kotlin/ListWindows.kt","code":"package io.github.libtmux.examples.api.kotlin\n\nimport io.github.libtmux.ServerConfig\nimport io.github.libtmux.ServerEndpoint\nimport io.github.libtmux.kotlin.*\nimport io.github.libtmux.kotlin.query.name\nimport java.nio.file.Path\nimport kotlin.system.exitProcess\nimport kotlinx.coroutines.runBlocking\n\n/** List all windows, then the windows captured for one session. */\nfun main(args: Array) {\n try {\n require(args.size == 3) { \"expected: tmux-binary socket-path config-file\" }\n val config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build()\n runBlocking {\n withServer(config) { server ->\n println(\"windows=\" + server.windows().map { it.name }.sorted().joinToString(\",\"))\n val session = server.session(Session.name eq \"work-one\")\n println(\"session-windows=\" + session.windows.map { it.name }.sorted().joinToString(\",\"))\n }\n }\n } catch (error: Exception) {\n if (error is InterruptedException) Thread.currentThread().interrupt()\n System.err.println(\"Example failed: ${error.message}\")\n exitProcess(1)\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.kotlin.ListWindowsKt && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"windows=editor,editor,logs\nsession-windows=editor,logs\n"}]},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt","line":178,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-windows"},{"id":"io.github.libtmux.kotlin.Session.detachClients","name":"detachClients","kind":"method","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public suspend fun Session.detachClients(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Session"}}],"imports":{"WindowSpec":"io.github.libtmux.WindowSpec","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Detaches every client attached to this session, leaving the session running."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/SessionOperations.kt","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-detachclients"},{"id":"io.github.libtmux.kotlin.Session.expand","name":"expand","kind":"method","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public suspend fun Session.expand(format: String): String","params":[{"name":"format","type":"String"}],"returns":"String","receiver":{"name":"this","type":"Session"}}],"imports":{"WindowSpec":"io.github.libtmux.WindowSpec","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Expands a tmux format in this session's context, and answers with what it came to."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/SessionOperations.kt","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-expand"},{"id":"io.github.libtmux.kotlin.Session.kill","name":"kill","kind":"method","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public suspend fun Session.kill(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Session"}}],"imports":{"WindowSpec":"io.github.libtmux.WindowSpec","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Ends this session."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/SessionOperations.kt","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-kill"},{"id":"io.github.libtmux.kotlin.Session.lastWindow","name":"lastWindow","kind":"method","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public suspend fun Session.lastWindow(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Session"}}],"imports":{"WindowSpec":"io.github.libtmux.WindowSpec","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Returns to the window that was active before this one."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/SessionOperations.kt","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-lastwindow"},{"id":"io.github.libtmux.kotlin.Session.newWindow","name":"newWindow","kind":"method","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public suspend fun Session.newWindow(name: String): Window","params":[{"name":"name","type":"String"}],"returns":"Window","receiver":{"name":"this","type":"Session"}},{"raw":"public suspend fun Session.newWindow(spec: WindowSpec): Window","params":[{"name":"spec","type":"WindowSpec"}],"returns":"Window","receiver":{"name":"this","type":"Session"}}],"imports":{"WindowSpec":"io.github.libtmux.WindowSpec","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Creates a window in this session and returns that exact window.","examples":[{"lang":"console","intro":"Create a window and read the updated session. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\")\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/kotlin/build.gradle.kts","code":"plugins {\n kotlin(\"jvm\") version \"2.4.10\"\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-kotlin:0.0.1-alpha.17-SNAPSHOT\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\nkotlin { jvmToolchain(25) }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"kotlin","intro":"Save this complete program as src/main/kotlin/NewWindow.kt. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/kotlin/io/github/libtmux/examples/api/kotlin/NewWindow.kt","code":"package io.github.libtmux.examples.api.kotlin\n\nimport io.github.libtmux.ServerConfig\nimport io.github.libtmux.ServerEndpoint\nimport io.github.libtmux.WindowSpec\nimport io.github.libtmux.kotlin.*\nimport io.github.libtmux.kotlin.query.name\nimport java.nio.file.Path\nimport kotlin.system.exitProcess\nimport kotlinx.coroutines.runBlocking\n\n/** Create a window and read the updated session. */\nfun main(args: Array) {\n try {\n require(args.size == 3) { \"expected: tmux-binary socket-path config-file\" }\n val config = ServerConfig.builder()\n .binary(args[0])\n .endpoint(ServerEndpoint.socketPath(Path.of(args[1])))\n .configFile(Path.of(args[2]))\n .build()\n runBlocking {\n withServer(config) { server ->\n val session = server.session(Session.name eq \"work-one\")\n val window = session.newWindow(\n WindowSpec.builder().named(\"api-window\").running(\"/bin/cat\").build()\n )\n println(\"created=${window.name}\")\n val refreshed = server.session(Session.name eq \"work-one\")\n println(\"windows=\" + refreshed.windows.map { it.name }.sorted().joinToString(\",\"))\n }\n }\n } catch (error: Exception) {\n if (error is InterruptedException) Thread.currentThread().interrupt()\n System.err.println(\"Example failed: ${error.message}\")\n exitProcess(1)\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.kotlin.NewWindowKt && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"created=api-window\nwindows=api-window,editor,logs\n"}]},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/SessionOperations.kt","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-newwindow"},{"id":"io.github.libtmux.kotlin.Session.nextWindow","name":"nextWindow","kind":"method","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public suspend fun Session.nextWindow(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Session"}}],"imports":{"WindowSpec":"io.github.libtmux.WindowSpec","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Moves to the next window in this session, wrapping at the end."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/SessionOperations.kt","line":45,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-nextwindow"},{"id":"io.github.libtmux.kotlin.Session.previousWindow","name":"previousWindow","kind":"method","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public suspend fun Session.previousWindow(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Session"}}],"imports":{"WindowSpec":"io.github.libtmux.WindowSpec","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Moves to the previous window in this session, wrapping at the start."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/SessionOperations.kt","line":50,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-previouswindow"},{"id":"io.github.libtmux.kotlin.Session.refresh","name":"refresh","kind":"method","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public suspend fun Session.refresh(): Session","params":[],"returns":"Session","receiver":{"name":"this","type":"Session"}}],"imports":{"WindowSpec":"io.github.libtmux.WindowSpec","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Takes a new capture and returns this session as it is now."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/SessionOperations.kt","line":55,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-refresh"},{"id":"io.github.libtmux.kotlin.Session.rename","name":"rename","kind":"method","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public suspend fun Session.rename(name: String): Session","params":[{"name":"name","type":"String"}],"returns":"Session","receiver":{"name":"this","type":"Session"}}],"imports":{"WindowSpec":"io.github.libtmux.WindowSpec","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Renames this session and returns its replacement capture."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/SessionOperations.kt","line":60,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-rename"},{"id":"io.github.libtmux.kotlin.Session.selectWindow","name":"selectWindow","kind":"method","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public suspend fun Session.selectWindow(window: Window): Unit","params":[{"name":"window","type":"Window"}],"returns":"Unit","receiver":{"name":"this","type":"Session"}}],"imports":{"WindowSpec":"io.github.libtmux.WindowSpec","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Makes a window of this session the active one."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/SessionOperations.kt","line":65,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-selectwindow"},{"id":"io.github.libtmux.kotlin.Session.setHistoryLimit","name":"setHistoryLimit","kind":"method","parent":"io.github.libtmux.kotlin.Session","signatures":[{"raw":"public suspend fun Session.setHistoryLimit(lines: Int): Unit","params":[{"name":"lines","type":"Int"}],"returns":"Unit","receiver":{"name":"this","type":"Session"}}],"imports":{"WindowSpec":"io.github.libtmux.WindowSpec","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Sets the scrollback retained by panes created in this session."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/SessionOperations.kt","line":70,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-sethistorylimit"},{"id":"io.github.libtmux.kotlin.Shell.capturing","name":"capturing","kind":"method","parent":"io.github.libtmux.kotlin.Shell","signatures":[{"raw":"public suspend fun Shell.capturing(command: String): List","params":[{"name":"command","type":"String"}],"returns":"List","receiver":{"name":"this","type":"Shell"}}],"imports":{"String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Runs a shell command and answers with what it printed."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ShellOperations.kt","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-shell-capturing"},{"id":"io.github.libtmux.kotlin.Shell.choose","name":"choose","kind":"method","parent":"io.github.libtmux.kotlin.Shell","signatures":[{"raw":"public suspend fun Shell.choose(condition: String, whenTrue: String): Unit","params":[{"name":"condition","type":"String"},{"name":"whenTrue","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Shell"}},{"raw":"public suspend fun Shell.choose(\n condition: String,\n whenTrue: String,\n whenFalse: String,\n): Unit","params":[{"name":"condition","type":"String"},{"name":"whenTrue","type":"String"},{"name":"whenFalse","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Shell"}}],"imports":{"String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Runs one tmux command when a shell command succeeds."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ShellOperations.kt","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-shell-choose"},{"id":"io.github.libtmux.kotlin.Shell.run","name":"run","kind":"method","parent":"io.github.libtmux.kotlin.Shell","signatures":[{"raw":"public suspend fun Shell.run(command: String): Unit","params":[{"name":"command","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Shell"}}],"imports":{"String":"kotlin.String","Unit":"kotlin.Unit","List":"kotlin.collections.List","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Runs a shell command for its effect."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ShellOperations.kt","line":33,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-shell-run"},{"id":"io.github.libtmux.kotlin.Window.applyLayout","name":"applyLayout","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.applyLayout(layout: WindowLayout): Unit","params":[{"name":"layout","type":"WindowLayout"}],"returns":"Unit","receiver":{"name":"this","type":"Window"}},{"raw":"public suspend fun Window.applyLayout(layout: String): Unit","params":[{"name":"layout","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Restores an exact arrangement previously read from [.layout()]."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-applylayout"},{"id":"io.github.libtmux.kotlin.Window.displayPopup","name":"displayPopup","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.displayPopup(shellCommand: String): Unit","params":[{"name":"shellCommand","type":"String"}],"returns":"Unit","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Shows a popup over this window, running a command in it."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-displaypopup"},{"id":"io.github.libtmux.kotlin.Window.expand","name":"expand","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.expand(format: String): String","params":[{"name":"format","type":"String"}],"returns":"String","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Expands a tmux format in this window's context, and answers with what it came to."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":33,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-expand"},{"id":"io.github.libtmux.kotlin.Window.kill","name":"kill","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.kill(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Closes this window."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-kill"},{"id":"io.github.libtmux.kotlin.Window.linkTo","name":"linkTo","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.linkTo(session: Session): Unit","params":[{"name":"session","type":"Session"}],"returns":"Unit","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Links this window into another session, so one window sits in both."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":43,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-linkto"},{"id":"io.github.libtmux.kotlin.Window.moveTo","name":"moveTo","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.moveTo(session: Session): Unit","params":[{"name":"session","type":"Session"}],"returns":"Unit","receiver":{"name":"this","type":"Window"}},{"raw":"public suspend fun Window.moveTo(session: Session, index: Int): Unit","params":[{"name":"session","type":"Session"},{"name":"index","type":"Int"}],"returns":"Unit","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Moves this window into another session."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":48,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-moveto"},{"id":"io.github.libtmux.kotlin.Window.nextLayout","name":"nextLayout","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.nextLayout(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Moves to the next built-in layout, as tmux's own binding does."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":58,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-nextlayout"},{"id":"io.github.libtmux.kotlin.Window.previousLayout","name":"previousLayout","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.previousLayout(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Moves to the previous built-in layout, as tmux's own binding does."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":63,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-previouslayout"},{"id":"io.github.libtmux.kotlin.Window.refresh","name":"refresh","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.refresh(): Window","params":[],"returns":"Window","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Takes a new capture and returns this winlink as it is now."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":68,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-refresh"},{"id":"io.github.libtmux.kotlin.Window.rename","name":"rename","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.rename(name: String): Window","params":[{"name":"name","type":"String"}],"returns":"Window","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Renames this window and returns its replacement capture."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":73,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-rename"},{"id":"io.github.libtmux.kotlin.Window.resizeTo","name":"resizeTo","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.resizeTo(size: Dimensions): Unit","params":[{"name":"size","type":"Dimensions"}],"returns":"Unit","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Resizes this window in terminal cells."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":78,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-resizeto"},{"id":"io.github.libtmux.kotlin.Window.respawn","name":"respawn","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.respawn(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Kills what is running in this window and starts it again."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":83,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-respawn"},{"id":"io.github.libtmux.kotlin.Window.rotate","name":"rotate","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.rotate(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Rotates the panes within this window."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":88,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-rotate"},{"id":"io.github.libtmux.kotlin.Window.select","name":"select","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.select(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Makes this the active window of its session."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":93,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-select"},{"id":"io.github.libtmux.kotlin.Window.selectLayout","name":"selectLayout","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.selectLayout(layout: Layout): Unit","params":[{"name":"layout","type":"Layout"}],"returns":"Unit","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Rearranges this window's panes into one of tmux's built-in layouts."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":98,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-selectlayout"},{"id":"io.github.libtmux.kotlin.Window.split","name":"split","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.split(): Pane","params":[],"returns":"Pane","receiver":{"name":"this","type":"Window"}},{"raw":"public suspend fun Window.split(spec: SplitSpec): Pane","params":[{"name":"spec","type":"SplitSpec"}],"returns":"Pane","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async","overload"],"doc":{"summary":"Splits this window's active pane in half, putting the new one below it."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":103,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-split"},{"id":"io.github.libtmux.kotlin.Window.stopSynchronizingPanes","name":"stopSynchronizingPanes","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.stopSynchronizingPanes(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Stops copying input between this window's panes."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":113,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-stopsynchronizingpanes"},{"id":"io.github.libtmux.kotlin.Window.synchronizePanes","name":"synchronizePanes","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.synchronizePanes(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Copies input to one pane into every pane in this window, until [.stopSynchronizingPanes]."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":118,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-synchronizepanes"},{"id":"io.github.libtmux.kotlin.Window.unlink","name":"unlink","kind":"method","parent":"io.github.libtmux.kotlin.Window","signatures":[{"raw":"public suspend fun Window.unlink(): Unit","params":[],"returns":"Unit","receiver":{"name":"this","type":"Window"}}],"imports":{"Dimensions":"io.github.libtmux.Dimensions","Layout":"io.github.libtmux.Layout","SplitSpec":"io.github.libtmux.SplitSpec","WindowLayout":"io.github.libtmux.WindowLayout","Int":"kotlin.Int","String":"kotlin.String","Unit":"kotlin.Unit","toJavaDuration":"kotlin.time.toJavaDuration","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Removes this link, leaving the window wherever else it is linked."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt","line":123,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-unlink"},{"id":"io.github.libtmux.kotlin.Client.Companion.name","name":"name","kind":"property","parent":"io.github.libtmux.kotlin.Client.Companion","signatures":[{"raw":"public val KotlinClient.Companion.name: TextField","params":[],"returns":"TextField","receiver":{"name":"this","type":"KotlinClient.Companion"}}],"imports":{"Client_":"io.github.libtmux.Client_","Session":"io.github.libtmux.Session","LibtmuxClient":"io.github.libtmux.Client","KotlinClient":"io.github.libtmux.kotlin.Client"},"modifiers":[],"doc":{"summary":"The client's terminal name, which is how tmux addresses it."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/ClientFields.kt","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client-companion-name"},{"id":"io.github.libtmux.kotlin.Client.Companion.session","name":"session","kind":"property","parent":"io.github.libtmux.kotlin.Client.Companion","signatures":[{"raw":"public val KotlinClient.Companion.session: ToOneField","params":[],"returns":"ToOneField","receiver":{"name":"this","type":"KotlinClient.Companion"}}],"imports":{"Client_":"io.github.libtmux.Client_","Session":"io.github.libtmux.Session","LibtmuxClient":"io.github.libtmux.Client","KotlinClient":"io.github.libtmux.kotlin.Client"},"modifiers":[],"doc":{"summary":"The session this client was attached to, if any."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/ClientFields.kt","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-client-companion-session"},{"id":"io.github.libtmux.kotlin.Pane.Companion.id","name":"id","kind":"property","parent":"io.github.libtmux.kotlin.Pane.Companion","signatures":[{"raw":"public val KotlinPane.Companion.id: TextField","params":[],"returns":"TextField","receiver":{"name":"this","type":"KotlinPane.Companion"}}],"imports":{"Pane_":"io.github.libtmux.Pane_","LibtmuxPane":"io.github.libtmux.Pane","KotlinPane":"io.github.libtmux.kotlin.Pane"},"modifiers":[],"doc":{"summary":"The pane id."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/PaneFields.kt","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-companion-id"},{"id":"io.github.libtmux.kotlin.Pane.Companion.command","name":"command","kind":"property","parent":"io.github.libtmux.kotlin.Pane.Companion","signatures":[{"raw":"public val KotlinPane.Companion.command: TextField","params":[],"returns":"TextField","receiver":{"name":"this","type":"KotlinPane.Companion"}}],"imports":{"Pane_":"io.github.libtmux.Pane_","LibtmuxPane":"io.github.libtmux.Pane","KotlinPane":"io.github.libtmux.kotlin.Pane"},"modifiers":[],"doc":{"summary":"The command tmux reported running in the pane."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/PaneFields.kt","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-companion-command"},{"id":"io.github.libtmux.kotlin.Pane.Companion.index","name":"index","kind":"property","parent":"io.github.libtmux.kotlin.Pane.Companion","signatures":[{"raw":"public val KotlinPane.Companion.index: NumberField","params":[],"returns":"NumberField","receiver":{"name":"this","type":"KotlinPane.Companion"}}],"imports":{"Pane_":"io.github.libtmux.Pane_","LibtmuxPane":"io.github.libtmux.Pane","KotlinPane":"io.github.libtmux.kotlin.Pane"},"modifiers":[],"doc":{"summary":"The pane's position in its window."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/PaneFields.kt","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-companion-index"},{"id":"io.github.libtmux.kotlin.Pane.Companion.active","name":"active","kind":"property","parent":"io.github.libtmux.kotlin.Pane.Companion","signatures":[{"raw":"public val KotlinPane.Companion.active: FlagField","params":[],"returns":"FlagField","receiver":{"name":"this","type":"KotlinPane.Companion"}}],"imports":{"Pane_":"io.github.libtmux.Pane_","LibtmuxPane":"io.github.libtmux.Pane","KotlinPane":"io.github.libtmux.kotlin.Pane"},"modifiers":[],"doc":{"summary":"Whether this was its window's active pane."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/PaneFields.kt","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-companion-active"},{"id":"io.github.libtmux.kotlin.Pane.Companion.title","name":"title","kind":"property","parent":"io.github.libtmux.kotlin.Pane.Companion","signatures":[{"raw":"public val KotlinPane.Companion.title: TextField","params":[],"returns":"TextField","receiver":{"name":"this","type":"KotlinPane.Companion"}}],"imports":{"Pane_":"io.github.libtmux.Pane_","LibtmuxPane":"io.github.libtmux.Pane","KotlinPane":"io.github.libtmux.kotlin.Pane"},"modifiers":[],"doc":{"summary":"The pane's title, which a program running in it can set."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/PaneFields.kt","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-companion-title"},{"id":"io.github.libtmux.kotlin.Pane.Companion.path","name":"path","kind":"property","parent":"io.github.libtmux.kotlin.Pane.Companion","signatures":[{"raw":"public val KotlinPane.Companion.path: TextField","params":[],"returns":"TextField","receiver":{"name":"this","type":"KotlinPane.Companion"}}],"imports":{"Pane_":"io.github.libtmux.Pane_","LibtmuxPane":"io.github.libtmux.Pane","KotlinPane":"io.github.libtmux.kotlin.Pane"},"modifiers":[],"doc":{"summary":"The pane's working directory, as the text tmux reported."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/PaneFields.kt","line":42,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-companion-path"},{"id":"io.github.libtmux.kotlin.Pane.Companion.width","name":"width","kind":"property","parent":"io.github.libtmux.kotlin.Pane.Companion","signatures":[{"raw":"public val KotlinPane.Companion.width: NumberField","params":[],"returns":"NumberField","receiver":{"name":"this","type":"KotlinPane.Companion"}}],"imports":{"Pane_":"io.github.libtmux.Pane_","LibtmuxPane":"io.github.libtmux.Pane","KotlinPane":"io.github.libtmux.kotlin.Pane"},"modifiers":[],"doc":{"summary":"The pane's width, in cells."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/PaneFields.kt","line":48,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-companion-width"},{"id":"io.github.libtmux.kotlin.Pane.Companion.height","name":"height","kind":"property","parent":"io.github.libtmux.kotlin.Pane.Companion","signatures":[{"raw":"public val KotlinPane.Companion.height: NumberField","params":[],"returns":"NumberField","receiver":{"name":"this","type":"KotlinPane.Companion"}}],"imports":{"Pane_":"io.github.libtmux.Pane_","LibtmuxPane":"io.github.libtmux.Pane","KotlinPane":"io.github.libtmux.kotlin.Pane"},"modifiers":[],"doc":{"summary":"The pane's height, in cells."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/PaneFields.kt","line":54,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-companion-height"},{"id":"io.github.libtmux.kotlin.Pane.Companion.left","name":"left","kind":"property","parent":"io.github.libtmux.kotlin.Pane.Companion","signatures":[{"raw":"public val KotlinPane.Companion.left: NumberField","params":[],"returns":"NumberField","receiver":{"name":"this","type":"KotlinPane.Companion"}}],"imports":{"Pane_":"io.github.libtmux.Pane_","LibtmuxPane":"io.github.libtmux.Pane","KotlinPane":"io.github.libtmux.kotlin.Pane"},"modifiers":[],"doc":{"summary":"The column of the pane's left edge in its window."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/PaneFields.kt","line":60,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-companion-left"},{"id":"io.github.libtmux.kotlin.Pane.Companion.top","name":"top","kind":"property","parent":"io.github.libtmux.kotlin.Pane.Companion","signatures":[{"raw":"public val KotlinPane.Companion.top: NumberField","params":[],"returns":"NumberField","receiver":{"name":"this","type":"KotlinPane.Companion"}}],"imports":{"Pane_":"io.github.libtmux.Pane_","LibtmuxPane":"io.github.libtmux.Pane","KotlinPane":"io.github.libtmux.kotlin.Pane"},"modifiers":[],"doc":{"summary":"The row of the pane's top edge in its window."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/PaneFields.kt","line":66,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-companion-top"},{"id":"io.github.libtmux.kotlin.Pane.Companion.atTop","name":"atTop","kind":"property","parent":"io.github.libtmux.kotlin.Pane.Companion","signatures":[{"raw":"public val KotlinPane.Companion.atTop: FlagField","params":[],"returns":"FlagField","receiver":{"name":"this","type":"KotlinPane.Companion"}}],"imports":{"Pane_":"io.github.libtmux.Pane_","LibtmuxPane":"io.github.libtmux.Pane","KotlinPane":"io.github.libtmux.kotlin.Pane"},"modifiers":[],"doc":{"summary":"Whether the pane touches the top of its window."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/PaneFields.kt","line":72,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-companion-attop"},{"id":"io.github.libtmux.kotlin.Pane.Companion.atBottom","name":"atBottom","kind":"property","parent":"io.github.libtmux.kotlin.Pane.Companion","signatures":[{"raw":"public val KotlinPane.Companion.atBottom: FlagField","params":[],"returns":"FlagField","receiver":{"name":"this","type":"KotlinPane.Companion"}}],"imports":{"Pane_":"io.github.libtmux.Pane_","LibtmuxPane":"io.github.libtmux.Pane","KotlinPane":"io.github.libtmux.kotlin.Pane"},"modifiers":[],"doc":{"summary":"Whether the pane touches the bottom of its window."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/PaneFields.kt","line":78,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-companion-atbottom"},{"id":"io.github.libtmux.kotlin.Pane.Companion.atLeft","name":"atLeft","kind":"property","parent":"io.github.libtmux.kotlin.Pane.Companion","signatures":[{"raw":"public val KotlinPane.Companion.atLeft: FlagField","params":[],"returns":"FlagField","receiver":{"name":"this","type":"KotlinPane.Companion"}}],"imports":{"Pane_":"io.github.libtmux.Pane_","LibtmuxPane":"io.github.libtmux.Pane","KotlinPane":"io.github.libtmux.kotlin.Pane"},"modifiers":[],"doc":{"summary":"Whether the pane touches the left of its window."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/PaneFields.kt","line":84,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-companion-atleft"},{"id":"io.github.libtmux.kotlin.Pane.Companion.atRight","name":"atRight","kind":"property","parent":"io.github.libtmux.kotlin.Pane.Companion","signatures":[{"raw":"public val KotlinPane.Companion.atRight: FlagField","params":[],"returns":"FlagField","receiver":{"name":"this","type":"KotlinPane.Companion"}}],"imports":{"Pane_":"io.github.libtmux.Pane_","LibtmuxPane":"io.github.libtmux.Pane","KotlinPane":"io.github.libtmux.kotlin.Pane"},"modifiers":[],"doc":{"summary":"Whether the pane touches the right of its window."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/PaneFields.kt","line":90,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-pane-companion-atright"},{"id":"io.github.libtmux.kotlin.Session.Companion.id","name":"id","kind":"property","parent":"io.github.libtmux.kotlin.Session.Companion","signatures":[{"raw":"public val KotlinSession.Companion.id: TextField","params":[],"returns":"TextField","receiver":{"name":"this","type":"KotlinSession.Companion"}}],"imports":{"Session_":"io.github.libtmux.Session_","Window":"io.github.libtmux.Window","LibtmuxSession":"io.github.libtmux.Session","KotlinSession":"io.github.libtmux.kotlin.Session"},"modifiers":[],"doc":{"summary":"The session id, as text, so it can be compared and listed."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/SessionFields.kt","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-companion-id"},{"id":"io.github.libtmux.kotlin.Session.Companion.name","name":"name","kind":"property","parent":"io.github.libtmux.kotlin.Session.Companion","signatures":[{"raw":"public val KotlinSession.Companion.name: TextField","params":[],"returns":"TextField","receiver":{"name":"this","type":"KotlinSession.Companion"}}],"imports":{"Session_":"io.github.libtmux.Session_","Window":"io.github.libtmux.Window","LibtmuxSession":"io.github.libtmux.Session","KotlinSession":"io.github.libtmux.kotlin.Session"},"modifiers":[],"doc":{"summary":"The session name."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/SessionFields.kt","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-companion-name"},{"id":"io.github.libtmux.kotlin.Session.Companion.attached","name":"attached","kind":"property","parent":"io.github.libtmux.kotlin.Session.Companion","signatures":[{"raw":"public val KotlinSession.Companion.attached: FlagField","params":[],"returns":"FlagField","receiver":{"name":"this","type":"KotlinSession.Companion"}}],"imports":{"Session_":"io.github.libtmux.Session_","Window":"io.github.libtmux.Window","LibtmuxSession":"io.github.libtmux.Session","KotlinSession":"io.github.libtmux.kotlin.Session"},"modifiers":[],"doc":{"summary":"Whether a client was attached when this was captured."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/SessionFields.kt","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-companion-attached"},{"id":"io.github.libtmux.kotlin.Session.Companion.windowCount","name":"windowCount","kind":"property","parent":"io.github.libtmux.kotlin.Session.Companion","signatures":[{"raw":"public val KotlinSession.Companion.windowCount: NumberField","params":[],"returns":"NumberField","receiver":{"name":"this","type":"KotlinSession.Companion"}}],"imports":{"Session_":"io.github.libtmux.Session_","Window":"io.github.libtmux.Window","LibtmuxSession":"io.github.libtmux.Session","KotlinSession":"io.github.libtmux.kotlin.Session"},"modifiers":[],"doc":{"summary":"How many windows this session holds."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/SessionFields.kt","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-companion-windowcount"},{"id":"io.github.libtmux.kotlin.Session.Companion.windows","name":"windows","kind":"property","parent":"io.github.libtmux.kotlin.Session.Companion","signatures":[{"raw":"public val KotlinSession.Companion.windows: ToManyField","params":[],"returns":"ToManyField","receiver":{"name":"this","type":"KotlinSession.Companion"}}],"imports":{"Session_":"io.github.libtmux.Session_","Window":"io.github.libtmux.Window","LibtmuxSession":"io.github.libtmux.Session","KotlinSession":"io.github.libtmux.kotlin.Session"},"modifiers":[],"doc":{"summary":"This session's windows."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/SessionFields.kt","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-session-companion-windows"},{"id":"io.github.libtmux.kotlin.Window.Companion.id","name":"id","kind":"property","parent":"io.github.libtmux.kotlin.Window.Companion","signatures":[{"raw":"public val KotlinWindow.Companion.id: TextField","params":[],"returns":"TextField","receiver":{"name":"this","type":"KotlinWindow.Companion"}}],"imports":{"Pane":"io.github.libtmux.Pane","Session":"io.github.libtmux.Session","Window_":"io.github.libtmux.Window_","LibtmuxWindow":"io.github.libtmux.Window","KotlinWindow":"io.github.libtmux.kotlin.Window"},"modifiers":[],"doc":{"summary":"The underlying window id, shared by every link to it."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/WindowFields.kt","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-companion-id"},{"id":"io.github.libtmux.kotlin.Window.Companion.name","name":"name","kind":"property","parent":"io.github.libtmux.kotlin.Window.Companion","signatures":[{"raw":"public val KotlinWindow.Companion.name: TextField","params":[],"returns":"TextField","receiver":{"name":"this","type":"KotlinWindow.Companion"}}],"imports":{"Pane":"io.github.libtmux.Pane","Session":"io.github.libtmux.Session","Window_":"io.github.libtmux.Window_","LibtmuxWindow":"io.github.libtmux.Window","KotlinWindow":"io.github.libtmux.kotlin.Window"},"modifiers":[],"doc":{"summary":"The window name."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/WindowFields.kt","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-companion-name"},{"id":"io.github.libtmux.kotlin.Window.Companion.index","name":"index","kind":"property","parent":"io.github.libtmux.kotlin.Window.Companion","signatures":[{"raw":"public val KotlinWindow.Companion.index: NumberField","params":[],"returns":"NumberField","receiver":{"name":"this","type":"KotlinWindow.Companion"}}],"imports":{"Pane":"io.github.libtmux.Pane","Session":"io.github.libtmux.Session","Window_":"io.github.libtmux.Window_","LibtmuxWindow":"io.github.libtmux.Window","KotlinWindow":"io.github.libtmux.kotlin.Window"},"modifiers":[],"doc":{"summary":"Where this link sits in its session."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/WindowFields.kt","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-companion-index"},{"id":"io.github.libtmux.kotlin.Window.Companion.active","name":"active","kind":"property","parent":"io.github.libtmux.kotlin.Window.Companion","signatures":[{"raw":"public val KotlinWindow.Companion.active: FlagField","params":[],"returns":"FlagField","receiver":{"name":"this","type":"KotlinWindow.Companion"}}],"imports":{"Pane":"io.github.libtmux.Pane","Session":"io.github.libtmux.Session","Window_":"io.github.libtmux.Window_","LibtmuxWindow":"io.github.libtmux.Window","KotlinWindow":"io.github.libtmux.kotlin.Window"},"modifiers":[],"doc":{"summary":"Whether this was its session's active window."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/WindowFields.kt","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-companion-active"},{"id":"io.github.libtmux.kotlin.Window.Companion.linked","name":"linked","kind":"property","parent":"io.github.libtmux.kotlin.Window.Companion","signatures":[{"raw":"public val KotlinWindow.Companion.linked: FlagField","params":[],"returns":"FlagField","receiver":{"name":"this","type":"KotlinWindow.Companion"}}],"imports":{"Pane":"io.github.libtmux.Pane","Session":"io.github.libtmux.Session","Window_":"io.github.libtmux.Window_","LibtmuxWindow":"io.github.libtmux.Window","KotlinWindow":"io.github.libtmux.kotlin.Window"},"modifiers":[],"doc":{"summary":"Whether the underlying window is linked into more than one session."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/WindowFields.kt","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-companion-linked"},{"id":"io.github.libtmux.kotlin.Window.Companion.width","name":"width","kind":"property","parent":"io.github.libtmux.kotlin.Window.Companion","signatures":[{"raw":"public val KotlinWindow.Companion.width: NumberField","params":[],"returns":"NumberField","receiver":{"name":"this","type":"KotlinWindow.Companion"}}],"imports":{"Pane":"io.github.libtmux.Pane","Session":"io.github.libtmux.Session","Window_":"io.github.libtmux.Window_","LibtmuxWindow":"io.github.libtmux.Window","KotlinWindow":"io.github.libtmux.kotlin.Window"},"modifiers":[],"doc":{"summary":"The window's width, in cells."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/WindowFields.kt","line":44,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-companion-width"},{"id":"io.github.libtmux.kotlin.Window.Companion.height","name":"height","kind":"property","parent":"io.github.libtmux.kotlin.Window.Companion","signatures":[{"raw":"public val KotlinWindow.Companion.height: NumberField","params":[],"returns":"NumberField","receiver":{"name":"this","type":"KotlinWindow.Companion"}}],"imports":{"Pane":"io.github.libtmux.Pane","Session":"io.github.libtmux.Session","Window_":"io.github.libtmux.Window_","LibtmuxWindow":"io.github.libtmux.Window","KotlinWindow":"io.github.libtmux.kotlin.Window"},"modifiers":[],"doc":{"summary":"The window's height, in cells."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/WindowFields.kt","line":50,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-companion-height"},{"id":"io.github.libtmux.kotlin.Window.Companion.paneCount","name":"paneCount","kind":"property","parent":"io.github.libtmux.kotlin.Window.Companion","signatures":[{"raw":"public val KotlinWindow.Companion.paneCount: NumberField","params":[],"returns":"NumberField","receiver":{"name":"this","type":"KotlinWindow.Companion"}}],"imports":{"Pane":"io.github.libtmux.Pane","Session":"io.github.libtmux.Session","Window_":"io.github.libtmux.Window_","LibtmuxWindow":"io.github.libtmux.Window","KotlinWindow":"io.github.libtmux.kotlin.Window"},"modifiers":[],"doc":{"summary":"How many panes this link holds."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/WindowFields.kt","line":56,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-companion-panecount"},{"id":"io.github.libtmux.kotlin.Window.Companion.panes","name":"panes","kind":"property","parent":"io.github.libtmux.kotlin.Window.Companion","signatures":[{"raw":"public val KotlinWindow.Companion.panes: ToManyField","params":[],"returns":"ToManyField","receiver":{"name":"this","type":"KotlinWindow.Companion"}}],"imports":{"Pane":"io.github.libtmux.Pane","Session":"io.github.libtmux.Session","Window_":"io.github.libtmux.Window_","LibtmuxWindow":"io.github.libtmux.Window","KotlinWindow":"io.github.libtmux.kotlin.Window"},"modifiers":[],"doc":{"summary":"This link's panes."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/WindowFields.kt","line":62,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-companion-panes"},{"id":"io.github.libtmux.kotlin.Window.Companion.session","name":"session","kind":"property","parent":"io.github.libtmux.kotlin.Window.Companion","signatures":[{"raw":"public val KotlinWindow.Companion.session: ToOneField","params":[],"returns":"ToOneField","receiver":{"name":"this","type":"KotlinWindow.Companion"}}],"imports":{"Pane":"io.github.libtmux.Pane","Session":"io.github.libtmux.Session","Window_":"io.github.libtmux.Window_","LibtmuxWindow":"io.github.libtmux.Window","KotlinWindow":"io.github.libtmux.kotlin.Window"},"modifiers":[],"doc":{"summary":"The session this link belongs to."},"source":{"file":"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/WindowFields.kt","line":68,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-window-companion-session"},{"id":"io.github.libtmux.query.FilterExpr.not","name":"not","kind":"function","signatures":[{"raw":"public operator fun FilterExpr.not(): FilterExpr","params":[],"returns":"FilterExpr","receiver":{"name":"this","type":"FilterExpr"},"typeParams":["T"],"typeParameters":[{"name":"T","bound":"Any"}]}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","JavaClient":"io.github.libtmux.Client","JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"Inverts an expression, so `!Pane_.active().isTrue()` says what it means.","body":"There is no matching `and` or `or` here, deliberately. Those are already methods on\n[FilterExpr], and an extension of the same name would be shadowed by the member inside its own\nbody while winning at an infix call site — correct either way, but for a reason no reader should\nhave to work out. `a.and(b)` is one character longer than `a and b` and always means the thing it\nappears to.\n\n`negate` rather than `not` on the Java side because [java.util.function.Predicate] already owns\n`not`, and these expressions are predicates.\n\nThe bound is `T : Any` rather than `T`, and that is not a style choice. The core is `@NullMarked`,\nso Kotlin reads `FilterExpr` as `FilterExpr`; an unbounded `T` here would admit a\nnullable entity the core says cannot exist. Compiled with `-Xjspecify-annotations=strict`, so it\nis an error rather than a warning — this file did not compile until the bound was written."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Filters.kt","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-query-filterexpr-not"},{"id":"io.github.libtmux.kotlin.Iterable.filter","name":"filter","kind":"function","signatures":[{"raw":"public fun Iterable.filter(expression: FilterExpr): List","params":[{"name":"expression","type":"FilterExpr"}],"returns":"List","receiver":{"name":"this","type":"Iterable"},"typeParams":["T"],"typeParameters":[{"name":"T","bound":"Any"}]},{"raw":"public fun Iterable.filter(expression: FilterExpr): List","params":[{"name":"expression","type":"FilterExpr"}],"returns":"List","receiver":{"name":"this","type":"Iterable"}},{"raw":"public fun Iterable.filter(expression: FilterExpr): List","params":[{"name":"expression","type":"FilterExpr"}],"returns":"List","receiver":{"name":"this","type":"Iterable"}},{"raw":"public fun Iterable.filter(expression: FilterExpr): List","params":[{"name":"expression","type":"FilterExpr"}],"returns":"List","receiver":{"name":"this","type":"Iterable"}},{"raw":"public fun Iterable.filter(expression: FilterExpr): List","params":[{"name":"expression","type":"FilterExpr"}],"returns":"List","receiver":{"name":"this","type":"Iterable"}}],"imports":{"FilterExpr":"io.github.libtmux.query.FilterExpr","JavaClient":"io.github.libtmux.Client","JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window"},"modifiers":["overload"],"doc":{"summary":"Selects the elements an expression matches.","body":"Kotlin's own `filter` takes a function, not a [java.util.function.Predicate], so handing it a\n[FilterExpr] does not compile — the one place where reading the Java documentation and writing\nKotlin part company. This is that overload, so `panes.filter(Pane_.active().isTrue())` means what\nit appears to.\n\nThe list is already in hand: this asks tmux nothing."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Filters.kt","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-iterable-filter"},{"id":"io.github.libtmux.kotlin.Server.liveState","name":"liveState","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.liveState(\n session: Session,\n scope: CoroutineScope,\n attachTimeout: Duration = config.defaultTimeout().toKotlinDuration(),\n): StateFlow","params":[{"name":"session","type":"Session"},{"name":"scope","type":"CoroutineScope"},{"name":"attachTimeout","type":"Duration","default":"config.defaultTimeout().toKotlinDuration()","doc":"how long to wait for the first attach, and the deadline each later rebuild wait uses to recheck [scope] for cancellation"}],"returns":"StateFlow","receiver":{"name":"this","type":"Server"},"raises":[{"type":"io.github.libtmux.exception.TargetGoneException","doc":"synchronously if [session]'s server has already gone when this is called; later, the same failure ends [scope] instead, since it surfaces from the launched pump rather than from this call"}]}],"imports":{"ServerMirror":"io.github.libtmux.snapshot.ServerMirror","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","CoroutineScope":"kotlinx.coroutines.CoroutineScope","NonCancellable":"kotlinx.coroutines.NonCancellable","cancelChildren":"kotlinx.coroutines.cancelChildren","coroutineScope":"kotlinx.coroutines.coroutineScope","MutableStateFlow":"kotlinx.coroutines.flow.MutableStateFlow","StateFlow":"kotlinx.coroutines.flow.StateFlow","asStateFlow":"kotlinx.coroutines.flow.asStateFlow","isActive":"kotlinx.coroutines.isActive","launch":"kotlinx.coroutines.launch","runInterruptible":"kotlinx.coroutines.runInterruptible","withContext":"kotlinx.coroutines.withContext"},"modifiers":["async"],"doc":{"summary":"A live, continuously rebuilt view of [server], as a [StateFlow].","body":"Wraps Java's [ServerMirror] rather than reinventing it: every routine case — resnapshot on\nnotification, on gap, and on reconnect; conflation while a rebuild is in flight; ending once\n[session] itself is gone — is already handled once, correctly, inside [ServerMirror]. This\nfunction's only job is pumping [ServerMirror.awaitNewer] on a dedicated thread from\n[ExecutionPolicy.streamReads] and publishing what comes back. Named `liveState`, not `ServerMirror`,\nso it does not collide with the Java type it wraps.\n\n[scope] owns the returned [StateFlow]'s whole lifetime: closing the mirror is this function's own\n`launch`+`finally`, tied to [scope]'s cancellation, so the caller never has to close it by hand."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/LiveState.kt","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-livestate"},{"id":"io.github.libtmux.kotlin.Server.withLiveState","name":"withLiveState","kind":"method","parent":"io.github.libtmux.kotlin.Server","signatures":[{"raw":"public suspend fun Server.withLiveState(\n session: Session,\n attachTimeout: Duration = config.defaultTimeout().toKotlinDuration(),\n block: suspend (StateFlow) -> R,\n): R","params":[{"name":"session","type":"Session"},{"name":"attachTimeout","type":"Duration","default":"config.defaultTimeout().toKotlinDuration()"},{"name":"block","type":"suspend"}],"returns":"R","receiver":{"name":"this","type":"Server"},"typeParams":["R"],"typeParameters":[{"name":"R"}]}],"imports":{"ServerMirror":"io.github.libtmux.snapshot.ServerMirror","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","toKotlinDuration":"kotlin.time.toKotlinDuration","CoroutineScope":"kotlinx.coroutines.CoroutineScope","NonCancellable":"kotlinx.coroutines.NonCancellable","cancelChildren":"kotlinx.coroutines.cancelChildren","coroutineScope":"kotlinx.coroutines.coroutineScope","MutableStateFlow":"kotlinx.coroutines.flow.MutableStateFlow","StateFlow":"kotlinx.coroutines.flow.StateFlow","asStateFlow":"kotlinx.coroutines.flow.asStateFlow","isActive":"kotlinx.coroutines.isActive","launch":"kotlinx.coroutines.launch","runInterruptible":"kotlinx.coroutines.runInterruptible","withContext":"kotlinx.coroutines.withContext"},"modifiers":["async"],"doc":{"summary":"As [liveState], scoped to [block]: opens the live view, runs [block] against it, and cancels the background pump before returning — the same `withServer`/`withControl` shape, for the one resource [liveState] itself cannot close on its own.","body":"[liveState]'s pump runs until [scope] ends, by design (a caller collecting it for the life of a\nprogram passes its own long-lived scope) — which means a bare `coroutineScope { liveState(...) }`\nnever returns: `coroutineScope` waits for every child, the pump included, and nothing inside it\nasks the pump to stop. This cancels that one child explicitly once [block] is done, whether it\nreturns or throws."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/LiveState.kt","line":86,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-kotlin-server-withlivestate"},{"id":"java.util.OptionalInt.orNull","name":"orNull","kind":"function","signatures":[{"raw":"public fun OptionalInt.orNull(): Int?","params":[],"returns":"Int?","receiver":{"name":"this","type":"OptionalInt"}}],"imports":{"OptionalInt":"java.util.OptionalInt","OptionalLong":"java.util.OptionalLong"},"modifiers":[],"doc":{"summary":"The value, or null when absent: an exit status, a captured server pid."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Optionals.kt","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"java-util-optionalint-ornull"},{"id":"java.util.OptionalLong.orNull","name":"orNull","kind":"function","signatures":[{"raw":"public fun OptionalLong.orNull(): Long?","params":[],"returns":"Long?","receiver":{"name":"this","type":"OptionalLong"}}],"imports":{"OptionalInt":"java.util.OptionalInt","OptionalLong":"java.util.OptionalLong"},"modifiers":[],"doc":{"summary":"The value, or null when absent."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Optionals.kt","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"java-util-optionallong-ornull"},{"id":"io.github.libtmux.Channel.await","name":"await","kind":"function","signatures":[{"raw":"public suspend fun Channel.await(\n timeout: Duration,\n dispatcher: CoroutineDispatcher = Dispatchers.IO,\n): WakeReason","params":[{"name":"timeout","type":"Duration","doc":"how long to wait, finite and positive"},{"name":"dispatcher","type":"CoroutineDispatcher","default":"Dispatchers.IO","doc":"where the blocking wait runs"}],"returns":"WakeReason","receiver":{"name":"this","type":"Channel"},"returnsDoc":"why the wait ended"}],"imports":{"Channel":"io.github.libtmux.Channel","WakeReason":"io.github.libtmux.WakeReason","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"Waits for something to signal this channel.","body":"Cancelling the coroutine interrupts the wait. That is not a timeout. A `wait-for` tmux has already\naccepted is not taken back."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Waits.kt","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-channel-await"},{"id":"io.github.libtmux.Channel.awaitReservingCapacity","name":"awaitReservingCapacity","kind":"function","signatures":[{"raw":"public suspend fun Channel.awaitReservingCapacity(\n timeout: Duration,\n dispatcher: CoroutineDispatcher = Dispatchers.IO,\n): WakeReason","params":[{"name":"timeout","type":"Duration","doc":"how long to wait, finite and positive"},{"name":"dispatcher","type":"CoroutineDispatcher","default":"Dispatchers.IO","doc":"where the blocking wait runs"}],"returns":"WakeReason","receiver":{"name":"this","type":"Channel"}}],"imports":{"Channel":"io.github.libtmux.Channel","WakeReason":"io.github.libtmux.WakeReason","Duration":"kotlin.time.Duration","toJavaDuration":"kotlin.time.toJavaDuration","CoroutineDispatcher":"kotlinx.coroutines.CoroutineDispatcher","Dispatchers":"kotlinx.coroutines.Dispatchers","runInterruptible":"kotlinx.coroutines.runInterruptible"},"modifiers":["async"],"doc":{"summary":"As [await], while preserving process capacity for a call that signals it."},"source":{"file":"libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Waits.kt","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-channel-awaitreservingcapacity"}],"sources":[{"product":"core","package":"io.github.libtmux:libtmux-kotlin","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272","version":"0.0.1-alpha.17-SNAPSHOT"}],"generatedSources":{"libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/BatchOperations.kt":"// GENERATED by build-logic/codegen from operation-catalog.json. Do not edit;\n// regenerate with the generateOperationWrappers Gradle task.\npackage io.github.libtmux.kotlin\n\nimport io.github.libtmux.batch.BatchResult\nimport kotlin.time.toJavaDuration\nimport kotlinx.coroutines.runInterruptible\n\n/**\n * Runs every collected operation in one tmux invocation.\n */\npublic suspend fun Batch.run(): BatchResult = runInterruptible(server.policy.commands) { java.run() }\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/BuffersOperations.kt":"// GENERATED by build-logic/codegen from operation-catalog.json. Do not edit;\n// regenerate with the generateOperationWrappers Gradle task.\npackage io.github.libtmux.kotlin\n\nimport io.github.libtmux.BufferInfo\nimport java.nio.`file`.Path\nimport kotlin.String\nimport kotlin.Unit\nimport kotlin.collections.List\nimport kotlin.time.toJavaDuration\nimport kotlinx.coroutines.runInterruptible\n\n/**\n * Removes a buffer by its exact name.\n */\npublic suspend fun Buffers.delete(name: String): Unit = runInterruptible(server.policy.commands) { java.delete(name) }\n\n/**\n * Captures every buffer the server holds, in tmux's order.\n */\npublic suspend fun Buffers.list(): List = runInterruptible(server.policy.commands) { java.list() }\n\n/**\n * Reads a file into a named buffer.\n */\npublic suspend fun Buffers.load(name: String, `file`: Path): Unit = runInterruptible(server.policy.commands) { java.load(name, file) }\n\n/**\n * Writes a buffer's contents to a file.\n */\npublic suspend fun Buffers.save(name: String, `file`: Path): Unit = runInterruptible(server.policy.commands) { java.save(name, file) }\n\n/**\n * Puts text in a named buffer, replacing whatever was there.\n */\npublic suspend fun Buffers.`set`(name: String, contents: String): Unit = runInterruptible(server.policy.commands) { java.set(name, contents) }\n\n/**\n * What a buffer holds, without any line breaks it ends with.\n */\npublic suspend fun Buffers.show(name: String): String = runInterruptible(server.policy.commands) { java.show(name) }\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ClientOperations.kt":"// GENERATED by build-logic/codegen from operation-catalog.json. Do not edit;\n// regenerate with the generateOperationWrappers Gradle task.\npackage io.github.libtmux.kotlin\n\nimport io.github.libtmux.ClientAttachment\nimport kotlin.Unit\nimport kotlin.time.toJavaDuration\nimport kotlinx.coroutines.runInterruptible\n\n/**\n * Detaches this client, leaving whatever it was attached to running.\n */\npublic suspend fun Client.detach(): Unit = runInterruptible(server.policy.commands) { java.detach() }\n\n/**\n * Detaches every other client, leaving this one attached.\n */\npublic suspend fun Client.detachOthers(): Unit = runInterruptible(server.policy.commands) { java.detachOthers() }\n\n/**\n * Takes a new capture and returns what this client is looking at now.\n */\npublic suspend fun Client.fetchAttachment(): ClientAttachment? = runInterruptible(server.policy.commands) { java.fetchAttachment().orElse(null) }\n\n/**\n * Asks tmux to redraw this client.\n */\npublic suspend fun Client.redraw(): Unit = runInterruptible(server.policy.commands) { java.redraw() }\n\n/**\n * Takes a new capture and returns this client as it is now.\n */\npublic suspend fun Client.refresh(): Client = runInterruptible(server.policy.commands) { Client(java.refresh(), this.server) }\n\n/**\n * Moves this client to another session.\n */\npublic suspend fun Client.switchTo(session: Session): Unit = runInterruptible(server.policy.commands) { java.switchTo(session.java) }\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/CommandChainOperations.kt":"// GENERATED by build-logic/codegen from operation-catalog.json. Do not edit;\n// regenerate with the generateOperationWrappers Gradle task.\npackage io.github.libtmux.kotlin\n\nimport io.github.libtmux.batch.BatchResult\nimport kotlin.String\nimport kotlin.time.toJavaDuration\nimport kotlinx.coroutines.runInterruptible\n\n/**\n * Arranges the current window.\n */\npublic suspend fun CommandChain.arrange(layout: String): CommandChain = runInterruptible(server.policy.commands) { CommandChain(java.arrange(layout), this.server) }\n\n/**\n * Runs the whole chain in one tmux invocation, attributing each step.\n */\npublic suspend fun CommandChain.run(): BatchResult = runInterruptible(server.policy.commands) { java.run() }\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/CommandsOperations.kt":"// GENERATED by build-logic/codegen from operation-catalog.json. Do not edit;\n// regenerate with the generateOperationWrappers Gradle task.\npackage io.github.libtmux.kotlin\n\nimport kotlin.String\nimport kotlin.collections.List\nimport kotlin.time.toJavaDuration\nimport kotlinx.coroutines.runInterruptible\n\n/**\n * Every command, as tmux prints it.\n */\npublic suspend fun Commands.list(): List = runInterruptible(server.policy.commands) { java.list() }\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ControlClientOperations.kt":"// GENERATED by build-logic/codegen from operation-catalog.json. Do not edit;\n// regenerate with the generateOperationWrappers Gradle task.\npackage io.github.libtmux.kotlin\n\nimport io.github.libtmux.control.ControlReply\nimport kotlin.String\nimport kotlin.collections.List\nimport kotlin.time.Duration\nimport kotlin.time.toJavaDuration\nimport kotlinx.coroutines.runInterruptible\n\n/**\n * Runs one command and waits for its reply.\n */\npublic suspend fun ControlClient.send(vararg argv: String): ControlReply = runInterruptible(server.policy.commands) { java.send(*argv) }\n\n/**\n * Runs one command and waits for its reply.\n */\npublic suspend fun ControlClient.send(argv: List): ControlReply = runInterruptible(server.policy.commands) { java.send(argv) }\n\n/**\n * Runs one command and waits for its reply.\n */\npublic suspend fun ControlClient.send(argv: List, timeout: Duration): ControlReply = runInterruptible(server.policy.commands) { java.send(argv, timeout.toJavaDuration()) }\n\n/**\n * Stops a watch.\n */\npublic suspend fun ControlClient.unwatch(name: String): ControlReply = runInterruptible(server.policy.commands) { java.unwatch(name) }\n\n/**\n * Asks tmux to report a format whenever its value changes.\n */\npublic suspend fun ControlClient.watch(\n name: String,\n target: String,\n format: String,\n): ControlReply = runInterruptible(server.policy.commands) { java.watch(name, target, format) }\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/EnvironmentOperations.kt":"// GENERATED by build-logic/codegen from operation-catalog.json. Do not edit;\n// regenerate with the generateOperationWrappers Gradle task.\npackage io.github.libtmux.kotlin\n\nimport kotlin.Boolean\nimport kotlin.String\nimport kotlin.Unit\nimport kotlin.collections.Map\nimport kotlin.collections.Set\nimport kotlin.time.toJavaDuration\nimport kotlinx.coroutines.runInterruptible\n\n/**\n * Every name set at this scope, in tmux's order.\n */\npublic suspend fun Environment.all(): Map = runInterruptible(server.policy.commands) { java.all() }\n\n/**\n * What a process started from this scope is actually handed, both scopes taken together.\n */\npublic suspend fun Environment.effective(): Map = runInterruptible(server.policy.commands) { java.effective() }\n\n/**\n * The value set for this name, or empty when it is removed or absent.\n */\npublic suspend fun Environment.`get`(name: String): String? = runInterruptible(server.policy.commands) { java.get(name).orElse(null) }\n\n/**\n * Whether new processes are told not to inherit this name.\n */\npublic suspend fun Environment.isRemoved(name: String): Boolean = runInterruptible(server.policy.commands) { java.isRemoved(name) }\n\n/**\n * Tells processes started after this not to inherit the name.\n */\npublic suspend fun Environment.remove(name: String): Unit = runInterruptible(server.policy.commands) { java.remove(name) }\n\n/**\n * Every name this scope tells a new process not to inherit.\n */\npublic suspend fun Environment.removed(): Set = runInterruptible(server.policy.commands) { java.removed() }\n\n/**\n * Sets a name to a literal value.\n */\npublic suspend fun Environment.`set`(name: String, `value`: String): Unit = runInterruptible(server.policy.commands) { java.set(name, value) }\n\n/**\n * Sets a name to what a tmux format expands to now.\n */\npublic suspend fun Environment.setExpanded(name: String, format: String): Unit = runInterruptible(server.policy.commands) { java.setExpanded(name, format) }\n\n/**\n * Removes the name from this scope, so it is neither set nor marked.\n */\npublic suspend fun Environment.unset(name: String): Unit = runInterruptible(server.policy.commands) { java.unset(name) }\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/HooksOperations.kt":"// GENERATED by build-logic/codegen from operation-catalog.json. Do not edit;\n// regenerate with the generateOperationWrappers Gradle task.\npackage io.github.libtmux.kotlin\n\nimport kotlin.String\nimport kotlin.Unit\nimport kotlin.collections.List\nimport kotlin.collections.Map\nimport kotlin.time.toJavaDuration\nimport kotlinx.coroutines.runInterruptible\n\n/**\n * Every hook at this scope, keyed by event, each with its commands in the order tmux runs them.\n */\npublic suspend fun Hooks.all(): Map> = runInterruptible(server.policy.commands) { java.all() }\n\n/**\n * As [.append(String, String)], with the command as words.\n */\npublic suspend fun Hooks.append(event: String, command: List): Unit = runInterruptible(server.policy.commands) { java.append(event, command) }\n\n/**\n * Binds another command to an event, after whatever is already bound to it.\n */\npublic suspend fun Hooks.append(event: String, command: String): Unit = runInterruptible(server.policy.commands) { java.append(event, command) }\n\n/**\n * Runs what is bound to an event now, without waiting for the event.\n */\npublic suspend fun Hooks.run(event: String): Unit = runInterruptible(server.policy.commands) { java.run(event) }\n\n/**\n * Binds a tmux command to an event at this scope, replacing anything already bound to it.\n */\npublic suspend fun Hooks.`set`(event: String, command: String): Unit = runInterruptible(server.policy.commands) { java.set(event, command) }\n\n/**\n * As [.set(String, String)], with the command as words rather than a line tmux parses.\n */\npublic suspend fun Hooks.`set`(event: String, command: List): Unit = runInterruptible(server.policy.commands) { java.set(event, command) }\n\n/**\n * Removes everything bound to an event at this scope.\n */\npublic suspend fun Hooks.unset(event: String): Unit = runInterruptible(server.policy.commands) { java.unset(event) }\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/KeysOperations.kt":"// GENERATED by build-logic/codegen from operation-catalog.json. Do not edit;\n// regenerate with the generateOperationWrappers Gradle task.\npackage io.github.libtmux.kotlin\n\nimport kotlin.String\nimport kotlin.Unit\nimport kotlin.collections.List\nimport kotlin.time.toJavaDuration\nimport kotlinx.coroutines.runInterruptible\n\n/**\n * Binds a key to a tmux command, given as its words.\n */\npublic suspend fun Keys.bind(key: String, command: List): Unit = runInterruptible(server.policy.commands) { java.bind(key, command) }\n\n/**\n * The bindings as tmux lists them, one per line.\n */\npublic suspend fun Keys.list(): List = runInterruptible(server.policy.commands) { java.list() }\n\n/**\n * Removes a key's binding.\n */\npublic suspend fun Keys.unbind(key: String): Unit = runInterruptible(server.policy.commands) { java.unbind(key) }\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/MessageLogOperations.kt":"// GENERATED by build-logic/codegen from operation-catalog.json. Do not edit;\n// regenerate with the generateOperationWrappers Gradle task.\npackage io.github.libtmux.kotlin\n\nimport kotlin.String\nimport kotlin.collections.List\nimport kotlin.time.toJavaDuration\nimport kotlinx.coroutines.runInterruptible\n\n/**\n * The log lines.\n */\npublic suspend fun MessageLog.lines(): List = runInterruptible(server.policy.commands) { java.lines() }\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/OptionsOperations.kt":"// GENERATED by build-logic/codegen from operation-catalog.json. Do not edit;\n// regenerate with the generateOperationWrappers Gradle task.\npackage io.github.libtmux.kotlin\n\nimport kotlin.Boolean\nimport kotlin.String\nimport kotlin.Unit\nimport kotlin.collections.Map\nimport kotlin.time.toJavaDuration\nimport kotlinx.coroutines.runInterruptible\n\n/**\n * Every option set at this scope, in tmux's order.\n */\npublic suspend fun Options.all(): Map = runInterruptible(server.policy.commands) { java.all() }\n\n/**\n * Adds to the end of a string option, rather than replacing it.\n */\npublic suspend fun Options.append(name: String, suffix: String): Unit = runInterruptible(server.policy.commands) { java.append(name, suffix) }\n\n/**\n * Every option tmux lists at this scope, including inherited built-in values.\n */\npublic suspend fun Options.effective(): Map = runInterruptible(server.policy.commands) { java.effective() }\n\n/**\n * Sets one option to what a tmux format comes to, rather than to the format itself.\n */\npublic suspend fun Options.setExpanded(name: String, format: String): Unit = runInterruptible(server.policy.commands) { java.setExpanded(name, format) }\n\n/**\n * Sets one option only if this scope does not already set it.\n */\npublic suspend fun Options.setIfAbsent(name: String, `value`: String): Boolean = runInterruptible(server.policy.commands) { java.setIfAbsent(name, value) }\n\n/**\n * Removes one option at this scope, so it falls back to whatever it inherits.\n */\npublic suspend fun Options.unset(name: String): Unit = runInterruptible(server.policy.commands) { java.unset(name) }\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PaneOperations.kt":"// GENERATED by build-logic/codegen from operation-catalog.json. Do not edit;\n// regenerate with the generateOperationWrappers Gradle task.\npackage io.github.libtmux.kotlin\n\nimport io.github.libtmux.CaptureSpec\nimport io.github.libtmux.Dimensions\nimport io.github.libtmux.Direction\nimport io.github.libtmux.PaneMode\nimport io.github.libtmux.SplitSpec\nimport java.lang.Runnable\nimport java.nio.`file`.Path\nimport kotlin.Boolean\nimport kotlin.Int\nimport kotlin.String\nimport kotlin.Unit\nimport kotlin.collections.List\nimport kotlin.collections.Map\nimport kotlin.time.toJavaDuration\nimport kotlinx.coroutines.runInterruptible\n\n/**\n * Moves this pane into a window of its own, leaving tmux to name it.\n */\npublic suspend fun Pane.breakOut(): Window = runInterruptible(server.policy.commands) { Window(java.breakOut(), this.server) }\n\n/**\n * Moves this pane into a window of its own with the given name.\n */\npublic suspend fun Pane.breakOut(windowName: String): Window = runInterruptible(server.policy.commands) { Window(java.breakOut(windowName), this.server) }\n\n/**\n * This pane's visible content, one element per line.\n */\npublic suspend fun Pane.capture(): List = runInterruptible(server.policy.commands) { java.capture() }\n\n/**\n * Reads part of this pane according to a spec, which may be reused across panes.\n */\npublic suspend fun Pane.capture(spec: CaptureSpec): List = runInterruptible(server.policy.commands) { java.capture(spec) }\n\n/**\n * Discards this pane's scrollback.\n */\npublic suspend fun Pane.clearHistory(): Unit = runInterruptible(server.policy.commands) { java.clearHistory() }\n\n/**\n * Puts this pane into copy mode, where its scrollback can be navigated.\n */\npublic suspend fun Pane.copyMode(): Unit = runInterruptible(server.policy.commands) { java.copyMode() }\n\n/**\n * Whether this pane's process has exited, read fresh rather than from the capture.\n */\npublic suspend fun Pane.dead(): Boolean = runInterruptible(server.policy.commands) { java.dead() }\n\n/**\n * Leaves whichever mode this pane is in.\n */\npublic suspend fun Pane.exitMode(): Unit = runInterruptible(server.policy.commands) { java.exitMode() }\n\n/**\n * Expands a tmux format in this pane's context, and answers with what it came to.\n */\npublic suspend fun Pane.expand(format: String): String = runInterruptible(server.policy.commands) { java.expand(format) }\n\n/**\n * Moves this pane into another window, splitting it.\n */\npublic suspend fun Pane.joinTo(window: Window): Unit = runInterruptible(server.policy.commands) { java.joinTo(window.java) }\n\n/**\n * Closes this pane.\n */\npublic suspend fun Pane.kill(): Unit = runInterruptible(server.policy.commands) { java.kill() }\n\n/**\n * Which mode this pane is in at this moment, or empty when it is in none.\n */\npublic suspend fun Pane.mode(): PaneMode? = runInterruptible(server.policy.commands) { java.mode().orElse(null) }\n\n/**\n * Notes text that reached this pane without going through this handle, so a wait discounts its\n * echo the way it discounts text sent through [.sendLiteral].\n */\npublic suspend fun Pane.noteTyped(text: String): Unit = runInterruptible(server.policy.commands) { java.noteTyped(text) }\n\n/**\n * Pastes text into this pane as one block, leaving nothing behind on the server.\n */\npublic suspend fun Pane.paste(text: String): Unit = runInterruptible(server.policy.commands) { java.paste(text) }\n\n/**\n * As [.paste(String)], after a caller rechecks state once its private buffer is ready.\n */\npublic suspend fun Pane.paste(text: String, beforePaste: Runnable): Unit = runInterruptible(server.policy.commands) { java.paste(text, beforePaste) }\n\n/**\n * Pastes a named buffer into this pane, as though it had been typed.\n */\npublic suspend fun Pane.pasteBuffer(name: String): Unit = runInterruptible(server.policy.commands) { java.pasteBuffer(name) }\n\n/**\n * Sends everything this pane prints to a shell command, until [.stopPiping].\n */\npublic suspend fun Pane.pipeTo(shellCommand: String): Unit = runInterruptible(server.policy.commands) { java.pipeTo(shellCommand) }\n\n/**\n * Takes a new capture and returns this pane as it is now.\n */\npublic suspend fun Pane.refresh(): Pane = runInterruptible(server.policy.commands) { Pane(java.refresh(), this.server) }\n\n/**\n * Grows this pane by a number of cells in one direction.\n */\npublic suspend fun Pane.resize(direction: Direction, cells: Int): Unit = runInterruptible(server.policy.commands) { java.resize(direction, cells) }\n\n/**\n * Resizes this pane.\n */\npublic suspend fun Pane.resizeTo(size: Dimensions): Unit = runInterruptible(server.policy.commands) { java.resizeTo(size) }\n\n/**\n * Kills whatever runs here and starts the pane's default command again.\n */\npublic suspend fun Pane.respawn(): Unit = runInterruptible(server.policy.commands) { java.respawn() }\n\n/**\n * Kills whatever runs here and starts the given command instead.\n */\npublic suspend fun Pane.respawn(vararg command: String): Unit = runInterruptible(server.policy.commands) { java.respawn(*command) }\n\n/**\n * Restarts the configured pane process in a caller-supplied literal directory, resolved against\n * this process's working directory when relative.\n */\npublic suspend fun Pane.respawnIn(directory: Path): Unit = runInterruptible(server.policy.commands) { java.respawnIn(directory) }\n\n/**\n * Retitles this pane and returns its replacement capture.\n */\npublic suspend fun Pane.retitle(title: String): Pane = runInterruptible(server.policy.commands) { Pane(java.retitle(title), this.server) }\n\n/**\n * Makes this the active pane of its window.\n */\npublic suspend fun Pane.select(): Unit = runInterruptible(server.policy.commands) { java.select() }\n\n/**\n * Sends keys to this pane without pressing Enter.\n */\npublic suspend fun Pane.send(keys: String): Unit = runInterruptible(server.policy.commands) { java.send(keys) }\n\n/**\n * Sends an ordered group of key names to this pane, as tmux resolves them.\n */\npublic suspend fun Pane.sendKeys(keys: List): Unit = runInterruptible(server.policy.commands) { java.sendKeys(keys) }\n\n/**\n * As [.sendKeys(List)], after a caller validates the prepared input destination.\n */\npublic suspend fun Pane.sendKeys(keys: List, beforeSend: Runnable): Unit = runInterruptible(server.policy.commands) { java.sendKeys(keys, beforeSend) }\n\n/**\n * Sends a line to this pane and presses Enter, which is how a command gets run.\n */\npublic suspend fun Pane.sendLine(command: String): Unit = runInterruptible(server.policy.commands) { java.sendLine(command) }\n\n/**\n * Sends an ordered group of strings to this pane as the characters they spell.\n */\npublic suspend fun Pane.sendLiteral(keys: List): Unit = runInterruptible(server.policy.commands) { java.sendLiteral(keys) }\n\n/**\n * As [.sendLiteral(List)], after a caller validates the prepared input destination.\n */\npublic suspend fun Pane.sendLiteral(keys: List, beforeSend: Runnable): Unit = runInterruptible(server.policy.commands) { java.sendLiteral(keys, beforeSend) }\n\n/**\n * Splits this pane in half, putting the new one below it.\n */\npublic suspend fun Pane.split(): Pane = runInterruptible(server.policy.commands) { Pane(java.split(), this.server) }\n\n/**\n * Splits this pane according to a spec, which may be reused across panes.\n */\npublic suspend fun Pane.split(spec: SplitSpec): Pane = runInterruptible(server.policy.commands) { Pane(java.split(spec), this.server) }\n\n/**\n * Stops sending this pane's output anywhere.\n */\npublic suspend fun Pane.stopPiping(): Unit = runInterruptible(server.policy.commands) { java.stopPiping() }\n\n/**\n * Swaps this pane's position with another's.\n */\npublic suspend fun Pane.swapWith(other: Pane): Unit = runInterruptible(server.policy.commands) { java.swapWith(other.java) }\n\n/**\n * Reads validated tmux variables in this pane's format context.\n */\npublic suspend fun Pane.variables(names: List): Map = runInterruptible(server.policy.commands) { java.variables(names) }\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/PromptOperations.kt":"// GENERATED by build-logic/codegen from operation-catalog.json. Do not edit;\n// regenerate with the generateOperationWrappers Gradle task.\npackage io.github.libtmux.kotlin\n\nimport kotlin.String\nimport kotlin.Unit\nimport kotlin.collections.List\nimport kotlin.time.toJavaDuration\nimport kotlinx.coroutines.runInterruptible\n\n/**\n * Forgets what has been typed at the prompt.\n */\npublic suspend fun Prompt.clear(): Unit = runInterruptible(server.policy.commands) { java.clear() }\n\n/**\n * What has been typed at the prompt, oldest first.\n */\npublic suspend fun Prompt.history(): List = runInterruptible(server.policy.commands) { java.history() }\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt":"// GENERATED by build-logic/codegen from operation-catalog.json. Do not edit;\n// regenerate with the generateOperationWrappers Gradle task.\npackage io.github.libtmux.kotlin\n\nimport io.github.libtmux.PaneId\nimport io.github.libtmux.SessionId\nimport io.github.libtmux.SessionSpec\nimport io.github.libtmux.TmuxVersion\nimport io.github.libtmux.WindowId\nimport io.github.libtmux.query.FilterExpr\nimport io.github.libtmux.snapshot.ServerSnapshot\nimport io.github.libtmux.snapshot.WindowContext\nimport io.github.libtmux.transport.CommandResult\nimport java.nio.`file`.Path\nimport kotlin.Boolean\nimport kotlin.String\nimport kotlin.Unit\nimport kotlin.collections.List\nimport kotlin.collections.Map\nimport kotlin.time.Duration\nimport kotlin.time.toJavaDuration\nimport kotlinx.coroutines.runInterruptible\n\n/**\n * Captures every session a client is attached to.\n */\npublic suspend fun Server.attachedSessions(): List = runInterruptible(policy.commands) { java.attachedSessions().map { Session(it, this) } }\n\n/**\n * Captures every attached client.\n */\npublic suspend fun Server.clients(): List = runInterruptible(policy.commands) { java.clients().map { Client(it, this) } }\n\n/**\n * Runs one tmux command against this server.\n */\npublic suspend fun Server.cmd(vararg argv: String): CommandResult = runInterruptible(policy.commands) { java.cmd(*argv) }\n\n/**\n * Runs one tmux command against this server.\n */\npublic suspend fun Server.cmd(argv: List): CommandResult = runInterruptible(policy.commands) { java.cmd(argv) }\n\n/**\n * Runs one tmux command against this server, overriding the configured deadline.\n */\npublic suspend fun Server.cmd(argv: List, timeout: Duration): CommandResult = runInterruptible(policy.commands) { java.cmd(argv, timeout.toJavaDuration()) }\n\n/**\n * Expands a tmux format against the server, and answers with what it came to.\n */\npublic suspend fun Server.expand(format: String): String = runInterruptible(policy.commands) { java.expand(format) }\n\n/**\n * Whether a session with this name exists.\n */\npublic suspend fun Server.hasSession(name: String): Boolean = runInterruptible(policy.commands) { java.hasSession(name) }\n\n/**\n * Whether the server is running and answering.\n */\npublic suspend fun Server.isAlive(): Boolean = runInterruptible(policy.commands) { java.isAlive() }\n\n/**\n * Whether the server is running and answering, within a deadline of the caller's choosing.\n */\npublic suspend fun Server.isAlive(timeout: Duration): Boolean = runInterruptible(policy.commands) { java.isAlive(timeout.toJavaDuration()) }\n\n/**\n * Ends the tmux server and every session on it.\n */\npublic suspend fun Server.killServer(): Unit = runInterruptible(policy.commands) { java.killServer() }\n\n/**\n * Ends the tmux server and every session on it, within a deadline of the caller's choosing.\n */\npublic suspend fun Server.killServer(timeout: Duration): Unit = runInterruptible(policy.commands) { java.killServer(timeout.toJavaDuration()) }\n\n/**\n * Ends the session with this name, and everything in it.\n */\npublic suspend fun Server.killSession(name: String): Unit = runInterruptible(policy.commands) { java.killSession(name) }\n\n/**\n * Locks every client attached to this server.\n */\npublic suspend fun Server.lock(): Unit = runInterruptible(policy.commands) { java.lock() }\n\n/**\n * Creates a detached session and returns that exact session.\n */\npublic suspend fun Server.newSession(name: String): Session = runInterruptible(policy.commands) { Session(java.newSession(name), this) }\n\n/**\n * Creates a session according to a spec, which may be reused across servers.\n */\npublic suspend fun Server.newSession(spec: SessionSpec): Session = runInterruptible(policy.commands) { Session(java.newSession(spec), this) }\n\n/**\n * The pane with this id, captured now.\n */\npublic suspend fun Server.pane(id: PaneId): Pane? = runInterruptible(policy.commands) { java.pane(id).map { Pane(it, this) }.orElse(null) }\n\n/**\n * Chosen fields for every pane on the server, from one listing.\n */\npublic suspend fun Server.paneFields(names: List): Map> = runInterruptible(policy.commands) { java.paneFields(names) }\n\n/**\n * Captures every pane on the server.\n */\npublic suspend fun Server.panes(): List = runInterruptible(policy.commands) { java.panes().map { Pane(it, this) } }\n\n/**\n * The panes this expression matches, captured now.\n */\npublic suspend fun Server.panes(expression: FilterExpr): List = runInterruptible(policy.commands) { java.panes(expression).map { Pane(it, this) } }\n\n/**\n * Requires a running tmux daemon that answers the liveness probe.\n */\npublic suspend fun Server.requireAlive(): Unit = runInterruptible(policy.commands) { java.requireAlive() }\n\n/**\n * Runs a command that is expected to work, and raises when it did not.\n */\npublic suspend fun Server.run(argv: List): CommandResult = runInterruptible(policy.commands) { java.run(argv) }\n\n/**\n * The session with this name, captured now.\n */\npublic suspend fun Server.session(name: String): Session? = runInterruptible(policy.commands) { java.session(name).map { Session(it, this) }.orElse(null) }\n\n/**\n * The session with this id, captured now.\n */\npublic suspend fun Server.session(id: SessionId): Session? = runInterruptible(policy.commands) { java.session(id).map { Session(it, this) }.orElse(null) }\n\n/**\n * Every session, captured now.\n */\npublic suspend fun Server.sessions(): List = runInterruptible(policy.commands) { java.sessions().map { Session(it, this) } }\n\n/**\n * The sessions this expression matches, captured now.\n */\npublic suspend fun Server.sessions(expression: FilterExpr): List = runInterruptible(policy.commands) { java.sessions(expression).map { Session(it, this) } }\n\n/**\n * Captures the whole hierarchy in at most four listings, retrying once if the server is\n * replaced.\n */\npublic suspend fun Server.snapshot(): ServerSnapshot = runInterruptible(policy.commands) { java.snapshot() }\n\n/**\n * Runs a file of tmux commands, as a configuration file would be run.\n */\npublic suspend fun Server.sourceFile(`file`: Path): Unit = runInterruptible(policy.commands) { java.sourceFile(file) }\n\n/**\n * Reads only validated tmux variable names, never caller-authored format syntax.\n */\npublic suspend fun Server.variables(names: List): Map = runInterruptible(policy.commands) { java.variables(names) }\n\n/**\n * Which tmux this server is running.\n */\npublic suspend fun Server.version(): TmuxVersion = runInterruptible(policy.commands) { java.version() }\n\n/**\n * The winlink at this exact position, captured now.\n */\npublic suspend fun Server.window(context: WindowContext): Window? = runInterruptible(policy.commands) { java.window(context).map { Window(it, this) }.orElse(null) }\n\n/**\n * Captures every winlink, preserving each session and index placement.\n */\npublic suspend fun Server.windows(): List = runInterruptible(policy.commands) { java.windows().map { Window(it, this) } }\n\n/**\n * The winlinks this expression matches, captured now.\n */\npublic suspend fun Server.windows(expression: FilterExpr): List = runInterruptible(policy.commands) { java.windows(expression).map { Window(it, this) } }\n\n/**\n * Every winlink of the window with this id, captured now.\n */\npublic suspend fun Server.windows(id: WindowId): List = runInterruptible(policy.commands) { java.windows(id).map { Window(it, this) } }\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/SessionOperations.kt":"// GENERATED by build-logic/codegen from operation-catalog.json. Do not edit;\n// regenerate with the generateOperationWrappers Gradle task.\npackage io.github.libtmux.kotlin\n\nimport io.github.libtmux.WindowSpec\nimport kotlin.Int\nimport kotlin.String\nimport kotlin.Unit\nimport kotlin.time.toJavaDuration\nimport kotlinx.coroutines.runInterruptible\n\n/**\n * Detaches every client attached to this session, leaving the session running.\n */\npublic suspend fun Session.detachClients(): Unit = runInterruptible(server.policy.commands) { java.detachClients() }\n\n/**\n * Expands a tmux format in this session's context, and answers with what it came to.\n */\npublic suspend fun Session.expand(format: String): String = runInterruptible(server.policy.commands) { java.expand(format) }\n\n/**\n * Ends this session.\n */\npublic suspend fun Session.kill(): Unit = runInterruptible(server.policy.commands) { java.kill() }\n\n/**\n * Returns to the window that was active before this one.\n */\npublic suspend fun Session.lastWindow(): Unit = runInterruptible(server.policy.commands) { java.lastWindow() }\n\n/**\n * Creates a window in this session and returns that exact window.\n */\npublic suspend fun Session.newWindow(name: String): Window = runInterruptible(server.policy.commands) { Window(java.newWindow(name), this.server) }\n\n/**\n * Creates a window in this session according to a spec, which may be reused across sessions.\n */\npublic suspend fun Session.newWindow(spec: WindowSpec): Window = runInterruptible(server.policy.commands) { Window(java.newWindow(spec), this.server) }\n\n/**\n * Moves to the next window in this session, wrapping at the end.\n */\npublic suspend fun Session.nextWindow(): Unit = runInterruptible(server.policy.commands) { java.nextWindow() }\n\n/**\n * Moves to the previous window in this session, wrapping at the start.\n */\npublic suspend fun Session.previousWindow(): Unit = runInterruptible(server.policy.commands) { java.previousWindow() }\n\n/**\n * Takes a new capture and returns this session as it is now.\n */\npublic suspend fun Session.refresh(): Session = runInterruptible(server.policy.commands) { Session(java.refresh(), this.server) }\n\n/**\n * Renames this session and returns its replacement capture.\n */\npublic suspend fun Session.rename(name: String): Session = runInterruptible(server.policy.commands) { Session(java.rename(name), this.server) }\n\n/**\n * Makes a window of this session the active one.\n */\npublic suspend fun Session.selectWindow(window: Window): Unit = runInterruptible(server.policy.commands) { java.selectWindow(window.java) }\n\n/**\n * Sets the scrollback retained by panes created in this session.\n */\npublic suspend fun Session.setHistoryLimit(lines: Int): Unit = runInterruptible(server.policy.commands) { java.setHistoryLimit(lines) }\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ShellOperations.kt":"// GENERATED by build-logic/codegen from operation-catalog.json. Do not edit;\n// regenerate with the generateOperationWrappers Gradle task.\npackage io.github.libtmux.kotlin\n\nimport kotlin.String\nimport kotlin.Unit\nimport kotlin.collections.List\nimport kotlin.time.toJavaDuration\nimport kotlinx.coroutines.runInterruptible\n\n/**\n * Runs a shell command and answers with what it printed.\n */\npublic suspend fun Shell.capturing(command: String): List = runInterruptible(server.policy.commands) { java.capturing(command) }\n\n/**\n * Runs one tmux command when a shell command succeeds.\n */\npublic suspend fun Shell.choose(condition: String, whenTrue: String): Unit = runInterruptible(server.policy.commands) { java.choose(condition, whenTrue) }\n\n/**\n * Runs one tmux command or another, according to whether a shell command succeeds.\n */\npublic suspend fun Shell.choose(\n condition: String,\n whenTrue: String,\n whenFalse: String,\n): Unit = runInterruptible(server.policy.commands) { java.choose(condition, whenTrue, whenFalse) }\n\n/**\n * Runs a shell command for its effect.\n */\npublic suspend fun Shell.run(command: String): Unit = runInterruptible(server.policy.commands) { java.run(command) }\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/WindowOperations.kt":"// GENERATED by build-logic/codegen from operation-catalog.json. Do not edit;\n// regenerate with the generateOperationWrappers Gradle task.\npackage io.github.libtmux.kotlin\n\nimport io.github.libtmux.Dimensions\nimport io.github.libtmux.Layout\nimport io.github.libtmux.SplitSpec\nimport io.github.libtmux.WindowLayout\nimport kotlin.Int\nimport kotlin.String\nimport kotlin.Unit\nimport kotlin.time.toJavaDuration\nimport kotlinx.coroutines.runInterruptible\n\n/**\n * Restores an exact arrangement previously read from [.layout()].\n */\npublic suspend fun Window.applyLayout(layout: WindowLayout): Unit = runInterruptible(server.policy.commands) { java.applyLayout(layout) }\n\n/**\n * As [.applyLayout(WindowLayout)], for a layout held as text — one saved to a file, say.\n */\npublic suspend fun Window.applyLayout(layout: String): Unit = runInterruptible(server.policy.commands) { java.applyLayout(layout) }\n\n/**\n * Shows a popup over this window, running a command in it.\n */\npublic suspend fun Window.displayPopup(shellCommand: String): Unit = runInterruptible(server.policy.commands) { java.displayPopup(shellCommand) }\n\n/**\n * Expands a tmux format in this window's context, and answers with what it came to.\n */\npublic suspend fun Window.expand(format: String): String = runInterruptible(server.policy.commands) { java.expand(format) }\n\n/**\n * Closes this window.\n */\npublic suspend fun Window.kill(): Unit = runInterruptible(server.policy.commands) { java.kill() }\n\n/**\n * Links this window into another session, so one window sits in both.\n */\npublic suspend fun Window.linkTo(session: Session): Unit = runInterruptible(server.policy.commands) { java.linkTo(session.java) }\n\n/**\n * Moves this window into another session.\n */\npublic suspend fun Window.moveTo(session: Session): Unit = runInterruptible(server.policy.commands) { java.moveTo(session.java) }\n\n/**\n * Moves this window to an exact index in another session.\n */\npublic suspend fun Window.moveTo(session: Session, index: Int): Unit = runInterruptible(server.policy.commands) { java.moveTo(session.java, index) }\n\n/**\n * Moves to the next built-in layout, as tmux's own binding does.\n */\npublic suspend fun Window.nextLayout(): Unit = runInterruptible(server.policy.commands) { java.nextLayout() }\n\n/**\n * Moves to the previous built-in layout, as tmux's own binding does.\n */\npublic suspend fun Window.previousLayout(): Unit = runInterruptible(server.policy.commands) { java.previousLayout() }\n\n/**\n * Takes a new capture and returns this winlink as it is now.\n */\npublic suspend fun Window.refresh(): Window = runInterruptible(server.policy.commands) { Window(java.refresh(), this.server) }\n\n/**\n * Renames this window and returns its replacement capture.\n */\npublic suspend fun Window.rename(name: String): Window = runInterruptible(server.policy.commands) { Window(java.rename(name), this.server) }\n\n/**\n * Resizes this window in terminal cells.\n */\npublic suspend fun Window.resizeTo(size: Dimensions): Unit = runInterruptible(server.policy.commands) { java.resizeTo(size) }\n\n/**\n * Kills what is running in this window and starts it again.\n */\npublic suspend fun Window.respawn(): Unit = runInterruptible(server.policy.commands) { java.respawn() }\n\n/**\n * Rotates the panes within this window.\n */\npublic suspend fun Window.rotate(): Unit = runInterruptible(server.policy.commands) { java.rotate() }\n\n/**\n * Makes this the active window of its session.\n */\npublic suspend fun Window.select(): Unit = runInterruptible(server.policy.commands) { java.select() }\n\n/**\n * Rearranges this window's panes into one of tmux's built-in layouts.\n */\npublic suspend fun Window.selectLayout(layout: Layout): Unit = runInterruptible(server.policy.commands) { java.selectLayout(layout) }\n\n/**\n * Splits this window's active pane in half, putting the new one below it.\n */\npublic suspend fun Window.split(): Pane = runInterruptible(server.policy.commands) { Pane(java.split(), this.server) }\n\n/**\n * Splits this window's active pane according to a spec, which may be reused across windows.\n */\npublic suspend fun Window.split(spec: SplitSpec): Pane = runInterruptible(server.policy.commands) { Pane(java.split(spec), this.server) }\n\n/**\n * Stops copying input between this window's panes.\n */\npublic suspend fun Window.stopSynchronizingPanes(): Unit = runInterruptible(server.policy.commands) { java.stopSynchronizingPanes() }\n\n/**\n * Copies input to one pane into every pane in this window, until [.stopSynchronizingPanes].\n */\npublic suspend fun Window.synchronizePanes(): Unit = runInterruptible(server.policy.commands) { java.synchronizePanes() }\n\n/**\n * Removes this link, leaving the window wherever else it is linked.\n */\npublic suspend fun Window.unlink(): Unit = runInterruptible(server.policy.commands) { java.unlink() }\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/ClientFields.kt":"// GENERATED by build-logic/codegen from field-catalog.tsv. Do not edit;\n// regenerate with the generateFieldProperties Gradle task.\npackage io.github.libtmux.kotlin.query\n\nimport io.github.libtmux.Client_\nimport io.github.libtmux.Session\nimport io.github.libtmux.Client as LibtmuxClient\nimport io.github.libtmux.kotlin.Client as KotlinClient\n\n/**\n * The client's terminal name, which is how tmux addresses it.\n */\npublic val KotlinClient.Companion.name: TextField\n get() = TextField(Client_.name())\n\n/**\n * The session this client was attached to, if any.\n */\npublic val KotlinClient.Companion.session: ToOneField\n get() = ToOneField(Client_.session())\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/PaneFields.kt":"// GENERATED by build-logic/codegen from field-catalog.tsv. Do not edit;\n// regenerate with the generateFieldProperties Gradle task.\npackage io.github.libtmux.kotlin.query\n\nimport io.github.libtmux.Pane_\nimport io.github.libtmux.Pane as LibtmuxPane\nimport io.github.libtmux.kotlin.Pane as KotlinPane\n\n/**\n * The pane id.\n */\npublic val KotlinPane.Companion.id: TextField\n get() = TextField(Pane_.id())\n\n/**\n * The command tmux reported running in the pane.\n */\npublic val KotlinPane.Companion.command: TextField\n get() = TextField(Pane_.command())\n\n/**\n * The pane's position in its window.\n */\npublic val KotlinPane.Companion.index: NumberField\n get() = NumberField(Pane_.index())\n\n/**\n * Whether this was its window's active pane.\n */\npublic val KotlinPane.Companion.active: FlagField\n get() = FlagField(Pane_.active())\n\n/**\n * The pane's title, which a program running in it can set.\n */\npublic val KotlinPane.Companion.title: TextField\n get() = TextField(Pane_.title())\n\n/**\n * The pane's working directory, as the text tmux reported.\n */\npublic val KotlinPane.Companion.path: TextField\n get() = TextField(Pane_.path())\n\n/**\n * The pane's width, in cells.\n */\npublic val KotlinPane.Companion.width: NumberField\n get() = NumberField(Pane_.width())\n\n/**\n * The pane's height, in cells.\n */\npublic val KotlinPane.Companion.height: NumberField\n get() = NumberField(Pane_.height())\n\n/**\n * The column of the pane's left edge in its window.\n */\npublic val KotlinPane.Companion.left: NumberField\n get() = NumberField(Pane_.left())\n\n/**\n * The row of the pane's top edge in its window.\n */\npublic val KotlinPane.Companion.top: NumberField\n get() = NumberField(Pane_.top())\n\n/**\n * Whether the pane touches the top of its window.\n */\npublic val KotlinPane.Companion.atTop: FlagField\n get() = FlagField(Pane_.atTop())\n\n/**\n * Whether the pane touches the bottom of its window.\n */\npublic val KotlinPane.Companion.atBottom: FlagField\n get() = FlagField(Pane_.atBottom())\n\n/**\n * Whether the pane touches the left of its window.\n */\npublic val KotlinPane.Companion.atLeft: FlagField\n get() = FlagField(Pane_.atLeft())\n\n/**\n * Whether the pane touches the right of its window.\n */\npublic val KotlinPane.Companion.atRight: FlagField\n get() = FlagField(Pane_.atRight())\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/SessionFields.kt":"// GENERATED by build-logic/codegen from field-catalog.tsv. Do not edit;\n// regenerate with the generateFieldProperties Gradle task.\npackage io.github.libtmux.kotlin.query\n\nimport io.github.libtmux.Session_\nimport io.github.libtmux.Window\nimport io.github.libtmux.Session as LibtmuxSession\nimport io.github.libtmux.kotlin.Session as KotlinSession\n\n/**\n * The session id, as text, so it can be compared and listed.\n */\npublic val KotlinSession.Companion.id: TextField\n get() = TextField(Session_.id())\n\n/**\n * The session name.\n */\npublic val KotlinSession.Companion.name: TextField\n get() = TextField(Session_.name())\n\n/**\n * Whether a client was attached when this was captured.\n */\npublic val KotlinSession.Companion.attached: FlagField\n get() = FlagField(Session_.attached())\n\n/**\n * How many windows this session holds.\n */\npublic val KotlinSession.Companion.windowCount: NumberField\n get() = NumberField(Session_.windowCount())\n\n/**\n * This session's windows.\n */\npublic val KotlinSession.Companion.windows: ToManyField\n get() = ToManyField(Session_.windows())\n","libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/query/WindowFields.kt":"// GENERATED by build-logic/codegen from field-catalog.tsv. Do not edit;\n// regenerate with the generateFieldProperties Gradle task.\npackage io.github.libtmux.kotlin.query\n\nimport io.github.libtmux.Pane\nimport io.github.libtmux.Session\nimport io.github.libtmux.Window_\nimport io.github.libtmux.Window as LibtmuxWindow\nimport io.github.libtmux.kotlin.Window as KotlinWindow\n\n/**\n * The underlying window id, shared by every link to it.\n */\npublic val KotlinWindow.Companion.id: TextField\n get() = TextField(Window_.id())\n\n/**\n * The window name.\n */\npublic val KotlinWindow.Companion.name: TextField\n get() = TextField(Window_.name())\n\n/**\n * Where this link sits in its session.\n */\npublic val KotlinWindow.Companion.index: NumberField\n get() = NumberField(Window_.index())\n\n/**\n * Whether this was its session's active window.\n */\npublic val KotlinWindow.Companion.active: FlagField\n get() = FlagField(Window_.active())\n\n/**\n * Whether the underlying window is linked into more than one session.\n */\npublic val KotlinWindow.Companion.linked: FlagField\n get() = FlagField(Window_.linked())\n\n/**\n * The window's width, in cells.\n */\npublic val KotlinWindow.Companion.width: NumberField\n get() = NumberField(Window_.width())\n\n/**\n * The window's height, in cells.\n */\npublic val KotlinWindow.Companion.height: NumberField\n get() = NumberField(Window_.height())\n\n/**\n * How many panes this link holds.\n */\npublic val KotlinWindow.Companion.paneCount: NumberField\n get() = NumberField(Window_.paneCount())\n\n/**\n * This link's panes.\n */\npublic val KotlinWindow.Companion.panes: ToManyField\n get() = ToManyField(Window_.panes())\n\n/**\n * The session this link belongs to.\n */\npublic val KotlinWindow.Companion.session: ToOneField\n get() = ToOneField(Window_.session())\n"},"repo":"libtmux/libtmux-java"} diff --git a/site/src/data/api/scala.json b/site/src/data/api/scala.json index c601ac842..127eea8fb 100644 --- a/site/src/data/api/scala.json +++ b/site/src/data/api/scala.json @@ -1 +1 @@ -{"port":"scala","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractor":"@libtmux/api-model (scala syntax)","symbols":[{"id":"io.github.libtmux.scaladsl.cats.Batch","name":"Batch","kind":"class","signatures":[{"raw":"final class Batch[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"_":"scala.jdk.CollectionConverters._","BatchResult":"io.github.libtmux.batch.BatchResult","JavaBatch":"io.github.libtmux.batch.Batch"},"modifiers":[],"doc":{"summary":"An immutable batch plan. Construction does no tmux I/O and never touches a shared Java object: each `add` returns a new value holding one more argument vector. Each `run`/`length` builds a fresh Java `Batch` from `create` and dispatches it through `Execution`, so it is F-suspended, cancellation-safe, and admission-bounded like every other Cats operation — cancelling one run never disturbs a concurrent one, since neither shares Java state."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Batch.scala","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-batch"},{"id":"io.github.libtmux.scaladsl.cats.Batch.add","name":"add","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Batch","signatures":[{"raw":"def add(argv: Seq[String]): Batch[F]","params":[{"name":"argv","type":"Seq[String]"}],"returns":"Batch[F]"},{"raw":"def add(command: String, arguments: String*): Batch[F]","params":[{"name":"command","type":"String"},{"name":"arguments","type":"String*"}],"returns":"Batch[F]"}],"imports":{"_":"scala.jdk.CollectionConverters._","BatchResult":"io.github.libtmux.batch.BatchResult","JavaBatch":"io.github.libtmux.batch.Batch"},"modifiers":["overload"],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Batch.scala","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-batch-add"},{"id":"io.github.libtmux.scaladsl.cats.Batch.size","name":"size","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Batch","signatures":[{"raw":"def size: Int","params":[],"returns":"Int"}],"imports":{"_":"scala.jdk.CollectionConverters._","BatchResult":"io.github.libtmux.batch.BatchResult","JavaBatch":"io.github.libtmux.batch.Batch"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Batch.scala","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-batch-size"},{"id":"io.github.libtmux.scaladsl.cats.Batch.length","name":"length","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Batch","signatures":[{"raw":"def length: F[Int]","params":[],"returns":"F[Int]"}],"imports":{"_":"scala.jdk.CollectionConverters._","BatchResult":"io.github.libtmux.batch.BatchResult","JavaBatch":"io.github.libtmux.batch.Batch"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Batch.scala","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-batch-length"},{"id":"io.github.libtmux.scaladsl.cats.Batch.run","name":"run","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Batch","signatures":[{"raw":"def run: F[BatchResult]","params":[],"returns":"F[BatchResult]"}],"imports":{"_":"scala.jdk.CollectionConverters._","BatchResult":"io.github.libtmux.batch.BatchResult","JavaBatch":"io.github.libtmux.batch.Batch"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Batch.scala","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-batch-run"},{"id":"io.github.libtmux.scaladsl.cats.Batch.toString","name":"toString","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Batch","signatures":[{"raw":"override def toString: String","params":[],"returns":"String"}],"imports":{"_":"scala.jdk.CollectionConverters._","BatchResult":"io.github.libtmux.batch.BatchResult","JavaBatch":"io.github.libtmux.batch.Batch"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Batch.scala","line":34,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-batch-tostring"},{"id":"io.github.libtmux.scaladsl.cats.Channel","name":"Channel","kind":"class","signatures":[{"raw":"final class Channel[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"Async":"_root_.cats.effect.Async","FiniteDuration":"scala.concurrent.duration.FiniteDuration","_":"scala.jdk.DurationConverters._","JavaChannel":"io.github.libtmux.Channel","WakeReason":"io.github.libtmux.WakeReason"},"modifiers":[],"doc":{"summary":"One of tmux's wait-for channels. `signal` is a real dispatch (tmux's own `wait-for -S`), routed through `Execution#apply` like any other mutation; `await` reserves this server's shared-wait capacity the way every other handwritten `WAIT` operation does, since a Cats caller waiting and the caller releasing it usually share this same bounded transport."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Channel.scala","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-channel"},{"id":"io.github.libtmux.scaladsl.cats.Channel.signal","name":"signal","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Channel","signatures":[{"raw":"def signal: F[Unit]","params":[],"returns":"F[Unit]"}],"imports":{"Async":"_root_.cats.effect.Async","FiniteDuration":"scala.concurrent.duration.FiniteDuration","_":"scala.jdk.DurationConverters._","JavaChannel":"io.github.libtmux.Channel","WakeReason":"io.github.libtmux.WakeReason"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Channel.scala","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-channel-signal"},{"id":"io.github.libtmux.scaladsl.cats.Channel.await","name":"await","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Channel","signatures":[{"raw":"def await(timeout: FiniteDuration): F[WakeReason]","params":[{"name":"timeout","type":"FiniteDuration"}],"returns":"F[WakeReason]"}],"imports":{"Async":"_root_.cats.effect.Async","FiniteDuration":"scala.concurrent.duration.FiniteDuration","_":"scala.jdk.DurationConverters._","JavaChannel":"io.github.libtmux.Channel","WakeReason":"io.github.libtmux.WakeReason"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Channel.scala","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-channel-await"},{"id":"io.github.libtmux.scaladsl.cats.Channel.toString","name":"toString","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Channel","signatures":[{"raw":"override def toString: String","params":[],"returns":"String"}],"imports":{"Async":"_root_.cats.effect.Async","FiniteDuration":"scala.concurrent.duration.FiniteDuration","_":"scala.jdk.DurationConverters._","JavaChannel":"io.github.libtmux.Channel","WakeReason":"io.github.libtmux.WakeReason"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Channel.scala","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-channel-tostring"},{"id":"io.github.libtmux.scaladsl.cats.CommandChain","name":"CommandChain","kind":"class","signatures":[{"raw":"final class CommandChain[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"BatchResult":"io.github.libtmux.batch.BatchResult","_":"scala.jdk.CollectionConverters._","JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"doc":{"summary":"An immutable plan using tmux's evolving current target. Construction does no tmux I/O; each `run` builds a fresh Java chain from `create` and dispatches it through `Execution`, F-suspended and cancellation-safe like every other Cats operation."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/CommandChain.scala","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-commandchain"},{"id":"io.github.libtmux.scaladsl.cats.CommandChain.newWindow","name":"newWindow","kind":"method","parent":"io.github.libtmux.scaladsl.cats.CommandChain","signatures":[{"raw":"def newWindow(name: String): CommandChain[F]","params":[{"name":"name","type":"String"}],"returns":"CommandChain[F]"}],"imports":{"BatchResult":"io.github.libtmux.batch.BatchResult","_":"scala.jdk.CollectionConverters._","JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/CommandChain.scala","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-commandchain-newwindow"},{"id":"io.github.libtmux.scaladsl.cats.CommandChain.renameWindow","name":"renameWindow","kind":"method","parent":"io.github.libtmux.scaladsl.cats.CommandChain","signatures":[{"raw":"def renameWindow(name: String): CommandChain[F]","params":[{"name":"name","type":"String"}],"returns":"CommandChain[F]"}],"imports":{"BatchResult":"io.github.libtmux.batch.BatchResult","_":"scala.jdk.CollectionConverters._","JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/CommandChain.scala","line":22,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-commandchain-renamewindow"},{"id":"io.github.libtmux.scaladsl.cats.CommandChain.splitLeftRight","name":"splitLeftRight","kind":"method","parent":"io.github.libtmux.scaladsl.cats.CommandChain","signatures":[{"raw":"def splitLeftRight(): CommandChain[F]","params":[],"returns":"CommandChain[F]"}],"imports":{"BatchResult":"io.github.libtmux.batch.BatchResult","_":"scala.jdk.CollectionConverters._","JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/CommandChain.scala","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-commandchain-splitleftright"},{"id":"io.github.libtmux.scaladsl.cats.CommandChain.splitTopBottom","name":"splitTopBottom","kind":"method","parent":"io.github.libtmux.scaladsl.cats.CommandChain","signatures":[{"raw":"def splitTopBottom(): CommandChain[F]","params":[],"returns":"CommandChain[F]"}],"imports":{"BatchResult":"io.github.libtmux.batch.BatchResult","_":"scala.jdk.CollectionConverters._","JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/CommandChain.scala","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-commandchain-splittopbottom"},{"id":"io.github.libtmux.scaladsl.cats.CommandChain.sendLine","name":"sendLine","kind":"method","parent":"io.github.libtmux.scaladsl.cats.CommandChain","signatures":[{"raw":"def sendLine(command: String): CommandChain[F]","params":[{"name":"command","type":"String"}],"returns":"CommandChain[F]"}],"imports":{"BatchResult":"io.github.libtmux.batch.BatchResult","_":"scala.jdk.CollectionConverters._","JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/CommandChain.scala","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-commandchain-sendline"},{"id":"io.github.libtmux.scaladsl.cats.CommandChain.arrange","name":"arrange","kind":"method","parent":"io.github.libtmux.scaladsl.cats.CommandChain","signatures":[{"raw":"def arrange(layout: String): CommandChain[F]","params":[{"name":"layout","type":"String"}],"returns":"CommandChain[F]"}],"imports":{"BatchResult":"io.github.libtmux.batch.BatchResult","_":"scala.jdk.CollectionConverters._","JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"doc":{"summary":"Layout validation and its possible version query occur during run."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/CommandChain.scala","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-commandchain-arrange"},{"id":"io.github.libtmux.scaladsl.cats.CommandChain.`then`","name":"`then`","kind":"method","parent":"io.github.libtmux.scaladsl.cats.CommandChain","signatures":[{"raw":"def `then`(argv: Seq[String]): CommandChain[F]","params":[{"name":"argv","type":"Seq[String]"}],"returns":"CommandChain[F]"},{"raw":"def `then`(command: String, arguments: String*): CommandChain[F]","params":[{"name":"command","type":"String"},{"name":"arguments","type":"String*"}],"returns":"CommandChain[F]"}],"imports":{"BatchResult":"io.github.libtmux.batch.BatchResult","_":"scala.jdk.CollectionConverters._","JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":["overload"],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/CommandChain.scala","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-commandchain-then"},{"id":"io.github.libtmux.scaladsl.cats.CommandChain.run","name":"run","kind":"method","parent":"io.github.libtmux.scaladsl.cats.CommandChain","signatures":[{"raw":"def run: F[BatchResult]","params":[],"returns":"F[BatchResult]"}],"imports":{"BatchResult":"io.github.libtmux.batch.BatchResult","_":"scala.jdk.CollectionConverters._","JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/CommandChain.scala","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-commandchain-run"},{"id":"io.github.libtmux.scaladsl.cats.Control","name":"Control","kind":"class","signatures":[{"raw":"final class Control[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"object Control","params":[]}],"imports":{"direct":"io.github.libtmux.scaladsl","OperationOutcome":"io.github.libtmux.batch.OperationOutcome","Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.CollectionConverters._","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","ServerConfig":"io.github.libtmux.ServerConfig","SessionId":"io.github.libtmux.SessionId","ControlClient":"io.github.libtmux.control.ControlClient","ControlEvent":"io.github.libtmux.control.ControlEvent","ControlReply":"io.github.libtmux.control.ControlReply","PaneOutput":"io.github.libtmux.control.PaneOutput"},"modifiers":[],"doc":{"summary":"Owns an attached Java control client. Canceling an active request can end this attachment and its queued requests and observations. Use separate attachments for commands and observations that must survive that failure."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Control.scala","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-control"},{"id":"io.github.libtmux.scaladsl.cats.Control.acknowledge","name":"acknowledge","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Control","signatures":[{"raw":"def acknowledge(\n argv: Seq[String],\n timeout: Duration = Duration.ofSeconds(30)\n ): F[Control.Ack]","params":[{"name":"argv","type":"Seq[String]"},{"name":"timeout","type":"Duration","default":"Duration.ofSeconds(30)"}],"returns":"F[Control.Ack]"}],"imports":{"direct":"io.github.libtmux.scaladsl","OperationOutcome":"io.github.libtmux.batch.OperationOutcome","Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.CollectionConverters._","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","ServerConfig":"io.github.libtmux.ServerConfig","SessionId":"io.github.libtmux.SessionId","ControlClient":"io.github.libtmux.control.ControlClient","ControlEvent":"io.github.libtmux.control.ControlEvent","ControlReply":"io.github.libtmux.control.ControlReply","PaneOutput":"io.github.libtmux.control.PaneOutput"},"modifiers":[],"doc":{"summary":"Reads one raw reply without claiming deferred command completion. Cancellation does not prove that tmux rolled back a dispatched command. The timeout starts after Scala admission; an effect timeout can bound the whole call."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Control.scala","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-control-acknowledge"},{"id":"io.github.libtmux.scaladsl.cats.Control.isAlive","name":"isAlive","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Control","signatures":[{"raw":"def isAlive: F[Boolean]","params":[],"returns":"F[Boolean]"}],"imports":{"direct":"io.github.libtmux.scaladsl","OperationOutcome":"io.github.libtmux.batch.OperationOutcome","Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.CollectionConverters._","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","ServerConfig":"io.github.libtmux.ServerConfig","SessionId":"io.github.libtmux.SessionId","ControlClient":"io.github.libtmux.control.ControlClient","ControlEvent":"io.github.libtmux.control.ControlEvent","ControlReply":"io.github.libtmux.control.ControlReply","PaneOutput":"io.github.libtmux.control.PaneOutput"},"modifiers":[],"doc":{"summary":"Whether this attachment's process is still running."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Control.scala","line":41,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-control-isalive"},{"id":"io.github.libtmux.scaladsl.cats.Control.standardError","name":"standardError","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Control","signatures":[{"raw":"def standardError: F[String]","params":[],"returns":"F[String]"}],"imports":{"direct":"io.github.libtmux.scaladsl","OperationOutcome":"io.github.libtmux.batch.OperationOutcome","Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.CollectionConverters._","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","ServerConfig":"io.github.libtmux.ServerConfig","SessionId":"io.github.libtmux.SessionId","ControlClient":"io.github.libtmux.control.ControlClient","ControlEvent":"io.github.libtmux.control.ControlEvent","ControlReply":"io.github.libtmux.control.ControlReply","PaneOutput":"io.github.libtmux.control.PaneOutput"},"modifiers":[],"doc":{"summary":"Error text from this control process, at most 4096 bytes."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Control.scala","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-control-standarderror"},{"id":"io.github.libtmux.scaladsl.cats.Control.standardErrorTruncated","name":"standardErrorTruncated","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Control","signatures":[{"raw":"def standardErrorTruncated: F[Boolean]","params":[],"returns":"F[Boolean]"}],"imports":{"direct":"io.github.libtmux.scaladsl","OperationOutcome":"io.github.libtmux.batch.OperationOutcome","Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.CollectionConverters._","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","ServerConfig":"io.github.libtmux.ServerConfig","SessionId":"io.github.libtmux.SessionId","ControlClient":"io.github.libtmux.control.ControlClient","ControlEvent":"io.github.libtmux.control.ControlEvent","ControlReply":"io.github.libtmux.control.ControlReply","PaneOutput":"io.github.libtmux.control.PaneOutput"},"modifiers":[],"doc":{"summary":"Whether `standardError` stopped before the process finished writing."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Control.scala","line":53,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-control-standarderrortruncated"},{"id":"io.github.libtmux.scaladsl.cats.Control.watch","name":"watch","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Control","signatures":[{"raw":"def watch(name: String, target: String, format: String): F[Control.Ack]","params":[{"name":"name","type":"String"},{"name":"target","type":"String"},{"name":"format","type":"String"}],"returns":"F[Control.Ack]"}],"imports":{"direct":"io.github.libtmux.scaladsl","OperationOutcome":"io.github.libtmux.batch.OperationOutcome","Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.CollectionConverters._","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","ServerConfig":"io.github.libtmux.ServerConfig","SessionId":"io.github.libtmux.SessionId","ControlClient":"io.github.libtmux.control.ControlClient","ControlEvent":"io.github.libtmux.control.ControlEvent","ControlReply":"io.github.libtmux.control.ControlReply","PaneOutput":"io.github.libtmux.control.PaneOutput"},"modifiers":[],"doc":{"summary":"Asks tmux to report `format` when it changes. A target that does not name a pane or window watches the attached session."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Control.scala","line":61,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-control-watch"},{"id":"io.github.libtmux.scaladsl.cats.Control.unwatch","name":"unwatch","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Control","signatures":[{"raw":"def unwatch(name: String): F[Control.Ack]","params":[{"name":"name","type":"String"}],"returns":"F[Control.Ack]"}],"imports":{"direct":"io.github.libtmux.scaladsl","OperationOutcome":"io.github.libtmux.batch.OperationOutcome","Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.CollectionConverters._","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","ServerConfig":"io.github.libtmux.ServerConfig","SessionId":"io.github.libtmux.SessionId","ControlClient":"io.github.libtmux.control.ControlClient","ControlEvent":"io.github.libtmux.control.ControlEvent","ControlReply":"io.github.libtmux.control.ControlReply","PaneOutput":"io.github.libtmux.control.PaneOutput"},"modifiers":[],"doc":{"summary":"Removes a watch registered under `name`."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Control.scala","line":68,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-control-unwatch"},{"id":"io.github.libtmux.scaladsl.cats.Control.output","name":"output","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Control","signatures":[{"raw":"def output(capacity: Int): Resource[F, Observation[F, PaneOutput]]","params":[{"name":"capacity","type":"Int"}],"returns":"Resource[F, Observation[F, PaneOutput]]"}],"imports":{"direct":"io.github.libtmux.scaladsl","OperationOutcome":"io.github.libtmux.batch.OperationOutcome","Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.CollectionConverters._","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","ServerConfig":"io.github.libtmux.ServerConfig","SessionId":"io.github.libtmux.SessionId","ControlClient":"io.github.libtmux.control.ControlClient","ControlEvent":"io.github.libtmux.control.ControlEvent","ControlReply":"io.github.libtmux.control.ControlReply","PaneOutput":"io.github.libtmux.control.PaneOutput"},"modifiers":[],"doc":{"summary":"Registers decoded text output before the returned resource body runs. Terminal bytes and character boundaries are not preserved by Java."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Control.scala","line":76,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-control-output"},{"id":"io.github.libtmux.scaladsl.cats.Control.events","name":"events","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Control","signatures":[{"raw":"def events(capacity: Int): Resource[F, Observation[F, ControlEvent]]","params":[{"name":"capacity","type":"Int"}],"returns":"Resource[F, Observation[F, ControlEvent]]"}],"imports":{"direct":"io.github.libtmux.scaladsl","OperationOutcome":"io.github.libtmux.batch.OperationOutcome","Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.CollectionConverters._","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","ServerConfig":"io.github.libtmux.ServerConfig","SessionId":"io.github.libtmux.SessionId","ControlClient":"io.github.libtmux.control.ControlClient","ControlEvent":"io.github.libtmux.control.ControlEvent","ControlReply":"io.github.libtmux.control.ControlReply","PaneOutput":"io.github.libtmux.control.PaneOutput"},"modifiers":[],"doc":{"summary":"Registers Java's typed notifications, including unknown event kinds."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Control.scala","line":86,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-control-events"},{"id":"io.github.libtmux.scaladsl.cats.Control.Ack","name":"Ack","kind":"class","parent":"io.github.libtmux.scaladsl.cats.Control","signatures":[{"raw":"final class Ack","params":[]}],"imports":{"direct":"io.github.libtmux.scaladsl","OperationOutcome":"io.github.libtmux.batch.OperationOutcome","Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.CollectionConverters._","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","ServerConfig":"io.github.libtmux.ServerConfig","SessionId":"io.github.libtmux.SessionId","ControlClient":"io.github.libtmux.control.ControlClient","ControlEvent":"io.github.libtmux.control.ControlEvent","ControlReply":"io.github.libtmux.control.ControlReply","PaneOutput":"io.github.libtmux.control.PaneOutput"},"modifiers":[],"doc":{"summary":"Retains tmux's raw reply framing and line shape."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Control.scala","line":105,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-control-ack"},{"id":"io.github.libtmux.scaladsl.cats.Control.Ack.unsafeJava","name":"unsafeJava","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Control.Ack","signatures":[{"raw":"def unsafeJava: ControlReply","params":[],"returns":"ControlReply"}],"imports":{"direct":"io.github.libtmux.scaladsl","OperationOutcome":"io.github.libtmux.batch.OperationOutcome","Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.CollectionConverters._","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","ServerConfig":"io.github.libtmux.ServerConfig","SessionId":"io.github.libtmux.SessionId","ControlClient":"io.github.libtmux.control.ControlClient","ControlEvent":"io.github.libtmux.control.ControlEvent","ControlReply":"io.github.libtmux.control.ControlReply","PaneOutput":"io.github.libtmux.control.PaneOutput"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Control.scala","line":106,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-control-ack-unsafejava"},{"id":"io.github.libtmux.scaladsl.cats.Control.Ack.accepted","name":"accepted","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Control.Ack","signatures":[{"raw":"def accepted: Boolean","params":[],"returns":"Boolean"}],"imports":{"direct":"io.github.libtmux.scaladsl","OperationOutcome":"io.github.libtmux.batch.OperationOutcome","Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.CollectionConverters._","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","ServerConfig":"io.github.libtmux.ServerConfig","SessionId":"io.github.libtmux.SessionId","ControlClient":"io.github.libtmux.control.ControlClient","ControlEvent":"io.github.libtmux.control.ControlEvent","ControlReply":"io.github.libtmux.control.ControlReply","PaneOutput":"io.github.libtmux.control.PaneOutput"},"modifiers":[],"doc":{"summary":"True for a %end reply. Deferred tmux work can still be running."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Control.scala","line":109,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-control-ack-accepted"},{"id":"io.github.libtmux.scaladsl.cats.Control.Ack.lines","name":"lines","kind":"property","parent":"io.github.libtmux.scaladsl.cats.Control.Ack","signatures":[{"raw":"val lines: Vector[String]","params":[],"returns":"Vector[String]"}],"imports":{"direct":"io.github.libtmux.scaladsl","OperationOutcome":"io.github.libtmux.batch.OperationOutcome","Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.CollectionConverters._","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","ServerConfig":"io.github.libtmux.ServerConfig","SessionId":"io.github.libtmux.SessionId","ControlClient":"io.github.libtmux.control.ControlClient","ControlEvent":"io.github.libtmux.control.ControlEvent","ControlReply":"io.github.libtmux.control.ControlReply","PaneOutput":"io.github.libtmux.control.PaneOutput"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Control.scala","line":110,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-control-ack-lines"},{"id":"io.github.libtmux.scaladsl.cats.Control.attachUnfenced","name":"attachUnfenced","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Control","signatures":[{"raw":"def attachUnfenced[F[_]: Async](\n config: ServerConfig,\n session: SessionId,\n timeout: Duration = Duration.ofSeconds(30),\n maxConcurrentCalls: Int = 4\n ): Resource[F, Control[F]]","params":[{"name":"config","type":"ServerConfig"},{"name":"session","type":"SessionId"},{"name":"timeout","type":"Duration","default":"Duration.ofSeconds(30)"},{"name":"maxConcurrentCalls","type":"Int","default":"4"}],"returns":"Resource[F, Control[F]]","typeParams":["F"],"typeParameters":[{"name":"F","bound":": Async"}]}],"imports":{"direct":"io.github.libtmux.scaladsl","OperationOutcome":"io.github.libtmux.batch.OperationOutcome","Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.CollectionConverters._","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","ServerConfig":"io.github.libtmux.ServerConfig","SessionId":"io.github.libtmux.SessionId","ControlClient":"io.github.libtmux.control.ControlClient","ControlEvent":"io.github.libtmux.control.ControlEvent","ControlReply":"io.github.libtmux.control.ControlReply","PaneOutput":"io.github.libtmux.control.PaneOutput"},"modifiers":[],"doc":{"summary":"Attaches lazily to whatever server now answers this endpoint, without an incarnation guard; prefer attaching a captured session. Bounds simultaneous acknowledgement calls. Release stops their owned work before detaching the client and preserves the tmux daemon."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Control.scala","line":118,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-control-attachunfenced"},{"id":"io.github.libtmux.scaladsl.cats.Control.attach","name":"attach","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Control","signatures":[{"raw":"def attach[F[_]: Async](session: Session[F]): Resource[F, Control[F]]","params":[{"name":"session","type":"Session[F]"}],"returns":"Resource[F, Control[F]]","typeParams":["F"],"typeParameters":[{"name":"F","bound":": Async"}]},{"raw":"def attach[F[_]: Async](\n session: Session[F],\n timeout: Duration,\n maxConcurrentCalls: Int\n ): Resource[F, Control[F]]","params":[{"name":"session","type":"Session[F]"},{"name":"timeout","type":"Duration"},{"name":"maxConcurrentCalls","type":"Int"}],"returns":"Resource[F, Control[F]]","typeParams":["F"],"typeParameters":[{"name":"F","bound":": Async"}]},{"raw":"def attach[F[_]: Async](\n session: direct.Session,\n timeout: Duration,\n maxConcurrentCalls: Int\n ): Resource[F, Control[F]]","params":[{"name":"session","type":"direct.Session"},{"name":"timeout","type":"Duration"},{"name":"maxConcurrentCalls","type":"Int"}],"returns":"Resource[F, Control[F]]","typeParams":["F"],"typeParameters":[{"name":"F","bound":": Async"}]}],"imports":{"direct":"io.github.libtmux.scaladsl","OperationOutcome":"io.github.libtmux.batch.OperationOutcome","Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.CollectionConverters._","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","ServerConfig":"io.github.libtmux.ServerConfig","SessionId":"io.github.libtmux.SessionId","ControlClient":"io.github.libtmux.control.ControlClient","ControlEvent":"io.github.libtmux.control.ControlEvent","ControlReply":"io.github.libtmux.control.ControlReply","PaneOutput":"io.github.libtmux.control.PaneOutput"},"modifiers":["overload"],"doc":{"summary":"Attaches to the process the captured session named."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Control.scala","line":132,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-control-attach"},{"id":"io.github.libtmux.scaladsl.cats.Session","name":"Session","kind":"class","signatures":[{"raw":"final class Session[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"doc":{"summary":"A tmux session whose operations run in the effect type `F`.","body":"Use [[server]] for the connection that owns this handle and [[asJava]] for\nJava interoperability. Captured properties stay unchanged until an explicit\nrefresh returns a new handle."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session"},{"id":"io.github.libtmux.scaladsl.cats.Session.server","name":"server","kind":"property","parent":"io.github.libtmux.scaladsl.cats.Session","imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"signatures":[{"raw":"val server: Server[F]","params":[],"returns":"Server[F]"}],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-server"},{"id":"io.github.libtmux.scaladsl.cats.Session.equals","name":"equals","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"override def equals(other: Any): Boolean","params":[{"name":"other","type":"Any"}],"returns":"Boolean"}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-equals"},{"id":"io.github.libtmux.scaladsl.cats.Session.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"override def hashCode(): Int","params":[],"returns":"Int"}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":22,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-hashcode"},{"id":"io.github.libtmux.scaladsl.cats.Session.toString","name":"toString","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"override def toString: String","params":[],"returns":"String"}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-tostring"},{"id":"io.github.libtmux.scaladsl.cats.Session.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"def asJava: io.github.libtmux.Session","params":[],"returns":"io.github.libtmux.Session"}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"doc":{"summary":"The Java handle this wraps: the one escape hatch, as on every handle."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-asjava"},{"id":"io.github.libtmux.scaladsl.cats.Window","name":"Window","kind":"class","signatures":[{"raw":"final class Window[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"doc":{"summary":"A tmux window at a specific session position, with operations in the effect type `F`."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window"},{"id":"io.github.libtmux.scaladsl.cats.Window.server","name":"server","kind":"property","parent":"io.github.libtmux.scaladsl.cats.Window","imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"signatures":[{"raw":"val server: Server[F]","params":[],"returns":"Server[F]"}],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":34,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-server"},{"id":"io.github.libtmux.scaladsl.cats.Window.equals","name":"equals","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"override def equals(other: Any): Boolean","params":[{"name":"other","type":"Any"}],"returns":"Boolean"}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-equals"},{"id":"io.github.libtmux.scaladsl.cats.Window.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"override def hashCode(): Int","params":[],"returns":"Int"}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":42,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-hashcode"},{"id":"io.github.libtmux.scaladsl.cats.Window.toString","name":"toString","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"override def toString: String","params":[],"returns":"String"}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":43,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-tostring"},{"id":"io.github.libtmux.scaladsl.cats.Window.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"def asJava: io.github.libtmux.Window","params":[],"returns":"io.github.libtmux.Window"}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"doc":{"summary":"The Java handle this wraps: the one escape hatch, as on every handle."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":46,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-asjava"},{"id":"io.github.libtmux.scaladsl.cats.Pane","name":"Pane","kind":"class","signatures":[{"raw":"final class Pane[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"object Pane","params":[]}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"doc":{"summary":"A tmux pane with input, output, and layout operations in the effect type `F`."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":52,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane"},{"id":"io.github.libtmux.scaladsl.cats.Pane.server","name":"server","kind":"property","parent":"io.github.libtmux.scaladsl.cats.Pane","imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"signatures":[{"raw":"val server: Server[F]","params":[],"returns":"Server[F]"}],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":54,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-server"},{"id":"io.github.libtmux.scaladsl.cats.Pane.equals","name":"equals","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"override def equals(other: Any): Boolean","params":[{"name":"other","type":"Any"}],"returns":"Boolean"}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":58,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-equals"},{"id":"io.github.libtmux.scaladsl.cats.Pane.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"override def hashCode(): Int","params":[],"returns":"Int"}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":62,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-hashcode"},{"id":"io.github.libtmux.scaladsl.cats.Pane.toString","name":"toString","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"override def toString: String","params":[],"returns":"String"}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":63,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-tostring"},{"id":"io.github.libtmux.scaladsl.cats.Pane.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"def asJava: io.github.libtmux.Pane","params":[],"returns":"io.github.libtmux.Pane"}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"doc":{"summary":"The Java handle this wraps: the one escape hatch, as on every handle."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":66,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-asjava"},{"id":"io.github.libtmux.scaladsl.cats.Client","name":"Client","kind":"class","signatures":[{"raw":"final class Client[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"doc":{"summary":"An attached tmux client with operations in the effect type `F`."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":168,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-client"},{"id":"io.github.libtmux.scaladsl.cats.Client.server","name":"server","kind":"property","parent":"io.github.libtmux.scaladsl.cats.Client","imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"signatures":[{"raw":"val server: Server[F]","params":[],"returns":"Server[F]"}],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":170,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-client-server"},{"id":"io.github.libtmux.scaladsl.cats.Client.equals","name":"equals","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Client","signatures":[{"raw":"override def equals(other: Any): Boolean","params":[{"name":"other","type":"Any"}],"returns":"Boolean"}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":174,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-client-equals"},{"id":"io.github.libtmux.scaladsl.cats.Client.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Client","signatures":[{"raw":"override def hashCode(): Int","params":[],"returns":"Int"}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":178,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-client-hashcode"},{"id":"io.github.libtmux.scaladsl.cats.Client.toString","name":"toString","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Client","signatures":[{"raw":"override def toString: String","params":[],"returns":"String"}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":179,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-client-tostring"},{"id":"io.github.libtmux.scaladsl.cats.Client.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Client","signatures":[{"raw":"def asJava: io.github.libtmux.Client","params":[],"returns":"io.github.libtmux.Client"}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"doc":{"summary":"The Java handle this wraps: the one escape hatch, as on every handle."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":182,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-client-asjava"},{"id":"io.github.libtmux.scaladsl.cats.Instances","name":"Instances","kind":"module","signatures":[{"raw":"object Instances","params":[]}],"imports":{"direct":"io.github.libtmux.scaladsl","Eq":"_root_.cats.Eq","Hash":"_root_.cats.Hash","Order":"_root_.cats.Order","Show":"_root_.cats.Show","PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId"},"modifiers":[],"doc":{"summary":"Instances derived from Java's `equals`/`hashCode`/`toString`, and from `TmuxVersion`'s own `Comparable` — the one handle-adjacent type that actually has a natural order. None of `Server`, `Session`, `Window`, `Pane` or `Client` implements `Comparable` in Java, and none has a domain-meaningful order (a pane's tmux index is not identity, and two panes can share an index across different windows), so those get `Eq`/`Show`/`Hash` only — never a manufactured `Order` that invites `.sorted`/`SortedSet` producing an ordering nobody asked for."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Instances.scala","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-instances"},{"id":"io.github.libtmux.scaladsl.cats.Instances.serverInstances","name":"serverInstances","kind":"constant","parent":"io.github.libtmux.scaladsl.cats.Instances","signatures":[{"raw":"given serverInstances\n : (Eq[direct.Server] & Hash[direct.Server] & Show[direct.Server])","params":[],"returns":"(Eq[direct.Server] & Hash[direct.Server] & Show[direct.Server])"}],"imports":{"direct":"io.github.libtmux.scaladsl","Eq":"_root_.cats.Eq","Hash":"_root_.cats.Hash","Order":"_root_.cats.Order","Show":"_root_.cats.Show","PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Instances.scala","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-instances-serverinstances"},{"id":"io.github.libtmux.scaladsl.cats.Instances.directSessionInstances","name":"directSessionInstances","kind":"constant","parent":"io.github.libtmux.scaladsl.cats.Instances","signatures":[{"raw":"given directSessionInstances\n : (Eq[direct.Session] & Hash[direct.Session] & Show[direct.Session])","params":[],"returns":"(Eq[direct.Session] & Hash[direct.Session] & Show[direct.Session])"}],"imports":{"direct":"io.github.libtmux.scaladsl","Eq":"_root_.cats.Eq","Hash":"_root_.cats.Hash","Order":"_root_.cats.Order","Show":"_root_.cats.Show","PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Instances.scala","line":34,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-instances-directsessioninstances"},{"id":"io.github.libtmux.scaladsl.cats.Instances.directWindowInstances","name":"directWindowInstances","kind":"constant","parent":"io.github.libtmux.scaladsl.cats.Instances","signatures":[{"raw":"given directWindowInstances\n : (Eq[direct.Window] & Hash[direct.Window] & Show[direct.Window])","params":[],"returns":"(Eq[direct.Window] & Hash[direct.Window] & Show[direct.Window])"}],"imports":{"direct":"io.github.libtmux.scaladsl","Eq":"_root_.cats.Eq","Hash":"_root_.cats.Hash","Order":"_root_.cats.Order","Show":"_root_.cats.Show","PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Instances.scala","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-instances-directwindowinstances"},{"id":"io.github.libtmux.scaladsl.cats.Instances.directPaneInstances","name":"directPaneInstances","kind":"constant","parent":"io.github.libtmux.scaladsl.cats.Instances","signatures":[{"raw":"given directPaneInstances\n : (Eq[direct.Pane] & Hash[direct.Pane] & Show[direct.Pane])","params":[],"returns":"(Eq[direct.Pane] & Hash[direct.Pane] & Show[direct.Pane])"}],"imports":{"direct":"io.github.libtmux.scaladsl","Eq":"_root_.cats.Eq","Hash":"_root_.cats.Hash","Order":"_root_.cats.Order","Show":"_root_.cats.Show","PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Instances.scala","line":40,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-instances-directpaneinstances"},{"id":"io.github.libtmux.scaladsl.cats.Instances.directClientInstances","name":"directClientInstances","kind":"constant","parent":"io.github.libtmux.scaladsl.cats.Instances","signatures":[{"raw":"given directClientInstances\n : (Eq[direct.Client] & Hash[direct.Client] & Show[direct.Client])","params":[],"returns":"(Eq[direct.Client] & Hash[direct.Client] & Show[direct.Client])"}],"imports":{"direct":"io.github.libtmux.scaladsl","Eq":"_root_.cats.Eq","Hash":"_root_.cats.Hash","Order":"_root_.cats.Order","Show":"_root_.cats.Show","PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Instances.scala","line":42,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-instances-directclientinstances"},{"id":"io.github.libtmux.scaladsl.cats.Instances.paneIdInstances","name":"paneIdInstances","kind":"constant","parent":"io.github.libtmux.scaladsl.cats.Instances","signatures":[{"raw":"given paneIdInstances: (Eq[PaneId] & Hash[PaneId] & Show[PaneId])","params":[],"returns":"(Eq[PaneId] & Hash[PaneId] & Show[PaneId])"}],"imports":{"direct":"io.github.libtmux.scaladsl","Eq":"_root_.cats.Eq","Hash":"_root_.cats.Hash","Order":"_root_.cats.Order","Show":"_root_.cats.Show","PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Instances.scala","line":46,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-instances-paneidinstances"},{"id":"io.github.libtmux.scaladsl.cats.Instances.sessionIdInstances","name":"sessionIdInstances","kind":"constant","parent":"io.github.libtmux.scaladsl.cats.Instances","signatures":[{"raw":"given sessionIdInstances\n : (Eq[SessionId] & Hash[SessionId] & Show[SessionId])","params":[],"returns":"(Eq[SessionId] & Hash[SessionId] & Show[SessionId])"}],"imports":{"direct":"io.github.libtmux.scaladsl","Eq":"_root_.cats.Eq","Hash":"_root_.cats.Hash","Order":"_root_.cats.Order","Show":"_root_.cats.Show","PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Instances.scala","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-instances-sessionidinstances"},{"id":"io.github.libtmux.scaladsl.cats.Instances.windowIdInstances","name":"windowIdInstances","kind":"constant","parent":"io.github.libtmux.scaladsl.cats.Instances","signatures":[{"raw":"given windowIdInstances: (Eq[WindowId] & Hash[WindowId] & Show[WindowId])","params":[],"returns":"(Eq[WindowId] & Hash[WindowId] & Show[WindowId])"}],"imports":{"direct":"io.github.libtmux.scaladsl","Eq":"_root_.cats.Eq","Hash":"_root_.cats.Hash","Order":"_root_.cats.Order","Show":"_root_.cats.Show","PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Instances.scala","line":49,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-instances-windowidinstances"},{"id":"io.github.libtmux.scaladsl.cats.Instances.tmuxVersionInstances","name":"tmuxVersionInstances","kind":"constant","parent":"io.github.libtmux.scaladsl.cats.Instances","signatures":[{"raw":"given tmuxVersionInstances: (Order[TmuxVersion] & Show[TmuxVersion])","params":[],"returns":"(Order[TmuxVersion] & Show[TmuxVersion])"}],"imports":{"direct":"io.github.libtmux.scaladsl","Eq":"_root_.cats.Eq","Hash":"_root_.cats.Hash","Order":"_root_.cats.Order","Show":"_root_.cats.Show","PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId"},"modifiers":[],"doc":{"summary":"`TmuxVersion` already defines a natural order in Java (`implements Comparable`); this is a direct projection of it, not a manufactured one."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Instances.scala","line":55,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-instances-tmuxversioninstances"},{"id":"io.github.libtmux.scaladsl.cats.Instances.sessionInstances","name":"sessionInstances","kind":"constant","parent":"io.github.libtmux.scaladsl.cats.Instances","signatures":[{"raw":"given sessionInstances[F[_]]\n : (Eq[Session[F]] & Hash[Session[F]] & Show[Session[F]])","params":[],"returns":"(Eq[Session[F]] & Hash[Session[F]] & Show[Session[F]])","typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"direct":"io.github.libtmux.scaladsl","Eq":"_root_.cats.Eq","Hash":"_root_.cats.Hash","Order":"_root_.cats.Order","Show":"_root_.cats.Show","PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Instances.scala","line":61,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-instances-sessioninstances"},{"id":"io.github.libtmux.scaladsl.cats.Instances.windowInstances","name":"windowInstances","kind":"constant","parent":"io.github.libtmux.scaladsl.cats.Instances","signatures":[{"raw":"given windowInstances[F[_]]\n : (Eq[Window[F]] & Hash[Window[F]] & Show[Window[F]])","params":[],"returns":"(Eq[Window[F]] & Hash[Window[F]] & Show[Window[F]])","typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"direct":"io.github.libtmux.scaladsl","Eq":"_root_.cats.Eq","Hash":"_root_.cats.Hash","Order":"_root_.cats.Order","Show":"_root_.cats.Show","PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Instances.scala","line":70,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-instances-windowinstances"},{"id":"io.github.libtmux.scaladsl.cats.Instances.paneInstances","name":"paneInstances","kind":"constant","parent":"io.github.libtmux.scaladsl.cats.Instances","signatures":[{"raw":"given paneInstances[F[_]]: (Eq[Pane[F]] & Hash[Pane[F]] & Show[Pane[F]])","params":[],"returns":"(Eq[Pane[F]] & Hash[Pane[F]] & Show[Pane[F]])","typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"direct":"io.github.libtmux.scaladsl","Eq":"_root_.cats.Eq","Hash":"_root_.cats.Hash","Order":"_root_.cats.Order","Show":"_root_.cats.Show","PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Instances.scala","line":79,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-instances-paneinstances"},{"id":"io.github.libtmux.scaladsl.cats.Instances.clientInstances","name":"clientInstances","kind":"constant","parent":"io.github.libtmux.scaladsl.cats.Instances","signatures":[{"raw":"given clientInstances[F[_]]\n : (Eq[Client[F]] & Hash[Client[F]] & Show[Client[F]])","params":[],"returns":"(Eq[Client[F]] & Hash[Client[F]] & Show[Client[F]])","typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"direct":"io.github.libtmux.scaladsl","Eq":"_root_.cats.Eq","Hash":"_root_.cats.Hash","Order":"_root_.cats.Order","Show":"_root_.cats.Show","PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Instances.scala","line":86,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-instances-clientinstances"},{"id":"io.github.libtmux.scaladsl.cats.LiveServer","name":"LiveServer","kind":"class","signatures":[{"raw":"final class LiveServer[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"object LiveServer","params":[]}],"imports":{"_":"scala.jdk.OptionConverters._","Duration":"java.time.Duration","Async":"_root_.cats.effect.Async","Deferred":"_root_.cats.effect.Deferred","Outcome":"_root_.cats.effect.Outcome","Resource":"_root_.cats.effect.Resource","Signal":"fs2.concurrent.Signal","SignallingRef":"fs2.concurrent.SignallingRef","JavaServerMirror":"io.github.libtmux.snapshot.ServerMirror"},"modifiers":[],"doc":{"summary":"Observe a tmux server through a continuously updated [[signal]].","body":"[[LiveServer.attach]] returns a `Resource` that closes the Java\n[[io.github.libtmux.snapshot.ServerMirror ServerMirror]] when released. Read\n[[failure]] to distinguish a quiet server from a stopped poller."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/LiveServer.scala","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-liveserver"},{"id":"io.github.libtmux.scaladsl.cats.LiveServer.signal","name":"signal","kind":"property","parent":"io.github.libtmux.scaladsl.cats.LiveServer","imports":{"_":"scala.jdk.OptionConverters._","Duration":"java.time.Duration","Async":"_root_.cats.effect.Async","Deferred":"_root_.cats.effect.Deferred","Outcome":"_root_.cats.effect.Outcome","Resource":"_root_.cats.effect.Resource","Signal":"fs2.concurrent.Signal","SignallingRef":"fs2.concurrent.SignallingRef","JavaServerMirror":"io.github.libtmux.snapshot.ServerMirror"},"modifiers":[],"signatures":[{"raw":"val signal: Signal[F, JavaServerMirror.View]","params":[],"returns":"Signal[F, JavaServerMirror.View]"}],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/LiveServer.scala","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-liveserver-signal"},{"id":"io.github.libtmux.scaladsl.cats.LiveServer.failure","name":"failure","kind":"method","parent":"io.github.libtmux.scaladsl.cats.LiveServer","signatures":[{"raw":"def failure(implicit F: _root_.cats.Functor[F]): F[Option[Throwable]]","params":[{"name":"F","type":"_root_.cats.Functor[F]"}],"returns":"F[Option[Throwable]]"}],"imports":{"_":"scala.jdk.OptionConverters._","Duration":"java.time.Duration","Async":"_root_.cats.effect.Async","Deferred":"_root_.cats.effect.Deferred","Outcome":"_root_.cats.effect.Outcome","Resource":"_root_.cats.effect.Resource","Signal":"fs2.concurrent.Signal","SignallingRef":"fs2.concurrent.SignallingRef","JavaServerMirror":"io.github.libtmux.snapshot.ServerMirror"},"modifiers":[],"doc":{"summary":"`None` while still live; `Some(cause)` once the background poller has died. Never blocks."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/LiveServer.scala","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-liveserver-failure"},{"id":"io.github.libtmux.scaladsl.cats.LiveServer.attach","name":"attach","kind":"method","parent":"io.github.libtmux.scaladsl.cats.LiveServer","signatures":[{"raw":"def attach[F[_]](\n anchor: Session[F]\n )(implicit F: Async[F]): Resource[F, LiveServer[F]]","params":[{"name":"anchor","type":"Session[F]"},{"name":"F","type":"Async[F]"}],"returns":"Resource[F, LiveServer[F]]","typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"_":"scala.jdk.OptionConverters._","Duration":"java.time.Duration","Async":"_root_.cats.effect.Async","Deferred":"_root_.cats.effect.Deferred","Outcome":"_root_.cats.effect.Outcome","Resource":"_root_.cats.effect.Resource","Signal":"fs2.concurrent.Signal","SignallingRef":"fs2.concurrent.SignallingRef","JavaServerMirror":"io.github.libtmux.snapshot.ServerMirror"},"modifiers":[],"doc":{"summary":"Listens through a control client attached to `anchor`, rebuilding on every announcement. The session is a required parameter: there is no arbitrary pick left to make, and a session that later disappears is `ServerMirror`'s own reconnect-or-`TargetGoneException` policy, surfaced through [[LiveServer#failure]] like any other cause."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/LiveServer.scala","line":39,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-liveserver-attach"},{"id":"io.github.libtmux.scaladsl.cats.Observation","name":"Observation","kind":"class","signatures":[{"raw":"final class Observation[F[_], A]","params":[],"typeParams":["F","A"],"typeParameters":[{"name":"F"},{"name":"A"}]},{"raw":"object Observation","params":[]}],"imports":{"_":"scala.jdk.OptionConverters._","Stream":"fs2.Stream","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","Delivery":"io.github.libtmux.control.Delivery","EventSubscription":"io.github.libtmux.control.EventSubscription"},"modifiers":[],"doc":{"summary":"Pulls a bounded Java subscription with one active stream consumer. A full buffer yields a `Delivery.Gap` in this stream before the events that remain. FS2 demand does not provide tmux backpressure. A subscription does not reconnect: attach again and read a snapshot.","body":"The stream itself suspends the *fiber*, not a platform thread, while idle:\n[[io.github.libtmux.control.EventSubscription EventSubscription]] is already\nsingle-consumer by construction at the Java layer, with a non-blocking\n[[io.github.libtmux.control.EventSubscription#poll poll]] plus a one-shot\n[[io.github.libtmux.control.EventSubscription#onReady onReady]] wakeup. Each\nwait polls first — if something is already buffered, nothing suspends at all\n— and only then arms `onReady`, disarming it with\n[[io.github.libtmux.control.EventSubscription#clearReady clearReady]] if the\nfiber is cancelled first. No `ExecutionContext` sized for blocking stream\nreads is needed, because no read here ever blocks a thread."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Observation.scala","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-observation"},{"id":"io.github.libtmux.scaladsl.cats.Observation.stream","name":"stream","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Observation","signatures":[{"raw":"def stream: Stream[F, Delivery[A]]","params":[],"returns":"Stream[F, Delivery[A]]"}],"imports":{"_":"scala.jdk.OptionConverters._","Stream":"fs2.Stream","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","Delivery":"io.github.libtmux.control.Delivery","EventSubscription":"io.github.libtmux.control.EventSubscription"},"modifiers":[],"doc":{"summary":"Reads on `F`'s own fiber scheduler. Cancelling the stream releases its consumer slot and disarms any pending wakeup; releasing the observation discards its buffered events. Deliberate closure ends the stream. A client that ended the subscription fails it with that cause."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Observation.scala","line":61,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-observation-stream"},{"id":"io.github.libtmux.scaladsl.cats.Observation.droppedCount","name":"droppedCount","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Observation","signatures":[{"raw":"def droppedCount: F[Long]","params":[],"returns":"F[Long]"}],"imports":{"_":"scala.jdk.OptionConverters._","Stream":"fs2.Stream","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","Delivery":"io.github.libtmux.control.Delivery","EventSubscription":"io.github.libtmux.control.EventSubscription"},"modifiers":[],"doc":{"summary":"The cumulative overflow count. A `Delivery.Gap` in [[stream]] says where it sits."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Observation.scala","line":74,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-observation-droppedcount"},{"id":"io.github.libtmux.scaladsl.cats.Observation.isClosed","name":"isClosed","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Observation","signatures":[{"raw":"def isClosed: F[Boolean]","params":[],"returns":"F[Boolean]"}],"imports":{"_":"scala.jdk.OptionConverters._","Stream":"fs2.Stream","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","Delivery":"io.github.libtmux.control.Delivery","EventSubscription":"io.github.libtmux.control.EventSubscription"},"modifiers":[],"doc":{"summary":"Reports subscription closure, including after resource finalization."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Observation.scala","line":77,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-observation-isclosed"},{"id":"io.github.libtmux.scaladsl.cats.Observation.value","name":"value","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Observation","signatures":[{"raw":"def value[A](delivery: Delivery[A]): Option[A]","params":[{"name":"delivery","type":"Delivery[A]"}],"returns":"Option[A]","typeParams":["A"],"typeParameters":[{"name":"A"}]}],"imports":{"_":"scala.jdk.OptionConverters._","Stream":"fs2.Stream","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","Delivery":"io.github.libtmux.control.Delivery","EventSubscription":"io.github.libtmux.control.EventSubscription"},"modifiers":[],"doc":{"summary":"The value inside an event delivery, and none for a gap."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Observation.scala","line":86,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-observation-value"},{"id":"io.github.libtmux.scaladsl.cats.Observation.kept","name":"kept","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Observation","signatures":[{"raw":"def kept[A](delivery: Delivery[A]): A","params":[{"name":"delivery","type":"Delivery[A]"}],"returns":"A","typeParams":["A"],"typeParameters":[{"name":"A"}]}],"imports":{"_":"scala.jdk.OptionConverters._","Stream":"fs2.Stream","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","Delivery":"io.github.libtmux.control.Delivery","EventSubscription":"io.github.libtmux.control.EventSubscription"},"modifiers":[],"doc":{"summary":"The event a strict reader kept. A gap fails the read."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Observation.scala","line":92,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-observation-kept"},{"id":"io.github.libtmux.scaladsl.cats.Observation.UnknownCause","name":"UnknownCause","kind":"class","parent":"io.github.libtmux.scaladsl.cats.Observation","signatures":[{"raw":"final class UnknownCause \n extends IllegalStateException(\n \"control observation ended without a deliberate Scala close; Java exposes no cause\"\n )","params":[]}],"imports":{"_":"scala.jdk.OptionConverters._","Stream":"fs2.Stream","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","Delivery":"io.github.libtmux.control.Delivery","EventSubscription":"io.github.libtmux.control.EventSubscription"},"modifiers":[],"doc":{"summary":"Java ended the subscription without exposing the reason."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Observation.scala","line":99,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-observation-unknowncause"},{"id":"io.github.libtmux.scaladsl.cats.Server","name":"Server","kind":"class","signatures":[{"raw":"final class Server[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"object Server","params":[]}],"imports":{"direct":"io.github.libtmux.scaladsl","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","JavaServer":"io.github.libtmux.Server","ServerConfig":"io.github.libtmux.ServerConfig"},"modifiers":[],"doc":{"summary":"A tmux server whose operations run in the effect type `F`.","body":"Acquire it with [[Server.resource]], or borrow a Java client with\n[[Server.fromJava]]. Releasing the `Resource` cancels this scope's\noperations and closes an owned client. Cancellation does not roll back\ncommands already sent to tmux, and closing the client does not stop the tmux\nserver.","examples":[{"lang":"console","intro":"Connect to a private tmux server. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala-cats_3\"))\n .using(project(\":libtmux-scala-cats\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala-cats_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/Connect.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scalacats/Connect.scala","code":"package io.github.libtmux.examples.api.scalacats\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.cats.*\nimport _root_.cats.effect.{ExitCode, IO, IOApp}\nimport _root_.cats.syntax.all.*\n\n/** Connect to a private tmux server. */\nobject Connect extends IOApp {\n def run(args: List[String]): IO[ExitCode] = {\n val program = IO {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n }.flatMap { config =>\n Server.resource[IO](config).use { server =>\n for {\n alive <- server.isAlive()\n _ <- IO.println(s\"connected=$alive\")\n } yield ()\n }\n }\n program.as(ExitCode.Success).handleErrorWith { error =>\n IO(System.err.println(\"Example failed: \" + error.getMessage))\n .as(ExitCode.Error)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scalacats.Connect && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"connected=true\n"}]},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Server.scala","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server"},{"id":"io.github.libtmux.scaladsl.cats.Server.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"val asJava: JavaServer","params":[],"returns":"JavaServer"}],"imports":{"direct":"io.github.libtmux.scaladsl","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","JavaServer":"io.github.libtmux.Server","ServerConfig":"io.github.libtmux.ServerConfig"},"modifiers":[],"doc":{"summary":"The Java client this wraps: the one escape hatch, as on every handle."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Server.scala","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-asjava"},{"id":"io.github.libtmux.scaladsl.cats.Server.resource","name":"resource","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"def resource[F[_]: Async](\n config: ServerConfig,\n maxConcurrentCalls: Int = 4\n ): Resource[F, Server[F]]","params":[{"name":"config","type":"ServerConfig"},{"name":"maxConcurrentCalls","type":"Int","default":"4"}],"returns":"Resource[F, Server[F]]","typeParams":["F"],"typeParameters":[{"name":"F","bound":": Async"}]}],"imports":{"direct":"io.github.libtmux.scaladsl","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","JavaServer":"io.github.libtmux.Server","ServerConfig":"io.github.libtmux.ServerConfig"},"modifiers":[],"doc":{"summary":"Owns a Java client, with one to four simultaneous facade calls. Release cancels queued and running operations before closing the client.","examples":[{"lang":"console","intro":"Connect to a private tmux server. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala-cats_3\"))\n .using(project(\":libtmux-scala-cats\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala-cats_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/Connect.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scalacats/Connect.scala","code":"package io.github.libtmux.examples.api.scalacats\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.cats.*\nimport _root_.cats.effect.{ExitCode, IO, IOApp}\nimport _root_.cats.syntax.all.*\n\n/** Connect to a private tmux server. */\nobject Connect extends IOApp {\n def run(args: List[String]): IO[ExitCode] = {\n val program = IO {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n }.flatMap { config =>\n Server.resource[IO](config).use { server =>\n for {\n alive <- server.isAlive()\n _ <- IO.println(s\"connected=$alive\")\n } yield ()\n }\n }\n program.as(ExitCode.Success).handleErrorWith { error =>\n IO(System.err.println(\"Example failed: \" + error.getMessage))\n .as(ExitCode.Error)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scalacats.Connect && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"connected=true\n"}]},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Server.scala","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-resource"},{"id":"io.github.libtmux.scaladsl.cats.Server.fromJava","name":"fromJava","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"def fromJava[F[_]: Async](\n java: JavaServer,\n maxConcurrentCalls: Int = 4\n ): Resource[F, Server[F]]","params":[{"name":"java","type":"JavaServer"},{"name":"maxConcurrentCalls","type":"Int","default":"4"}],"returns":"Resource[F, Server[F]]","typeParams":["F"],"typeParameters":[{"name":"F","bound":": Async"}]}],"imports":{"direct":"io.github.libtmux.scaladsl","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","JavaServer":"io.github.libtmux.Server","ServerConfig":"io.github.libtmux.ServerConfig"},"modifiers":[],"doc":{"summary":"Borrows Java without closing it. The bound covers this facade only; transport capacity and interruption remain the owner's responsibility.","body":"`direct.Server` is opaque, so a borrowed handle and an owned one are the\nsame runtime object. Release here tears down only this scope's own\n`Execution` (its semaphores and supervised fibers); it never calls\n`close()` on the borrowed handle, which is `resource`'s job alone."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Server.scala","line":66,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-fromjava"},{"id":"io.github.libtmux.scaladsl.cats.Hooks","name":"Hooks","kind":"class","signatures":[{"raw":"final class Hooks[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"Read and update tmux hooks through the owning [[server]].","body":"Operations run in the effect type `F`. Use [[asJava]] to access the Java\nhook API directly."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-hooks"},{"id":"io.github.libtmux.scaladsl.cats.Hooks.server","name":"server","kind":"property","parent":"io.github.libtmux.scaladsl.cats.Hooks","imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"signatures":[{"raw":"val server: Server[F]","params":[],"returns":"Server[F]"}],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-hooks-server"},{"id":"io.github.libtmux.scaladsl.cats.Hooks.equals","name":"equals","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Hooks","signatures":[{"raw":"override def equals(other: Any): Boolean","params":[{"name":"other","type":"Any"}],"returns":"Boolean"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-hooks-equals"},{"id":"io.github.libtmux.scaladsl.cats.Hooks.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Hooks","signatures":[{"raw":"override def hashCode(): Int","params":[],"returns":"Int"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-hooks-hashcode"},{"id":"io.github.libtmux.scaladsl.cats.Hooks.toString","name":"toString","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Hooks","signatures":[{"raw":"override def toString: String","params":[],"returns":"String"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-hooks-tostring"},{"id":"io.github.libtmux.scaladsl.cats.Hooks.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Hooks","signatures":[{"raw":"def asJava: io.github.libtmux.Hooks","params":[],"returns":"io.github.libtmux.Hooks"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"The Java handle this wraps: the one escape hatch, as on every handle."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":22,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-hooks-asjava"},{"id":"io.github.libtmux.scaladsl.cats.Options","name":"Options","kind":"class","signatures":[{"raw":"final class Options[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"object Options","params":[]}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"Read and update options on the server, session, window, or pane that owns this handle."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-options"},{"id":"io.github.libtmux.scaladsl.cats.Options.server","name":"server","kind":"property","parent":"io.github.libtmux.scaladsl.cats.Options","imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"signatures":[{"raw":"val server: Server[F]","params":[],"returns":"Server[F]"}],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-options-server"},{"id":"io.github.libtmux.scaladsl.cats.Options.equals","name":"equals","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Options","signatures":[{"raw":"override def equals(other: Any): Boolean","params":[{"name":"other","type":"Any"}],"returns":"Boolean"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-options-equals"},{"id":"io.github.libtmux.scaladsl.cats.Options.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Options","signatures":[{"raw":"override def hashCode(): Int","params":[],"returns":"Int"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-options-hashcode"},{"id":"io.github.libtmux.scaladsl.cats.Options.toString","name":"toString","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Options","signatures":[{"raw":"override def toString: String","params":[],"returns":"String"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-options-tostring"},{"id":"io.github.libtmux.scaladsl.cats.Options.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Options","signatures":[{"raw":"def asJava: io.github.libtmux.Options","params":[],"returns":"io.github.libtmux.Options"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"The Java handle this wraps: the one escape hatch, as on every handle."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":40,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-options-asjava"},{"id":"io.github.libtmux.scaladsl.cats.Shell","name":"Shell","kind":"class","signatures":[{"raw":"final class Shell[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"Run shell commands through tmux in the effect type `F`."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":83,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-shell"},{"id":"io.github.libtmux.scaladsl.cats.Shell.server","name":"server","kind":"property","parent":"io.github.libtmux.scaladsl.cats.Shell","imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"signatures":[{"raw":"val server: Server[F]","params":[],"returns":"Server[F]"}],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":85,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-shell-server"},{"id":"io.github.libtmux.scaladsl.cats.Shell.equals","name":"equals","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Shell","signatures":[{"raw":"override def equals(other: Any): Boolean","params":[{"name":"other","type":"Any"}],"returns":"Boolean"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":87,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-shell-equals"},{"id":"io.github.libtmux.scaladsl.cats.Shell.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Shell","signatures":[{"raw":"override def hashCode(): Int","params":[],"returns":"Int"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":91,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-shell-hashcode"},{"id":"io.github.libtmux.scaladsl.cats.Shell.toString","name":"toString","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Shell","signatures":[{"raw":"override def toString: String","params":[],"returns":"String"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":92,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-shell-tostring"},{"id":"io.github.libtmux.scaladsl.cats.Shell.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Shell","signatures":[{"raw":"def asJava: io.github.libtmux.Shell","params":[],"returns":"io.github.libtmux.Shell"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"The Java handle this wraps: the one escape hatch, as on every handle."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":95,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-shell-asjava"},{"id":"io.github.libtmux.scaladsl.cats.Commands","name":"Commands","kind":"class","signatures":[{"raw":"final class Commands[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"Inspect the commands supported by the selected tmux executable."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":99,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-commands"},{"id":"io.github.libtmux.scaladsl.cats.Commands.server","name":"server","kind":"property","parent":"io.github.libtmux.scaladsl.cats.Commands","imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"signatures":[{"raw":"val server: Server[F]","params":[],"returns":"Server[F]"}],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":101,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-commands-server"},{"id":"io.github.libtmux.scaladsl.cats.Commands.equals","name":"equals","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Commands","signatures":[{"raw":"override def equals(other: Any): Boolean","params":[{"name":"other","type":"Any"}],"returns":"Boolean"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":103,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-commands-equals"},{"id":"io.github.libtmux.scaladsl.cats.Commands.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Commands","signatures":[{"raw":"override def hashCode(): Int","params":[],"returns":"Int"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":107,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-commands-hashcode"},{"id":"io.github.libtmux.scaladsl.cats.Commands.toString","name":"toString","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Commands","signatures":[{"raw":"override def toString: String","params":[],"returns":"String"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":108,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-commands-tostring"},{"id":"io.github.libtmux.scaladsl.cats.Commands.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Commands","signatures":[{"raw":"def asJava: io.github.libtmux.Commands","params":[],"returns":"io.github.libtmux.Commands"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"The Java handle this wraps: the one escape hatch, as on every handle."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":111,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-commands-asjava"},{"id":"io.github.libtmux.scaladsl.cats.Buffers","name":"Buffers","kind":"class","signatures":[{"raw":"final class Buffers[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"Read, create, and remove the server's paste buffers."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":115,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-buffers"},{"id":"io.github.libtmux.scaladsl.cats.Buffers.server","name":"server","kind":"property","parent":"io.github.libtmux.scaladsl.cats.Buffers","imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"signatures":[{"raw":"val server: Server[F]","params":[],"returns":"Server[F]"}],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":117,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-buffers-server"},{"id":"io.github.libtmux.scaladsl.cats.Buffers.equals","name":"equals","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Buffers","signatures":[{"raw":"override def equals(other: Any): Boolean","params":[{"name":"other","type":"Any"}],"returns":"Boolean"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":119,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-buffers-equals"},{"id":"io.github.libtmux.scaladsl.cats.Buffers.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Buffers","signatures":[{"raw":"override def hashCode(): Int","params":[],"returns":"Int"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":123,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-buffers-hashcode"},{"id":"io.github.libtmux.scaladsl.cats.Buffers.toString","name":"toString","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Buffers","signatures":[{"raw":"override def toString: String","params":[],"returns":"String"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":124,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-buffers-tostring"},{"id":"io.github.libtmux.scaladsl.cats.Buffers.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Buffers","signatures":[{"raw":"def asJava: io.github.libtmux.Buffers","params":[],"returns":"io.github.libtmux.Buffers"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"The Java handle this wraps: the one escape hatch, as on every handle."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":127,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-buffers-asjava"},{"id":"io.github.libtmux.scaladsl.cats.Environment","name":"Environment","kind":"class","signatures":[{"raw":"final class Environment[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"Read and update environment variables for processes started by tmux."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":131,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-environment"},{"id":"io.github.libtmux.scaladsl.cats.Environment.server","name":"server","kind":"property","parent":"io.github.libtmux.scaladsl.cats.Environment","imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"signatures":[{"raw":"val server: Server[F]","params":[],"returns":"Server[F]"}],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":133,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-environment-server"},{"id":"io.github.libtmux.scaladsl.cats.Environment.equals","name":"equals","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Environment","signatures":[{"raw":"override def equals(other: Any): Boolean","params":[{"name":"other","type":"Any"}],"returns":"Boolean"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":135,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-environment-equals"},{"id":"io.github.libtmux.scaladsl.cats.Environment.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Environment","signatures":[{"raw":"override def hashCode(): Int","params":[],"returns":"Int"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":139,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-environment-hashcode"},{"id":"io.github.libtmux.scaladsl.cats.Environment.toString","name":"toString","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Environment","signatures":[{"raw":"override def toString: String","params":[],"returns":"String"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":140,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-environment-tostring"},{"id":"io.github.libtmux.scaladsl.cats.Environment.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Environment","signatures":[{"raw":"def asJava: io.github.libtmux.Environment","params":[],"returns":"io.github.libtmux.Environment"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"The Java handle this wraps: the one escape hatch, as on every handle."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":143,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-environment-asjava"},{"id":"io.github.libtmux.scaladsl.cats.MessageLog","name":"MessageLog","kind":"class","signatures":[{"raw":"final class MessageLog[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"Read messages recorded by the tmux server."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":147,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-messagelog"},{"id":"io.github.libtmux.scaladsl.cats.MessageLog.server","name":"server","kind":"property","parent":"io.github.libtmux.scaladsl.cats.MessageLog","imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"signatures":[{"raw":"val server: Server[F]","params":[],"returns":"Server[F]"}],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":149,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-messagelog-server"},{"id":"io.github.libtmux.scaladsl.cats.MessageLog.equals","name":"equals","kind":"method","parent":"io.github.libtmux.scaladsl.cats.MessageLog","signatures":[{"raw":"override def equals(other: Any): Boolean","params":[{"name":"other","type":"Any"}],"returns":"Boolean"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":151,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-messagelog-equals"},{"id":"io.github.libtmux.scaladsl.cats.MessageLog.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.scaladsl.cats.MessageLog","signatures":[{"raw":"override def hashCode(): Int","params":[],"returns":"Int"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":155,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-messagelog-hashcode"},{"id":"io.github.libtmux.scaladsl.cats.MessageLog.toString","name":"toString","kind":"method","parent":"io.github.libtmux.scaladsl.cats.MessageLog","signatures":[{"raw":"override def toString: String","params":[],"returns":"String"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":156,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-messagelog-tostring"},{"id":"io.github.libtmux.scaladsl.cats.MessageLog.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.cats.MessageLog","signatures":[{"raw":"def asJava: io.github.libtmux.MessageLog","params":[],"returns":"io.github.libtmux.MessageLog"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"The Java handle this wraps: the one escape hatch, as on every handle."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":159,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-messagelog-asjava"},{"id":"io.github.libtmux.scaladsl.cats.Prompt","name":"Prompt","kind":"class","signatures":[{"raw":"final class Prompt[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"Read and clear the server's command-prompt history."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":163,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-prompt"},{"id":"io.github.libtmux.scaladsl.cats.Prompt.server","name":"server","kind":"property","parent":"io.github.libtmux.scaladsl.cats.Prompt","imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"signatures":[{"raw":"val server: Server[F]","params":[],"returns":"Server[F]"}],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":165,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-prompt-server"},{"id":"io.github.libtmux.scaladsl.cats.Prompt.equals","name":"equals","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Prompt","signatures":[{"raw":"override def equals(other: Any): Boolean","params":[{"name":"other","type":"Any"}],"returns":"Boolean"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":167,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-prompt-equals"},{"id":"io.github.libtmux.scaladsl.cats.Prompt.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Prompt","signatures":[{"raw":"override def hashCode(): Int","params":[],"returns":"Int"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":171,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-prompt-hashcode"},{"id":"io.github.libtmux.scaladsl.cats.Prompt.toString","name":"toString","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Prompt","signatures":[{"raw":"override def toString: String","params":[],"returns":"String"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":172,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-prompt-tostring"},{"id":"io.github.libtmux.scaladsl.cats.Prompt.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Prompt","signatures":[{"raw":"def asJava: io.github.libtmux.Prompt","params":[],"returns":"io.github.libtmux.Prompt"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"The Java handle this wraps: the one escape hatch, as on every handle."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":175,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-prompt-asjava"},{"id":"io.github.libtmux.scaladsl.cats.Keys","name":"Keys","kind":"class","signatures":[{"raw":"final class Keys[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"Read and update bindings in tmux key tables."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":179,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-keys"},{"id":"io.github.libtmux.scaladsl.cats.Keys.server","name":"server","kind":"property","parent":"io.github.libtmux.scaladsl.cats.Keys","imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"signatures":[{"raw":"val server: Server[F]","params":[],"returns":"Server[F]"}],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":181,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-keys-server"},{"id":"io.github.libtmux.scaladsl.cats.Keys.equals","name":"equals","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Keys","signatures":[{"raw":"override def equals(other: Any): Boolean","params":[{"name":"other","type":"Any"}],"returns":"Boolean"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":183,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-keys-equals"},{"id":"io.github.libtmux.scaladsl.cats.Keys.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Keys","signatures":[{"raw":"override def hashCode(): Int","params":[],"returns":"Int"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":187,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-keys-hashcode"},{"id":"io.github.libtmux.scaladsl.cats.Keys.toString","name":"toString","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Keys","signatures":[{"raw":"override def toString: String","params":[],"returns":"String"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":188,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-keys-tostring"},{"id":"io.github.libtmux.scaladsl.cats.Keys.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Keys","signatures":[{"raw":"def asJava: io.github.libtmux.Keys","params":[],"returns":"io.github.libtmux.Keys"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"The Java handle this wraps: the one escape hatch, as on every handle."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":191,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-keys-asjava"},{"id":"io.github.libtmux.scaladsl.ox.Flows","name":"Flows","kind":"module","signatures":[{"raw":"object Flows","params":[]}],"imports":{"LiveView":"io.github.libtmux.scaladsl.live.LiveView","ServerMirror":"io.github.libtmux.snapshot.ServerMirror","Flow":"ox.flow.Flow","Delivery":"io.github.libtmux.control.Delivery","EventSubscription":"io.github.libtmux.control.EventSubscription"},"modifiers":[],"doc":{"summary":"An Ox `Flow` over a subscription or a live view, for a supervised scope. Ox adds no new handle type (`io.github.libtmux.scaladsl`'s opaque handles work unchanged inside a `fork`); what it needs from this project is the same single-owner discipline the direct-style `Observation` and `LiveView` already give a blocking caller, expressed as a cold `Flow` instead of an `Iterator`."},"source":{"file":"libtmux-scala-ox/src/main/scala/io/github/libtmux/scaladsl/ox/Flows.scala","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-ox-flows"},{"id":"io.github.libtmux.scaladsl.ox.Flows.subscription","name":"subscription","kind":"method","parent":"io.github.libtmux.scaladsl.ox.Flows","signatures":[{"raw":"def subscription[T](sub: EventSubscription[T]): Flow[Delivery[T]]","params":[{"name":"sub","type":"EventSubscription[T]"}],"returns":"Flow[Delivery[T]]","typeParams":["T"],"typeParameters":[{"name":"T"}]}],"imports":{"LiveView":"io.github.libtmux.scaladsl.live.LiveView","ServerMirror":"io.github.libtmux.snapshot.ServerMirror","Flow":"ox.flow.Flow","Delivery":"io.github.libtmux.control.Delivery","EventSubscription":"io.github.libtmux.control.EventSubscription"},"modifiers":[],"doc":{"summary":"One `Flow` element per step: an event this subscription kept, or a gap naming what was lost. Collecting the flow takes the subscription for good, through the Java subscription's own single-reader claim, and closes it when the collection ends. A second collection is refused as it starts, before it can disturb the first. The flow fails with the control client's cause if the client ended the subscription."},"source":{"file":"libtmux-scala-ox/src/main/scala/io/github/libtmux/scaladsl/ox/Flows.scala","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-ox-flows-subscription"},{"id":"io.github.libtmux.scaladsl.ox.Flows.liveView","name":"liveView","kind":"method","parent":"io.github.libtmux.scaladsl.ox.Flows","signatures":[{"raw":"def liveView(view: LiveView): Flow[ServerMirror.View]","params":[{"name":"view","type":"LiveView"}],"returns":"Flow[ServerMirror.View]"}],"imports":{"LiveView":"io.github.libtmux.scaladsl.live.LiveView","ServerMirror":"io.github.libtmux.snapshot.ServerMirror","Flow":"ox.flow.Flow","Delivery":"io.github.libtmux.control.Delivery","EventSubscription":"io.github.libtmux.control.EventSubscription"},"modifiers":[],"doc":{"summary":"The current view when the flow starts, then every newer one, one per notification. Completes when the view is closed, and fails with its cause when the anchor session or server has gone."},"source":{"file":"libtmux-scala-ox/src/main/scala/io/github/libtmux/scaladsl/ox/Flows.scala","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-ox-flows-liveview"},{"id":"io.github.libtmux.scaladsl.generated.PaneFields","name":"PaneFields","kind":"module","signatures":[{"raw":"object PaneFields","params":[]}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"Typed fields for filtering captured pane objects."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-panefields"},{"id":"io.github.libtmux.scaladsl.generated.PaneFields.id","name":"id","kind":"method","parent":"io.github.libtmux.scaladsl.generated.PaneFields","signatures":[{"raw":"def id: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The pane id."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-panefields-id"},{"id":"io.github.libtmux.scaladsl.generated.PaneFields.command","name":"command","kind":"method","parent":"io.github.libtmux.scaladsl.generated.PaneFields","signatures":[{"raw":"def command: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The command tmux reported running in the pane."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-panefields-command"},{"id":"io.github.libtmux.scaladsl.generated.PaneFields.index","name":"index","kind":"method","parent":"io.github.libtmux.scaladsl.generated.PaneFields","signatures":[{"raw":"def index: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The pane's position in its window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-panefields-index"},{"id":"io.github.libtmux.scaladsl.generated.PaneFields.active","name":"active","kind":"method","parent":"io.github.libtmux.scaladsl.generated.PaneFields","signatures":[{"raw":"def active: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"Whether this was its window's active pane."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-panefields-active"},{"id":"io.github.libtmux.scaladsl.generated.PaneFields.title","name":"title","kind":"method","parent":"io.github.libtmux.scaladsl.generated.PaneFields","signatures":[{"raw":"def title: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The pane's title, which a program running in it can set."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-panefields-title"},{"id":"io.github.libtmux.scaladsl.generated.PaneFields.path","name":"path","kind":"method","parent":"io.github.libtmux.scaladsl.generated.PaneFields","signatures":[{"raw":"def path: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The pane's working directory, as the text tmux reported."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-panefields-path"},{"id":"io.github.libtmux.scaladsl.generated.PaneFields.width","name":"width","kind":"method","parent":"io.github.libtmux.scaladsl.generated.PaneFields","signatures":[{"raw":"def width: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The pane's width, in cells."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":39,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-panefields-width"},{"id":"io.github.libtmux.scaladsl.generated.PaneFields.height","name":"height","kind":"method","parent":"io.github.libtmux.scaladsl.generated.PaneFields","signatures":[{"raw":"def height: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The pane's height, in cells."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":43,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-panefields-height"},{"id":"io.github.libtmux.scaladsl.generated.PaneFields.left","name":"left","kind":"method","parent":"io.github.libtmux.scaladsl.generated.PaneFields","signatures":[{"raw":"def left: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The column of the pane's left edge in its window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-panefields-left"},{"id":"io.github.libtmux.scaladsl.generated.PaneFields.top","name":"top","kind":"method","parent":"io.github.libtmux.scaladsl.generated.PaneFields","signatures":[{"raw":"def top: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The row of the pane's top edge in its window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":51,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-panefields-top"},{"id":"io.github.libtmux.scaladsl.generated.PaneFields.atTop","name":"atTop","kind":"method","parent":"io.github.libtmux.scaladsl.generated.PaneFields","signatures":[{"raw":"def atTop: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"Whether the pane touches the top of its window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":55,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-panefields-attop"},{"id":"io.github.libtmux.scaladsl.generated.PaneFields.atBottom","name":"atBottom","kind":"method","parent":"io.github.libtmux.scaladsl.generated.PaneFields","signatures":[{"raw":"def atBottom: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"Whether the pane touches the bottom of its window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":59,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-panefields-atbottom"},{"id":"io.github.libtmux.scaladsl.generated.PaneFields.atLeft","name":"atLeft","kind":"method","parent":"io.github.libtmux.scaladsl.generated.PaneFields","signatures":[{"raw":"def atLeft: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"Whether the pane touches the left of its window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":63,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-panefields-atleft"},{"id":"io.github.libtmux.scaladsl.generated.PaneFields.atRight","name":"atRight","kind":"method","parent":"io.github.libtmux.scaladsl.generated.PaneFields","signatures":[{"raw":"def atRight: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"Whether the pane touches the right of its window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":67,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-panefields-atright"},{"id":"io.github.libtmux.scaladsl.generated.SessionFields","name":"SessionFields","kind":"module","signatures":[{"raw":"object SessionFields","params":[]}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"Typed fields for filtering captured session objects."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":72,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-sessionfields"},{"id":"io.github.libtmux.scaladsl.generated.SessionFields.id","name":"id","kind":"method","parent":"io.github.libtmux.scaladsl.generated.SessionFields","signatures":[{"raw":"def id: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaSession]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaSession]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The session id, as text, so it can be compared and listed."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":74,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-sessionfields-id"},{"id":"io.github.libtmux.scaladsl.generated.SessionFields.name","name":"name","kind":"method","parent":"io.github.libtmux.scaladsl.generated.SessionFields","signatures":[{"raw":"def name: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaSession]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaSession]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The session name."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":78,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-sessionfields-name"},{"id":"io.github.libtmux.scaladsl.generated.SessionFields.attached","name":"attached","kind":"method","parent":"io.github.libtmux.scaladsl.generated.SessionFields","signatures":[{"raw":"def attached: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaSession]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaSession]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"Whether a client was attached when this was captured."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":82,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-sessionfields-attached"},{"id":"io.github.libtmux.scaladsl.generated.SessionFields.windowCount","name":"windowCount","kind":"method","parent":"io.github.libtmux.scaladsl.generated.SessionFields","signatures":[{"raw":"def windowCount: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaSession]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaSession]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"How many windows this session holds."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":86,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-sessionfields-windowcount"},{"id":"io.github.libtmux.scaladsl.generated.SessionFields.windows","name":"windows","kind":"method","parent":"io.github.libtmux.scaladsl.generated.SessionFields","signatures":[{"raw":"def windows: _root_.io.github.libtmux.scaladsl.query.Fields.ToManyRef[JavaSession, JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.ToManyRef[JavaSession, JavaWindow]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"This session's windows."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":90,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-sessionfields-windows"},{"id":"io.github.libtmux.scaladsl.generated.WindowFields","name":"WindowFields","kind":"module","signatures":[{"raw":"object WindowFields","params":[]}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"Typed fields for filtering captured window objects."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":95,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-windowfields"},{"id":"io.github.libtmux.scaladsl.generated.WindowFields.id","name":"id","kind":"method","parent":"io.github.libtmux.scaladsl.generated.WindowFields","signatures":[{"raw":"def id: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaWindow]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The underlying window id, shared by every link to it."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":97,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-windowfields-id"},{"id":"io.github.libtmux.scaladsl.generated.WindowFields.name","name":"name","kind":"method","parent":"io.github.libtmux.scaladsl.generated.WindowFields","signatures":[{"raw":"def name: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaWindow]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The window name."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":101,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-windowfields-name"},{"id":"io.github.libtmux.scaladsl.generated.WindowFields.index","name":"index","kind":"method","parent":"io.github.libtmux.scaladsl.generated.WindowFields","signatures":[{"raw":"def index: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"Where this link sits in its session."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":105,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-windowfields-index"},{"id":"io.github.libtmux.scaladsl.generated.WindowFields.active","name":"active","kind":"method","parent":"io.github.libtmux.scaladsl.generated.WindowFields","signatures":[{"raw":"def active: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaWindow]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"Whether this was its session's active window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":109,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-windowfields-active"},{"id":"io.github.libtmux.scaladsl.generated.WindowFields.linked","name":"linked","kind":"method","parent":"io.github.libtmux.scaladsl.generated.WindowFields","signatures":[{"raw":"def linked: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaWindow]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"Whether the underlying window is linked into more than one session."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":113,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-windowfields-linked"},{"id":"io.github.libtmux.scaladsl.generated.WindowFields.width","name":"width","kind":"method","parent":"io.github.libtmux.scaladsl.generated.WindowFields","signatures":[{"raw":"def width: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The window's width, in cells."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":117,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-windowfields-width"},{"id":"io.github.libtmux.scaladsl.generated.WindowFields.height","name":"height","kind":"method","parent":"io.github.libtmux.scaladsl.generated.WindowFields","signatures":[{"raw":"def height: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The window's height, in cells."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":121,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-windowfields-height"},{"id":"io.github.libtmux.scaladsl.generated.WindowFields.paneCount","name":"paneCount","kind":"method","parent":"io.github.libtmux.scaladsl.generated.WindowFields","signatures":[{"raw":"def paneCount: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"How many panes this link holds."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":125,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-windowfields-panecount"},{"id":"io.github.libtmux.scaladsl.generated.WindowFields.panes","name":"panes","kind":"method","parent":"io.github.libtmux.scaladsl.generated.WindowFields","signatures":[{"raw":"def panes: _root_.io.github.libtmux.scaladsl.query.Fields.ToManyRef[JavaWindow, JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.ToManyRef[JavaWindow, JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"This link's panes."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":129,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-windowfields-panes"},{"id":"io.github.libtmux.scaladsl.generated.WindowFields.session","name":"session","kind":"method","parent":"io.github.libtmux.scaladsl.generated.WindowFields","signatures":[{"raw":"def session: _root_.io.github.libtmux.scaladsl.query.Fields.ToOneRef[JavaWindow, JavaSession]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.ToOneRef[JavaWindow, JavaSession]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The session this link belongs to."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":133,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-windowfields-session"},{"id":"io.github.libtmux.scaladsl.generated.ClientFields","name":"ClientFields","kind":"module","signatures":[{"raw":"object ClientFields","params":[]}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"Typed fields for filtering captured client objects."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":138,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-clientfields"},{"id":"io.github.libtmux.scaladsl.generated.ClientFields.name","name":"name","kind":"method","parent":"io.github.libtmux.scaladsl.generated.ClientFields","signatures":[{"raw":"def name: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaClient]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaClient]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The client's terminal name, which is how tmux addresses it."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":140,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-clientfields-name"},{"id":"io.github.libtmux.scaladsl.generated.ClientFields.session","name":"session","kind":"method","parent":"io.github.libtmux.scaladsl.generated.ClientFields","signatures":[{"raw":"def session: _root_.io.github.libtmux.scaladsl.query.Fields.ToOneRef[JavaClient, JavaSession]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.ToOneRef[JavaClient, JavaSession]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The session this client was attached to, if any."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":144,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-clientfields-session"},{"id":"io.github.libtmux.scaladsl.Client","name":"Client","kind":"typealias","signatures":[{"raw":"opaque type Client = JavaClient","params":[]},{"raw":"object Client","params":[]}],"imports":{"Expr":"io.github.libtmux.scaladsl.query.Expr","JavaClient":"io.github.libtmux.Client"},"modifiers":["opaque"],"doc":{"summary":"A captured attached client, opaque over the Java handle. Every operation beyond equality is an extension, generated from the operation catalog or handwritten where the catalog marks it `WAIT`, `STREAM` or `LIFECYCLE`."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Client.scala","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-client"},{"id":"io.github.libtmux.scaladsl.Client.given_CanEqual_Client_Client","name":"given_CanEqual_Client_Client","kind":"constant","parent":"io.github.libtmux.scaladsl.Client","signatures":[{"raw":"given CanEqual[Client, Client]","params":[],"returns":"CanEqual[Client, Client]"}],"imports":{"Expr":"io.github.libtmux.scaladsl.query.Expr","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Client.scala","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-client-given_canequal_client_client"},{"id":"io.github.libtmux.scaladsl.Pane","name":"Pane","kind":"typealias","signatures":[{"raw":"opaque type Pane = JavaPane","params":[]},{"raw":"object Pane","params":[]}],"imports":{"Expr":"io.github.libtmux.scaladsl.query.Expr","FiniteDuration":"scala.concurrent.duration.FiniteDuration","_":"scala.jdk.DurationConverters._","JavaPane":"io.github.libtmux.Pane","PaneRun":"io.github.libtmux.PaneRun","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason"},"modifiers":["opaque"],"doc":{"summary":"A captured pane occurrence, opaque over the Java handle. Java equality identifies the physical pane; every operation beyond that is an extension, generated from the operation catalog or handwritten where the catalog marks it `WAIT`, `STREAM` or `LIFECYCLE`."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Pane.scala","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane"},{"id":"io.github.libtmux.scaladsl.Pane.given_CanEqual_Pane_Pane","name":"given_CanEqual_Pane_Pane","kind":"constant","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"given CanEqual[Pane, Pane]","params":[],"returns":"CanEqual[Pane, Pane]"}],"imports":{"Expr":"io.github.libtmux.scaladsl.query.Expr","FiniteDuration":"scala.concurrent.duration.FiniteDuration","_":"scala.jdk.DurationConverters._","JavaPane":"io.github.libtmux.Pane","PaneRun":"io.github.libtmux.PaneRun","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Pane.scala","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-given_canequal_pane_pane"},{"id":"io.github.libtmux.scaladsl.Server","name":"Server","kind":"typealias","signatures":[{"raw":"opaque type Server <: AutoCloseable = JavaServer","params":[]},{"raw":"object Server","params":[]}],"imports":{"ControlClient":"io.github.libtmux.control.ControlClient","FiniteDuration":"scala.concurrent.duration.FiniteDuration","_":"scala.jdk.DurationConverters._","JavaServer":"io.github.libtmux.Server","ServerConfig":"io.github.libtmux.ServerConfig"},"modifiers":["opaque"],"doc":{"summary":"The Java client, opaque: every member beyond [[java.lang.AutoCloseable#close]] is an extension, generated from the operation catalog or handwritten where the catalog marks it `WAIT`, `STREAM` or `LIFECYCLE`. Closing an owned client releases its transport, not tmux; `close()` comes from the `AutoCloseable` bound with no forwarding of its own, so `Using.resource(server) { ... }` works.","examples":[{"lang":"console","intro":"Connect to a private tmux server. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala_3\"))\n .using(project(\":libtmux-scala\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/Connect.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scaladirect/Connect.scala","code":"package io.github.libtmux.examples.api.scaladirect\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.*\nimport scala.util.Using\nimport scala.util.control.NonFatal\n\n/** Connect to a private tmux server. */\nobject Connect {\n def main(args: Array[String]): Unit = {\n try {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n val config = ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n Using.resource(Server.open(config)) { server =>\n println(s\"connected=${server.isAlive()}\")\n }\n } catch {\n case NonFatal(error) =>\n System.err.println(\"Example failed: \" + error.getMessage)\n sys.exit(1)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scaladirect.Connect && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"connected=true\n"}]},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Server.scala","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"extends":["AutoCloseable"],"product":"core","slug":"io-github-libtmux-scaladsl-server"},{"id":"io.github.libtmux.scaladsl.Server.open","name":"open","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"def open(config: ServerConfig): Server","params":[{"name":"config","type":"ServerConfig"}],"returns":"Server"}],"imports":{"ControlClient":"io.github.libtmux.control.ControlClient","FiniteDuration":"scala.concurrent.duration.FiniteDuration","_":"scala.jdk.DurationConverters._","JavaServer":"io.github.libtmux.Server","ServerConfig":"io.github.libtmux.ServerConfig"},"modifiers":[],"doc":{"summary":"Opens an owned client for `config`.","examples":[{"lang":"console","intro":"Connect to a private tmux server. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala_3\"))\n .using(project(\":libtmux-scala\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/Connect.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scaladirect/Connect.scala","code":"package io.github.libtmux.examples.api.scaladirect\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.*\nimport scala.util.Using\nimport scala.util.control.NonFatal\n\n/** Connect to a private tmux server. */\nobject Connect {\n def main(args: Array[String]): Unit = {\n try {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n val config = ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n Using.resource(Server.open(config)) { server =>\n println(s\"connected=${server.isAlive()}\")\n }\n } catch {\n case NonFatal(error) =>\n System.err.println(\"Example failed: \" + error.getMessage)\n sys.exit(1)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scaladirect.Connect && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"connected=true\n"}]},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Server.scala","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-open"},{"id":"io.github.libtmux.scaladsl.Server.fromJava","name":"fromJava","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"def fromJava(java: JavaServer): Server","params":[{"name":"java","type":"JavaServer"}],"returns":"Server"}],"imports":{"ControlClient":"io.github.libtmux.control.ControlClient","FiniteDuration":"scala.concurrent.duration.FiniteDuration","_":"scala.jdk.DurationConverters._","JavaServer":"io.github.libtmux.Server","ServerConfig":"io.github.libtmux.ServerConfig"},"modifiers":[],"doc":{"summary":"Borrows a Java client this facade did not open; closing it closes that client too."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Server.scala","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-fromjava"},{"id":"io.github.libtmux.scaladsl.Server.given_CanEqual_Server_Server","name":"given_CanEqual_Server_Server","kind":"constant","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"given CanEqual[Server, Server]","params":[],"returns":"CanEqual[Server, Server]"}],"imports":{"ControlClient":"io.github.libtmux.control.ControlClient","FiniteDuration":"scala.concurrent.duration.FiniteDuration","_":"scala.jdk.DurationConverters._","JavaServer":"io.github.libtmux.Server","ServerConfig":"io.github.libtmux.ServerConfig"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Server.scala","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-given_canequal_server_server"},{"id":"io.github.libtmux.scaladsl.Session","name":"Session","kind":"typealias","signatures":[{"raw":"opaque type Session = JavaSession","params":[]},{"raw":"object Session","params":[]}],"imports":{"Expr":"io.github.libtmux.scaladsl.query.Expr","JavaSession":"io.github.libtmux.Session"},"modifiers":["opaque"],"doc":{"summary":"A captured session, opaque over the Java handle; every operation beyond equality is an extension, generated from the operation catalog or handwritten where the catalog marks it `WAIT`, `STREAM` or `LIFECYCLE`."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Session.scala","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session"},{"id":"io.github.libtmux.scaladsl.Session.given_CanEqual_Session_Session","name":"given_CanEqual_Session_Session","kind":"constant","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"given CanEqual[Session, Session]","params":[],"returns":"CanEqual[Session, Session]"}],"imports":{"Expr":"io.github.libtmux.scaladsl.query.Expr","JavaSession":"io.github.libtmux.Session"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Session.scala","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-given_canequal_session_session"},{"id":"io.github.libtmux.scaladsl.Window","name":"Window","kind":"typealias","signatures":[{"raw":"opaque type Window = JavaWindow","params":[]},{"raw":"object Window","params":[]}],"imports":{"Expr":"io.github.libtmux.scaladsl.query.Expr","JavaWindow":"io.github.libtmux.Window"},"modifiers":["opaque"],"doc":{"summary":"One captured window placement, opaque over the Java handle. Equality includes its session and index, since a window linked into more than one session has more than one placement. Every operation beyond equality is an extension, generated from the operation catalog or handwritten where the catalog marks it `WAIT`, `STREAM` or `LIFECYCLE`."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Window.scala","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window"},{"id":"io.github.libtmux.scaladsl.Window.given_CanEqual_Window_Window","name":"given_CanEqual_Window_Window","kind":"constant","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"given CanEqual[Window, Window]","params":[],"returns":"CanEqual[Window, Window]"}],"imports":{"Expr":"io.github.libtmux.scaladsl.query.Expr","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Window.scala","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-given_canequal_window_window"},{"id":"io.github.libtmux.scaladsl.live.LiveView","name":"LiveView","kind":"typealias","signatures":[{"raw":"opaque type LiveView <: AutoCloseable = JavaServerMirror","params":[]},{"raw":"object LiveView","params":[]}],"imports":{"Session":"io.github.libtmux.scaladsl.Session","Duration":"java.time.Duration","_":"scala.jdk.OptionConverters._","JavaServerMirror":"io.github.libtmux.snapshot.ServerMirror"},"modifiers":["opaque"],"doc":{"summary":"A live view of one tmux server's sessions, windows, panes and clients, opaque over Java's own [[io.github.libtmux.snapshot.ServerMirror ServerMirror]] — re-snapshotting on notification, on a gap and on reconnect is entirely Java's job; this only wraps it, rather than re-deriving resnapshot-on-notification from a raw control subscription. `close()` comes from the `AutoCloseable` bound with no forwarding of its own."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/live/LiveView.scala","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"extends":["AutoCloseable"],"product":"core","slug":"io-github-libtmux-scaladsl-live-liveview"},{"id":"io.github.libtmux.scaladsl.live.LiveView.attach","name":"attach","kind":"method","parent":"io.github.libtmux.scaladsl.live.LiveView","signatures":[{"raw":"def attach(anchor: Session): LiveView","params":[{"name":"anchor","type":"Session"}],"returns":"LiveView"},{"raw":"def attach(anchor: Session, refreshEvery: Duration): LiveView","params":[{"name":"anchor","type":"Session"},{"name":"refreshEvery","type":"Duration"}],"returns":"LiveView"}],"imports":{"Session":"io.github.libtmux.scaladsl.Session","Duration":"java.time.Duration","_":"scala.jdk.OptionConverters._","JavaServerMirror":"io.github.libtmux.snapshot.ServerMirror"},"modifiers":["overload"],"doc":{"summary":"Listens through a control client attached to `anchor`, rebuilding on every announcement."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/live/LiveView.scala","line":43,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-live-liveview-attach"},{"id":"io.github.libtmux.scaladsl.query.CardinalityError","name":"CardinalityError","kind":"enum","signatures":[{"raw":"enum CardinalityError derives CanEqual","params":[]},{"raw":"object CardinalityError","params":[]}],"imports":{"CardinalityException":"io.github.libtmux.exception.CardinalityException"},"modifiers":[],"doc":{"summary":"Mirrors [[io.github.libtmux.exception.CardinalityException CardinalityException]]'s two leaves losslessly, including the match count Java's own `MultipleMatches.atLeast()` carries — dropping it would be exactly the hand-authored lossy projection this facade's opaque handles exist to make impossible everywhere else."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/CardinalityError.scala","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-cardinalityerror"},{"id":"io.github.libtmux.scaladsl.query.CardinalityError.NoMatch","name":"NoMatch","kind":"constant","parent":"io.github.libtmux.scaladsl.query.CardinalityError","signatures":[{"raw":"NoMatch","params":[]}],"imports":{"CardinalityException":"io.github.libtmux.exception.CardinalityException"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/CardinalityError.scala","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-cardinalityerror-nomatch"},{"id":"io.github.libtmux.scaladsl.query.CardinalityError.MultipleMatches","name":"MultipleMatches","kind":"constant","parent":"io.github.libtmux.scaladsl.query.CardinalityError","signatures":[{"raw":"MultipleMatches(atLeast: Int)","params":[{"name":"atLeast","type":"Int"}]}],"imports":{"CardinalityException":"io.github.libtmux.exception.CardinalityException"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/CardinalityError.scala","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-cardinalityerror-multiplematches"},{"id":"io.github.libtmux.scaladsl.query.CardinalityError.from","name":"from","kind":"method","parent":"io.github.libtmux.scaladsl.query.CardinalityError","signatures":[{"raw":"def from(e: CardinalityException): CardinalityError","params":[{"name":"e","type":"CardinalityException"}],"returns":"CardinalityError"}],"imports":{"CardinalityException":"io.github.libtmux.exception.CardinalityException"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/CardinalityError.scala","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-cardinalityerror-from"},{"id":"io.github.libtmux.scaladsl.query.Expr","name":"Expr","kind":"typealias","signatures":[{"raw":"opaque type Expr[T] = JavaFilterExpr[T]","params":[],"typeParams":["T"],"typeParameters":[{"name":"T"}]},{"raw":"object Expr","params":[]}],"imports":{"JavaFilterExpr":"io.github.libtmux.query.FilterExpr"},"modifiers":["opaque"],"doc":{"summary":"A filter over `T`, both runnable and readable, opaque over Java's own `FilterExpr[T]` — lossless by construction, the same reasoning [[io.github.libtmux.scaladsl.Pane]] and its siblings rest on. `T` is the raw Java handle type a Java field metamodel (`Pane_`, `Session_`, ...) is built over, not this facade's opaque one: a query is a Java-shaped value that this facade's own `.matching` extensions apply to captured Scala handles."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Expr.scala","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-expr-zfkn"},{"id":"io.github.libtmux.scaladsl.query.Expr.apply","name":"apply","kind":"method","parent":"io.github.libtmux.scaladsl.query.Expr","signatures":[{"raw":"def apply[T](java: JavaFilterExpr[T]): Expr[T]","params":[{"name":"java","type":"JavaFilterExpr[T]"}],"returns":"Expr[T]","typeParams":["T"],"typeParameters":[{"name":"T"}]}],"imports":{"JavaFilterExpr":"io.github.libtmux.query.FilterExpr"},"modifiers":[],"doc":{"summary":"Wraps an existing Java expression, such as one a typed field method already produced."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Expr.scala","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-expr-apply"},{"id":"io.github.libtmux.scaladsl.query.Fields","name":"Fields","kind":"module","signatures":[{"raw":"object Fields","params":[]}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"doc":{"summary":"Typed field handles, wrapping Java's `io.github.libtmux.query.Fields` records so every operator returns this facade's [[Expr]] rather than a raw Java `FilterExpr`. An extension cannot reshape these methods' return type on the Java records directly — same-named would silently lose to the Java member, exactly the trap `-Werror` exists to catch — so each kind gets its own small Scala class instead, one line per operator, forwarding to the Java one underneath."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields"},{"id":"io.github.libtmux.scaladsl.query.Fields.TextField","name":"TextField","kind":"class","parent":"io.github.libtmux.scaladsl.query.Fields","signatures":[{"raw":"final class TextField[T]","params":[],"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-textfield"},{"id":"io.github.libtmux.scaladsl.query.Fields.TextField.is","name":"is","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.TextField","signatures":[{"raw":"def is(value: String): Expr[T]","params":[{"name":"value","type":"String"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-textfield-is"},{"id":"io.github.libtmux.scaladsl.query.Fields.TextField.isNot","name":"isNot","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.TextField","signatures":[{"raw":"def isNot(value: String): Expr[T]","params":[{"name":"value","type":"String"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-textfield-isnot"},{"id":"io.github.libtmux.scaladsl.query.Fields.TextField.contains","name":"contains","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.TextField","signatures":[{"raw":"def contains(value: String): Expr[T]","params":[{"name":"value","type":"String"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":22,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-textfield-contains"},{"id":"io.github.libtmux.scaladsl.query.Fields.TextField.startsWith","name":"startsWith","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.TextField","signatures":[{"raw":"def startsWith(value: String): Expr[T]","params":[{"name":"value","type":"String"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-textfield-startswith"},{"id":"io.github.libtmux.scaladsl.query.Fields.TextField.endsWith","name":"endsWith","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.TextField","signatures":[{"raw":"def endsWith(value: String): Expr[T]","params":[{"name":"value","type":"String"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-textfield-endswith"},{"id":"io.github.libtmux.scaladsl.query.Fields.TextField.matches","name":"matches","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.TextField","signatures":[{"raw":"def matches(value: Pattern): Expr[T]","params":[{"name":"value","type":"Pattern"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-textfield-matches"},{"id":"io.github.libtmux.scaladsl.query.Fields.TextField.in","name":"in","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.TextField","signatures":[{"raw":"def in(values: Iterable[String]): Expr[T]","params":[{"name":"values","type":"Iterable[String]"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-textfield-in"},{"id":"io.github.libtmux.scaladsl.query.Fields.NumberField","name":"NumberField","kind":"class","parent":"io.github.libtmux.scaladsl.query.Fields","signatures":[{"raw":"final class NumberField[T]","params":[],"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-numberfield"},{"id":"io.github.libtmux.scaladsl.query.Fields.NumberField.is","name":"is","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.NumberField","signatures":[{"raw":"def is(value: Int): Expr[T]","params":[{"name":"value","type":"Int"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":34,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-numberfield-is"},{"id":"io.github.libtmux.scaladsl.query.Fields.NumberField.isNot","name":"isNot","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.NumberField","signatures":[{"raw":"def isNot(value: Int): Expr[T]","params":[{"name":"value","type":"Int"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-numberfield-isnot"},{"id":"io.github.libtmux.scaladsl.query.Fields.NumberField.lessThan","name":"lessThan","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.NumberField","signatures":[{"raw":"def lessThan(value: Int): Expr[T]","params":[{"name":"value","type":"Int"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-numberfield-lessthan"},{"id":"io.github.libtmux.scaladsl.query.Fields.NumberField.atMost","name":"atMost","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.NumberField","signatures":[{"raw":"def atMost(value: Int): Expr[T]","params":[{"name":"value","type":"Int"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-numberfield-atmost"},{"id":"io.github.libtmux.scaladsl.query.Fields.NumberField.greaterThan","name":"greaterThan","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.NumberField","signatures":[{"raw":"def greaterThan(value: Int): Expr[T]","params":[{"name":"value","type":"Int"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-numberfield-greaterthan"},{"id":"io.github.libtmux.scaladsl.query.Fields.NumberField.atLeast","name":"atLeast","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.NumberField","signatures":[{"raw":"def atLeast(value: Int): Expr[T]","params":[{"name":"value","type":"Int"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":39,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-numberfield-atleast"},{"id":"io.github.libtmux.scaladsl.query.Fields.FlagField","name":"FlagField","kind":"class","parent":"io.github.libtmux.scaladsl.query.Fields","signatures":[{"raw":"final class FlagField[T]","params":[],"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":42,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-flagfield"},{"id":"io.github.libtmux.scaladsl.query.Fields.FlagField.is","name":"is","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.FlagField","signatures":[{"raw":"def is(value: Boolean): Expr[T]","params":[{"name":"value","type":"Boolean"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":45,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-flagfield-is"},{"id":"io.github.libtmux.scaladsl.query.Fields.FlagField.isNot","name":"isNot","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.FlagField","signatures":[{"raw":"def isNot(value: Boolean): Expr[T]","params":[{"name":"value","type":"Boolean"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":46,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-flagfield-isnot"},{"id":"io.github.libtmux.scaladsl.query.Fields.FlagField.isTrue","name":"isTrue","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.FlagField","signatures":[{"raw":"def isTrue: Expr[T]","params":[],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-flagfield-istrue"},{"id":"io.github.libtmux.scaladsl.query.Fields.FlagField.isFalse","name":"isFalse","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.FlagField","signatures":[{"raw":"def isFalse: Expr[T]","params":[],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":48,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-flagfield-isfalse"},{"id":"io.github.libtmux.scaladsl.query.Fields.ToOneRef","name":"ToOneRef","kind":"class","parent":"io.github.libtmux.scaladsl.query.Fields","signatures":[{"raw":"final class ToOneRef[T, R]","params":[],"typeParams":["T","R"],"typeParameters":[{"name":"T"},{"name":"R"}]}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":51,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-tooneref"},{"id":"io.github.libtmux.scaladsl.query.Fields.ToOneRef.is","name":"is","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.ToOneRef","signatures":[{"raw":"def is(predicate: Expr[R]): Expr[T]","params":[{"name":"predicate","type":"Expr[R]"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":54,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-tooneref-is"},{"id":"io.github.libtmux.scaladsl.query.Fields.ToManyRef","name":"ToManyRef","kind":"class","parent":"io.github.libtmux.scaladsl.query.Fields","signatures":[{"raw":"final class ToManyRef[T, R]","params":[],"typeParams":["T","R"],"typeParameters":[{"name":"T"},{"name":"R"}]}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":57,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-tomanyref"},{"id":"io.github.libtmux.scaladsl.query.Fields.ToManyRef.any","name":"any","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.ToManyRef","signatures":[{"raw":"def any(predicate: Expr[R]): Expr[T]","params":[{"name":"predicate","type":"Expr[R]"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":60,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-tomanyref-any"},{"id":"io.github.libtmux.scaladsl.query.Fields.ToManyRef.all","name":"all","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.ToManyRef","signatures":[{"raw":"def all(predicate: Expr[R]): Expr[T]","params":[{"name":"predicate","type":"Expr[R]"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":61,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-tomanyref-all"},{"id":"io.github.libtmux.scaladsl.query.Fields.ToManyRef.none","name":"none","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.ToManyRef","signatures":[{"raw":"def none(predicate: Expr[R]): Expr[T]","params":[{"name":"predicate","type":"Expr[R]"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":62,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-tomanyref-none"},{"id":"io.github.libtmux.scaladsl.streaming.Observation","name":"Observation","kind":"class","signatures":[{"raw":"final class Observation[T] \n extends AutoCloseable","params":[],"typeParams":["T"],"typeParameters":[{"name":"T"}]},{"raw":"object Observation","params":[]}],"imports":{"Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.OptionConverters._","Delivery":"io.github.libtmux.control.Delivery","EventSubscription":"io.github.libtmux.control.EventSubscription"},"modifiers":[],"doc":{"summary":"A single-consumer guard over one Java subscription, for direct-style reading.","body":"`EventSubscription` is already single-consumer by construction at the Java\nlayer — a second concurrent read is refused — but that guard is scoped to\none call; nothing stopped two direct `Iterator`s built from the same\nsubscription from interleaving reads across calls. This adds the same\nscoped-CAS discipline the Cats module's own `Observation` already had, so a\n`read` call is the unit of exclusive ownership here too, released when it\nreturns so a later sequential `read` stays legal."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/streaming/Observation.scala","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-streaming-observation"},{"id":"io.github.libtmux.scaladsl.streaming.Observation.read","name":"read","kind":"method","parent":"io.github.libtmux.scaladsl.streaming.Observation","signatures":[{"raw":"def read[A](pollTimeout: Duration)(use: Iterator[Delivery[T]] => A): A","params":[{"name":"pollTimeout","type":"Duration"},{"name":"use","type":"Iterator[Delivery[T]] => A"}],"returns":"A","typeParams":["A"],"typeParameters":[{"name":"A"}],"raises":[{"type":"java.lang.IllegalStateException","doc":"if another `read` on this observation is already in progress"}]}],"imports":{"Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.OptionConverters._","Delivery":"io.github.libtmux.control.Delivery","EventSubscription":"io.github.libtmux.control.EventSubscription"},"modifiers":[],"doc":{"summary":"Runs `use` over every step waiting or arriving within `pollTimeout` per poll, until the subscription closes. Rejects a second, overlapping `read` on this observation."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/streaming/Observation.scala","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-streaming-observation-read"},{"id":"io.github.libtmux.scaladsl.streaming.Observation.droppedCount","name":"droppedCount","kind":"method","parent":"io.github.libtmux.scaladsl.streaming.Observation","signatures":[{"raw":"def droppedCount: Long","params":[],"returns":"Long"}],"imports":{"Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.OptionConverters._","Delivery":"io.github.libtmux.control.Delivery","EventSubscription":"io.github.libtmux.control.EventSubscription"},"modifiers":[],"doc":{"summary":"The cumulative overflow count. A [[io.github.libtmux.control.Delivery$Gap Delivery.Gap]] read by [[read]] says where it sits."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/streaming/Observation.scala","line":49,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-streaming-observation-droppedcount"},{"id":"io.github.libtmux.scaladsl.streaming.Observation.close","name":"close","kind":"method","parent":"io.github.libtmux.scaladsl.streaming.Observation","signatures":[{"raw":"def close(): Unit","params":[],"returns":"Unit"}],"imports":{"Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.OptionConverters._","Delivery":"io.github.libtmux.control.Delivery","EventSubscription":"io.github.libtmux.control.EventSubscription"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/streaming/Observation.scala","line":51,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-streaming-observation-close"},{"id":"io.github.libtmux.scaladsl.streaming.Observation.apply","name":"apply","kind":"method","parent":"io.github.libtmux.scaladsl.streaming.Observation","signatures":[{"raw":"def apply[T](sub: EventSubscription[T]): Observation[T]","params":[{"name":"sub","type":"EventSubscription[T]"}],"returns":"Observation[T]","typeParams":["T"],"typeParameters":[{"name":"T"}]}],"imports":{"Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.OptionConverters._","Delivery":"io.github.libtmux.control.Delivery","EventSubscription":"io.github.libtmux.control.EventSubscription"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/streaming/Observation.scala","line":55,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-streaming-observation-apply"},{"id":"io.github.libtmux.scaladsl.Client.name","name":"name","kind":"method","parent":"io.github.libtmux.scaladsl.Client","signatures":[{"raw":"def name: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaClient]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaClient]"},{"raw":"extension (self: Client)\ndef name: String","params":[],"returns":"String","receiver":{"name":"self","type":"Client"}}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"The client's terminal name, which is how tmux addresses it."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":140,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.ClientFields.name","product":"core","slug":"io-github-libtmux-scaladsl-client-name"},{"id":"io.github.libtmux.scaladsl.Client.session","name":"session","kind":"method","parent":"io.github.libtmux.scaladsl.Client","signatures":[{"raw":"def session: _root_.io.github.libtmux.scaladsl.query.Fields.ToOneRef[JavaClient, JavaSession]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.ToOneRef[JavaClient, JavaSession]"},{"raw":"extension (self: Client)\ndef session: Option[Session]","params":[],"returns":"Option[Session]","receiver":{"name":"self","type":"Client"}}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"The session this client was attached to, if any."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":144,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.ClientFields.session","product":"core","slug":"io-github-libtmux-scaladsl-client-session"},{"id":"io.github.libtmux.scaladsl.Pane.id","name":"id","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"def id: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane]"},{"raw":"extension (self: Pane)\ndef id: io.github.libtmux.PaneId","params":[],"returns":"io.github.libtmux.PaneId","receiver":{"name":"self","type":"Pane"}}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"The pane id."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.PaneFields.id","product":"core","slug":"io-github-libtmux-scaladsl-pane-id"},{"id":"io.github.libtmux.scaladsl.Pane.command","name":"command","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"def command: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The command tmux reported running in the pane."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.PaneFields.command","product":"core","slug":"io-github-libtmux-scaladsl-pane-command"},{"id":"io.github.libtmux.scaladsl.Pane.index","name":"index","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"def index: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]"},{"raw":"extension (self: Pane)\ndef index: Int","params":[],"returns":"Int","receiver":{"name":"self","type":"Pane"}}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"The pane's position in its window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.PaneFields.index","product":"core","slug":"io-github-libtmux-scaladsl-pane-index"},{"id":"io.github.libtmux.scaladsl.Pane.active","name":"active","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"def active: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]"},{"raw":"extension (self: Pane)\ndef active: Boolean","params":[],"returns":"Boolean","receiver":{"name":"self","type":"Pane"}}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"Whether this was its window's active pane."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.PaneFields.active","product":"core","slug":"io-github-libtmux-scaladsl-pane-active"},{"id":"io.github.libtmux.scaladsl.Pane.title","name":"title","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"def title: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane]"},{"raw":"extension (self: Pane)\ndef title: String","params":[],"returns":"String","receiver":{"name":"self","type":"Pane"}}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"The pane's title, which a program running in it can set."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.PaneFields.title","product":"core","slug":"io-github-libtmux-scaladsl-pane-title"},{"id":"io.github.libtmux.scaladsl.Pane.path","name":"path","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"def path: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The pane's working directory, as the text tmux reported."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.PaneFields.path","product":"core","slug":"io-github-libtmux-scaladsl-pane-path"},{"id":"io.github.libtmux.scaladsl.Pane.width","name":"width","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"def width: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The pane's width, in cells."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":39,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.PaneFields.width","product":"core","slug":"io-github-libtmux-scaladsl-pane-width"},{"id":"io.github.libtmux.scaladsl.Pane.height","name":"height","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"def height: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The pane's height, in cells."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":43,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.PaneFields.height","product":"core","slug":"io-github-libtmux-scaladsl-pane-height"},{"id":"io.github.libtmux.scaladsl.Pane.left","name":"left","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"def left: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The column of the pane's left edge in its window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.PaneFields.left","product":"core","slug":"io-github-libtmux-scaladsl-pane-left"},{"id":"io.github.libtmux.scaladsl.Pane.top","name":"top","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"def top: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The row of the pane's top edge in its window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":51,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.PaneFields.top","product":"core","slug":"io-github-libtmux-scaladsl-pane-top"},{"id":"io.github.libtmux.scaladsl.Pane.atTop","name":"atTop","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"def atTop: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"Whether the pane touches the top of its window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":55,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.PaneFields.atTop","product":"core","slug":"io-github-libtmux-scaladsl-pane-attop"},{"id":"io.github.libtmux.scaladsl.Pane.atBottom","name":"atBottom","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"def atBottom: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"Whether the pane touches the bottom of its window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":59,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.PaneFields.atBottom","product":"core","slug":"io-github-libtmux-scaladsl-pane-atbottom"},{"id":"io.github.libtmux.scaladsl.Pane.atLeft","name":"atLeft","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"def atLeft: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"Whether the pane touches the left of its window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":63,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.PaneFields.atLeft","product":"core","slug":"io-github-libtmux-scaladsl-pane-atleft"},{"id":"io.github.libtmux.scaladsl.Pane.atRight","name":"atRight","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"def atRight: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"Whether the pane touches the right of its window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":67,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.PaneFields.atRight","product":"core","slug":"io-github-libtmux-scaladsl-pane-atright"},{"id":"io.github.libtmux.scaladsl.Session.id","name":"id","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"def id: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaSession]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaSession]"},{"raw":"extension (self: Session)\ndef id: io.github.libtmux.SessionId","params":[],"returns":"io.github.libtmux.SessionId","receiver":{"name":"self","type":"Session"}}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"The session id, as text, so it can be compared and listed."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":74,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.SessionFields.id","product":"core","slug":"io-github-libtmux-scaladsl-session-id"},{"id":"io.github.libtmux.scaladsl.Session.name","name":"name","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"def name: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaSession]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaSession]"},{"raw":"extension (self: Session)\ndef name: String","params":[],"returns":"String","receiver":{"name":"self","type":"Session"}}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"The session name."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":78,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.SessionFields.name","product":"core","slug":"io-github-libtmux-scaladsl-session-name"},{"id":"io.github.libtmux.scaladsl.Session.attached","name":"attached","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"def attached: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaSession]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaSession]"},{"raw":"extension (self: Session)\ndef attached: Boolean","params":[],"returns":"Boolean","receiver":{"name":"self","type":"Session"}}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"Whether a client was attached when this was captured."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":82,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.SessionFields.attached","product":"core","slug":"io-github-libtmux-scaladsl-session-attached"},{"id":"io.github.libtmux.scaladsl.Session.windowCount","name":"windowCount","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"def windowCount: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaSession]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaSession]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"How many windows this session holds."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":86,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.SessionFields.windowCount","product":"core","slug":"io-github-libtmux-scaladsl-session-windowcount"},{"id":"io.github.libtmux.scaladsl.Session.windows","name":"windows","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"def windows: _root_.io.github.libtmux.scaladsl.query.Fields.ToManyRef[JavaSession, JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.ToManyRef[JavaSession, JavaWindow]"},{"raw":"extension (self: Session)\ndef windows: Vector[Window]","params":[],"returns":"Vector[Window]","receiver":{"name":"self","type":"Session"}}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"This session's windows.","examples":[{"lang":"console","intro":"List all windows, then the windows captured for one session. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala_3\"))\n .using(project(\":libtmux-scala\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/ListWindows.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scaladirect/ListWindows.scala","code":"package io.github.libtmux.examples.api.scaladirect\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.*\nimport scala.util.Using\nimport scala.util.control.NonFatal\n\n/** List all windows, then the windows captured for one session. */\nobject ListWindows {\n def main(args: Array[String]): Unit = {\n try {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n val config = ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n Using.resource(Server.open(config)) { server =>\n println(\"windows=\" + server.windows().map(_.name).sorted.mkString(\",\"))\n val session =\n server.session(\"work-one\").getOrElse(sys.error(\"missing work-one\"))\n println(\n \"session-windows=\" + session.windows.map(_.name).sorted.mkString(\",\")\n )\n }\n } catch {\n case NonFatal(error) =>\n System.err.println(\"Example failed: \" + error.getMessage)\n sys.exit(1)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scaladirect.ListWindows && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"windows=editor,editor,logs\nsession-windows=editor,logs\n"}]},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":90,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.SessionFields.windows","product":"core","slug":"io-github-libtmux-scaladsl-session-windows"},{"id":"io.github.libtmux.scaladsl.Window.id","name":"id","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"def id: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaWindow]"},{"raw":"extension (self: Window)\ndef id: io.github.libtmux.WindowId","params":[],"returns":"io.github.libtmux.WindowId","receiver":{"name":"self","type":"Window"}}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"The underlying window id, shared by every link to it."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":97,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.WindowFields.id","product":"core","slug":"io-github-libtmux-scaladsl-window-id"},{"id":"io.github.libtmux.scaladsl.Window.name","name":"name","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"def name: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaWindow]"},{"raw":"extension (self: Window)\ndef name: String","params":[],"returns":"String","receiver":{"name":"self","type":"Window"}}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"The window name."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":101,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.WindowFields.name","product":"core","slug":"io-github-libtmux-scaladsl-window-name"},{"id":"io.github.libtmux.scaladsl.Window.index","name":"index","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"def index: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow]"},{"raw":"extension (self: Window)\ndef index: io.github.libtmux.WindowIndex","params":[],"returns":"io.github.libtmux.WindowIndex","receiver":{"name":"self","type":"Window"}}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"Where this link sits in its session."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":105,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.WindowFields.index","product":"core","slug":"io-github-libtmux-scaladsl-window-index"},{"id":"io.github.libtmux.scaladsl.Window.active","name":"active","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"def active: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaWindow]"},{"raw":"extension (self: Window)\ndef active: Boolean","params":[],"returns":"Boolean","receiver":{"name":"self","type":"Window"}}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"Whether this was its session's active window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":109,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.WindowFields.active","product":"core","slug":"io-github-libtmux-scaladsl-window-active"},{"id":"io.github.libtmux.scaladsl.Window.linked","name":"linked","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"def linked: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaWindow]"},{"raw":"extension (self: Window)\ndef linked: Boolean","params":[],"returns":"Boolean","receiver":{"name":"self","type":"Window"}}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"Whether the underlying window is linked into more than one session."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":113,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.WindowFields.linked","product":"core","slug":"io-github-libtmux-scaladsl-window-linked"},{"id":"io.github.libtmux.scaladsl.Window.width","name":"width","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"def width: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The window's width, in cells."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":117,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.WindowFields.width","product":"core","slug":"io-github-libtmux-scaladsl-window-width"},{"id":"io.github.libtmux.scaladsl.Window.height","name":"height","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"def height: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The window's height, in cells."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":121,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.WindowFields.height","product":"core","slug":"io-github-libtmux-scaladsl-window-height"},{"id":"io.github.libtmux.scaladsl.Window.paneCount","name":"paneCount","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"def paneCount: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"How many panes this link holds."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":125,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.WindowFields.paneCount","product":"core","slug":"io-github-libtmux-scaladsl-window-panecount"},{"id":"io.github.libtmux.scaladsl.Window.panes","name":"panes","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"def panes: _root_.io.github.libtmux.scaladsl.query.Fields.ToManyRef[JavaWindow, JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.ToManyRef[JavaWindow, JavaPane]"},{"raw":"extension (self: Window)\ndef panes: Vector[Pane]","params":[],"returns":"Vector[Pane]","receiver":{"name":"self","type":"Window"}}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"This link's panes.","examples":[{"lang":"console","intro":"List all panes, then the panes captured for one window. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala_3\"))\n .using(project(\":libtmux-scala\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/ListPanes.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scaladirect/ListPanes.scala","code":"package io.github.libtmux.examples.api.scaladirect\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.*\nimport scala.util.Using\nimport scala.util.control.NonFatal\n\n/** List all panes, then the panes captured for one window. */\nobject ListPanes {\n def main(args: Array[String]): Unit = {\n try {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n val config = ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n Using.resource(Server.open(config)) { server =>\n println(s\"panes=${server.panes().size}\")\n val session =\n server.session(\"work-one\").getOrElse(sys.error(\"missing work-one\"))\n val window = session.windows\n .find(_.name.equals(\"editor\"))\n .getOrElse(sys.error(\"missing editor\"))\n println(s\"window-panes=${window.panes.size}\")\n }\n } catch {\n case NonFatal(error) =>\n System.err.println(\"Example failed: \" + error.getMessage)\n sys.exit(1)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scaladirect.ListPanes && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"panes=4\nwindow-panes=2\n"}]},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":129,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.WindowFields.panes","product":"core","slug":"io-github-libtmux-scaladsl-window-panes"},{"id":"io.github.libtmux.scaladsl.Window.session","name":"session","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"def session: _root_.io.github.libtmux.scaladsl.query.Fields.ToOneRef[JavaWindow, JavaSession]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.ToOneRef[JavaWindow, JavaSession]"},{"raw":"extension (self: Window)\ndef session: Session","params":[],"returns":"Session","receiver":{"name":"self","type":"Window"}}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"The session this link belongs to."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":133,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.WindowFields.session","product":"core","slug":"io-github-libtmux-scaladsl-window-session"},{"id":"io.github.libtmux.scaladsl.cats.Buffers.list","name":"list","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Buffers","signatures":[{"raw":"extension [F[_]](self: Buffers[F])(using F: _root_.cats.effect.Async[F])\ndef list(): F[Vector[io.github.libtmux.BufferInfo]]","params":[],"returns":"F[Vector[io.github.libtmux.BufferInfo]]","receiver":{"name":"self","type":"Buffers[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Captures every buffer the server holds, in tmux's order."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":8,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-buffers-list"},{"id":"io.github.libtmux.scaladsl.cats.Buffers.set","name":"set","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Buffers","signatures":[{"raw":"extension [F[_]](self: Buffers[F])(using F: _root_.cats.effect.Async[F])\ndef set(name: String, contents: String): F[Unit]","params":[{"name":"name","type":"String"},{"name":"contents","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Buffers[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Puts text in a named buffer, replacing whatever was there."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-buffers-set"},{"id":"io.github.libtmux.scaladsl.cats.Buffers.show","name":"show","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Buffers","signatures":[{"raw":"extension [F[_]](self: Buffers[F])(using F: _root_.cats.effect.Async[F])\ndef show(name: String): F[String]","params":[{"name":"name","type":"String"}],"returns":"F[String]","receiver":{"name":"self","type":"Buffers[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"What a buffer holds, without any line breaks it ends with."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-buffers-show"},{"id":"io.github.libtmux.scaladsl.cats.Buffers.delete","name":"delete","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Buffers","signatures":[{"raw":"extension [F[_]](self: Buffers[F])(using F: _root_.cats.effect.Async[F])\ndef delete(name: String): F[Unit]","params":[{"name":"name","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Buffers[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Removes a buffer by its exact name."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-buffers-delete"},{"id":"io.github.libtmux.scaladsl.cats.Buffers.save","name":"save","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Buffers","signatures":[{"raw":"extension [F[_]](self: Buffers[F])(using F: _root_.cats.effect.Async[F])\ndef save(name: String, file: java.nio.file.Path): F[Unit]","params":[{"name":"name","type":"String"},{"name":"file","type":"java.nio.file.Path"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Buffers[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Writes a buffer's contents to a file."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-buffers-save"},{"id":"io.github.libtmux.scaladsl.cats.Buffers.load","name":"load","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Buffers","signatures":[{"raw":"extension [F[_]](self: Buffers[F])(using F: _root_.cats.effect.Async[F])\ndef load(name: String, file: java.nio.file.Path): F[Unit]","params":[{"name":"name","type":"String"},{"name":"file","type":"java.nio.file.Path"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Buffers[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Reads a file into a named buffer."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-buffers-load"},{"id":"io.github.libtmux.scaladsl.cats.Client.name","name":"name","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Client","signatures":[{"raw":"extension [F[_]](self: Client[F])(using F: _root_.cats.effect.Async[F])\ndef name: String","params":[],"returns":"String","receiver":{"name":"self","type":"Client[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The client's terminal name, which is how tmux addresses it."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-client-name"},{"id":"io.github.libtmux.scaladsl.cats.Client.detach","name":"detach","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Client","signatures":[{"raw":"extension [F[_]](self: Client[F])(using F: _root_.cats.effect.Async[F])\ndef detach(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Client[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Detaches this client, leaving whatever it was attached to running."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":39,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-client-detach"},{"id":"io.github.libtmux.scaladsl.cats.Client.detachOthers","name":"detachOthers","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Client","signatures":[{"raw":"extension [F[_]](self: Client[F])(using F: _root_.cats.effect.Async[F])\ndef detachOthers(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Client[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Detaches every other client, leaving this one attached."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":43,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-client-detachothers"},{"id":"io.github.libtmux.scaladsl.cats.Client.switchTo","name":"switchTo","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Client","signatures":[{"raw":"extension [F[_]](self: Client[F])(using F: _root_.cats.effect.Async[F])\ndef switchTo(session: Session[F]): F[Unit]","params":[{"name":"session","type":"Session[F]"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Client[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Moves this client to another session."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-client-switchto"},{"id":"io.github.libtmux.scaladsl.cats.Client.redraw","name":"redraw","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Client","signatures":[{"raw":"extension [F[_]](self: Client[F])(using F: _root_.cats.effect.Async[F])\ndef redraw(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Client[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Asks tmux to redraw this client."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":51,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-client-redraw"},{"id":"io.github.libtmux.scaladsl.cats.Client.session","name":"session","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Client","signatures":[{"raw":"extension [F[_]](self: Client[F])(using F: _root_.cats.effect.Async[F])\ndef session: Option[Session[F]]","params":[],"returns":"Option[Session[F]]","receiver":{"name":"self","type":"Client[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The session this client was attached to when captured."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":55,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-client-session"},{"id":"io.github.libtmux.scaladsl.cats.Client.attachment","name":"attachment","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Client","signatures":[{"raw":"extension [F[_]](self: Client[F])(using F: _root_.cats.effect.Async[F])\ndef attachment: Option[io.github.libtmux.ClientAttachment]","params":[],"returns":"Option[io.github.libtmux.ClientAttachment]","receiver":{"name":"self","type":"Client[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"What this client was looking at when captured."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":59,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-client-attachment"},{"id":"io.github.libtmux.scaladsl.cats.Client.fetchAttachment","name":"fetchAttachment","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Client","signatures":[{"raw":"extension [F[_]](self: Client[F])(using F: _root_.cats.effect.Async[F])\ndef fetchAttachment(): F[Option[io.github.libtmux.ClientAttachment]]","params":[],"returns":"F[Option[io.github.libtmux.ClientAttachment]]","receiver":{"name":"self","type":"Client[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Takes a new capture and returns what this client is looking at now."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":63,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-client-fetchattachment"},{"id":"io.github.libtmux.scaladsl.cats.Client.refresh","name":"refresh","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Client","signatures":[{"raw":"extension [F[_]](self: Client[F])(using F: _root_.cats.effect.Async[F])\ndef refresh(): F[Client[F]]","params":[],"returns":"F[Client[F]]","receiver":{"name":"self","type":"Client[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Takes a new capture and returns this client as it is now."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":67,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-client-refresh"},{"id":"io.github.libtmux.scaladsl.cats.Commands.list","name":"list","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Commands","signatures":[{"raw":"extension [F[_]](self: Commands[F])(using F: _root_.cats.effect.Async[F])\ndef list(): F[Vector[String]]","params":[],"returns":"F[Vector[String]]","receiver":{"name":"self","type":"Commands[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Every command, as tmux prints it."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":74,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-commands-list"},{"id":"io.github.libtmux.scaladsl.cats.Environment.get","name":"get","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Environment","signatures":[{"raw":"extension [F[_]](self: Environment[F])(using F: _root_.cats.effect.Async[F])\ndef get(name: String): F[Option[String]]","params":[{"name":"name","type":"String"}],"returns":"F[Option[String]]","receiver":{"name":"self","type":"Environment[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The value set for this name, or empty when it is removed or absent."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":81,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-environment-get"},{"id":"io.github.libtmux.scaladsl.cats.Environment.isRemoved","name":"isRemoved","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Environment","signatures":[{"raw":"extension [F[_]](self: Environment[F])(using F: _root_.cats.effect.Async[F])\ndef isRemoved(name: String): F[Boolean]","params":[{"name":"name","type":"String"}],"returns":"F[Boolean]","receiver":{"name":"self","type":"Environment[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Whether new processes are told not to inherit this name."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":85,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-environment-isremoved"},{"id":"io.github.libtmux.scaladsl.cats.Environment.all","name":"all","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Environment","signatures":[{"raw":"extension [F[_]](self: Environment[F])(using F: _root_.cats.effect.Async[F])\ndef all(): F[_root_.scala.collection.immutable.VectorMap[String, String]]","params":[],"returns":"F[_root_.scala.collection.immutable.VectorMap[String, String]]","receiver":{"name":"self","type":"Environment[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Every name set at this scope, in tmux's order."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":89,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-environment-all"},{"id":"io.github.libtmux.scaladsl.cats.Environment.effective","name":"effective","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Environment","signatures":[{"raw":"extension [F[_]](self: Environment[F])(using F: _root_.cats.effect.Async[F])\ndef effective(): F[_root_.scala.collection.immutable.VectorMap[String, String]]","params":[],"returns":"F[_root_.scala.collection.immutable.VectorMap[String, String]]","receiver":{"name":"self","type":"Environment[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"What a process started from this scope is actually handed, both scopes taken together."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":93,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-environment-effective"},{"id":"io.github.libtmux.scaladsl.cats.Environment.removed","name":"removed","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Environment","signatures":[{"raw":"extension [F[_]](self: Environment[F])(using F: _root_.cats.effect.Async[F])\ndef removed(): F[Set[String]]","params":[],"returns":"F[Set[String]]","receiver":{"name":"self","type":"Environment[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Every name this scope tells a new process not to inherit."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":97,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-environment-removed"},{"id":"io.github.libtmux.scaladsl.cats.Environment.set","name":"set","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Environment","signatures":[{"raw":"extension [F[_]](self: Environment[F])(using F: _root_.cats.effect.Async[F])\ndef set(name: String, value: String): F[Unit]","params":[{"name":"name","type":"String"},{"name":"value","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Environment[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Sets a name to a literal value."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":101,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-environment-set"},{"id":"io.github.libtmux.scaladsl.cats.Environment.setExpanded","name":"setExpanded","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Environment","signatures":[{"raw":"extension [F[_]](self: Environment[F])(using F: _root_.cats.effect.Async[F])\ndef setExpanded(name: String, format: String): F[Unit]","params":[{"name":"name","type":"String"},{"name":"format","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Environment[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Sets a name to what a tmux format expands to now."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":105,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-environment-setexpanded"},{"id":"io.github.libtmux.scaladsl.cats.Environment.unset","name":"unset","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Environment","signatures":[{"raw":"extension [F[_]](self: Environment[F])(using F: _root_.cats.effect.Async[F])\ndef unset(name: String): F[Unit]","params":[{"name":"name","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Environment[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Removes the name from this scope, so it is neither set nor marked."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":109,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-environment-unset"},{"id":"io.github.libtmux.scaladsl.cats.Environment.remove","name":"remove","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Environment","signatures":[{"raw":"extension [F[_]](self: Environment[F])(using F: _root_.cats.effect.Async[F])\ndef remove(name: String): F[Unit]","params":[{"name":"name","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Environment[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Tells processes started after this not to inherit the name."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":113,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-environment-remove"},{"id":"io.github.libtmux.scaladsl.cats.Hooks.set","name":"set","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Hooks","signatures":[{"raw":"extension [F[_]](self: Hooks[F])(using F: _root_.cats.effect.Async[F])\ndef set(event: String, command: String): F[Unit]","params":[{"name":"event","type":"String"},{"name":"command","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Hooks[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Hooks[F])(using F: _root_.cats.effect.Async[F])\ndef set(event: String, command: Vector[String]): F[Unit]","params":[{"name":"event","type":"String"},{"name":"command","type":"Vector[String]"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Hooks[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Binds a tmux command to an event at this scope, replacing anything already bound to it."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":120,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-hooks-set"},{"id":"io.github.libtmux.scaladsl.cats.Hooks.append","name":"append","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Hooks","signatures":[{"raw":"extension [F[_]](self: Hooks[F])(using F: _root_.cats.effect.Async[F])\ndef append(event: String, command: Vector[String]): F[Unit]","params":[{"name":"event","type":"String"},{"name":"command","type":"Vector[String]"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Hooks[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Hooks[F])(using F: _root_.cats.effect.Async[F])\ndef append(event: String, command: String): F[Unit]","params":[{"name":"event","type":"String"},{"name":"command","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Hooks[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"As {@link #append(String, String)}, with the command as words."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":128,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-hooks-append"},{"id":"io.github.libtmux.scaladsl.cats.Hooks.unset","name":"unset","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Hooks","signatures":[{"raw":"extension [F[_]](self: Hooks[F])(using F: _root_.cats.effect.Async[F])\ndef unset(event: String): F[Unit]","params":[{"name":"event","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Hooks[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Removes everything bound to an event at this scope."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":136,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-hooks-unset"},{"id":"io.github.libtmux.scaladsl.cats.Hooks.run","name":"run","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Hooks","signatures":[{"raw":"extension [F[_]](self: Hooks[F])(using F: _root_.cats.effect.Async[F])\ndef run(event: String): F[Unit]","params":[{"name":"event","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Hooks[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Runs what is bound to an event now, without waiting for the event."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":140,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-hooks-run"},{"id":"io.github.libtmux.scaladsl.cats.Hooks.all","name":"all","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Hooks","signatures":[{"raw":"extension [F[_]](self: Hooks[F])(using F: _root_.cats.effect.Async[F])\ndef all(): F[_root_.scala.collection.immutable.VectorMap[String, Vector[String]]]","params":[],"returns":"F[_root_.scala.collection.immutable.VectorMap[String, Vector[String]]]","receiver":{"name":"self","type":"Hooks[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Every hook at this scope, keyed by event, each with its commands in the order tmux runs them."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":144,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-hooks-all"},{"id":"io.github.libtmux.scaladsl.cats.Keys.in","name":"in","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Keys","signatures":[{"raw":"extension [F[_]](self: Keys[F])(using F: _root_.cats.effect.Async[F])\ndef in(table: String): Keys[F]","params":[{"name":"table","type":"String"}],"returns":"Keys[F]","receiver":{"name":"self","type":"Keys[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The same bindings, in one named table."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":151,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-keys-in"},{"id":"io.github.libtmux.scaladsl.cats.Keys.bind","name":"bind","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Keys","signatures":[{"raw":"extension [F[_]](self: Keys[F])(using F: _root_.cats.effect.Async[F])\ndef bind(key: String, command: Vector[String]): F[Unit]","params":[{"name":"key","type":"String"},{"name":"command","type":"Vector[String]"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Keys[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Binds a key to a tmux command, given as its words."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":155,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-keys-bind"},{"id":"io.github.libtmux.scaladsl.cats.Keys.unbind","name":"unbind","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Keys","signatures":[{"raw":"extension [F[_]](self: Keys[F])(using F: _root_.cats.effect.Async[F])\ndef unbind(key: String): F[Unit]","params":[{"name":"key","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Keys[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Removes a key's binding."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":159,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-keys-unbind"},{"id":"io.github.libtmux.scaladsl.cats.Keys.list","name":"list","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Keys","signatures":[{"raw":"extension [F[_]](self: Keys[F])(using F: _root_.cats.effect.Async[F])\ndef list(): F[Vector[String]]","params":[],"returns":"F[Vector[String]]","receiver":{"name":"self","type":"Keys[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The bindings as tmux lists them, one per line."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":163,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-keys-list"},{"id":"io.github.libtmux.scaladsl.cats.MessageLog.lines","name":"lines","kind":"method","parent":"io.github.libtmux.scaladsl.cats.MessageLog","signatures":[{"raw":"extension [F[_]](self: MessageLog[F])(using F: _root_.cats.effect.Async[F])\ndef lines(): F[Vector[String]]","params":[],"returns":"F[Vector[String]]","receiver":{"name":"self","type":"MessageLog[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The log lines."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":170,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-messagelog-lines"},{"id":"io.github.libtmux.scaladsl.cats.Options.all","name":"all","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Options","signatures":[{"raw":"extension [F[_]](self: Options[F])(using F: _root_.cats.effect.Async[F])\ndef all(): F[_root_.scala.collection.immutable.VectorMap[String, String]]","params":[],"returns":"F[_root_.scala.collection.immutable.VectorMap[String, String]]","receiver":{"name":"self","type":"Options[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Every option set at this scope, in tmux's order."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":177,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-options-all"},{"id":"io.github.libtmux.scaladsl.cats.Options.effective","name":"effective","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Options","signatures":[{"raw":"extension [F[_]](self: Options[F])(using F: _root_.cats.effect.Async[F])\ndef effective(): F[_root_.scala.collection.immutable.VectorMap[String, String]]","params":[],"returns":"F[_root_.scala.collection.immutable.VectorMap[String, String]]","receiver":{"name":"self","type":"Options[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Every option tmux lists at this scope, including inherited built-in values."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":181,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-options-effective"},{"id":"io.github.libtmux.scaladsl.cats.Options.setIfAbsent","name":"setIfAbsent","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Options","signatures":[{"raw":"extension [F[_]](self: Options[F])(using F: _root_.cats.effect.Async[F])\ndef setIfAbsent(name: String, value: String): F[Boolean]","params":[{"name":"name","type":"String"},{"name":"value","type":"String"}],"returns":"F[Boolean]","receiver":{"name":"self","type":"Options[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Sets one option only if this scope does not already set it."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":185,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-options-setifabsent"},{"id":"io.github.libtmux.scaladsl.cats.Options.append","name":"append","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Options","signatures":[{"raw":"extension [F[_]](self: Options[F])(using F: _root_.cats.effect.Async[F])\ndef append(name: String, suffix: String): F[Unit]","params":[{"name":"name","type":"String"},{"name":"suffix","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Options[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Adds to the end of a string option, rather than replacing it."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":189,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-options-append"},{"id":"io.github.libtmux.scaladsl.cats.Options.setExpanded","name":"setExpanded","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Options","signatures":[{"raw":"extension [F[_]](self: Options[F])(using F: _root_.cats.effect.Async[F])\ndef setExpanded(name: String, format: String): F[Unit]","params":[{"name":"name","type":"String"},{"name":"format","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Options[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Sets one option to what a tmux format comes to, rather than to the format itself."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":193,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-options-setexpanded"},{"id":"io.github.libtmux.scaladsl.cats.Options.unset","name":"unset","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Options","signatures":[{"raw":"extension [F[_]](self: Options[F])(using F: _root_.cats.effect.Async[F])\ndef unset(name: String): F[Unit]","params":[{"name":"name","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Options[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Removes one option at this scope, so it falls back to whatever it inherits."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":197,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-options-unset"},{"id":"io.github.libtmux.scaladsl.cats.Pane.info","name":"info","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef info: io.github.libtmux.snapshot.PaneState","params":[],"returns":"io.github.libtmux.snapshot.PaneState","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The fields this capture stored."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":204,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-info"},{"id":"io.github.libtmux.scaladsl.cats.Pane.id","name":"id","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef id: io.github.libtmux.PaneId","params":[],"returns":"io.github.libtmux.PaneId","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The pane's stable id."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":208,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-id"},{"id":"io.github.libtmux.scaladsl.cats.Pane.index","name":"index","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef index: Int","params":[],"returns":"Int","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The pane's position, which shifts as neighbours come and go."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":212,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-index"},{"id":"io.github.libtmux.scaladsl.cats.Pane.active","name":"active","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef active: Boolean","params":[],"returns":"Boolean","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Whether this was its window's active pane when captured."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":216,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-active"},{"id":"io.github.libtmux.scaladsl.cats.Pane.currentCommand","name":"currentCommand","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef currentCommand: String","params":[],"returns":"String","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The command tmux reported running here."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":220,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-currentcommand"},{"id":"io.github.libtmux.scaladsl.cats.Pane.floating","name":"floating","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef floating: Option[Boolean]","params":[],"returns":"Option[Boolean]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Whether this pane floats, or empty when the running tmux cannot say."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":224,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-floating"},{"id":"io.github.libtmux.scaladsl.cats.Pane.size","name":"size","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef size: io.github.libtmux.Dimensions","params":[],"returns":"io.github.libtmux.Dimensions","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"How large the pane was when captured, in terminal cells."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":228,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-size"},{"id":"io.github.libtmux.scaladsl.cats.Pane.position","name":"position","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef position: io.github.libtmux.PanePosition","params":[],"returns":"io.github.libtmux.PanePosition","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Where the pane's top-left corner sat in its window when captured, in terminal cells."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":232,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-position"},{"id":"io.github.libtmux.scaladsl.cats.Pane.title","name":"title","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef title: String","params":[],"returns":"String","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The pane title, which a program running inside it can change."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":236,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-title"},{"id":"io.github.libtmux.scaladsl.cats.Pane.currentPath","name":"currentPath","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef currentPath: java.nio.file.Path","params":[],"returns":"java.nio.file.Path","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The working directory tmux reported for the pane."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":240,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-currentpath"},{"id":"io.github.libtmux.scaladsl.cats.Pane.currentPathText","name":"currentPathText","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef currentPathText: String","params":[],"returns":"String","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The working directory tmux reported for the pane, exactly as tmux reported it."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":244,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-currentpathtext"},{"id":"io.github.libtmux.scaladsl.cats.Pane.pid","name":"pid","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef pid: Option[Long]","params":[],"returns":"Option[Long]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The process id of the program running in the pane, captured at the time of the read this handle came from."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":249,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-pid"},{"id":"io.github.libtmux.scaladsl.cats.Pane.dead","name":"dead","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef dead(): F[Boolean]","params":[],"returns":"F[Boolean]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Whether this pane's process has exited, read fresh rather than from the capture."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":253,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-dead"},{"id":"io.github.libtmux.scaladsl.cats.Pane.resize","name":"resize","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef resize(direction: io.github.libtmux.Direction, cells: Int): F[Unit]","params":[{"name":"direction","type":"io.github.libtmux.Direction"},{"name":"cells","type":"Int"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Grows this pane by a number of cells in one direction."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":257,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-resize"},{"id":"io.github.libtmux.scaladsl.cats.Pane.edges","name":"edges","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef edges: io.github.libtmux.PaneEdges","params":[],"returns":"io.github.libtmux.PaneEdges","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Which sides of its window the pane touches."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":261,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-edges"},{"id":"io.github.libtmux.scaladsl.cats.Pane.copyMode","name":"copyMode","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef copyMode(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Puts this pane into copy mode, where its scrollback can be navigated."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":265,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-copymode"},{"id":"io.github.libtmux.scaladsl.cats.Pane.mode","name":"mode","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef mode(): F[Option[io.github.libtmux.PaneMode]]","params":[],"returns":"F[Option[io.github.libtmux.PaneMode]]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Which mode this pane is in at this moment, or empty when it is in none."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":269,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-mode"},{"id":"io.github.libtmux.scaladsl.cats.Pane.exitMode","name":"exitMode","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef exitMode(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Leaves whichever mode this pane is in."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":273,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-exitmode"},{"id":"io.github.libtmux.scaladsl.cats.Pane.select","name":"select","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef select(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Makes this the active pane of its window."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":277,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-select"},{"id":"io.github.libtmux.scaladsl.cats.Pane.retitle","name":"retitle","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef retitle(title: String): F[Pane[F]]","params":[{"name":"title","type":"String"}],"returns":"F[Pane[F]]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Retitles this pane and returns its replacement capture."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":281,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-retitle"},{"id":"io.github.libtmux.scaladsl.cats.Pane.resizeTo","name":"resizeTo","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef resizeTo(size: io.github.libtmux.Dimensions): F[Unit]","params":[{"name":"size","type":"io.github.libtmux.Dimensions"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Resizes this pane."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":285,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-resizeto"},{"id":"io.github.libtmux.scaladsl.cats.Pane.window","name":"window","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef window: Window[F]","params":[],"returns":"Window[F]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The window link this pane was reached through."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":289,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-window"},{"id":"io.github.libtmux.scaladsl.cats.Pane.hooks","name":"hooks","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef hooks: Hooks[F]","params":[],"returns":"Hooks[F]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"This pane's own hooks."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":293,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-hooks"},{"id":"io.github.libtmux.scaladsl.cats.Pane.options","name":"options","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef options: Options[F]","params":[],"returns":"Options[F]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"This pane's own options."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":297,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-options"},{"id":"io.github.libtmux.scaladsl.cats.Pane.capture","name":"capture","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef capture(): F[Vector[String]]","params":[],"returns":"F[Vector[String]]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef capture(configure: io.github.libtmux.CaptureSpec.Builder => Unit): F[Vector[String]]","params":[{"name":"configure","type":"io.github.libtmux.CaptureSpec.Builder => Unit"}],"returns":"F[Vector[String]]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef capture(spec: io.github.libtmux.CaptureSpec): F[Vector[String]]","params":[{"name":"spec","type":"io.github.libtmux.CaptureSpec"}],"returns":"F[Vector[String]]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"This pane's visible content, one element per line.","examples":[{"lang":"console","intro":"Send input and wait for output before capturing the pane. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala-cats_3\"))\n .using(project(\":libtmux-scala-cats\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala-cats_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/Capture.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scalacats/Capture.scala","code":"package io.github.libtmux.examples.api.scalacats\n\nimport io.github.libtmux.{\n ServerConfig,\n ServerEndpoint,\n SessionSpec,\n TextOutcome\n}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.cats.*\nimport scala.concurrent.duration.*\nimport _root_.cats.effect.{ExitCode, IO, IOApp}\nimport _root_.cats.syntax.all.*\n\n/** Send input and wait for output before capturing the pane. */\nobject Capture extends IOApp {\n def run(args: List[String]): IO[ExitCode] = {\n val program = IO {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n }.flatMap { config =>\n Server.resource[IO](config).use { server =>\n for {\n session <- server.newSession(\n SessionSpec\n .builder()\n .named(\"api-capture\")\n .running(\"/bin/sh\")\n .build()\n )\n pane = session.windows.head.panes.head\n _ <- pane.sendKeys(Vector(\"printf 'api-%s\\\\n' keys\", \"Enter\"))\n keys <- pane.awaitText(\"api-keys\", 5.seconds)\n _ <- IO.raiseWhen(keys.equals(TextOutcome.TIMED_OUT))(\n new IllegalStateException(\"timed out waiting for keys output\")\n )\n _ <- pane.sendLine(\"printf 'api-%s\\\\n' line\")\n line <- pane.awaitText(\"api-line\", 5.seconds)\n _ <- IO.raiseWhen(line.equals(TextOutcome.TIMED_OUT))(\n new IllegalStateException(\"timed out waiting for line output\")\n )\n lines <- pane.capture()\n _ <- Vector(\"api-keys\", \"api-line\").traverse_ { expected =>\n IO.raiseUnless(lines.exists(_.trim.equals(expected)))(\n new IllegalStateException(\"capture is missing \" + expected)\n ) *> IO.println(expected)\n }\n } yield ()\n }\n }\n program.as(ExitCode.Success).handleErrorWith { error =>\n IO(System.err.println(\"Example failed: \" + error.getMessage))\n .as(ExitCode.Error)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scalacats.Capture && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"api-keys\napi-line\n"}]},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":301,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-capture"},{"id":"io.github.libtmux.scaladsl.cats.Pane.noteTyped","name":"noteTyped","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef noteTyped(text: String): F[Unit]","params":[{"name":"text","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Notes text that reached this pane without going through this handle, so a wait discounts its echo the way it discounts text sent through {@link #sendLiteral}."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":306,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-notetyped"},{"id":"io.github.libtmux.scaladsl.cats.Pane.send","name":"send","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef send(keys: String): F[Unit]","params":[{"name":"keys","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Sends keys to this pane without pressing Enter."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":318,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-send"},{"id":"io.github.libtmux.scaladsl.cats.Pane.sendKeys","name":"sendKeys","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef sendKeys(keys: Vector[String]): F[Unit]","params":[{"name":"keys","type":"Vector[String]"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef sendKeys(keys: Vector[String], beforeSend: () => Unit): F[Unit]","params":[{"name":"keys","type":"Vector[String]"},{"name":"beforeSend","type":"() => Unit"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Sends an ordered group of key names to this pane, as tmux resolves them.","examples":[{"lang":"console","intro":"Send input and wait for output before capturing the pane. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala-cats_3\"))\n .using(project(\":libtmux-scala-cats\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala-cats_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/Capture.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scalacats/Capture.scala","code":"package io.github.libtmux.examples.api.scalacats\n\nimport io.github.libtmux.{\n ServerConfig,\n ServerEndpoint,\n SessionSpec,\n TextOutcome\n}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.cats.*\nimport scala.concurrent.duration.*\nimport _root_.cats.effect.{ExitCode, IO, IOApp}\nimport _root_.cats.syntax.all.*\n\n/** Send input and wait for output before capturing the pane. */\nobject Capture extends IOApp {\n def run(args: List[String]): IO[ExitCode] = {\n val program = IO {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n }.flatMap { config =>\n Server.resource[IO](config).use { server =>\n for {\n session <- server.newSession(\n SessionSpec\n .builder()\n .named(\"api-capture\")\n .running(\"/bin/sh\")\n .build()\n )\n pane = session.windows.head.panes.head\n _ <- pane.sendKeys(Vector(\"printf 'api-%s\\\\n' keys\", \"Enter\"))\n keys <- pane.awaitText(\"api-keys\", 5.seconds)\n _ <- IO.raiseWhen(keys.equals(TextOutcome.TIMED_OUT))(\n new IllegalStateException(\"timed out waiting for keys output\")\n )\n _ <- pane.sendLine(\"printf 'api-%s\\\\n' line\")\n line <- pane.awaitText(\"api-line\", 5.seconds)\n _ <- IO.raiseWhen(line.equals(TextOutcome.TIMED_OUT))(\n new IllegalStateException(\"timed out waiting for line output\")\n )\n lines <- pane.capture()\n _ <- Vector(\"api-keys\", \"api-line\").traverse_ { expected =>\n IO.raiseUnless(lines.exists(_.trim.equals(expected)))(\n new IllegalStateException(\"capture is missing \" + expected)\n ) *> IO.println(expected)\n }\n } yield ()\n }\n }\n program.as(ExitCode.Success).handleErrorWith { error =>\n IO(System.err.println(\"Example failed: \" + error.getMessage))\n .as(ExitCode.Error)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scalacats.Capture && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"api-keys\napi-line\n"}]},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":322,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-sendkeys"},{"id":"io.github.libtmux.scaladsl.cats.Pane.sendLiteral","name":"sendLiteral","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef sendLiteral(keys: Vector[String]): F[Unit]","params":[{"name":"keys","type":"Vector[String]"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef sendLiteral(keys: Vector[String], beforeSend: () => Unit): F[Unit]","params":[{"name":"keys","type":"Vector[String]"},{"name":"beforeSend","type":"() => Unit"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Sends an ordered group of strings to this pane as the characters they spell."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":330,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-sendliteral"},{"id":"io.github.libtmux.scaladsl.cats.Pane.sendLine","name":"sendLine","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef sendLine(command: String): F[Unit]","params":[{"name":"command","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Sends a line to this pane and presses Enter, which is how a command gets run.","examples":[{"lang":"console","intro":"Send input and wait for output before capturing the pane. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala-cats_3\"))\n .using(project(\":libtmux-scala-cats\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala-cats_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/Capture.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scalacats/Capture.scala","code":"package io.github.libtmux.examples.api.scalacats\n\nimport io.github.libtmux.{\n ServerConfig,\n ServerEndpoint,\n SessionSpec,\n TextOutcome\n}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.cats.*\nimport scala.concurrent.duration.*\nimport _root_.cats.effect.{ExitCode, IO, IOApp}\nimport _root_.cats.syntax.all.*\n\n/** Send input and wait for output before capturing the pane. */\nobject Capture extends IOApp {\n def run(args: List[String]): IO[ExitCode] = {\n val program = IO {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n }.flatMap { config =>\n Server.resource[IO](config).use { server =>\n for {\n session <- server.newSession(\n SessionSpec\n .builder()\n .named(\"api-capture\")\n .running(\"/bin/sh\")\n .build()\n )\n pane = session.windows.head.panes.head\n _ <- pane.sendKeys(Vector(\"printf 'api-%s\\\\n' keys\", \"Enter\"))\n keys <- pane.awaitText(\"api-keys\", 5.seconds)\n _ <- IO.raiseWhen(keys.equals(TextOutcome.TIMED_OUT))(\n new IllegalStateException(\"timed out waiting for keys output\")\n )\n _ <- pane.sendLine(\"printf 'api-%s\\\\n' line\")\n line <- pane.awaitText(\"api-line\", 5.seconds)\n _ <- IO.raiseWhen(line.equals(TextOutcome.TIMED_OUT))(\n new IllegalStateException(\"timed out waiting for line output\")\n )\n lines <- pane.capture()\n _ <- Vector(\"api-keys\", \"api-line\").traverse_ { expected =>\n IO.raiseUnless(lines.exists(_.trim.equals(expected)))(\n new IllegalStateException(\"capture is missing \" + expected)\n ) *> IO.println(expected)\n }\n } yield ()\n }\n }\n program.as(ExitCode.Success).handleErrorWith { error =>\n IO(System.err.println(\"Example failed: \" + error.getMessage))\n .as(ExitCode.Error)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scalacats.Capture && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"api-keys\napi-line\n"}]},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":338,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-sendline"},{"id":"io.github.libtmux.scaladsl.cats.Pane.breakOut","name":"breakOut","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef breakOut(): F[Window[F]]","params":[],"returns":"F[Window[F]]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef breakOut(windowName: String): F[Window[F]]","params":[{"name":"windowName","type":"String"}],"returns":"F[Window[F]]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Moves this pane into a window of its own, leaving tmux to name it."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":342,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-breakout"},{"id":"io.github.libtmux.scaladsl.cats.Pane.expand","name":"expand","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef expand(format: String): F[String]","params":[{"name":"format","type":"String"}],"returns":"F[String]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Expands a tmux format in this pane's context, and answers with what it came to."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":346,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-expand"},{"id":"io.github.libtmux.scaladsl.cats.Pane.variables","name":"variables","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef variables(names: Vector[String]): F[_root_.scala.collection.immutable.VectorMap[String, String]]","params":[{"name":"names","type":"Vector[String]"}],"returns":"F[_root_.scala.collection.immutable.VectorMap[String, String]]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Reads validated tmux variables in this pane's format context."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":350,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-variables"},{"id":"io.github.libtmux.scaladsl.cats.Pane.respawn","name":"respawn","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef respawn(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef respawn(command: String*): F[Unit]","params":[{"name":"command","type":"String*"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Kills whatever runs here and starts the pane's default command again."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":354,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-respawn"},{"id":"io.github.libtmux.scaladsl.cats.Pane.respawnIn","name":"respawnIn","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef respawnIn(directory: java.nio.file.Path): F[Unit]","params":[{"name":"directory","type":"java.nio.file.Path"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Restarts the configured pane process in a caller-supplied literal directory, resolved against this process's working directory when relative."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":359,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-respawnin"},{"id":"io.github.libtmux.scaladsl.cats.Pane.pipeTo","name":"pipeTo","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef pipeTo(shellCommand: String): F[Unit]","params":[{"name":"shellCommand","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Sends everything this pane prints to a shell command, until {@link #stopPiping}."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":367,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-pipeto"},{"id":"io.github.libtmux.scaladsl.cats.Pane.stopPiping","name":"stopPiping","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef stopPiping(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Stops sending this pane's output anywhere."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":371,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-stoppiping"},{"id":"io.github.libtmux.scaladsl.cats.Pane.split","name":"split","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef split(): F[Pane[F]]","params":[],"returns":"F[Pane[F]]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef split(configure: io.github.libtmux.SplitSpec.Builder => Unit): F[Pane[F]]","params":[{"name":"configure","type":"io.github.libtmux.SplitSpec.Builder => Unit"}],"returns":"F[Pane[F]]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef split(spec: io.github.libtmux.SplitSpec): F[Pane[F]]","params":[{"name":"spec","type":"io.github.libtmux.SplitSpec"}],"returns":"F[Pane[F]]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Splits this pane in half, putting the new one below it."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":379,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-split"},{"id":"io.github.libtmux.scaladsl.cats.Pane.pasteBuffer","name":"pasteBuffer","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef pasteBuffer(name: String): F[Unit]","params":[{"name":"name","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Pastes a named buffer into this pane, as though it had been typed."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":391,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-pastebuffer"},{"id":"io.github.libtmux.scaladsl.cats.Pane.paste","name":"paste","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef paste(text: String): F[Unit]","params":[{"name":"text","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef paste(text: String, beforePaste: () => Unit): F[Unit]","params":[{"name":"text","type":"String"},{"name":"beforePaste","type":"() => Unit"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Pastes text into this pane as one block, leaving nothing behind on the server."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":395,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-paste"},{"id":"io.github.libtmux.scaladsl.cats.Pane.clearHistory","name":"clearHistory","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef clearHistory(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Discards this pane's scrollback."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":403,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-clearhistory"},{"id":"io.github.libtmux.scaladsl.cats.Pane.swapWith","name":"swapWith","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef swapWith(other: Pane[F]): F[Unit]","params":[{"name":"other","type":"Pane[F]"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Swaps this pane's position with another's."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":407,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-swapwith"},{"id":"io.github.libtmux.scaladsl.cats.Pane.joinTo","name":"joinTo","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef joinTo(window: Window[F]): F[Unit]","params":[{"name":"window","type":"Window[F]"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Moves this pane into another window, splitting it."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":411,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-jointo"},{"id":"io.github.libtmux.scaladsl.cats.Pane.kill","name":"kill","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef kill(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Closes this pane."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":415,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-kill"},{"id":"io.github.libtmux.scaladsl.cats.Pane.refresh","name":"refresh","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef refresh(): F[Pane[F]]","params":[],"returns":"F[Pane[F]]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Takes a new capture and returns this pane as it is now."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":419,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-refresh"},{"id":"io.github.libtmux.scaladsl.cats.Prompt.history","name":"history","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Prompt","signatures":[{"raw":"extension [F[_]](self: Prompt[F])(using F: _root_.cats.effect.Async[F])\ndef history(): F[Vector[String]]","params":[],"returns":"F[Vector[String]]","receiver":{"name":"self","type":"Prompt[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"What has been typed at the prompt, oldest first."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":426,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-prompt-history"},{"id":"io.github.libtmux.scaladsl.cats.Prompt.clear","name":"clear","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Prompt","signatures":[{"raw":"extension [F[_]](self: Prompt[F])(using F: _root_.cats.effect.Async[F])\ndef clear(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Prompt[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Forgets what has been typed at the prompt."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":430,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-prompt-clear"},{"id":"io.github.libtmux.scaladsl.cats.Server.newSession","name":"newSession","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef newSession(name: String): F[Session[F]]","params":[{"name":"name","type":"String"}],"returns":"F[Session[F]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef newSession(configure: io.github.libtmux.SessionSpec.Builder => Unit): F[Session[F]]","params":[{"name":"configure","type":"io.github.libtmux.SessionSpec.Builder => Unit"}],"returns":"F[Session[F]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef newSession(spec: io.github.libtmux.SessionSpec): F[Session[F]]","params":[{"name":"spec","type":"io.github.libtmux.SessionSpec"}],"returns":"F[Session[F]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Creates a detached session and returns that exact session.","examples":[{"lang":"console","intro":"Create a session running cat. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala-cats_3\"))\n .using(project(\":libtmux-scala-cats\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala-cats_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/NewSession.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scalacats/NewSession.scala","code":"package io.github.libtmux.examples.api.scalacats\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint, SessionSpec}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.cats.*\nimport _root_.cats.effect.{ExitCode, IO, IOApp}\nimport _root_.cats.syntax.all.*\n\n/** Create a session running cat. */\nobject NewSession extends IOApp {\n def run(args: List[String]): IO[ExitCode] = {\n val program = IO {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n }.flatMap { config =>\n Server.resource[IO](config).use { server =>\n for {\n session <- server.newSession(\n SessionSpec\n .builder()\n .named(\"api-session\")\n .running(\"/bin/cat\")\n .build()\n )\n _ <- IO.println(s\"created=${session.name}\")\n } yield ()\n }\n }\n program.as(ExitCode.Success).handleErrorWith { error =>\n IO(System.err.println(\"Example failed: \" + error.getMessage))\n .as(ExitCode.Error)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scalacats.NewSession && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"created=api-session\n"}]},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":437,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-newsession"},{"id":"io.github.libtmux.scaladsl.cats.Server.hasSession","name":"hasSession","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef hasSession(name: String): F[Boolean]","params":[{"name":"name","type":"String"}],"returns":"F[Boolean]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Whether a session with this name exists."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":449,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-hassession"},{"id":"io.github.libtmux.scaladsl.cats.Server.killSession","name":"killSession","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef killSession(name: String): F[Unit]","params":[{"name":"name","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Ends the session with this name, and everything in it."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":453,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-killsession"},{"id":"io.github.libtmux.scaladsl.cats.Server.isAlive","name":"isAlive","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef isAlive(): F[Boolean]","params":[],"returns":"F[Boolean]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef isAlive(timeout: _root_.scala.concurrent.duration.FiniteDuration): F[Boolean]","params":[{"name":"timeout","type":"_root_.scala.concurrent.duration.FiniteDuration"}],"returns":"F[Boolean]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Whether the server is running and answering."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":457,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-isalive"},{"id":"io.github.libtmux.scaladsl.cats.Server.requireAlive","name":"requireAlive","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef requireAlive(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Requires a running tmux daemon that answers the liveness probe."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":465,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-requirealive"},{"id":"io.github.libtmux.scaladsl.cats.Server.killServer","name":"killServer","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef killServer(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef killServer(timeout: _root_.scala.concurrent.duration.FiniteDuration): F[Unit]","params":[{"name":"timeout","type":"_root_.scala.concurrent.duration.FiniteDuration"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Ends the tmux server and every session on it."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":469,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-killserver"},{"id":"io.github.libtmux.scaladsl.cats.Server.expand","name":"expand","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef expand(format: String): F[String]","params":[{"name":"format","type":"String"}],"returns":"F[String]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Expands a tmux format against the server, and answers with what it came to."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":477,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-expand"},{"id":"io.github.libtmux.scaladsl.cats.Server.shell","name":"shell","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef shell: Shell[F]","params":[],"returns":"Shell[F]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Shell commands run by tmux, and tmux commands chosen by a shell exit status."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":481,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-shell"},{"id":"io.github.libtmux.scaladsl.cats.Server.commands","name":"commands","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef commands: Commands[F]","params":[],"returns":"Commands[F]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The commands this tmux knows."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":485,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-commands"},{"id":"io.github.libtmux.scaladsl.cats.Server.lock","name":"lock","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef lock(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Locks every client attached to this server."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":489,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-lock"},{"id":"io.github.libtmux.scaladsl.cats.Server.messageLog","name":"messageLog","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef messageLog: MessageLog[F]","params":[],"returns":"MessageLog[F]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The server's message log."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":493,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-messagelog"},{"id":"io.github.libtmux.scaladsl.cats.Server.prompt","name":"prompt","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef prompt: Prompt[F]","params":[],"returns":"Prompt[F]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The command prompt's history."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":497,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-prompt"},{"id":"io.github.libtmux.scaladsl.cats.Server.variables","name":"variables","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef variables(names: Vector[String]): F[_root_.scala.collection.immutable.VectorMap[String, String]]","params":[{"name":"names","type":"Vector[String]"}],"returns":"F[_root_.scala.collection.immutable.VectorMap[String, String]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Reads only validated tmux variable names, never caller-authored format syntax."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":501,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-variables"},{"id":"io.github.libtmux.scaladsl.cats.Server.paneFields","name":"paneFields","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef paneFields(names: Vector[String]): F[_root_.scala.collection.immutable.VectorMap[io.github.libtmux.PaneId, _root_.scala.collection.immutable.VectorMap[String, String]]]","params":[{"name":"names","type":"Vector[String]"}],"returns":"F[_root_.scala.collection.immutable.VectorMap[io.github.libtmux.PaneId, _root_.scala.collection.immutable.VectorMap[String, String]]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Chosen fields for every pane on the server, from one listing."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":505,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-panefields"},{"id":"io.github.libtmux.scaladsl.cats.Server.keys","name":"keys","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef keys: Keys[F]","params":[],"returns":"Keys[F]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The server's key bindings: {@code prefix} when binding, every table when listing."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":509,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-keys"},{"id":"io.github.libtmux.scaladsl.cats.Server.buffers","name":"buffers","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef buffers: Buffers[F]","params":[],"returns":"Buffers[F]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The server's paste buffers, which every session shares."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":513,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-buffers"},{"id":"io.github.libtmux.scaladsl.cats.Server.sourceFile","name":"sourceFile","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef sourceFile(file: java.nio.file.Path): F[Unit]","params":[{"name":"file","type":"java.nio.file.Path"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Runs a file of tmux commands, as a configuration file would be run."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":517,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-sourcefile"},{"id":"io.github.libtmux.scaladsl.cats.Server.options","name":"options","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef options: Options[F]","params":[],"returns":"Options[F]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The server-wide options, the ones tmux keeps once per server."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":521,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-options"},{"id":"io.github.libtmux.scaladsl.cats.Server.globalOptions","name":"globalOptions","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef globalOptions: Options[F]","params":[],"returns":"Options[F]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The global session options every session inherits unless it sets its own."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":525,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-globaloptions"},{"id":"io.github.libtmux.scaladsl.cats.Server.environment","name":"environment","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef environment: Environment[F]","params":[],"returns":"Environment[F]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The server's environment, which every session inherits and every new process is given."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":529,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-environment"},{"id":"io.github.libtmux.scaladsl.cats.Server.hooks","name":"hooks","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef hooks: Hooks[F]","params":[],"returns":"Hooks[F]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The global hooks every session inherits."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":533,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-hooks"},{"id":"io.github.libtmux.scaladsl.cats.Server.version","name":"version","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef version(): F[io.github.libtmux.TmuxVersion]","params":[],"returns":"F[io.github.libtmux.TmuxVersion]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Which tmux this server is running."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":537,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-version"},{"id":"io.github.libtmux.scaladsl.cats.Server.identity","name":"identity","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef identity: io.github.libtmux.ServerIdentity","params":[],"returns":"io.github.libtmux.ServerIdentity","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Which server this is."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":541,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-identity"},{"id":"io.github.libtmux.scaladsl.cats.Server.config","name":"config","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef config: io.github.libtmux.ServerConfig","params":[],"returns":"io.github.libtmux.ServerConfig","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"How this server was configured."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":545,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-config"},{"id":"io.github.libtmux.scaladsl.cats.Server.cmd","name":"cmd","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef cmd(argv: String*): F[io.github.libtmux.transport.CommandResult]","params":[{"name":"argv","type":"String*"}],"returns":"F[io.github.libtmux.transport.CommandResult]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef cmd(argv: Vector[String]): F[io.github.libtmux.transport.CommandResult]","params":[{"name":"argv","type":"Vector[String]"}],"returns":"F[io.github.libtmux.transport.CommandResult]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef cmd(argv: Vector[String], timeout: _root_.scala.concurrent.duration.FiniteDuration): F[io.github.libtmux.transport.CommandResult]","params":[{"name":"argv","type":"Vector[String]"},{"name":"timeout","type":"_root_.scala.concurrent.duration.FiniteDuration"}],"returns":"F[io.github.libtmux.transport.CommandResult]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Runs one tmux command against this server."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":549,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-cmd"},{"id":"io.github.libtmux.scaladsl.cats.Server.snapshot","name":"snapshot","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef snapshot(): F[io.github.libtmux.snapshot.ServerSnapshot]","params":[],"returns":"F[io.github.libtmux.snapshot.ServerSnapshot]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Captures the whole hierarchy in at most four listings, retrying once if the server is replaced."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":562,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-snapshot"},{"id":"io.github.libtmux.scaladsl.cats.Server.sessions","name":"sessions","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef sessions(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Session]): F[Vector[Session[F]]]","params":[{"name":"expression","type":"io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Session]"}],"returns":"F[Vector[Session[F]]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef sessions(): F[Vector[Session[F]]]","params":[],"returns":"F[Vector[Session[F]]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"The sessions this expression matches, captured now.","examples":[{"lang":"console","intro":"List the sessions returned by a server read. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala-cats_3\"))\n .using(project(\":libtmux-scala-cats\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala-cats_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/ListSessions.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scalacats/ListSessions.scala","code":"package io.github.libtmux.examples.api.scalacats\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.cats.*\nimport _root_.cats.effect.{ExitCode, IO, IOApp}\nimport _root_.cats.syntax.all.*\n\n/** List the sessions returned by a server read. */\nobject ListSessions extends IOApp {\n def run(args: List[String]): IO[ExitCode] = {\n val program = IO {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n }.flatMap { config =>\n Server.resource[IO](config).use { server =>\n for {\n sessions <- server.sessions()\n _ <- IO.println(\n \"sessions=\" + sessions.map(_.name).sorted.mkString(\",\")\n )\n } yield ()\n }\n }\n program.as(ExitCode.Success).handleErrorWith { error =>\n IO(System.err.println(\"Example failed: \" + error.getMessage))\n .as(ExitCode.Error)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scalacats.ListSessions && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"sessions=work-one,work-two\n"},{"lang":"console","intro":"Select sessions with a typed name filter. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala-cats_3\"))\n .using(project(\":libtmux-scala-cats\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala-cats_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/Query.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scalacats/Query.scala","code":"package io.github.libtmux.examples.api.scalacats\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.cats.*\nimport io.github.libtmux.scaladsl.{Session as SessionFields}\nimport io.github.libtmux.scaladsl.query.*\nimport _root_.cats.effect.{ExitCode, IO, IOApp}\nimport _root_.cats.syntax.all.*\n\n/** Select sessions with a typed name filter. */\nobject Query extends IOApp {\n def run(args: List[String]): IO[ExitCode] = {\n val program = IO {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n }.flatMap { config =>\n Server.resource[IO](config).use { server =>\n for {\n matches <- server.sessions(SessionFields.name.is(\"work-one\"))\n _ <- IO.println(\"matches=\" + matches.map(_.name).sorted.mkString(\",\"))\n } yield ()\n }\n }\n program.as(ExitCode.Success).handleErrorWith { error =>\n IO(System.err.println(\"Example failed: \" + error.getMessage))\n .as(ExitCode.Error)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scalacats.Query && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"matches=work-one\n"}]},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":566,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-sessions"},{"id":"io.github.libtmux.scaladsl.cats.Server.windows","name":"windows","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef windows(): F[Vector[Window[F]]]","params":[],"returns":"F[Vector[Window[F]]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef windows(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Window]): F[Vector[Window[F]]]","params":[{"name":"expression","type":"io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Window]"}],"returns":"F[Vector[Window[F]]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef windows(id: io.github.libtmux.WindowId): F[Vector[Window[F]]]","params":[{"name":"id","type":"io.github.libtmux.WindowId"}],"returns":"F[Vector[Window[F]]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Captures every winlink, preserving each session and index placement.","examples":[{"lang":"console","intro":"List all windows, then the windows captured for one session. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala-cats_3\"))\n .using(project(\":libtmux-scala-cats\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala-cats_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/ListWindows.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scalacats/ListWindows.scala","code":"package io.github.libtmux.examples.api.scalacats\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.cats.*\nimport _root_.cats.effect.{ExitCode, IO, IOApp}\nimport _root_.cats.syntax.all.*\n\n/** List all windows, then the windows captured for one session. */\nobject ListWindows extends IOApp {\n def run(args: List[String]): IO[ExitCode] = {\n val program = IO {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n }.flatMap { config =>\n Server.resource[IO](config).use { server =>\n for {\n windows <- server.windows()\n _ <- IO.println(\"windows=\" + windows.map(_.name).sorted.mkString(\",\"))\n found <- server.session(\"work-one\")\n session <- IO.fromOption(found)(\n new IllegalStateException(\"missing work-one\")\n )\n _ <- IO.println(\n \"session-windows=\" + session.windows\n .map(_.name)\n .sorted\n .mkString(\",\")\n )\n } yield ()\n }\n }\n program.as(ExitCode.Success).handleErrorWith { error =>\n IO(System.err.println(\"Example failed: \" + error.getMessage))\n .as(ExitCode.Error)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scalacats.ListWindows && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"windows=editor,editor,logs\nsession-windows=editor,logs\n"}]},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":574,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-windows"},{"id":"io.github.libtmux.scaladsl.cats.Server.panes","name":"panes","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef panes(): F[Vector[Pane[F]]]","params":[],"returns":"F[Vector[Pane[F]]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef panes(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Pane]): F[Vector[Pane[F]]]","params":[{"name":"expression","type":"io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Pane]"}],"returns":"F[Vector[Pane[F]]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Captures every pane on the server.","examples":[{"lang":"console","intro":"List all panes, then the panes captured for one window. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala-cats_3\"))\n .using(project(\":libtmux-scala-cats\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala-cats_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/ListPanes.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scalacats/ListPanes.scala","code":"package io.github.libtmux.examples.api.scalacats\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.cats.*\nimport _root_.cats.effect.{ExitCode, IO, IOApp}\nimport _root_.cats.syntax.all.*\n\n/** List all panes, then the panes captured for one window. */\nobject ListPanes extends IOApp {\n def run(args: List[String]): IO[ExitCode] = {\n val program = IO {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n }.flatMap { config =>\n Server.resource[IO](config).use { server =>\n for {\n panes <- server.panes()\n _ <- IO.println(s\"panes=${panes.size}\")\n found <- server.session(\"work-one\")\n session <- IO.fromOption(found)(\n new IllegalStateException(\"missing work-one\")\n )\n window <- IO.fromOption(\n session.windows.find(_.name.equals(\"editor\"))\n )(\n new IllegalStateException(\"missing editor\")\n )\n _ <- IO.println(s\"window-panes=${window.panes.size}\")\n } yield ()\n }\n }\n program.as(ExitCode.Success).handleErrorWith { error =>\n IO(System.err.println(\"Example failed: \" + error.getMessage))\n .as(ExitCode.Error)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scalacats.ListPanes && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"panes=4\nwindow-panes=2\n"}]},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":582,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-panes"},{"id":"io.github.libtmux.scaladsl.cats.Server.session","name":"session","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef session(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Session]): F[Option[Session[F]]]","params":[{"name":"expression","type":"io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Session]"}],"returns":"F[Option[Session[F]]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef session(name: String): F[Option[Session[F]]]","params":[{"name":"name","type":"String"}],"returns":"F[Option[Session[F]]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef session(id: io.github.libtmux.SessionId): F[Option[Session[F]]]","params":[{"name":"id","type":"io.github.libtmux.SessionId"}],"returns":"F[Option[Session[F]]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"The one session this expression matches, captured now, or empty when none does."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":590,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-session"},{"id":"io.github.libtmux.scaladsl.cats.Server.window","name":"window","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef window(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Window]): F[Option[Window[F]]]","params":[{"name":"expression","type":"io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Window]"}],"returns":"F[Option[Window[F]]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef window(context: io.github.libtmux.snapshot.WindowContext): F[Option[Window[F]]]","params":[{"name":"context","type":"io.github.libtmux.snapshot.WindowContext"}],"returns":"F[Option[Window[F]]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"The one window link this expression matches, captured now, or empty when none does."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":594,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-window"},{"id":"io.github.libtmux.scaladsl.cats.Server.pane","name":"pane","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef pane(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Pane]): F[Option[Pane[F]]]","params":[{"name":"expression","type":"io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Pane]"}],"returns":"F[Option[Pane[F]]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef pane(id: io.github.libtmux.PaneId): F[Option[Pane[F]]]","params":[{"name":"id","type":"io.github.libtmux.PaneId"}],"returns":"F[Option[Pane[F]]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"The one pane this expression matches, captured now, or empty when none does."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":598,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-pane"},{"id":"io.github.libtmux.scaladsl.cats.Server.admissionBound","name":"admissionBound","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef admissionBound: Int","params":[],"returns":"Int","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"How many tmux commands this server's transport runs at once, from {@link ServerConfig#maxConcurrentCommands()} for a server {@link #open}ed here."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":602,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-admissionbound"},{"id":"io.github.libtmux.scaladsl.cats.Server.clients","name":"clients","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef clients(): F[Vector[Client[F]]]","params":[],"returns":"F[Vector[Client[F]]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Captures every attached client."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":626,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-clients"},{"id":"io.github.libtmux.scaladsl.cats.Server.attachedSessions","name":"attachedSessions","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef attachedSessions(): F[Vector[Session[F]]]","params":[],"returns":"F[Vector[Session[F]]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Captures every session a client is attached to."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":630,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-attachedsessions"},{"id":"io.github.libtmux.scaladsl.cats.Server.run","name":"run","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef run(argv: Vector[String]): F[io.github.libtmux.transport.CommandResult]","params":[{"name":"argv","type":"Vector[String]"}],"returns":"F[io.github.libtmux.transport.CommandResult]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Runs a command that is expected to work, and raises when it did not."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":634,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-run"},{"id":"io.github.libtmux.scaladsl.cats.Server.toBuilder","name":"toBuilder","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef toBuilder: io.github.libtmux.Server.Builder","params":[],"returns":"io.github.libtmux.Server.Builder","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"A builder holding every configuration and ownership choice this server made."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":638,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-tobuilder"},{"id":"io.github.libtmux.scaladsl.cats.Session.info","name":"info","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef info: io.github.libtmux.snapshot.SessionState","params":[],"returns":"io.github.libtmux.snapshot.SessionState","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The fields this capture stored."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":645,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-info"},{"id":"io.github.libtmux.scaladsl.cats.Session.id","name":"id","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef id: io.github.libtmux.SessionId","params":[],"returns":"io.github.libtmux.SessionId","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The session's stable id."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":649,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-id"},{"id":"io.github.libtmux.scaladsl.cats.Session.name","name":"name","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef name: String","params":[],"returns":"String","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The session name, which a user may change at any time."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":653,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-name"},{"id":"io.github.libtmux.scaladsl.cats.Session.attached","name":"attached","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef attached: Boolean","params":[],"returns":"Boolean","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Whether a client was attached when this was captured."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":657,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-attached"},{"id":"io.github.libtmux.scaladsl.cats.Session.activeWindow","name":"activeWindow","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef activeWindow: Option[Window[F]]","params":[],"returns":"Option[Window[F]]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The window tmux had active in this session."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":661,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-activewindow"},{"id":"io.github.libtmux.scaladsl.cats.Session.activePane","name":"activePane","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef activePane: Option[Pane[F]]","params":[],"returns":"Option[Pane[F]]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The active pane of the active window."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":665,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-activepane"},{"id":"io.github.libtmux.scaladsl.cats.Session.selectWindow","name":"selectWindow","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef selectWindow(window: Window[F]): F[Unit]","params":[{"name":"window","type":"Window[F]"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Makes a window of this session the active one."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":669,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-selectwindow"},{"id":"io.github.libtmux.scaladsl.cats.Session.nextWindow","name":"nextWindow","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef nextWindow(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Moves to the next window in this session, wrapping at the end."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":673,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-nextwindow"},{"id":"io.github.libtmux.scaladsl.cats.Session.previousWindow","name":"previousWindow","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef previousWindow(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Moves to the previous window in this session, wrapping at the start."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":677,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-previouswindow"},{"id":"io.github.libtmux.scaladsl.cats.Session.lastWindow","name":"lastWindow","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef lastWindow(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Returns to the window that was active before this one."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":681,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-lastwindow"},{"id":"io.github.libtmux.scaladsl.cats.Session.detachClients","name":"detachClients","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef detachClients(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Detaches every client attached to this session, leaving the session running."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":685,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-detachclients"},{"id":"io.github.libtmux.scaladsl.cats.Session.options","name":"options","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef options: Options[F]","params":[],"returns":"Options[F]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"This session's own options."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":689,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-options"},{"id":"io.github.libtmux.scaladsl.cats.Session.environment","name":"environment","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef environment: Environment[F]","params":[],"returns":"Environment[F]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"This session's own environment, which a process started in it is given on top of the server's."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":694,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-environment"},{"id":"io.github.libtmux.scaladsl.cats.Session.hooks","name":"hooks","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef hooks: Hooks[F]","params":[],"returns":"Hooks[F]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"This session's own hooks."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":698,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-hooks"},{"id":"io.github.libtmux.scaladsl.cats.Session.setHistoryLimit","name":"setHistoryLimit","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef setHistoryLimit(lines: Int): F[Unit]","params":[{"name":"lines","type":"Int"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Sets the scrollback retained by panes created in this session."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":702,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-sethistorylimit"},{"id":"io.github.libtmux.scaladsl.cats.Session.windows","name":"windows","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef windows: Vector[Window[F]]","params":[],"returns":"Vector[Window[F]]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"This session's windows, in tmux's order.","examples":[{"lang":"console","intro":"List all windows, then the windows captured for one session. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala-cats_3\"))\n .using(project(\":libtmux-scala-cats\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala-cats_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/ListWindows.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scalacats/ListWindows.scala","code":"package io.github.libtmux.examples.api.scalacats\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.cats.*\nimport _root_.cats.effect.{ExitCode, IO, IOApp}\nimport _root_.cats.syntax.all.*\n\n/** List all windows, then the windows captured for one session. */\nobject ListWindows extends IOApp {\n def run(args: List[String]): IO[ExitCode] = {\n val program = IO {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n }.flatMap { config =>\n Server.resource[IO](config).use { server =>\n for {\n windows <- server.windows()\n _ <- IO.println(\"windows=\" + windows.map(_.name).sorted.mkString(\",\"))\n found <- server.session(\"work-one\")\n session <- IO.fromOption(found)(\n new IllegalStateException(\"missing work-one\")\n )\n _ <- IO.println(\n \"session-windows=\" + session.windows\n .map(_.name)\n .sorted\n .mkString(\",\")\n )\n } yield ()\n }\n }\n program.as(ExitCode.Success).handleErrorWith { error =>\n IO(System.err.println(\"Example failed: \" + error.getMessage))\n .as(ExitCode.Error)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scalacats.ListWindows && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"windows=editor,editor,logs\nsession-windows=editor,logs\n"}]},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":706,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-windows"},{"id":"io.github.libtmux.scaladsl.cats.Session.newWindow","name":"newWindow","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef newWindow(name: String): F[Window[F]]","params":[{"name":"name","type":"String"}],"returns":"F[Window[F]]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef newWindow(configure: io.github.libtmux.WindowSpec.Builder => Unit): F[Window[F]]","params":[{"name":"configure","type":"io.github.libtmux.WindowSpec.Builder => Unit"}],"returns":"F[Window[F]]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef newWindow(spec: io.github.libtmux.WindowSpec): F[Window[F]]","params":[{"name":"spec","type":"io.github.libtmux.WindowSpec"}],"returns":"F[Window[F]]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Creates a window in this session and returns that exact window.","examples":[{"lang":"console","intro":"Create a window and read the updated session. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala-cats_3\"))\n .using(project(\":libtmux-scala-cats\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala-cats_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/NewWindow.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scalacats/NewWindow.scala","code":"package io.github.libtmux.examples.api.scalacats\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint, WindowSpec}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.cats.*\nimport _root_.cats.effect.{ExitCode, IO, IOApp}\nimport _root_.cats.syntax.all.*\n\n/** Create a window and read the updated session. */\nobject NewWindow extends IOApp {\n def run(args: List[String]): IO[ExitCode] = {\n val program = IO {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n }.flatMap { config =>\n Server.resource[IO](config).use { server =>\n for {\n found <- server.session(\"work-one\")\n session <- IO.fromOption(found)(\n new IllegalStateException(\"missing work-one\")\n )\n window <- session.newWindow(\n WindowSpec.builder().named(\"api-window\").running(\"/bin/cat\").build()\n )\n _ <- IO.println(s\"created=${window.name}\")\n updated <- server.session(\"work-one\")\n refreshed <- IO.fromOption(updated)(\n new IllegalStateException(\"missing work-one\")\n )\n _ <- IO.println(\n \"windows=\" + refreshed.windows.map(_.name).sorted.mkString(\",\")\n )\n } yield ()\n }\n }\n program.as(ExitCode.Success).handleErrorWith { error =>\n IO(System.err.println(\"Example failed: \" + error.getMessage))\n .as(ExitCode.Error)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scalacats.NewWindow && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"created=api-window\nwindows=api-window,editor,logs\n"}]},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":710,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-newwindow"},{"id":"io.github.libtmux.scaladsl.cats.Session.expand","name":"expand","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef expand(format: String): F[String]","params":[{"name":"format","type":"String"}],"returns":"F[String]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Expands a tmux format in this session's context, and answers with what it came to."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":722,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-expand"},{"id":"io.github.libtmux.scaladsl.cats.Session.rename","name":"rename","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef rename(name: String): F[Session[F]]","params":[{"name":"name","type":"String"}],"returns":"F[Session[F]]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Renames this session and returns its replacement capture."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":726,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-rename"},{"id":"io.github.libtmux.scaladsl.cats.Session.kill","name":"kill","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef kill(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Ends this session."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":730,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-kill"},{"id":"io.github.libtmux.scaladsl.cats.Session.refresh","name":"refresh","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef refresh(): F[Session[F]]","params":[],"returns":"F[Session[F]]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Takes a new capture and returns this session as it is now."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":734,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-refresh"},{"id":"io.github.libtmux.scaladsl.cats.Shell.run","name":"run","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Shell","signatures":[{"raw":"extension [F[_]](self: Shell[F])(using F: _root_.cats.effect.Async[F])\ndef run(command: String): F[Unit]","params":[{"name":"command","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Shell[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Runs a shell command for its effect."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":741,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-shell-run"},{"id":"io.github.libtmux.scaladsl.cats.Shell.capturing","name":"capturing","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Shell","signatures":[{"raw":"extension [F[_]](self: Shell[F])(using F: _root_.cats.effect.Async[F])\ndef capturing(command: String): F[Vector[String]]","params":[{"name":"command","type":"String"}],"returns":"F[Vector[String]]","receiver":{"name":"self","type":"Shell[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Runs a shell command and answers with what it printed."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":745,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-shell-capturing"},{"id":"io.github.libtmux.scaladsl.cats.Shell.choose","name":"choose","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Shell","signatures":[{"raw":"extension [F[_]](self: Shell[F])(using F: _root_.cats.effect.Async[F])\ndef choose(condition: String, whenTrue: String): F[Unit]","params":[{"name":"condition","type":"String"},{"name":"whenTrue","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Shell[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Shell[F])(using F: _root_.cats.effect.Async[F])\ndef choose(condition: String, whenTrue: String, whenFalse: String): F[Unit]","params":[{"name":"condition","type":"String"},{"name":"whenTrue","type":"String"},{"name":"whenFalse","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Shell[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Runs one tmux command when a shell command succeeds."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":749,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-shell-choose"},{"id":"io.github.libtmux.scaladsl.cats.Window.info","name":"info","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef info: io.github.libtmux.snapshot.WindowState","params":[],"returns":"io.github.libtmux.snapshot.WindowState","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The fields this capture stored."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":760,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-info"},{"id":"io.github.libtmux.scaladsl.cats.Window.id","name":"id","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef id: io.github.libtmux.WindowId","params":[],"returns":"io.github.libtmux.WindowId","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The underlying window, shared by every link to it."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":764,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-id"},{"id":"io.github.libtmux.scaladsl.cats.Window.index","name":"index","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef index: io.github.libtmux.WindowIndex","params":[],"returns":"io.github.libtmux.WindowIndex","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Where this link sits in its session."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":768,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-index"},{"id":"io.github.libtmux.scaladsl.cats.Window.context","name":"context","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef context: io.github.libtmux.snapshot.WindowContext","params":[],"returns":"io.github.libtmux.snapshot.WindowContext","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The winlink this handle addresses."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":772,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-context"},{"id":"io.github.libtmux.scaladsl.cats.Window.name","name":"name","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef name: String","params":[],"returns":"String","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The window name."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":776,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-name"},{"id":"io.github.libtmux.scaladsl.cats.Window.active","name":"active","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef active: Boolean","params":[],"returns":"Boolean","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Whether this was its session's active window when captured."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":780,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-active"},{"id":"io.github.libtmux.scaladsl.cats.Window.linked","name":"linked","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef linked: Boolean","params":[],"returns":"Boolean","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Whether the underlying window is linked into more than one session."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":784,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-linked"},{"id":"io.github.libtmux.scaladsl.cats.Window.size","name":"size","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef size: io.github.libtmux.Dimensions","params":[],"returns":"io.github.libtmux.Dimensions","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"How large the window was when captured, in terminal cells."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":788,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-size"},{"id":"io.github.libtmux.scaladsl.cats.Window.layout","name":"layout","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef layout: io.github.libtmux.WindowLayout","params":[],"returns":"io.github.libtmux.WindowLayout","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"tmux's own layout for this window, in whichever form this server writes it."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":792,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-layout"},{"id":"io.github.libtmux.scaladsl.cats.Window.activePane","name":"activePane","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef activePane: Option[Pane[F]]","params":[],"returns":"Option[Pane[F]]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The pane tmux had active here."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":796,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-activepane"},{"id":"io.github.libtmux.scaladsl.cats.Window.select","name":"select","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef select(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Makes this the active window of its session."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":800,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-select"},{"id":"io.github.libtmux.scaladsl.cats.Window.session","name":"session","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef session: Session[F]","params":[],"returns":"Session[F]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The session this link belongs to."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":804,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-session"},{"id":"io.github.libtmux.scaladsl.cats.Window.hooks","name":"hooks","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef hooks: Hooks[F]","params":[],"returns":"Hooks[F]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"This window's own hooks, which every link to it shares."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":808,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-hooks"},{"id":"io.github.libtmux.scaladsl.cats.Window.options","name":"options","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef options: Options[F]","params":[],"returns":"Options[F]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"This window's own options, which every link to it shares."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":812,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-options"},{"id":"io.github.libtmux.scaladsl.cats.Window.panes","name":"panes","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef panes: Vector[Pane[F]]","params":[],"returns":"Vector[Pane[F]]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"This link's panes, in tmux's order.","examples":[{"lang":"console","intro":"List all panes, then the panes captured for one window. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala-cats_3\"))\n .using(project(\":libtmux-scala-cats\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala-cats_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/ListPanes.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scalacats/ListPanes.scala","code":"package io.github.libtmux.examples.api.scalacats\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.cats.*\nimport _root_.cats.effect.{ExitCode, IO, IOApp}\nimport _root_.cats.syntax.all.*\n\n/** List all panes, then the panes captured for one window. */\nobject ListPanes extends IOApp {\n def run(args: List[String]): IO[ExitCode] = {\n val program = IO {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n }.flatMap { config =>\n Server.resource[IO](config).use { server =>\n for {\n panes <- server.panes()\n _ <- IO.println(s\"panes=${panes.size}\")\n found <- server.session(\"work-one\")\n session <- IO.fromOption(found)(\n new IllegalStateException(\"missing work-one\")\n )\n window <- IO.fromOption(\n session.windows.find(_.name.equals(\"editor\"))\n )(\n new IllegalStateException(\"missing editor\")\n )\n _ <- IO.println(s\"window-panes=${window.panes.size}\")\n } yield ()\n }\n }\n program.as(ExitCode.Success).handleErrorWith { error =>\n IO(System.err.println(\"Example failed: \" + error.getMessage))\n .as(ExitCode.Error)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scalacats.ListPanes && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"panes=4\nwindow-panes=2\n"}]},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":816,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-panes"},{"id":"io.github.libtmux.scaladsl.cats.Window.split","name":"split","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef split(): F[Pane[F]]","params":[],"returns":"F[Pane[F]]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef split(configure: io.github.libtmux.SplitSpec.Builder => Unit): F[Pane[F]]","params":[{"name":"configure","type":"io.github.libtmux.SplitSpec.Builder => Unit"}],"returns":"F[Pane[F]]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef split(spec: io.github.libtmux.SplitSpec): F[Pane[F]]","params":[{"name":"spec","type":"io.github.libtmux.SplitSpec"}],"returns":"F[Pane[F]]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Splits this window's active pane in half, putting the new one below it."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":820,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-split"},{"id":"io.github.libtmux.scaladsl.cats.Window.expand","name":"expand","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef expand(format: String): F[String]","params":[{"name":"format","type":"String"}],"returns":"F[String]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Expands a tmux format in this window's context, and answers with what it came to."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":832,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-expand"},{"id":"io.github.libtmux.scaladsl.cats.Window.rename","name":"rename","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef rename(name: String): F[Window[F]]","params":[{"name":"name","type":"String"}],"returns":"F[Window[F]]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Renames this window and returns its replacement capture."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":836,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-rename"},{"id":"io.github.libtmux.scaladsl.cats.Window.linkTo","name":"linkTo","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef linkTo(session: Session[F]): F[Unit]","params":[{"name":"session","type":"Session[F]"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Links this window into another session, so one window sits in both."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":840,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-linkto"},{"id":"io.github.libtmux.scaladsl.cats.Window.unlink","name":"unlink","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef unlink(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Removes this link, leaving the window wherever else it is linked."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":844,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-unlink"},{"id":"io.github.libtmux.scaladsl.cats.Window.moveTo","name":"moveTo","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef moveTo(session: Session[F]): F[Unit]","params":[{"name":"session","type":"Session[F]"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef moveTo(session: Session[F], index: Int): F[Unit]","params":[{"name":"session","type":"Session[F]"},{"name":"index","type":"Int"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Moves this window into another session."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":848,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-moveto"},{"id":"io.github.libtmux.scaladsl.cats.Window.resizeTo","name":"resizeTo","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef resizeTo(size: io.github.libtmux.Dimensions): F[Unit]","params":[{"name":"size","type":"io.github.libtmux.Dimensions"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Resizes this window in terminal cells."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":856,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-resizeto"},{"id":"io.github.libtmux.scaladsl.cats.Window.synchronizePanes","name":"synchronizePanes","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef synchronizePanes(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Copies input to one pane into every pane in this window, until {@link #stopSynchronizingPanes}."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":860,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-synchronizepanes"},{"id":"io.github.libtmux.scaladsl.cats.Window.stopSynchronizingPanes","name":"stopSynchronizingPanes","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef stopSynchronizingPanes(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Stops copying input between this window's panes."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":864,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-stopsynchronizingpanes"},{"id":"io.github.libtmux.scaladsl.cats.Window.rotate","name":"rotate","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef rotate(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Rotates the panes within this window."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":868,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-rotate"},{"id":"io.github.libtmux.scaladsl.cats.Window.selectLayout","name":"selectLayout","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef selectLayout(layout: io.github.libtmux.Layout): F[Unit]","params":[{"name":"layout","type":"io.github.libtmux.Layout"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Rearranges this window's panes into one of tmux's built-in layouts."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":872,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-selectlayout"},{"id":"io.github.libtmux.scaladsl.cats.Window.nextLayout","name":"nextLayout","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef nextLayout(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Moves to the next built-in layout, as tmux's own binding does."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":876,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-nextlayout"},{"id":"io.github.libtmux.scaladsl.cats.Window.previousLayout","name":"previousLayout","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef previousLayout(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Moves to the previous built-in layout, as tmux's own binding does."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":880,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-previouslayout"},{"id":"io.github.libtmux.scaladsl.cats.Window.applyLayout","name":"applyLayout","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef applyLayout(layout: io.github.libtmux.WindowLayout): F[Unit]","params":[{"name":"layout","type":"io.github.libtmux.WindowLayout"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef applyLayout(layout: String): F[Unit]","params":[{"name":"layout","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Restores an exact arrangement previously read from {@link #layout()}."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":884,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-applylayout"},{"id":"io.github.libtmux.scaladsl.cats.Window.respawn","name":"respawn","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef respawn(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Kills what is running in this window and starts it again."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":892,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-respawn"},{"id":"io.github.libtmux.scaladsl.cats.Window.displayPopup","name":"displayPopup","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef displayPopup(shellCommand: String): F[Unit]","params":[{"name":"shellCommand","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Shows a popup over this window, running a command in it."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":896,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-displaypopup"},{"id":"io.github.libtmux.scaladsl.cats.Window.kill","name":"kill","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef kill(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Closes this window."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":900,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-kill"},{"id":"io.github.libtmux.scaladsl.cats.Window.refresh","name":"refresh","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef refresh(): F[Window[F]]","params":[],"returns":"F[Window[F]]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Takes a new capture and returns this winlink as it is now."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":904,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-refresh"},{"id":"io.github.libtmux.scaladsl.cats.Pane.batch","name":"batch","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: Async[F])\ndef batch: Batch[F]","params":[],"returns":"Batch[F]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"doc":{"summary":"An immutable batch plan; each run dispatches a fresh Java `Batch` through this pane's server's `Execution`."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":89,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-batch"},{"id":"io.github.libtmux.scaladsl.cats.Pane.awaitText","name":"awaitText","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: Async[F])\ndef awaitText(\n text: String,\n timeout: scala.concurrent.duration.FiniteDuration\n ): F[io.github.libtmux.TextOutcome]","params":[{"name":"text","type":"String"},{"name":"timeout","type":"scala.concurrent.duration.FiniteDuration"}],"returns":"F[io.github.libtmux.TextOutcome]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Pane[F])(using F: Async[F])\ndef awaitText(\n text: String,\n timeout: scala.concurrent.duration.FiniteDuration,\n every: scala.concurrent.duration.FiniteDuration\n ): F[io.github.libtmux.TextOutcome]","params":[{"name":"text","type":"String"},{"name":"timeout","type":"scala.concurrent.duration.FiniteDuration"},{"name":"every","type":"scala.concurrent.duration.FiniteDuration"}],"returns":"F[io.github.libtmux.TextOutcome]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":["overload"],"doc":{"summary":"Waits until `text` appears, or `timeout` passes first.","examples":[{"lang":"console","intro":"Send input and wait for output before capturing the pane. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala-cats_3\"))\n .using(project(\":libtmux-scala-cats\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala-cats_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/Capture.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scalacats/Capture.scala","code":"package io.github.libtmux.examples.api.scalacats\n\nimport io.github.libtmux.{\n ServerConfig,\n ServerEndpoint,\n SessionSpec,\n TextOutcome\n}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.cats.*\nimport scala.concurrent.duration.*\nimport _root_.cats.effect.{ExitCode, IO, IOApp}\nimport _root_.cats.syntax.all.*\n\n/** Send input and wait for output before capturing the pane. */\nobject Capture extends IOApp {\n def run(args: List[String]): IO[ExitCode] = {\n val program = IO {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n }.flatMap { config =>\n Server.resource[IO](config).use { server =>\n for {\n session <- server.newSession(\n SessionSpec\n .builder()\n .named(\"api-capture\")\n .running(\"/bin/sh\")\n .build()\n )\n pane = session.windows.head.panes.head\n _ <- pane.sendKeys(Vector(\"printf 'api-%s\\\\n' keys\", \"Enter\"))\n keys <- pane.awaitText(\"api-keys\", 5.seconds)\n _ <- IO.raiseWhen(keys.equals(TextOutcome.TIMED_OUT))(\n new IllegalStateException(\"timed out waiting for keys output\")\n )\n _ <- pane.sendLine(\"printf 'api-%s\\\\n' line\")\n line <- pane.awaitText(\"api-line\", 5.seconds)\n _ <- IO.raiseWhen(line.equals(TextOutcome.TIMED_OUT))(\n new IllegalStateException(\"timed out waiting for line output\")\n )\n lines <- pane.capture()\n _ <- Vector(\"api-keys\", \"api-line\").traverse_ { expected =>\n IO.raiseUnless(lines.exists(_.trim.equals(expected)))(\n new IllegalStateException(\"capture is missing \" + expected)\n ) *> IO.println(expected)\n }\n } yield ()\n }\n }\n program.as(ExitCode.Success).handleErrorWith { error =>\n IO(System.err.println(\"Example failed: \" + error.getMessage))\n .as(ExitCode.Error)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scalacats.Capture && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"api-keys\napi-line\n"}]},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":96,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-awaittext"},{"id":"io.github.libtmux.scaladsl.cats.Pane.run","name":"run","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: Async[F])\ndef run(\n command: String,\n timeout: scala.concurrent.duration.FiniteDuration\n ): F[io.github.libtmux.PaneRun]","params":[{"name":"command","type":"String"},{"name":"timeout","type":"scala.concurrent.duration.FiniteDuration"}],"returns":"F[io.github.libtmux.PaneRun]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"doc":{"summary":"Runs a shell command in this pane to its end, and answers with its exit status and output."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":126,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-run"},{"id":"io.github.libtmux.scaladsl.cats.Pane.await","name":"await","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: Async[F])\ndef await(\n settled: Pane[F] => Boolean,\n timeout: scala.concurrent.duration.FiniteDuration\n ): F[io.github.libtmux.WakeReason]","params":[{"name":"settled","type":"Pane[F] => Boolean"},{"name":"timeout","type":"scala.concurrent.duration.FiniteDuration"}],"returns":"F[io.github.libtmux.WakeReason]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Pane[F])(using F: Async[F])\ndef await(\n settled: Pane[F] => Boolean,\n timeout: scala.concurrent.duration.FiniteDuration,\n every: scala.concurrent.duration.FiniteDuration\n ): F[io.github.libtmux.WakeReason]","params":[{"name":"settled","type":"Pane[F] => Boolean"},{"name":"timeout","type":"scala.concurrent.duration.FiniteDuration"},{"name":"every","type":"scala.concurrent.duration.FiniteDuration"}],"returns":"F[io.github.libtmux.WakeReason]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":["overload"],"doc":{"summary":"Waits until `settled` holds for this pane as it is now. `settled` runs on the blocking worker with each fresh capture."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":140,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-await"},{"id":"io.github.libtmux.scaladsl.cats.Server.batch","name":"batch","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: Async[F])\ndef batch: Batch[F]","params":[],"returns":"Batch[F]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"direct":"io.github.libtmux.scaladsl","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","JavaServer":"io.github.libtmux.Server","ServerConfig":"io.github.libtmux.ServerConfig"},"modifiers":[],"doc":{"summary":"An immutable batch plan; each run dispatches a fresh Java `Batch` through this server's `Execution`."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Server.scala","line":85,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-batch"},{"id":"io.github.libtmux.scaladsl.cats.Server.chain","name":"chain","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: Async[F])\ndef chain: CommandChain[F]","params":[],"returns":"CommandChain[F]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"direct":"io.github.libtmux.scaladsl","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","JavaServer":"io.github.libtmux.Server","ServerConfig":"io.github.libtmux.ServerConfig"},"modifiers":[],"doc":{"summary":"An immutable chain plan using tmux's evolving current target; each run dispatches a fresh Java `CommandChain` through this server's `Execution`."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Server.scala","line":92,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-chain"},{"id":"io.github.libtmux.scaladsl.cats.Server.channel","name":"channel","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: Async[F])\ndef channel(name: String): Channel[F]","params":[{"name":"name","type":"String"}],"returns":"Channel[F]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"direct":"io.github.libtmux.scaladsl","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","JavaServer":"io.github.libtmux.Server","ServerConfig":"io.github.libtmux.ServerConfig"},"modifiers":[],"doc":{"summary":"One of tmux's wait-for channels, named once."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Server.scala","line":96,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-channel"},{"id":"io.github.libtmux.scaladsl.cats.Options.get","name":"get","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Options","signatures":[{"raw":"extension [F[_]](self: Options[F])(using F: Async[F])\ndef get(name: String): F[Option[String]]","params":[{"name":"name","type":"String"}],"returns":"F[Option[String]]","receiver":{"name":"self","type":"Options[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Options[F])(using F: Async[F])\ndef get[T](key: io.github.libtmux.OptionKey[T]): F[Option[T]]","params":[{"name":"key","type":"io.github.libtmux.OptionKey[T]"}],"returns":"F[Option[T]]","receiver":{"name":"self","type":"Options[F]"},"typeParams":["F","T"],"typeParameters":[{"name":"F"},{"name":"T"}]}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":["overload"],"doc":{"summary":"The value in effect at this scope, inherited from a parent scope when this one does not set it."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":57,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-options-get"},{"id":"io.github.libtmux.scaladsl.cats.Options.set","name":"set","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Options","signatures":[{"raw":"extension [F[_]](self: Options[F])(using F: Async[F])\ndef set(name: String, value: String): F[Unit]","params":[{"name":"name","type":"String"},{"name":"value","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Options[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Options[F])(using F: Async[F])\ndef set[T](key: io.github.libtmux.OptionKey[T], value: T): F[Unit]","params":[{"name":"key","type":"io.github.libtmux.OptionKey[T]"},{"name":"value","type":"T"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Options[F]"},"typeParams":["F","T"],"typeParameters":[{"name":"F"},{"name":"T"}]}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":["overload"],"doc":{"summary":"Sets one option at this scope."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":73,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-options-set"},{"id":"io.github.libtmux.scaladsl.Client.detach","name":"detach","kind":"method","parent":"io.github.libtmux.scaladsl.Client","signatures":[{"raw":"extension (self: Client)\ndef detach(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Client"}}],"imports":{},"modifiers":[],"doc":{"summary":"Detaches this client, leaving whatever it was attached to running."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-client-detach"},{"id":"io.github.libtmux.scaladsl.Client.detachOthers","name":"detachOthers","kind":"method","parent":"io.github.libtmux.scaladsl.Client","signatures":[{"raw":"extension (self: Client)\ndef detachOthers(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Client"}}],"imports":{},"modifiers":[],"doc":{"summary":"Detaches every other client, leaving this one attached."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-client-detachothers"},{"id":"io.github.libtmux.scaladsl.Client.switchTo","name":"switchTo","kind":"method","parent":"io.github.libtmux.scaladsl.Client","signatures":[{"raw":"extension (self: Client)\ndef switchTo(session: Session): Unit","params":[{"name":"session","type":"Session"}],"returns":"Unit","receiver":{"name":"self","type":"Client"}}],"imports":{},"modifiers":[],"doc":{"summary":"Moves this client to another session."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-client-switchto"},{"id":"io.github.libtmux.scaladsl.Client.redraw","name":"redraw","kind":"method","parent":"io.github.libtmux.scaladsl.Client","signatures":[{"raw":"extension (self: Client)\ndef redraw(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Client"}}],"imports":{},"modifiers":[],"doc":{"summary":"Asks tmux to redraw this client."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-client-redraw"},{"id":"io.github.libtmux.scaladsl.Client.server","name":"server","kind":"method","parent":"io.github.libtmux.scaladsl.Client","signatures":[{"raw":"extension (self: Client)\ndef server: Server","params":[],"returns":"Server","receiver":{"name":"self","type":"Client"}}],"imports":{},"modifiers":[],"doc":{"summary":"The server this client is connected to."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-client-server"},{"id":"io.github.libtmux.scaladsl.Client.attachment","name":"attachment","kind":"method","parent":"io.github.libtmux.scaladsl.Client","signatures":[{"raw":"extension (self: Client)\ndef attachment: Option[io.github.libtmux.ClientAttachment]","params":[],"returns":"Option[io.github.libtmux.ClientAttachment]","receiver":{"name":"self","type":"Client"}}],"imports":{},"modifiers":[],"doc":{"summary":"What this client was looking at when captured."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-client-attachment"},{"id":"io.github.libtmux.scaladsl.Client.fetchAttachment","name":"fetchAttachment","kind":"method","parent":"io.github.libtmux.scaladsl.Client","signatures":[{"raw":"extension (self: Client)\ndef fetchAttachment(): Option[io.github.libtmux.ClientAttachment]","params":[],"returns":"Option[io.github.libtmux.ClientAttachment]","receiver":{"name":"self","type":"Client"}}],"imports":{},"modifiers":[],"doc":{"summary":"Takes a new capture and returns what this client is looking at now."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":40,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-client-fetchattachment"},{"id":"io.github.libtmux.scaladsl.Client.refresh","name":"refresh","kind":"method","parent":"io.github.libtmux.scaladsl.Client","signatures":[{"raw":"extension (self: Client)\ndef refresh(): Client","params":[],"returns":"Client","receiver":{"name":"self","type":"Client"}}],"imports":{},"modifiers":[],"doc":{"summary":"Takes a new capture and returns this client as it is now."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":44,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-client-refresh"},{"id":"io.github.libtmux.scaladsl.Pane.info","name":"info","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef info: io.github.libtmux.snapshot.PaneState","params":[],"returns":"io.github.libtmux.snapshot.PaneState","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"The fields this capture stored."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":51,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-info"},{"id":"io.github.libtmux.scaladsl.Pane.currentCommand","name":"currentCommand","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef currentCommand: String","params":[],"returns":"String","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"The command tmux reported running here."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":67,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-currentcommand"},{"id":"io.github.libtmux.scaladsl.Pane.floating","name":"floating","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef floating: Option[Boolean]","params":[],"returns":"Option[Boolean]","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Whether this pane floats, or empty when the running tmux cannot say."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":71,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-floating"},{"id":"io.github.libtmux.scaladsl.Pane.size","name":"size","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef size: io.github.libtmux.Dimensions","params":[],"returns":"io.github.libtmux.Dimensions","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"How large the pane was when captured, in terminal cells."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":75,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-size"},{"id":"io.github.libtmux.scaladsl.Pane.position","name":"position","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef position: io.github.libtmux.PanePosition","params":[],"returns":"io.github.libtmux.PanePosition","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Where the pane's top-left corner sat in its window when captured, in terminal cells."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":79,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-position"},{"id":"io.github.libtmux.scaladsl.Pane.currentPath","name":"currentPath","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef currentPath: java.nio.file.Path","params":[],"returns":"java.nio.file.Path","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"The working directory tmux reported for the pane."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":87,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-currentpath"},{"id":"io.github.libtmux.scaladsl.Pane.currentPathText","name":"currentPathText","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef currentPathText: String","params":[],"returns":"String","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"The working directory tmux reported for the pane, exactly as tmux reported it."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":91,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-currentpathtext"},{"id":"io.github.libtmux.scaladsl.Pane.pid","name":"pid","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef pid: Option[Long]","params":[],"returns":"Option[Long]","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"The process id of the program running in the pane, captured at the time of the read this handle came from."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":96,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-pid"},{"id":"io.github.libtmux.scaladsl.Pane.dead","name":"dead","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef dead(): Boolean","params":[],"returns":"Boolean","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Whether this pane's process has exited, read fresh rather than from the capture."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":100,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-dead"},{"id":"io.github.libtmux.scaladsl.Pane.resize","name":"resize","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef resize(direction: io.github.libtmux.Direction, cells: Int): Unit","params":[{"name":"direction","type":"io.github.libtmux.Direction"},{"name":"cells","type":"Int"}],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Grows this pane by a number of cells in one direction."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":104,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-resize"},{"id":"io.github.libtmux.scaladsl.Pane.edges","name":"edges","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef edges: io.github.libtmux.PaneEdges","params":[],"returns":"io.github.libtmux.PaneEdges","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Which sides of its window the pane touches."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":108,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-edges"},{"id":"io.github.libtmux.scaladsl.Pane.copyMode","name":"copyMode","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef copyMode(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Puts this pane into copy mode, where its scrollback can be navigated."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":112,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-copymode"},{"id":"io.github.libtmux.scaladsl.Pane.mode","name":"mode","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef mode(): Option[io.github.libtmux.PaneMode]","params":[],"returns":"Option[io.github.libtmux.PaneMode]","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Which mode this pane is in at this moment, or empty when it is in none."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":116,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-mode"},{"id":"io.github.libtmux.scaladsl.Pane.exitMode","name":"exitMode","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef exitMode(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Leaves whichever mode this pane is in."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":120,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-exitmode"},{"id":"io.github.libtmux.scaladsl.Pane.select","name":"select","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef select(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Makes this the active pane of its window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":124,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-select"},{"id":"io.github.libtmux.scaladsl.Pane.retitle","name":"retitle","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef retitle(title: String): Pane","params":[{"name":"title","type":"String"}],"returns":"Pane","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Retitles this pane and returns its replacement capture."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":128,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-retitle"},{"id":"io.github.libtmux.scaladsl.Pane.resizeTo","name":"resizeTo","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef resizeTo(size: io.github.libtmux.Dimensions): Unit","params":[{"name":"size","type":"io.github.libtmux.Dimensions"}],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Resizes this pane."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":132,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-resizeto"},{"id":"io.github.libtmux.scaladsl.Pane.server","name":"server","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef server: Server","params":[],"returns":"Server","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"The server this pane lives on."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":136,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-server"},{"id":"io.github.libtmux.scaladsl.Pane.batch","name":"batch","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef batch: io.github.libtmux.batch.Batch","params":[],"returns":"io.github.libtmux.batch.Batch","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Collects commands fenced to the server incarnation that produced this pane."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":140,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-batch"},{"id":"io.github.libtmux.scaladsl.Pane.window","name":"window","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef window: Window","params":[],"returns":"Window","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"The window link this pane was reached through."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":144,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-window"},{"id":"io.github.libtmux.scaladsl.Pane.hooks","name":"hooks","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef hooks: io.github.libtmux.Hooks","params":[],"returns":"io.github.libtmux.Hooks","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"This pane's own hooks."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":148,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-hooks"},{"id":"io.github.libtmux.scaladsl.Pane.options","name":"options","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef options: io.github.libtmux.Options","params":[],"returns":"io.github.libtmux.Options","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"This pane's own options."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":152,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-options"},{"id":"io.github.libtmux.scaladsl.Pane.capture","name":"capture","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef capture(): Vector[String]","params":[],"returns":"Vector[String]","receiver":{"name":"self","type":"Pane"}},{"raw":"extension (self: Pane)\ndef capture(configure: io.github.libtmux.CaptureSpec.Builder => Unit): Vector[String]","params":[{"name":"configure","type":"io.github.libtmux.CaptureSpec.Builder => Unit"}],"returns":"Vector[String]","receiver":{"name":"self","type":"Pane"}},{"raw":"extension (self: Pane)\ndef capture(spec: io.github.libtmux.CaptureSpec): Vector[String]","params":[{"name":"spec","type":"io.github.libtmux.CaptureSpec"}],"returns":"Vector[String]","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"This pane's visible content, one element per line.","examples":[{"lang":"console","intro":"Send input and wait for output before capturing the pane. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala_3\"))\n .using(project(\":libtmux-scala\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/Capture.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scaladirect/Capture.scala","code":"package io.github.libtmux.examples.api.scaladirect\n\nimport io.github.libtmux.{\n ServerConfig,\n ServerEndpoint,\n SessionSpec,\n TextOutcome\n}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.*\nimport scala.concurrent.duration.*\nimport scala.util.Using\nimport scala.util.control.NonFatal\n\n/** Send input and wait for output before capturing the pane. */\nobject Capture {\n def main(args: Array[String]): Unit = {\n try {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n val config = ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n Using.resource(Server.open(config)) { server =>\n val session = server.newSession(\n SessionSpec.builder().named(\"api-capture\").running(\"/bin/sh\").build()\n )\n val pane = session.windows.head.panes.head\n pane.sendKeys(Vector(\"printf 'api-%s\\\\n' keys\", \"Enter\"))\n require(\n !pane.awaitText(\"api-keys\", 5.seconds).equals(TextOutcome.TIMED_OUT),\n \"timed out waiting for keys output\"\n )\n pane.sendLine(\"printf 'api-%s\\\\n' line\")\n require(\n !pane.awaitText(\"api-line\", 5.seconds).equals(TextOutcome.TIMED_OUT),\n \"timed out waiting for line output\"\n )\n val lines = pane.capture()\n Vector(\"api-keys\", \"api-line\").foreach { expected =>\n require(\n lines.exists(_.trim.equals(expected)),\n \"capture is missing \" + expected\n )\n println(expected)\n }\n }\n } catch {\n case NonFatal(error) =>\n System.err.println(\"Example failed: \" + error.getMessage)\n sys.exit(1)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scaladirect.Capture && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"api-keys\napi-line\n"}]},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":156,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-capture"},{"id":"io.github.libtmux.scaladsl.Pane.noteTyped","name":"noteTyped","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef noteTyped(text: String): Unit","params":[{"name":"text","type":"String"}],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Notes text that reached this pane without going through this handle, so a wait discounts its echo the way it discounts text sent through {@link #sendLiteral}."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":161,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-notetyped"},{"id":"io.github.libtmux.scaladsl.Pane.send","name":"send","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef send(keys: String): Unit","params":[{"name":"keys","type":"String"}],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Sends keys to this pane without pressing Enter."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":173,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-send"},{"id":"io.github.libtmux.scaladsl.Pane.sendKeys","name":"sendKeys","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef sendKeys(keys: Vector[String]): Unit","params":[{"name":"keys","type":"Vector[String]"}],"returns":"Unit","receiver":{"name":"self","type":"Pane"}},{"raw":"extension (self: Pane)\ndef sendKeys(keys: Vector[String], beforeSend: () => Unit): Unit","params":[{"name":"keys","type":"Vector[String]"},{"name":"beforeSend","type":"() => Unit"}],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Sends an ordered group of key names to this pane, as tmux resolves them.","examples":[{"lang":"console","intro":"Send input and wait for output before capturing the pane. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala_3\"))\n .using(project(\":libtmux-scala\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/Capture.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scaladirect/Capture.scala","code":"package io.github.libtmux.examples.api.scaladirect\n\nimport io.github.libtmux.{\n ServerConfig,\n ServerEndpoint,\n SessionSpec,\n TextOutcome\n}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.*\nimport scala.concurrent.duration.*\nimport scala.util.Using\nimport scala.util.control.NonFatal\n\n/** Send input and wait for output before capturing the pane. */\nobject Capture {\n def main(args: Array[String]): Unit = {\n try {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n val config = ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n Using.resource(Server.open(config)) { server =>\n val session = server.newSession(\n SessionSpec.builder().named(\"api-capture\").running(\"/bin/sh\").build()\n )\n val pane = session.windows.head.panes.head\n pane.sendKeys(Vector(\"printf 'api-%s\\\\n' keys\", \"Enter\"))\n require(\n !pane.awaitText(\"api-keys\", 5.seconds).equals(TextOutcome.TIMED_OUT),\n \"timed out waiting for keys output\"\n )\n pane.sendLine(\"printf 'api-%s\\\\n' line\")\n require(\n !pane.awaitText(\"api-line\", 5.seconds).equals(TextOutcome.TIMED_OUT),\n \"timed out waiting for line output\"\n )\n val lines = pane.capture()\n Vector(\"api-keys\", \"api-line\").foreach { expected =>\n require(\n lines.exists(_.trim.equals(expected)),\n \"capture is missing \" + expected\n )\n println(expected)\n }\n }\n } catch {\n case NonFatal(error) =>\n System.err.println(\"Example failed: \" + error.getMessage)\n sys.exit(1)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scaladirect.Capture && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"api-keys\napi-line\n"}]},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":177,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-sendkeys"},{"id":"io.github.libtmux.scaladsl.Pane.sendLiteral","name":"sendLiteral","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef sendLiteral(keys: Vector[String]): Unit","params":[{"name":"keys","type":"Vector[String]"}],"returns":"Unit","receiver":{"name":"self","type":"Pane"}},{"raw":"extension (self: Pane)\ndef sendLiteral(keys: Vector[String], beforeSend: () => Unit): Unit","params":[{"name":"keys","type":"Vector[String]"},{"name":"beforeSend","type":"() => Unit"}],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Sends an ordered group of strings to this pane as the characters they spell."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":185,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-sendliteral"},{"id":"io.github.libtmux.scaladsl.Pane.sendLine","name":"sendLine","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef sendLine(command: String): Unit","params":[{"name":"command","type":"String"}],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Sends a line to this pane and presses Enter, which is how a command gets run.","examples":[{"lang":"console","intro":"Send input and wait for output before capturing the pane. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala_3\"))\n .using(project(\":libtmux-scala\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/Capture.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scaladirect/Capture.scala","code":"package io.github.libtmux.examples.api.scaladirect\n\nimport io.github.libtmux.{\n ServerConfig,\n ServerEndpoint,\n SessionSpec,\n TextOutcome\n}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.*\nimport scala.concurrent.duration.*\nimport scala.util.Using\nimport scala.util.control.NonFatal\n\n/** Send input and wait for output before capturing the pane. */\nobject Capture {\n def main(args: Array[String]): Unit = {\n try {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n val config = ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n Using.resource(Server.open(config)) { server =>\n val session = server.newSession(\n SessionSpec.builder().named(\"api-capture\").running(\"/bin/sh\").build()\n )\n val pane = session.windows.head.panes.head\n pane.sendKeys(Vector(\"printf 'api-%s\\\\n' keys\", \"Enter\"))\n require(\n !pane.awaitText(\"api-keys\", 5.seconds).equals(TextOutcome.TIMED_OUT),\n \"timed out waiting for keys output\"\n )\n pane.sendLine(\"printf 'api-%s\\\\n' line\")\n require(\n !pane.awaitText(\"api-line\", 5.seconds).equals(TextOutcome.TIMED_OUT),\n \"timed out waiting for line output\"\n )\n val lines = pane.capture()\n Vector(\"api-keys\", \"api-line\").foreach { expected =>\n require(\n lines.exists(_.trim.equals(expected)),\n \"capture is missing \" + expected\n )\n println(expected)\n }\n }\n } catch {\n case NonFatal(error) =>\n System.err.println(\"Example failed: \" + error.getMessage)\n sys.exit(1)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scaladirect.Capture && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"api-keys\napi-line\n"}]},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":193,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-sendline"},{"id":"io.github.libtmux.scaladsl.Pane.breakOut","name":"breakOut","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef breakOut(): Window","params":[],"returns":"Window","receiver":{"name":"self","type":"Pane"}},{"raw":"extension (self: Pane)\ndef breakOut(windowName: String): Window","params":[{"name":"windowName","type":"String"}],"returns":"Window","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Moves this pane into a window of its own, leaving tmux to name it."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":197,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-breakout"},{"id":"io.github.libtmux.scaladsl.Pane.expand","name":"expand","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef expand(format: String): String","params":[{"name":"format","type":"String"}],"returns":"String","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Expands a tmux format in this pane's context, and answers with what it came to."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":201,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-expand"},{"id":"io.github.libtmux.scaladsl.Pane.variables","name":"variables","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef variables(names: Vector[String]): _root_.scala.collection.immutable.VectorMap[String, String]","params":[{"name":"names","type":"Vector[String]"}],"returns":"_root_.scala.collection.immutable.VectorMap[String, String]","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Reads validated tmux variables in this pane's format context."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":205,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-variables"},{"id":"io.github.libtmux.scaladsl.Pane.respawn","name":"respawn","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef respawn(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Pane"}},{"raw":"extension (self: Pane)\ndef respawn(command: String*): Unit","params":[{"name":"command","type":"String*"}],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Kills whatever runs here and starts the pane's default command again."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":209,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-respawn"},{"id":"io.github.libtmux.scaladsl.Pane.respawnIn","name":"respawnIn","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef respawnIn(directory: java.nio.file.Path): Unit","params":[{"name":"directory","type":"java.nio.file.Path"}],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Restarts the configured pane process in a caller-supplied literal directory, resolved against this process's working directory when relative."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":214,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-respawnin"},{"id":"io.github.libtmux.scaladsl.Pane.pipeTo","name":"pipeTo","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef pipeTo(shellCommand: String): Unit","params":[{"name":"shellCommand","type":"String"}],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Sends everything this pane prints to a shell command, until {@link #stopPiping}."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":222,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-pipeto"},{"id":"io.github.libtmux.scaladsl.Pane.stopPiping","name":"stopPiping","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef stopPiping(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Stops sending this pane's output anywhere."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":226,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-stoppiping"},{"id":"io.github.libtmux.scaladsl.Pane.split","name":"split","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef split(): Pane","params":[],"returns":"Pane","receiver":{"name":"self","type":"Pane"}},{"raw":"extension (self: Pane)\ndef split(configure: io.github.libtmux.SplitSpec.Builder => Unit): Pane","params":[{"name":"configure","type":"io.github.libtmux.SplitSpec.Builder => Unit"}],"returns":"Pane","receiver":{"name":"self","type":"Pane"}},{"raw":"extension (self: Pane)\ndef split(spec: io.github.libtmux.SplitSpec): Pane","params":[{"name":"spec","type":"io.github.libtmux.SplitSpec"}],"returns":"Pane","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Splits this pane in half, putting the new one below it."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":234,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-split"},{"id":"io.github.libtmux.scaladsl.Pane.pasteBuffer","name":"pasteBuffer","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef pasteBuffer(name: String): Unit","params":[{"name":"name","type":"String"}],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Pastes a named buffer into this pane, as though it had been typed."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":246,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-pastebuffer"},{"id":"io.github.libtmux.scaladsl.Pane.paste","name":"paste","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef paste(text: String): Unit","params":[{"name":"text","type":"String"}],"returns":"Unit","receiver":{"name":"self","type":"Pane"}},{"raw":"extension (self: Pane)\ndef paste(text: String, beforePaste: () => Unit): Unit","params":[{"name":"text","type":"String"},{"name":"beforePaste","type":"() => Unit"}],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Pastes text into this pane as one block, leaving nothing behind on the server."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":250,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-paste"},{"id":"io.github.libtmux.scaladsl.Pane.clearHistory","name":"clearHistory","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef clearHistory(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Discards this pane's scrollback."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":258,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-clearhistory"},{"id":"io.github.libtmux.scaladsl.Pane.swapWith","name":"swapWith","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef swapWith(other: Pane): Unit","params":[{"name":"other","type":"Pane"}],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Swaps this pane's position with another's."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":262,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-swapwith"},{"id":"io.github.libtmux.scaladsl.Pane.joinTo","name":"joinTo","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef joinTo(window: Window): Unit","params":[{"name":"window","type":"Window"}],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Moves this pane into another window, splitting it."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":266,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-jointo"},{"id":"io.github.libtmux.scaladsl.Pane.kill","name":"kill","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef kill(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Closes this pane."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":270,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-kill"},{"id":"io.github.libtmux.scaladsl.Pane.refresh","name":"refresh","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef refresh(): Pane","params":[],"returns":"Pane","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Takes a new capture and returns this pane as it is now."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":274,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-refresh"},{"id":"io.github.libtmux.scaladsl.Server.newSession","name":"newSession","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef newSession(name: String): Session","params":[{"name":"name","type":"String"}],"returns":"Session","receiver":{"name":"self","type":"Server"}},{"raw":"extension (self: Server)\ndef newSession(configure: io.github.libtmux.SessionSpec.Builder => Unit): Session","params":[{"name":"configure","type":"io.github.libtmux.SessionSpec.Builder => Unit"}],"returns":"Session","receiver":{"name":"self","type":"Server"}},{"raw":"extension (self: Server)\ndef newSession(spec: io.github.libtmux.SessionSpec): Session","params":[{"name":"spec","type":"io.github.libtmux.SessionSpec"}],"returns":"Session","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Creates a detached session and returns that exact session.","examples":[{"lang":"console","intro":"Create a session running cat. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala_3\"))\n .using(project(\":libtmux-scala\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/NewSession.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scaladirect/NewSession.scala","code":"package io.github.libtmux.examples.api.scaladirect\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint, SessionSpec}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.*\nimport scala.util.Using\nimport scala.util.control.NonFatal\n\n/** Create a session running cat. */\nobject NewSession {\n def main(args: Array[String]): Unit = {\n try {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n val config = ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n Using.resource(Server.open(config)) { server =>\n val session = server.newSession(\n SessionSpec.builder().named(\"api-session\").running(\"/bin/cat\").build()\n )\n println(s\"created=${session.name}\")\n }\n } catch {\n case NonFatal(error) =>\n System.err.println(\"Example failed: \" + error.getMessage)\n sys.exit(1)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scaladirect.NewSession && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"created=api-session\n"}]},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":281,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-newsession"},{"id":"io.github.libtmux.scaladsl.Server.hasSession","name":"hasSession","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef hasSession(name: String): Boolean","params":[{"name":"name","type":"String"}],"returns":"Boolean","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"Whether a session with this name exists."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":293,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-hassession"},{"id":"io.github.libtmux.scaladsl.Server.killSession","name":"killSession","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef killSession(name: String): Unit","params":[{"name":"name","type":"String"}],"returns":"Unit","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"Ends the session with this name, and everything in it."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":297,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-killsession"},{"id":"io.github.libtmux.scaladsl.Server.isAlive","name":"isAlive","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef isAlive(): Boolean","params":[],"returns":"Boolean","receiver":{"name":"self","type":"Server"}},{"raw":"extension (self: Server)\ndef isAlive(timeout: _root_.scala.concurrent.duration.FiniteDuration): Boolean","params":[{"name":"timeout","type":"_root_.scala.concurrent.duration.FiniteDuration"}],"returns":"Boolean","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Whether the server is running and answering."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":301,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-isalive"},{"id":"io.github.libtmux.scaladsl.Server.requireAlive","name":"requireAlive","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef requireAlive(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"Requires a running tmux daemon that answers the liveness probe."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":309,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-requirealive"},{"id":"io.github.libtmux.scaladsl.Server.killServer","name":"killServer","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef killServer(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Server"}},{"raw":"extension (self: Server)\ndef killServer(timeout: _root_.scala.concurrent.duration.FiniteDuration): Unit","params":[{"name":"timeout","type":"_root_.scala.concurrent.duration.FiniteDuration"}],"returns":"Unit","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Ends the tmux server and every session on it."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":313,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-killserver"},{"id":"io.github.libtmux.scaladsl.Server.batch","name":"batch","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef batch: io.github.libtmux.batch.Batch","params":[],"returns":"io.github.libtmux.batch.Batch","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"Collects several commands to run in one tmux invocation."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":321,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-batch"},{"id":"io.github.libtmux.scaladsl.Server.chain","name":"chain","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef chain: io.github.libtmux.CommandChain","params":[],"returns":"io.github.libtmux.CommandChain","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"Starts a chain of commands where each one acts on what the last one made."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":325,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-chain"},{"id":"io.github.libtmux.scaladsl.Server.expand","name":"expand","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef expand(format: String): String","params":[{"name":"format","type":"String"}],"returns":"String","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"Expands a tmux format against the server, and answers with what it came to."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":329,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-expand"},{"id":"io.github.libtmux.scaladsl.Server.shell","name":"shell","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef shell: io.github.libtmux.Shell","params":[],"returns":"io.github.libtmux.Shell","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"Shell commands run by tmux, and tmux commands chosen by a shell exit status."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":333,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-shell"},{"id":"io.github.libtmux.scaladsl.Server.commands","name":"commands","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef commands: io.github.libtmux.Commands","params":[],"returns":"io.github.libtmux.Commands","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"The commands this tmux knows."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":337,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-commands"},{"id":"io.github.libtmux.scaladsl.Server.lock","name":"lock","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef lock(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"Locks every client attached to this server."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":341,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-lock"},{"id":"io.github.libtmux.scaladsl.Server.messageLog","name":"messageLog","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef messageLog: io.github.libtmux.MessageLog","params":[],"returns":"io.github.libtmux.MessageLog","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"The server's message log."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":345,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-messagelog"},{"id":"io.github.libtmux.scaladsl.Server.prompt","name":"prompt","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef prompt: io.github.libtmux.Prompt","params":[],"returns":"io.github.libtmux.Prompt","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"The command prompt's history."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":349,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-prompt"},{"id":"io.github.libtmux.scaladsl.Server.channel","name":"channel","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef channel(name: String): io.github.libtmux.Channel","params":[{"name":"name","type":"String"}],"returns":"io.github.libtmux.Channel","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"One of this server's wait-for channels, which is where a signal is sent and waited for."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":353,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-channel"},{"id":"io.github.libtmux.scaladsl.Server.variables","name":"variables","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef variables(names: Vector[String]): _root_.scala.collection.immutable.VectorMap[String, String]","params":[{"name":"names","type":"Vector[String]"}],"returns":"_root_.scala.collection.immutable.VectorMap[String, String]","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"Reads only validated tmux variable names, never caller-authored format syntax."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":357,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-variables"},{"id":"io.github.libtmux.scaladsl.Server.paneFields","name":"paneFields","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef paneFields(names: Vector[String]): _root_.scala.collection.immutable.VectorMap[io.github.libtmux.PaneId, _root_.scala.collection.immutable.VectorMap[String, String]]","params":[{"name":"names","type":"Vector[String]"}],"returns":"_root_.scala.collection.immutable.VectorMap[io.github.libtmux.PaneId, _root_.scala.collection.immutable.VectorMap[String, String]]","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"Chosen fields for every pane on the server, from one listing."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":361,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-panefields"},{"id":"io.github.libtmux.scaladsl.Server.keys","name":"keys","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef keys: io.github.libtmux.Keys","params":[],"returns":"io.github.libtmux.Keys","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"The server's key bindings: {@code prefix} when binding, every table when listing."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":365,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-keys"},{"id":"io.github.libtmux.scaladsl.Server.buffers","name":"buffers","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef buffers: io.github.libtmux.Buffers","params":[],"returns":"io.github.libtmux.Buffers","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"The server's paste buffers, which every session shares."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":369,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-buffers"},{"id":"io.github.libtmux.scaladsl.Server.sourceFile","name":"sourceFile","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef sourceFile(file: java.nio.file.Path): Unit","params":[{"name":"file","type":"java.nio.file.Path"}],"returns":"Unit","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"Runs a file of tmux commands, as a configuration file would be run."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":373,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-sourcefile"},{"id":"io.github.libtmux.scaladsl.Server.options","name":"options","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef options: io.github.libtmux.Options","params":[],"returns":"io.github.libtmux.Options","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"The server-wide options, the ones tmux keeps once per server."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":377,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-options"},{"id":"io.github.libtmux.scaladsl.Server.globalOptions","name":"globalOptions","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef globalOptions: io.github.libtmux.Options","params":[],"returns":"io.github.libtmux.Options","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"The global session options every session inherits unless it sets its own."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":381,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-globaloptions"},{"id":"io.github.libtmux.scaladsl.Server.environment","name":"environment","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef environment: io.github.libtmux.Environment","params":[],"returns":"io.github.libtmux.Environment","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"The server's environment, which every session inherits and every new process is given."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":385,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-environment"},{"id":"io.github.libtmux.scaladsl.Server.hooks","name":"hooks","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef hooks: io.github.libtmux.Hooks","params":[],"returns":"io.github.libtmux.Hooks","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"The global hooks every session inherits."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":389,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-hooks"},{"id":"io.github.libtmux.scaladsl.Server.version","name":"version","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef version(): io.github.libtmux.TmuxVersion","params":[],"returns":"io.github.libtmux.TmuxVersion","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"Which tmux this server is running."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":393,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-version"},{"id":"io.github.libtmux.scaladsl.Server.identity","name":"identity","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef identity: io.github.libtmux.ServerIdentity","params":[],"returns":"io.github.libtmux.ServerIdentity","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"Which server this is."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":397,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-identity"},{"id":"io.github.libtmux.scaladsl.Server.config","name":"config","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef config: io.github.libtmux.ServerConfig","params":[],"returns":"io.github.libtmux.ServerConfig","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"How this server was configured."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":401,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-config"},{"id":"io.github.libtmux.scaladsl.Server.cmd","name":"cmd","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef cmd(argv: String*): io.github.libtmux.transport.CommandResult","params":[{"name":"argv","type":"String*"}],"returns":"io.github.libtmux.transport.CommandResult","receiver":{"name":"self","type":"Server"}},{"raw":"extension (self: Server)\ndef cmd(argv: Vector[String]): io.github.libtmux.transport.CommandResult","params":[{"name":"argv","type":"Vector[String]"}],"returns":"io.github.libtmux.transport.CommandResult","receiver":{"name":"self","type":"Server"}},{"raw":"extension (self: Server)\ndef cmd(argv: Vector[String], timeout: _root_.scala.concurrent.duration.FiniteDuration): io.github.libtmux.transport.CommandResult","params":[{"name":"argv","type":"Vector[String]"},{"name":"timeout","type":"_root_.scala.concurrent.duration.FiniteDuration"}],"returns":"io.github.libtmux.transport.CommandResult","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Runs one tmux command against this server."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":405,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-cmd"},{"id":"io.github.libtmux.scaladsl.Server.snapshot","name":"snapshot","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef snapshot(): io.github.libtmux.snapshot.ServerSnapshot","params":[],"returns":"io.github.libtmux.snapshot.ServerSnapshot","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"Captures the whole hierarchy in at most four listings, retrying once if the server is replaced."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":418,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-snapshot"},{"id":"io.github.libtmux.scaladsl.Server.sessions","name":"sessions","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef sessions(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Session]): Vector[Session]","params":[{"name":"expression","type":"io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Session]"}],"returns":"Vector[Session]","receiver":{"name":"self","type":"Server"}},{"raw":"extension (self: Server)\ndef sessions(): Vector[Session]","params":[],"returns":"Vector[Session]","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"The sessions this expression matches, captured now.","examples":[{"lang":"console","intro":"List the sessions returned by a server read. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala_3\"))\n .using(project(\":libtmux-scala\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/ListSessions.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scaladirect/ListSessions.scala","code":"package io.github.libtmux.examples.api.scaladirect\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.*\nimport scala.util.Using\nimport scala.util.control.NonFatal\n\n/** List the sessions returned by a server read. */\nobject ListSessions {\n def main(args: Array[String]): Unit = {\n try {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n val config = ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n Using.resource(Server.open(config)) { server =>\n println(\n \"sessions=\" + server.sessions().map(_.name).sorted.mkString(\",\")\n )\n }\n } catch {\n case NonFatal(error) =>\n System.err.println(\"Example failed: \" + error.getMessage)\n sys.exit(1)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scaladirect.ListSessions && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"sessions=work-one,work-two\n"},{"lang":"console","intro":"Select sessions with a typed name filter. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala_3\"))\n .using(project(\":libtmux-scala\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/Query.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scaladirect/Query.scala","code":"package io.github.libtmux.examples.api.scaladirect\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.*\nimport io.github.libtmux.scaladsl.query.*\nimport scala.util.Using\nimport scala.util.control.NonFatal\n\n/** Select sessions with a typed name filter. */\nobject Query {\n def main(args: Array[String]): Unit = {\n try {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n val config = ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n Using.resource(Server.open(config)) { server =>\n val matches = server.sessions(Session.name.is(\"work-one\"))\n println(\"matches=\" + matches.map(_.name).sorted.mkString(\",\"))\n }\n } catch {\n case NonFatal(error) =>\n System.err.println(\"Example failed: \" + error.getMessage)\n sys.exit(1)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scaladirect.Query && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"matches=work-one\n"}]},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":422,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-sessions"},{"id":"io.github.libtmux.scaladsl.Server.windows","name":"windows","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef windows(): Vector[Window]","params":[],"returns":"Vector[Window]","receiver":{"name":"self","type":"Server"}},{"raw":"extension (self: Server)\ndef windows(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Window]): Vector[Window]","params":[{"name":"expression","type":"io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Window]"}],"returns":"Vector[Window]","receiver":{"name":"self","type":"Server"}},{"raw":"extension (self: Server)\ndef windows(id: io.github.libtmux.WindowId): Vector[Window]","params":[{"name":"id","type":"io.github.libtmux.WindowId"}],"returns":"Vector[Window]","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Captures every winlink, preserving each session and index placement.","examples":[{"lang":"console","intro":"List all windows, then the windows captured for one session. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala_3\"))\n .using(project(\":libtmux-scala\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/ListWindows.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scaladirect/ListWindows.scala","code":"package io.github.libtmux.examples.api.scaladirect\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.*\nimport scala.util.Using\nimport scala.util.control.NonFatal\n\n/** List all windows, then the windows captured for one session. */\nobject ListWindows {\n def main(args: Array[String]): Unit = {\n try {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n val config = ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n Using.resource(Server.open(config)) { server =>\n println(\"windows=\" + server.windows().map(_.name).sorted.mkString(\",\"))\n val session =\n server.session(\"work-one\").getOrElse(sys.error(\"missing work-one\"))\n println(\n \"session-windows=\" + session.windows.map(_.name).sorted.mkString(\",\")\n )\n }\n } catch {\n case NonFatal(error) =>\n System.err.println(\"Example failed: \" + error.getMessage)\n sys.exit(1)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scaladirect.ListWindows && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"windows=editor,editor,logs\nsession-windows=editor,logs\n"}]},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":430,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-windows"},{"id":"io.github.libtmux.scaladsl.Server.panes","name":"panes","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef panes(): Vector[Pane]","params":[],"returns":"Vector[Pane]","receiver":{"name":"self","type":"Server"}},{"raw":"extension (self: Server)\ndef panes(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Pane]): Vector[Pane]","params":[{"name":"expression","type":"io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Pane]"}],"returns":"Vector[Pane]","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Captures every pane on the server.","examples":[{"lang":"console","intro":"List all panes, then the panes captured for one window. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala_3\"))\n .using(project(\":libtmux-scala\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/ListPanes.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scaladirect/ListPanes.scala","code":"package io.github.libtmux.examples.api.scaladirect\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.*\nimport scala.util.Using\nimport scala.util.control.NonFatal\n\n/** List all panes, then the panes captured for one window. */\nobject ListPanes {\n def main(args: Array[String]): Unit = {\n try {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n val config = ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n Using.resource(Server.open(config)) { server =>\n println(s\"panes=${server.panes().size}\")\n val session =\n server.session(\"work-one\").getOrElse(sys.error(\"missing work-one\"))\n val window = session.windows\n .find(_.name.equals(\"editor\"))\n .getOrElse(sys.error(\"missing editor\"))\n println(s\"window-panes=${window.panes.size}\")\n }\n } catch {\n case NonFatal(error) =>\n System.err.println(\"Example failed: \" + error.getMessage)\n sys.exit(1)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scaladirect.ListPanes && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"panes=4\nwindow-panes=2\n"}]},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":438,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-panes"},{"id":"io.github.libtmux.scaladsl.Server.session","name":"session","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef session(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Session]): Option[Session]","params":[{"name":"expression","type":"io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Session]"}],"returns":"Option[Session]","receiver":{"name":"self","type":"Server"}},{"raw":"extension (self: Server)\ndef session(name: String): Option[Session]","params":[{"name":"name","type":"String"}],"returns":"Option[Session]","receiver":{"name":"self","type":"Server"}},{"raw":"extension (self: Server)\ndef session(id: io.github.libtmux.SessionId): Option[Session]","params":[{"name":"id","type":"io.github.libtmux.SessionId"}],"returns":"Option[Session]","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"The one session this expression matches, captured now, or empty when none does."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":446,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-session"},{"id":"io.github.libtmux.scaladsl.Server.window","name":"window","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef window(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Window]): Option[Window]","params":[{"name":"expression","type":"io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Window]"}],"returns":"Option[Window]","receiver":{"name":"self","type":"Server"}},{"raw":"extension (self: Server)\ndef window(context: io.github.libtmux.snapshot.WindowContext): Option[Window]","params":[{"name":"context","type":"io.github.libtmux.snapshot.WindowContext"}],"returns":"Option[Window]","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"The one window link this expression matches, captured now, or empty when none does."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":450,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-window"},{"id":"io.github.libtmux.scaladsl.Server.pane","name":"pane","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef pane(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Pane]): Option[Pane]","params":[{"name":"expression","type":"io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Pane]"}],"returns":"Option[Pane]","receiver":{"name":"self","type":"Server"}},{"raw":"extension (self: Server)\ndef pane(id: io.github.libtmux.PaneId): Option[Pane]","params":[{"name":"id","type":"io.github.libtmux.PaneId"}],"returns":"Option[Pane]","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"The one pane this expression matches, captured now, or empty when none does."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":454,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-pane"},{"id":"io.github.libtmux.scaladsl.Server.admissionBound","name":"admissionBound","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef admissionBound: Int","params":[],"returns":"Int","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"How many tmux commands this server's transport runs at once, from {@link ServerConfig#maxConcurrentCommands()} for a server {@link #open}ed here."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":458,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-admissionbound"},{"id":"io.github.libtmux.scaladsl.Server.clients","name":"clients","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef clients(): Vector[Client]","params":[],"returns":"Vector[Client]","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"Captures every attached client."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":482,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-clients"},{"id":"io.github.libtmux.scaladsl.Server.attachedSessions","name":"attachedSessions","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef attachedSessions(): Vector[Session]","params":[],"returns":"Vector[Session]","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"Captures every session a client is attached to."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":486,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-attachedsessions"},{"id":"io.github.libtmux.scaladsl.Server.run","name":"run","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef run(argv: Vector[String]): io.github.libtmux.transport.CommandResult","params":[{"name":"argv","type":"Vector[String]"}],"returns":"io.github.libtmux.transport.CommandResult","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"Runs a command that is expected to work, and raises when it did not."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":490,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-run"},{"id":"io.github.libtmux.scaladsl.Server.toBuilder","name":"toBuilder","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef toBuilder: io.github.libtmux.Server.Builder","params":[],"returns":"io.github.libtmux.Server.Builder","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"A builder holding every configuration and ownership choice this server made."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":494,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-tobuilder"},{"id":"io.github.libtmux.scaladsl.Session.info","name":"info","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef info: io.github.libtmux.snapshot.SessionState","params":[],"returns":"io.github.libtmux.snapshot.SessionState","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":[],"doc":{"summary":"The fields this capture stored."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":501,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-info"},{"id":"io.github.libtmux.scaladsl.Session.server","name":"server","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef server: Server","params":[],"returns":"Server","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":[],"doc":{"summary":"The server this session lives on."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":517,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-server"},{"id":"io.github.libtmux.scaladsl.Session.activeWindow","name":"activeWindow","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef activeWindow: Option[Window]","params":[],"returns":"Option[Window]","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":[],"doc":{"summary":"The window tmux had active in this session."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":521,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-activewindow"},{"id":"io.github.libtmux.scaladsl.Session.activePane","name":"activePane","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef activePane: Option[Pane]","params":[],"returns":"Option[Pane]","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":[],"doc":{"summary":"The active pane of the active window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":525,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-activepane"},{"id":"io.github.libtmux.scaladsl.Session.selectWindow","name":"selectWindow","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef selectWindow(window: Window): Unit","params":[{"name":"window","type":"Window"}],"returns":"Unit","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":[],"doc":{"summary":"Makes a window of this session the active one."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":529,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-selectwindow"},{"id":"io.github.libtmux.scaladsl.Session.nextWindow","name":"nextWindow","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef nextWindow(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":[],"doc":{"summary":"Moves to the next window in this session, wrapping at the end."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":533,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-nextwindow"},{"id":"io.github.libtmux.scaladsl.Session.previousWindow","name":"previousWindow","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef previousWindow(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":[],"doc":{"summary":"Moves to the previous window in this session, wrapping at the start."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":537,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-previouswindow"},{"id":"io.github.libtmux.scaladsl.Session.lastWindow","name":"lastWindow","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef lastWindow(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":[],"doc":{"summary":"Returns to the window that was active before this one."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":541,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-lastwindow"},{"id":"io.github.libtmux.scaladsl.Session.detachClients","name":"detachClients","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef detachClients(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":[],"doc":{"summary":"Detaches every client attached to this session, leaving the session running."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":545,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-detachclients"},{"id":"io.github.libtmux.scaladsl.Session.options","name":"options","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef options: io.github.libtmux.Options","params":[],"returns":"io.github.libtmux.Options","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":[],"doc":{"summary":"This session's own options."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":549,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-options"},{"id":"io.github.libtmux.scaladsl.Session.environment","name":"environment","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef environment: io.github.libtmux.Environment","params":[],"returns":"io.github.libtmux.Environment","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":[],"doc":{"summary":"This session's own environment, which a process started in it is given on top of the server's."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":554,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-environment"},{"id":"io.github.libtmux.scaladsl.Session.hooks","name":"hooks","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef hooks: io.github.libtmux.Hooks","params":[],"returns":"io.github.libtmux.Hooks","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":[],"doc":{"summary":"This session's own hooks."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":558,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-hooks"},{"id":"io.github.libtmux.scaladsl.Session.setHistoryLimit","name":"setHistoryLimit","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef setHistoryLimit(lines: Int): Unit","params":[{"name":"lines","type":"Int"}],"returns":"Unit","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":[],"doc":{"summary":"Sets the scrollback retained by panes created in this session."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":562,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-sethistorylimit"},{"id":"io.github.libtmux.scaladsl.Session.newWindow","name":"newWindow","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef newWindow(name: String): Window","params":[{"name":"name","type":"String"}],"returns":"Window","receiver":{"name":"self","type":"Session"}},{"raw":"extension (self: Session)\ndef newWindow(configure: io.github.libtmux.WindowSpec.Builder => Unit): Window","params":[{"name":"configure","type":"io.github.libtmux.WindowSpec.Builder => Unit"}],"returns":"Window","receiver":{"name":"self","type":"Session"}},{"raw":"extension (self: Session)\ndef newWindow(spec: io.github.libtmux.WindowSpec): Window","params":[{"name":"spec","type":"io.github.libtmux.WindowSpec"}],"returns":"Window","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Creates a window in this session and returns that exact window.","examples":[{"lang":"console","intro":"Create a window and read the updated session. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala_3\"))\n .using(project(\":libtmux-scala\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/NewWindow.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scaladirect/NewWindow.scala","code":"package io.github.libtmux.examples.api.scaladirect\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint, WindowSpec}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.*\nimport scala.util.Using\nimport scala.util.control.NonFatal\n\n/** Create a window and read the updated session. */\nobject NewWindow {\n def main(args: Array[String]): Unit = {\n try {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n val config = ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n Using.resource(Server.open(config)) { server =>\n val session =\n server.session(\"work-one\").getOrElse(sys.error(\"missing work-one\"))\n val window = session.newWindow(\n WindowSpec.builder().named(\"api-window\").running(\"/bin/cat\").build()\n )\n println(s\"created=${window.name}\")\n val refreshed =\n server.session(\"work-one\").getOrElse(sys.error(\"missing work-one\"))\n println(\"windows=\" + refreshed.windows.map(_.name).sorted.mkString(\",\"))\n }\n } catch {\n case NonFatal(error) =>\n System.err.println(\"Example failed: \" + error.getMessage)\n sys.exit(1)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scaladirect.NewWindow && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"created=api-window\nwindows=api-window,editor,logs\n"}]},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":570,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-newwindow"},{"id":"io.github.libtmux.scaladsl.Session.expand","name":"expand","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef expand(format: String): String","params":[{"name":"format","type":"String"}],"returns":"String","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":[],"doc":{"summary":"Expands a tmux format in this session's context, and answers with what it came to."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":582,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-expand"},{"id":"io.github.libtmux.scaladsl.Session.rename","name":"rename","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef rename(name: String): Session","params":[{"name":"name","type":"String"}],"returns":"Session","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":[],"doc":{"summary":"Renames this session and returns its replacement capture."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":586,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-rename"},{"id":"io.github.libtmux.scaladsl.Session.kill","name":"kill","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef kill(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":[],"doc":{"summary":"Ends this session."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":590,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-kill"},{"id":"io.github.libtmux.scaladsl.Session.refresh","name":"refresh","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef refresh(): Session","params":[],"returns":"Session","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":[],"doc":{"summary":"Takes a new capture and returns this session as it is now."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":594,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-refresh"},{"id":"io.github.libtmux.scaladsl.Window.info","name":"info","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef info: io.github.libtmux.snapshot.WindowState","params":[],"returns":"io.github.libtmux.snapshot.WindowState","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"The fields this capture stored."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":601,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-info"},{"id":"io.github.libtmux.scaladsl.Window.context","name":"context","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef context: io.github.libtmux.snapshot.WindowContext","params":[],"returns":"io.github.libtmux.snapshot.WindowContext","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"The winlink this handle addresses."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":613,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-context"},{"id":"io.github.libtmux.scaladsl.Window.size","name":"size","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef size: io.github.libtmux.Dimensions","params":[],"returns":"io.github.libtmux.Dimensions","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"How large the window was when captured, in terminal cells."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":629,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-size"},{"id":"io.github.libtmux.scaladsl.Window.layout","name":"layout","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef layout: io.github.libtmux.WindowLayout","params":[],"returns":"io.github.libtmux.WindowLayout","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"tmux's own layout for this window, in whichever form this server writes it."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":633,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-layout"},{"id":"io.github.libtmux.scaladsl.Window.activePane","name":"activePane","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef activePane: Option[Pane]","params":[],"returns":"Option[Pane]","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"The pane tmux had active here."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":637,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-activepane"},{"id":"io.github.libtmux.scaladsl.Window.select","name":"select","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef select(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"Makes this the active window of its session."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":641,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-select"},{"id":"io.github.libtmux.scaladsl.Window.server","name":"server","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef server: Server","params":[],"returns":"Server","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"The server this window lives on."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":645,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-server"},{"id":"io.github.libtmux.scaladsl.Window.hooks","name":"hooks","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef hooks: io.github.libtmux.Hooks","params":[],"returns":"io.github.libtmux.Hooks","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"This window's own hooks, which every link to it shares."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":653,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-hooks"},{"id":"io.github.libtmux.scaladsl.Window.options","name":"options","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef options: io.github.libtmux.Options","params":[],"returns":"io.github.libtmux.Options","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"This window's own options, which every link to it shares."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":657,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-options"},{"id":"io.github.libtmux.scaladsl.Window.split","name":"split","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef split(): Pane","params":[],"returns":"Pane","receiver":{"name":"self","type":"Window"}},{"raw":"extension (self: Window)\ndef split(configure: io.github.libtmux.SplitSpec.Builder => Unit): Pane","params":[{"name":"configure","type":"io.github.libtmux.SplitSpec.Builder => Unit"}],"returns":"Pane","receiver":{"name":"self","type":"Window"}},{"raw":"extension (self: Window)\ndef split(spec: io.github.libtmux.SplitSpec): Pane","params":[{"name":"spec","type":"io.github.libtmux.SplitSpec"}],"returns":"Pane","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Splits this window's active pane in half, putting the new one below it."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":665,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-split"},{"id":"io.github.libtmux.scaladsl.Window.expand","name":"expand","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef expand(format: String): String","params":[{"name":"format","type":"String"}],"returns":"String","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"Expands a tmux format in this window's context, and answers with what it came to."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":677,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-expand"},{"id":"io.github.libtmux.scaladsl.Window.rename","name":"rename","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef rename(name: String): Window","params":[{"name":"name","type":"String"}],"returns":"Window","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"Renames this window and returns its replacement capture."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":681,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-rename"},{"id":"io.github.libtmux.scaladsl.Window.linkTo","name":"linkTo","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef linkTo(session: Session): Unit","params":[{"name":"session","type":"Session"}],"returns":"Unit","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"Links this window into another session, so one window sits in both."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":685,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-linkto"},{"id":"io.github.libtmux.scaladsl.Window.unlink","name":"unlink","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef unlink(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"Removes this link, leaving the window wherever else it is linked."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":689,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-unlink"},{"id":"io.github.libtmux.scaladsl.Window.moveTo","name":"moveTo","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef moveTo(session: Session): Unit","params":[{"name":"session","type":"Session"}],"returns":"Unit","receiver":{"name":"self","type":"Window"}},{"raw":"extension (self: Window)\ndef moveTo(session: Session, index: Int): Unit","params":[{"name":"session","type":"Session"},{"name":"index","type":"Int"}],"returns":"Unit","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Moves this window into another session."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":693,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-moveto"},{"id":"io.github.libtmux.scaladsl.Window.resizeTo","name":"resizeTo","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef resizeTo(size: io.github.libtmux.Dimensions): Unit","params":[{"name":"size","type":"io.github.libtmux.Dimensions"}],"returns":"Unit","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"Resizes this window in terminal cells."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":701,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-resizeto"},{"id":"io.github.libtmux.scaladsl.Window.synchronizePanes","name":"synchronizePanes","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef synchronizePanes(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"Copies input to one pane into every pane in this window, until {@link #stopSynchronizingPanes}."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":705,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-synchronizepanes"},{"id":"io.github.libtmux.scaladsl.Window.stopSynchronizingPanes","name":"stopSynchronizingPanes","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef stopSynchronizingPanes(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"Stops copying input between this window's panes."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":709,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-stopsynchronizingpanes"},{"id":"io.github.libtmux.scaladsl.Window.rotate","name":"rotate","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef rotate(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"Rotates the panes within this window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":713,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-rotate"},{"id":"io.github.libtmux.scaladsl.Window.selectLayout","name":"selectLayout","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef selectLayout(layout: io.github.libtmux.Layout): Unit","params":[{"name":"layout","type":"io.github.libtmux.Layout"}],"returns":"Unit","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"Rearranges this window's panes into one of tmux's built-in layouts."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":717,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-selectlayout"},{"id":"io.github.libtmux.scaladsl.Window.nextLayout","name":"nextLayout","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef nextLayout(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"Moves to the next built-in layout, as tmux's own binding does."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":721,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-nextlayout"},{"id":"io.github.libtmux.scaladsl.Window.previousLayout","name":"previousLayout","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef previousLayout(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"Moves to the previous built-in layout, as tmux's own binding does."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":725,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-previouslayout"},{"id":"io.github.libtmux.scaladsl.Window.applyLayout","name":"applyLayout","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef applyLayout(layout: io.github.libtmux.WindowLayout): Unit","params":[{"name":"layout","type":"io.github.libtmux.WindowLayout"}],"returns":"Unit","receiver":{"name":"self","type":"Window"}},{"raw":"extension (self: Window)\ndef applyLayout(layout: String): Unit","params":[{"name":"layout","type":"String"}],"returns":"Unit","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Restores an exact arrangement previously read from {@link #layout()}."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":729,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-applylayout"},{"id":"io.github.libtmux.scaladsl.Window.respawn","name":"respawn","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef respawn(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"Kills what is running in this window and starts it again."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":737,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-respawn"},{"id":"io.github.libtmux.scaladsl.Window.displayPopup","name":"displayPopup","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef displayPopup(shellCommand: String): Unit","params":[{"name":"shellCommand","type":"String"}],"returns":"Unit","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"Shows a popup over this window, running a command in it."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":741,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-displaypopup"},{"id":"io.github.libtmux.scaladsl.Window.kill","name":"kill","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef kill(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"Closes this window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":745,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-kill"},{"id":"io.github.libtmux.scaladsl.Window.refresh","name":"refresh","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef refresh(): Window","params":[],"returns":"Window","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"Takes a new capture and returns this winlink as it is now."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":749,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-refresh"},{"id":"io.github.libtmux.scaladsl.Client.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.Client","signatures":[{"raw":"extension (self: Client)\ndef asJava: JavaClient","params":[],"returns":"JavaClient","receiver":{"name":"self","type":"Client"}}],"imports":{"Expr":"io.github.libtmux.scaladsl.query.Expr","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The underlying Java client. Opaque wrapping is free, so this never copies scope or state."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Client.scala","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-client-asjava"},{"id":"io.github.libtmux.scaladsl.Vector.matching","name":"matching","kind":"function","signatures":[{"raw":"extension (clients: Vector[Client])\ndef matching(expr: Expr[JavaClient]): Vector[Client]","params":[{"name":"expr","type":"Expr[JavaClient]"}],"returns":"Vector[Client]","receiver":{"name":"clients","type":"Vector[Client]"}},{"raw":"extension (panes: Vector[Pane])\ndef matching(expr: Expr[JavaPane]): Vector[Pane]","params":[{"name":"expr","type":"Expr[JavaPane]"}],"returns":"Vector[Pane]","receiver":{"name":"panes","type":"Vector[Pane]"}},{"raw":"extension (sessions: Vector[Session])\ndef matching(expr: Expr[JavaSession]): Vector[Session]","params":[{"name":"expr","type":"Expr[JavaSession]"}],"returns":"Vector[Session]","receiver":{"name":"sessions","type":"Vector[Session]"}},{"raw":"extension (windows: Vector[Window])\ndef matching(expr: Expr[JavaWindow]): Vector[Window]","params":[{"name":"expr","type":"Expr[JavaWindow]"}],"returns":"Vector[Window]","receiver":{"name":"windows","type":"Vector[Window]"}}],"imports":{"Expr":"io.github.libtmux.scaladsl.query.Expr","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"The captured clients `expr` matches: a local filter over what is already held."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Client.scala","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-vector-matching"},{"id":"io.github.libtmux.scaladsl.Pane.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef asJava: JavaPane","params":[],"returns":"JavaPane","receiver":{"name":"self","type":"Pane"}}],"imports":{"Expr":"io.github.libtmux.scaladsl.query.Expr","FiniteDuration":"scala.concurrent.duration.FiniteDuration","_":"scala.jdk.DurationConverters._","JavaPane":"io.github.libtmux.Pane","PaneRun":"io.github.libtmux.PaneRun","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason"},"modifiers":[],"doc":{"summary":"The underlying Java pane. Opaque wrapping is free, so this never copies scope or state."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Pane.scala","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-asjava"},{"id":"io.github.libtmux.scaladsl.Pane.awaitText","name":"awaitText","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef awaitText(text: String, timeout: FiniteDuration): TextOutcome","params":[{"name":"text","type":"String"},{"name":"timeout","type":"FiniteDuration"}],"returns":"TextOutcome","receiver":{"name":"self","type":"Pane"}},{"raw":"extension (self: Pane)\ndef awaitText(\n text: String,\n timeout: FiniteDuration,\n every: FiniteDuration\n ): TextOutcome","params":[{"name":"text","type":"String"},{"name":"timeout","type":"FiniteDuration"},{"name":"every","type":"FiniteDuration"}],"returns":"TextOutcome","receiver":{"name":"self","type":"Pane"}}],"imports":{"Expr":"io.github.libtmux.scaladsl.query.Expr","FiniteDuration":"scala.concurrent.duration.FiniteDuration","_":"scala.jdk.DurationConverters._","JavaPane":"io.github.libtmux.Pane","PaneRun":"io.github.libtmux.PaneRun","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason"},"modifiers":["overload"],"doc":{"summary":"Waits until `text` appears, or `timeout` passes first.","examples":[{"lang":"console","intro":"Send input and wait for output before capturing the pane. Use JDK 25, Git, and tmux 3.2a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala_3\"))\n .using(project(\":libtmux-scala\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/Capture.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scaladirect/Capture.scala","code":"package io.github.libtmux.examples.api.scaladirect\n\nimport io.github.libtmux.{\n ServerConfig,\n ServerEndpoint,\n SessionSpec,\n TextOutcome\n}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.*\nimport scala.concurrent.duration.*\nimport scala.util.Using\nimport scala.util.control.NonFatal\n\n/** Send input and wait for output before capturing the pane. */\nobject Capture {\n def main(args: Array[String]): Unit = {\n try {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n val config = ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n Using.resource(Server.open(config)) { server =>\n val session = server.newSession(\n SessionSpec.builder().named(\"api-capture\").running(\"/bin/sh\").build()\n )\n val pane = session.windows.head.panes.head\n pane.sendKeys(Vector(\"printf 'api-%s\\\\n' keys\", \"Enter\"))\n require(\n !pane.awaitText(\"api-keys\", 5.seconds).equals(TextOutcome.TIMED_OUT),\n \"timed out waiting for keys output\"\n )\n pane.sendLine(\"printf 'api-%s\\\\n' line\")\n require(\n !pane.awaitText(\"api-line\", 5.seconds).equals(TextOutcome.TIMED_OUT),\n \"timed out waiting for line output\"\n )\n val lines = pane.capture()\n Vector(\"api-keys\", \"api-line\").foreach { expected =>\n require(\n lines.exists(_.trim.equals(expected)),\n \"capture is missing \" + expected\n )\n println(expected)\n }\n }\n } catch {\n case NonFatal(error) =>\n System.err.println(\"Example failed: \" + error.getMessage)\n sys.exit(1)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scaladirect.Capture && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"api-keys\napi-line\n"}]},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Pane.scala","line":45,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-awaittext"},{"id":"io.github.libtmux.scaladsl.Pane.run","name":"run","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef run(command: String, timeout: FiniteDuration): PaneRun","params":[{"name":"command","type":"String"},{"name":"timeout","type":"FiniteDuration"}],"returns":"PaneRun","receiver":{"name":"self","type":"Pane"}}],"imports":{"Expr":"io.github.libtmux.scaladsl.query.Expr","FiniteDuration":"scala.concurrent.duration.FiniteDuration","_":"scala.jdk.DurationConverters._","JavaPane":"io.github.libtmux.Pane","PaneRun":"io.github.libtmux.PaneRun","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason"},"modifiers":[],"doc":{"summary":"Runs a shell command in this pane to its end, and answers with its exit status and output."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Pane.scala","line":61,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-run"},{"id":"io.github.libtmux.scaladsl.Pane.await","name":"await","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef await(settled: Pane => Boolean, timeout: FiniteDuration): WakeReason","params":[{"name":"settled","type":"Pane => Boolean"},{"name":"timeout","type":"FiniteDuration"}],"returns":"WakeReason","receiver":{"name":"self","type":"Pane"}},{"raw":"extension (self: Pane)\ndef await(\n settled: Pane => Boolean,\n timeout: FiniteDuration,\n every: FiniteDuration\n ): WakeReason","params":[{"name":"settled","type":"Pane => Boolean"},{"name":"timeout","type":"FiniteDuration"},{"name":"every","type":"FiniteDuration"}],"returns":"WakeReason","receiver":{"name":"self","type":"Pane"}}],"imports":{"Expr":"io.github.libtmux.scaladsl.query.Expr","FiniteDuration":"scala.concurrent.duration.FiniteDuration","_":"scala.jdk.DurationConverters._","JavaPane":"io.github.libtmux.Pane","PaneRun":"io.github.libtmux.PaneRun","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason"},"modifiers":["overload"],"doc":{"summary":"Waits until `settled` holds for this pane as it is now. `settled` receives a fresh capture each look."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Pane.scala","line":67,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-await"},{"id":"io.github.libtmux.scaladsl.Server.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef asJava: JavaServer","params":[],"returns":"JavaServer","receiver":{"name":"self","type":"Server"}}],"imports":{"ControlClient":"io.github.libtmux.control.ControlClient","FiniteDuration":"scala.concurrent.duration.FiniteDuration","_":"scala.jdk.DurationConverters._","JavaServer":"io.github.libtmux.Server","ServerConfig":"io.github.libtmux.ServerConfig"},"modifiers":[],"doc":{"summary":"The underlying Java client. Opaque wrapping is free, so this never copies scope or state."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Server.scala","line":41,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-asjava"},{"id":"io.github.libtmux.scaladsl.Server.within","name":"within","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef within(timeout: FiniteDuration): Server","params":[{"name":"timeout","type":"FiniteDuration"}],"returns":"Server","receiver":{"name":"self","type":"Server"}}],"imports":{"ControlClient":"io.github.libtmux.control.ControlClient","FiniteDuration":"scala.concurrent.duration.FiniteDuration","_":"scala.jdk.DurationConverters._","JavaServer":"io.github.libtmux.Server","ServerConfig":"io.github.libtmux.ServerConfig"},"modifiers":[],"doc":{"summary":"This server with every command given `timeout` rather than the default, sharing this one's transport and scope. `LIFECYCLE`, handwritten: not a per-operation forward, a derived scope."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Server.scala","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-within"},{"id":"io.github.libtmux.scaladsl.Server.control","name":"control","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef control(session: Session): ControlClient","params":[{"name":"session","type":"Session"}],"returns":"ControlClient","receiver":{"name":"self","type":"Server"}},{"raw":"extension (self: Server)\ndef control(session: Session, timeout: FiniteDuration): ControlClient","params":[{"name":"session","type":"Session"},{"name":"timeout","type":"FiniteDuration"}],"returns":"ControlClient","receiver":{"name":"self","type":"Server"}}],"imports":{"ControlClient":"io.github.libtmux.control.ControlClient","FiniteDuration":"scala.concurrent.duration.FiniteDuration","_":"scala.jdk.DurationConverters._","JavaServer":"io.github.libtmux.Server","ServerConfig":"io.github.libtmux.ServerConfig"},"modifiers":["overload"],"doc":{"summary":"A control-mode client on `session`, refused by a tmux other than the one that captured it. `LIFECYCLE`, handwritten: resource scoping, not a per-operation forward."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Server.scala","line":54,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-control"},{"id":"io.github.libtmux.scaladsl.Session.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef asJava: JavaSession","params":[],"returns":"JavaSession","receiver":{"name":"self","type":"Session"}}],"imports":{"Expr":"io.github.libtmux.scaladsl.query.Expr","JavaSession":"io.github.libtmux.Session"},"modifiers":[],"doc":{"summary":"The underlying Java session. Opaque wrapping is free, so this never copies scope or state."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Session.scala","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-asjava"},{"id":"io.github.libtmux.scaladsl.Window.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef asJava: JavaWindow","params":[],"returns":"JavaWindow","receiver":{"name":"self","type":"Window"}}],"imports":{"Expr":"io.github.libtmux.scaladsl.query.Expr","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"The underlying Java window link. Opaque wrapping is free, so this never copies scope or state."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Window.scala","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-asjava"},{"id":"io.github.libtmux.scaladsl.live.LiveView.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.live.LiveView","signatures":[{"raw":"extension (self: LiveView)\ndef asJava: JavaServerMirror","params":[],"returns":"JavaServerMirror","receiver":{"name":"self","type":"LiveView"}}],"imports":{"Session":"io.github.libtmux.scaladsl.Session","Duration":"java.time.Duration","_":"scala.jdk.OptionConverters._","JavaServerMirror":"io.github.libtmux.snapshot.ServerMirror"},"modifiers":[],"doc":{"summary":"The underlying Java mirror. Opaque wrapping is free, so this never copies scope or state."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/live/LiveView.scala","line":58,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-live-liveview-asjava"},{"id":"io.github.libtmux.scaladsl.live.LiveView.current","name":"current","kind":"method","parent":"io.github.libtmux.scaladsl.live.LiveView","signatures":[{"raw":"extension (self: LiveView)\ndef current: JavaServerMirror.View","params":[],"returns":"JavaServerMirror.View","receiver":{"name":"self","type":"LiveView"}}],"imports":{"Session":"io.github.libtmux.scaladsl.Session","Duration":"java.time.Duration","_":"scala.jdk.OptionConverters._","JavaServerMirror":"io.github.libtmux.snapshot.ServerMirror"},"modifiers":[],"doc":{"summary":"The latest published view. Never blocks."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/live/LiveView.scala","line":61,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-live-liveview-current"},{"id":"io.github.libtmux.scaladsl.live.LiveView.awaitNewer","name":"awaitNewer","kind":"method","parent":"io.github.libtmux.scaladsl.live.LiveView","signatures":[{"raw":"extension (self: LiveView)\ndef awaitNewer(\n epoch: Long,\n timeout: Duration\n ): Option[JavaServerMirror.View]","params":[{"name":"epoch","type":"Long"},{"name":"timeout","type":"Duration"}],"returns":"Option[JavaServerMirror.View]","receiver":{"name":"self","type":"LiveView"}}],"imports":{"Session":"io.github.libtmux.scaladsl.Session","Duration":"java.time.Duration","_":"scala.jdk.OptionConverters._","JavaServerMirror":"io.github.libtmux.snapshot.ServerMirror"},"modifiers":[],"doc":{"summary":"Waits for a view newer than `epoch`, or empty when `timeout` passed first or this mirror ended; [[isEnded]] and [[cause]] tell those apart."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/live/LiveView.scala","line":66,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-live-liveview-awaitnewer"},{"id":"io.github.libtmux.scaladsl.live.LiveView.isEnded","name":"isEnded","kind":"method","parent":"io.github.libtmux.scaladsl.live.LiveView","signatures":[{"raw":"extension (self: LiveView)\ndef isEnded: Boolean","params":[],"returns":"Boolean","receiver":{"name":"self","type":"LiveView"}}],"imports":{"Session":"io.github.libtmux.scaladsl.Session","Duration":"java.time.Duration","_":"scala.jdk.OptionConverters._","JavaServerMirror":"io.github.libtmux.snapshot.ServerMirror"},"modifiers":[],"doc":{"summary":"Whether this mirror has stopped publishing, because it was closed or its anchor has gone."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/live/LiveView.scala","line":75,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-live-liveview-isended"},{"id":"io.github.libtmux.scaladsl.live.LiveView.cause","name":"cause","kind":"method","parent":"io.github.libtmux.scaladsl.live.LiveView","signatures":[{"raw":"extension (self: LiveView)\ndef cause: Option[Throwable]","params":[],"returns":"Option[Throwable]","receiver":{"name":"self","type":"LiveView"}}],"imports":{"Session":"io.github.libtmux.scaladsl.Session","Duration":"java.time.Duration","_":"scala.jdk.OptionConverters._","JavaServerMirror":"io.github.libtmux.snapshot.ServerMirror"},"modifiers":[],"doc":{"summary":"Why this mirror ended, when something other than [[java.lang.AutoCloseable#close close]] ended it."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/live/LiveView.scala","line":80,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-live-liveview-cause"},{"id":"io.github.libtmux.scaladsl.live.LiveView.snapshots","name":"snapshots","kind":"method","parent":"io.github.libtmux.scaladsl.live.LiveView","signatures":[{"raw":"extension (self: LiveView)\ndef snapshots: Iterator[JavaServerMirror.View]","params":[],"returns":"Iterator[JavaServerMirror.View]","receiver":{"name":"self","type":"LiveView"}}],"imports":{"Session":"io.github.libtmux.scaladsl.Session","Duration":"java.time.Duration","_":"scala.jdk.OptionConverters._","JavaServerMirror":"io.github.libtmux.snapshot.ServerMirror"},"modifiers":[],"doc":{"summary":"The current view, then every newer one, one per notification, blocking between them: as a `StateFlow` or an fs2 `Signal` does. A change made before this call is in the first view rather than lost between reading [[current]] and starting to iterate. Ends when this view is closed, and throws [[cause]] when its anchor or server has gone."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/live/LiveView.scala","line":88,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-live-liveview-snapshots"},{"id":"io.github.libtmux.scaladsl.live.LiveView.snapshotsAfter","name":"snapshotsAfter","kind":"method","parent":"io.github.libtmux.scaladsl.live.LiveView","signatures":[{"raw":"extension (self: LiveView)\ndef snapshotsAfter(epoch: Long): Iterator[JavaServerMirror.View]","params":[{"name":"epoch","type":"Long"}],"returns":"Iterator[JavaServerMirror.View]","receiver":{"name":"self","type":"LiveView"}}],"imports":{"Session":"io.github.libtmux.scaladsl.Session","Duration":"java.time.Duration","_":"scala.jdk.OptionConverters._","JavaServerMirror":"io.github.libtmux.snapshot.ServerMirror"},"modifiers":[],"doc":{"summary":"Every view newer than `epoch`, one per notification, blocking between them. A view already published after `epoch` comes first, so nothing is missed between reading a view and starting to iterate. Ends and throws as [[snapshots]] does."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/live/LiveView.scala","line":98,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-live-liveview-snapshotsafter"},{"id":"io.github.libtmux.scaladsl.query.IterableOnce.exactlyOne","name":"exactlyOne","kind":"function","signatures":[{"raw":"extension [A](values: IterableOnce[A])\ndef exactlyOne: Either[CardinalityError, A]","params":[],"returns":"Either[CardinalityError, A]","receiver":{"name":"values","type":"IterableOnce[A]"},"typeParams":["A"],"typeParameters":[{"name":"A"}]}],"imports":{"CardinalityException":"io.github.libtmux.exception.CardinalityException"},"modifiers":[],"doc":{"summary":"The single match, or a failure naming which way the count was wrong. Single-pass: mirrors `Selections.exactlyOne`'s early exit, stopping at the second match."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/CardinalityError.scala","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-iterableonce-exactlyone"},{"id":"io.github.libtmux.scaladsl.query.IterableOnce.atMostOne","name":"atMostOne","kind":"function","signatures":[{"raw":"extension [A](values: IterableOnce[A])\ndef atMostOne: Either[CardinalityError, Option[A]]","params":[],"returns":"Either[CardinalityError, Option[A]]","receiver":{"name":"values","type":"IterableOnce[A]"},"typeParams":["A"],"typeParameters":[{"name":"A"}]}],"imports":{"CardinalityException":"io.github.libtmux.exception.CardinalityException"},"modifiers":[],"doc":{"summary":"The single match if there is one, `None` if there is none — still a failure for several."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/CardinalityError.scala","line":44,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-iterableonce-atmostone"},{"id":"io.github.libtmux.scaladsl.query.Expr.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.query.Expr","signatures":[{"raw":"extension [T](e: Expr[T])\ndef asJava: JavaFilterExpr[T]","params":[],"returns":"JavaFilterExpr[T]","receiver":{"name":"e","type":"Expr[T]"},"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"imports":{"JavaFilterExpr":"io.github.libtmux.query.FilterExpr"},"modifiers":[],"doc":{"summary":"The underlying Java expression. Opaque wrapping is free, so this never copies anything."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Expr.scala","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-expr-asjava"},{"id":"io.github.libtmux.scaladsl.query.Expr.&&","name":"&&","kind":"method","parent":"io.github.libtmux.scaladsl.query.Expr","signatures":[{"raw":"extension [T](e: Expr[T])\ndef &&(other: Expr[T]): Expr[T]","params":[{"name":"other","type":"Expr[T]"}],"returns":"Expr[T]","receiver":{"name":"e","type":"Expr[T]"},"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"imports":{"JavaFilterExpr":"io.github.libtmux.query.FilterExpr"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Expr.scala","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-expr-14f0"},{"id":"io.github.libtmux.scaladsl.query.Expr.||","name":"||","kind":"method","parent":"io.github.libtmux.scaladsl.query.Expr","signatures":[{"raw":"extension [T](e: Expr[T])\ndef ||(other: Expr[T]): Expr[T]","params":[{"name":"other","type":"Expr[T]"}],"returns":"Expr[T]","receiver":{"name":"e","type":"Expr[T]"},"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"imports":{"JavaFilterExpr":"io.github.libtmux.query.FilterExpr"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Expr.scala","line":34,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-expr-1nzt"},{"id":"io.github.libtmux.scaladsl.query.Expr.unary_!","name":"unary_!","kind":"method","parent":"io.github.libtmux.scaladsl.query.Expr","signatures":[{"raw":"extension [T](e: Expr[T])\ndef unary_! : Expr[T]","params":[],"returns":"Expr[T]","receiver":{"name":"e","type":"Expr[T]"},"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"imports":{"JavaFilterExpr":"io.github.libtmux.query.FilterExpr"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Expr.scala","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-expr-unary_"},{"id":"io.github.libtmux.scaladsl.query.Expr.and","name":"and","kind":"method","parent":"io.github.libtmux.scaladsl.query.Expr","signatures":[{"raw":"extension [T](e: Expr[T])\ndef and(other: Expr[T]): Expr[T]","params":[{"name":"other","type":"Expr[T]"}],"returns":"Expr[T]","receiver":{"name":"e","type":"Expr[T]"},"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"imports":{"JavaFilterExpr":"io.github.libtmux.query.FilterExpr"},"modifiers":[],"doc":{"summary":"`&&`, spelled out."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Expr.scala","line":39,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-expr-and"},{"id":"io.github.libtmux.scaladsl.query.Expr.or","name":"or","kind":"method","parent":"io.github.libtmux.scaladsl.query.Expr","signatures":[{"raw":"extension [T](e: Expr[T])\ndef or(other: Expr[T]): Expr[T]","params":[{"name":"other","type":"Expr[T]"}],"returns":"Expr[T]","receiver":{"name":"e","type":"Expr[T]"},"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"imports":{"JavaFilterExpr":"io.github.libtmux.query.FilterExpr"},"modifiers":[],"doc":{"summary":"`||`, spelled out."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Expr.scala","line":42,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-expr-or"},{"id":"io.github.libtmux.scaladsl.query.Expr.not","name":"not","kind":"method","parent":"io.github.libtmux.scaladsl.query.Expr","signatures":[{"raw":"extension [T](e: Expr[T])\ndef not: Expr[T]","params":[],"returns":"Expr[T]","receiver":{"name":"e","type":"Expr[T]"},"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"imports":{"JavaFilterExpr":"io.github.libtmux.query.FilterExpr"},"modifiers":[],"doc":{"summary":"`unary_!`, spelled out."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Expr.scala","line":45,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-expr-not"},{"id":"io.github.libtmux.scaladsl.query.Expr.describe","name":"describe","kind":"method","parent":"io.github.libtmux.scaladsl.query.Expr","signatures":[{"raw":"extension [T](e: Expr[T])\ndef describe: String","params":[],"returns":"String","receiver":{"name":"e","type":"Expr[T]"},"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"imports":{"JavaFilterExpr":"io.github.libtmux.query.FilterExpr"},"modifiers":[],"doc":{"summary":"Renders this expression as inspectable text."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Expr.scala","line":48,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-expr-describe"},{"id":"io.github.libtmux.scaladsl.query.Expr.matches","name":"matches","kind":"method","parent":"io.github.libtmux.scaladsl.query.Expr","signatures":[{"raw":"extension [T](e: Expr[T])\ndef matches(value: T): Boolean","params":[{"name":"value","type":"T"}],"returns":"Boolean","receiver":{"name":"e","type":"Expr[T]"},"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"imports":{"JavaFilterExpr":"io.github.libtmux.query.FilterExpr"},"modifiers":[],"doc":{"summary":"Evaluates this expression against one value, with no tmux I/O."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Expr.scala","line":51,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-expr-matches"}],"sources":[{"product":"core","package":"io.github.libtmux:libtmux-scala_3","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272","version":"0.0.1-alpha.17-SNAPSHOT"}],"generatedSources":{"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala":"package io.github.libtmux.scaladsl.generated\n\n// Generated from field-catalog.tsv by build-logic/codegen (ScalaFieldGenerator). Not checked in.\n\nimport io.github.libtmux.{\n Pane => JavaPane,\n Session => JavaSession,\n Window => JavaWindow,\n Client => JavaClient\n}\n\n/** Typed fields for filtering captured pane objects. */\nobject PaneFields {\n /** The pane id. */\n def id: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane](_root_.io.github.libtmux.Pane_.id())\n\n /** The command tmux reported running in the pane. */\n def command: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane](_root_.io.github.libtmux.Pane_.command())\n\n /** The pane's position in its window. */\n def index: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane](_root_.io.github.libtmux.Pane_.index())\n\n /** Whether this was its window's active pane. */\n def active: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane](_root_.io.github.libtmux.Pane_.active())\n\n /** The pane's title, which a program running in it can set. */\n def title: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane](_root_.io.github.libtmux.Pane_.title())\n\n /** The pane's working directory, as the text tmux reported. */\n def path: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane](_root_.io.github.libtmux.Pane_.path())\n\n /** The pane's width, in cells. */\n def width: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane](_root_.io.github.libtmux.Pane_.width())\n\n /** The pane's height, in cells. */\n def height: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane](_root_.io.github.libtmux.Pane_.height())\n\n /** The column of the pane's left edge in its window. */\n def left: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane](_root_.io.github.libtmux.Pane_.left())\n\n /** The row of the pane's top edge in its window. */\n def top: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane](_root_.io.github.libtmux.Pane_.top())\n\n /** Whether the pane touches the top of its window. */\n def atTop: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane](_root_.io.github.libtmux.Pane_.atTop())\n\n /** Whether the pane touches the bottom of its window. */\n def atBottom: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane](_root_.io.github.libtmux.Pane_.atBottom())\n\n /** Whether the pane touches the left of its window. */\n def atLeft: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane](_root_.io.github.libtmux.Pane_.atLeft())\n\n /** Whether the pane touches the right of its window. */\n def atRight: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane](_root_.io.github.libtmux.Pane_.atRight())\n}\n\n/** Typed fields for filtering captured session objects. */\nobject SessionFields {\n /** The session id, as text, so it can be compared and listed. */\n def id: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaSession] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaSession](_root_.io.github.libtmux.Session_.id())\n\n /** The session name. */\n def name: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaSession] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaSession](_root_.io.github.libtmux.Session_.name())\n\n /** Whether a client was attached when this was captured. */\n def attached: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaSession] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaSession](_root_.io.github.libtmux.Session_.attached())\n\n /** How many windows this session holds. */\n def windowCount: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaSession] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaSession](_root_.io.github.libtmux.Session_.windowCount())\n\n /** This session's windows. */\n def windows: _root_.io.github.libtmux.scaladsl.query.Fields.ToManyRef[JavaSession, JavaWindow] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.ToManyRef[JavaSession, JavaWindow](_root_.io.github.libtmux.Session_.windows())\n}\n\n/** Typed fields for filtering captured window objects. */\nobject WindowFields {\n /** The underlying window id, shared by every link to it. */\n def id: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaWindow] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaWindow](_root_.io.github.libtmux.Window_.id())\n\n /** The window name. */\n def name: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaWindow] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaWindow](_root_.io.github.libtmux.Window_.name())\n\n /** Where this link sits in its session. */\n def index: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow](_root_.io.github.libtmux.Window_.index())\n\n /** Whether this was its session's active window. */\n def active: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaWindow] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaWindow](_root_.io.github.libtmux.Window_.active())\n\n /** Whether the underlying window is linked into more than one session. */\n def linked: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaWindow] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaWindow](_root_.io.github.libtmux.Window_.linked())\n\n /** The window's width, in cells. */\n def width: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow](_root_.io.github.libtmux.Window_.width())\n\n /** The window's height, in cells. */\n def height: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow](_root_.io.github.libtmux.Window_.height())\n\n /** How many panes this link holds. */\n def paneCount: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow](_root_.io.github.libtmux.Window_.paneCount())\n\n /** This link's panes. */\n def panes: _root_.io.github.libtmux.scaladsl.query.Fields.ToManyRef[JavaWindow, JavaPane] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.ToManyRef[JavaWindow, JavaPane](_root_.io.github.libtmux.Window_.panes())\n\n /** The session this link belongs to. */\n def session: _root_.io.github.libtmux.scaladsl.query.Fields.ToOneRef[JavaWindow, JavaSession] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.ToOneRef[JavaWindow, JavaSession](_root_.io.github.libtmux.Window_.session())\n}\n\n/** Typed fields for filtering captured client objects. */\nobject ClientFields {\n /** The client's terminal name, which is how tmux addresses it. */\n def name: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaClient] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaClient](_root_.io.github.libtmux.Client_.name())\n\n /** The session this client was attached to, if any. */\n def session: _root_.io.github.libtmux.scaladsl.query.Fields.ToOneRef[JavaClient, JavaSession] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.ToOneRef[JavaClient, JavaSession](_root_.io.github.libtmux.Client_.session())\n}\n","libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala":"package io.github.libtmux.scaladsl.cats\n\n// Generated from the operation catalog by build-logic/codegen (ScalaOperationGenerator). Not checked in.\n\n extension [F[_]](self: Buffers[F])(using F: _root_.cats.effect.Async[F]) {\n\n /** Captures every buffer the server holds, in tmux's order. */\n def list(): F[Vector[io.github.libtmux.BufferInfo]] =\n self.server.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.list()).asScala.toVector)\n\n /** Puts text in a named buffer, replacing whatever was there. */\n def set(name: String, contents: String): F[Unit] =\n self.server.execution(self.underlying.set(name, contents))\n\n /** What a buffer holds, without any line breaks it ends with. */\n def show(name: String): F[String] =\n self.server.execution(self.underlying.show(name))\n\n /** Removes a buffer by its exact name. */\n def delete(name: String): F[Unit] =\n self.server.execution(self.underlying.delete(name))\n\n /** Writes a buffer's contents to a file. */\n def save(name: String, file: java.nio.file.Path): F[Unit] =\n self.server.execution(self.underlying.save(name, file))\n\n /** Reads a file into a named buffer. */\n def load(name: String, file: java.nio.file.Path): F[Unit] =\n self.server.execution(self.underlying.load(name, file))\n }\n\n extension [F[_]](self: Client[F])(using F: _root_.cats.effect.Async[F]) {\n\n /** The client's terminal name, which is how tmux addresses it. */\n def name: String =\n self.underlying.asJava.name()\n\n /** Detaches this client, leaving whatever it was attached to running. */\n def detach(): F[Unit] =\n self.server.execution(self.underlying.asJava.detach())\n\n /** Detaches every other client, leaving this one attached. */\n def detachOthers(): F[Unit] =\n self.server.execution(self.underlying.asJava.detachOthers())\n\n /** Moves this client to another session. */\n def switchTo(session: Session[F]): F[Unit] =\n self.server.execution(self.underlying.asJava.switchTo(session.underlying.asJava))\n\n /** Asks tmux to redraw this client. */\n def redraw(): F[Unit] =\n self.server.execution(self.underlying.asJava.redraw())\n\n /** The session this client was attached to when captured. */\n def session: Option[Session[F]] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.underlying.asJava.session()).toScala.map(v => self.server.session(io.github.libtmux.scaladsl.Session.wrap(v)))\n\n /** What this client was looking at when captured. */\n def attachment: Option[io.github.libtmux.ClientAttachment] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.underlying.asJava.attachment()).toScala\n\n /** Takes a new capture and returns what this client is looking at now. */\n def fetchAttachment(): F[Option[io.github.libtmux.ClientAttachment]] =\n self.server.execution(_root_.scala.jdk.OptionConverters.RichOptional(self.underlying.asJava.fetchAttachment()).toScala)\n\n /** Takes a new capture and returns this client as it is now. */\n def refresh(): F[Client[F]] =\n self.server.execution(self.server.client(io.github.libtmux.scaladsl.Client.wrap(self.underlying.asJava.refresh())))\n }\n\n extension [F[_]](self: Commands[F])(using F: _root_.cats.effect.Async[F]) {\n\n /** Every command, as tmux prints it. */\n def list(): F[Vector[String]] =\n self.server.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.list()).asScala.toVector)\n }\n\n extension [F[_]](self: Environment[F])(using F: _root_.cats.effect.Async[F]) {\n\n /** The value set for this name, or empty when it is removed or absent. */\n def get(name: String): F[Option[String]] =\n self.server.execution(_root_.scala.jdk.OptionConverters.RichOptional(self.underlying.get(name)).toScala)\n\n /** Whether new processes are told not to inherit this name. */\n def isRemoved(name: String): F[Boolean] =\n self.server.execution(self.underlying.isRemoved(name))\n\n /** Every name set at this scope, in tmux's order. */\n def all(): F[_root_.scala.collection.immutable.VectorMap[String, String]] =\n self.server.execution(_root_.scala.collection.immutable.VectorMap.from(_root_.scala.jdk.CollectionConverters.MapHasAsScala(self.underlying.all()).asScala))\n\n /** What a process started from this scope is actually handed, both scopes taken together. */\n def effective(): F[_root_.scala.collection.immutable.VectorMap[String, String]] =\n self.server.execution(_root_.scala.collection.immutable.VectorMap.from(_root_.scala.jdk.CollectionConverters.MapHasAsScala(self.underlying.effective()).asScala))\n\n /** Every name this scope tells a new process not to inherit. */\n def removed(): F[Set[String]] =\n self.server.execution(_root_.scala.jdk.CollectionConverters.SetHasAsScala(self.underlying.removed()).asScala.toSet)\n\n /** Sets a name to a literal value. */\n def set(name: String, value: String): F[Unit] =\n self.server.execution(self.underlying.set(name, value))\n\n /** Sets a name to what a tmux format expands to now. */\n def setExpanded(name: String, format: String): F[Unit] =\n self.server.execution(self.underlying.setExpanded(name, format))\n\n /** Removes the name from this scope, so it is neither set nor marked. */\n def unset(name: String): F[Unit] =\n self.server.execution(self.underlying.unset(name))\n\n /** Tells processes started after this not to inherit the name. */\n def remove(name: String): F[Unit] =\n self.server.execution(self.underlying.remove(name))\n }\n\n extension [F[_]](self: Hooks[F])(using F: _root_.cats.effect.Async[F]) {\n\n /** Binds a tmux command to an event at this scope, replacing anything already bound to it. */\n def set(event: String, command: String): F[Unit] =\n self.server.execution(self.underlying.set(event, command))\n\n /** As {@link #set(String, String)}, with the command as words rather than a line tmux parses. */\n def set(event: String, command: Vector[String]): F[Unit] =\n self.server.execution(self.underlying.set(event, _root_.scala.jdk.CollectionConverters.SeqHasAsJava(command).asJava))\n\n /** As {@link #append(String, String)}, with the command as words. */\n def append(event: String, command: Vector[String]): F[Unit] =\n self.server.execution(self.underlying.append(event, _root_.scala.jdk.CollectionConverters.SeqHasAsJava(command).asJava))\n\n /** Binds another command to an event, after whatever is already bound to it. */\n def append(event: String, command: String): F[Unit] =\n self.server.execution(self.underlying.append(event, command))\n\n /** Removes everything bound to an event at this scope. */\n def unset(event: String): F[Unit] =\n self.server.execution(self.underlying.unset(event))\n\n /** Runs what is bound to an event now, without waiting for the event. */\n def run(event: String): F[Unit] =\n self.server.execution(self.underlying.run(event))\n\n /** Every hook at this scope, keyed by event, each with its commands in the order tmux runs them. */\n def all(): F[_root_.scala.collection.immutable.VectorMap[String, Vector[String]]] =\n self.server.execution(_root_.scala.collection.immutable.VectorMap.from(_root_.scala.jdk.CollectionConverters.MapHasAsScala(self.underlying.all()).asScala.map { case (k, v) => k -> _root_.scala.jdk.CollectionConverters.ListHasAsScala(v).asScala.toVector }))\n }\n\n extension [F[_]](self: Keys[F])(using F: _root_.cats.effect.Async[F]) {\n\n /** The same bindings, in one named table. */\n def in(table: String): Keys[F] =\n new Keys(self.underlying.in(table), self.server)\n\n /** Binds a key to a tmux command, given as its words. */\n def bind(key: String, command: Vector[String]): F[Unit] =\n self.server.execution(self.underlying.bind(key, _root_.scala.jdk.CollectionConverters.SeqHasAsJava(command).asJava))\n\n /** Removes a key's binding. */\n def unbind(key: String): F[Unit] =\n self.server.execution(self.underlying.unbind(key))\n\n /** The bindings as tmux lists them, one per line. */\n def list(): F[Vector[String]] =\n self.server.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.list()).asScala.toVector)\n }\n\n extension [F[_]](self: MessageLog[F])(using F: _root_.cats.effect.Async[F]) {\n\n /** The log lines. */\n def lines(): F[Vector[String]] =\n self.server.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.lines()).asScala.toVector)\n }\n\n extension [F[_]](self: Options[F])(using F: _root_.cats.effect.Async[F]) {\n\n /** Every option set at this scope, in tmux's order. */\n def all(): F[_root_.scala.collection.immutable.VectorMap[String, String]] =\n self.server.execution(_root_.scala.collection.immutable.VectorMap.from(_root_.scala.jdk.CollectionConverters.MapHasAsScala(self.underlying.all()).asScala))\n\n /** Every option tmux lists at this scope, including inherited built-in values. */\n def effective(): F[_root_.scala.collection.immutable.VectorMap[String, String]] =\n self.server.execution(_root_.scala.collection.immutable.VectorMap.from(_root_.scala.jdk.CollectionConverters.MapHasAsScala(self.underlying.effective()).asScala))\n\n /** Sets one option only if this scope does not already set it. */\n def setIfAbsent(name: String, value: String): F[Boolean] =\n self.server.execution(self.underlying.setIfAbsent(name, value))\n\n /** Adds to the end of a string option, rather than replacing it. */\n def append(name: String, suffix: String): F[Unit] =\n self.server.execution(self.underlying.append(name, suffix))\n\n /** Sets one option to what a tmux format comes to, rather than to the format itself. */\n def setExpanded(name: String, format: String): F[Unit] =\n self.server.execution(self.underlying.setExpanded(name, format))\n\n /** Removes one option at this scope, so it falls back to whatever it inherits. */\n def unset(name: String): F[Unit] =\n self.server.execution(self.underlying.unset(name))\n }\n\n extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F]) {\n\n /** The fields this capture stored. */\n def info: io.github.libtmux.snapshot.PaneState =\n self.underlying.asJava.info()\n\n /** The pane's stable id. */\n def id: io.github.libtmux.PaneId =\n self.underlying.asJava.id()\n\n /** The pane's position, which shifts as neighbours come and go. */\n def index: Int =\n self.underlying.asJava.index()\n\n /** Whether this was its window's active pane when captured. */\n def active: Boolean =\n self.underlying.asJava.active()\n\n /** The command tmux reported running here. */\n def currentCommand: String =\n self.underlying.asJava.currentCommand()\n\n /** Whether this pane floats, or empty when the running tmux cannot say. */\n def floating: Option[Boolean] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.underlying.asJava.floating()).toScala.map(v => v.booleanValue())\n\n /** How large the pane was when captured, in terminal cells. */\n def size: io.github.libtmux.Dimensions =\n self.underlying.asJava.size()\n\n /** Where the pane's top-left corner sat in its window when captured, in terminal cells. */\n def position: io.github.libtmux.PanePosition =\n self.underlying.asJava.position()\n\n /** The pane title, which a program running inside it can change. */\n def title: String =\n self.underlying.asJava.title()\n\n /** The working directory tmux reported for the pane. */\n def currentPath: java.nio.file.Path =\n self.underlying.asJava.currentPath()\n\n /** The working directory tmux reported for the pane, exactly as tmux reported it. */\n def currentPathText: String =\n self.underlying.asJava.currentPathText()\n\n /** The process id of the program running in the pane, captured at the time of the read this\nhandle came from. */\n def pid: Option[Long] =\n _root_.scala.jdk.OptionConverters.RichOptionalLong(self.underlying.asJava.pid()).toScala\n\n /** Whether this pane's process has exited, read fresh rather than from the capture. */\n def dead(): F[Boolean] =\n self.server.execution(self.underlying.asJava.dead())\n\n /** Grows this pane by a number of cells in one direction. */\n def resize(direction: io.github.libtmux.Direction, cells: Int): F[Unit] =\n self.server.execution(self.underlying.asJava.resize(direction, cells))\n\n /** Which sides of its window the pane touches. */\n def edges: io.github.libtmux.PaneEdges =\n self.underlying.asJava.edges()\n\n /** Puts this pane into copy mode, where its scrollback can be navigated. */\n def copyMode(): F[Unit] =\n self.server.execution(self.underlying.asJava.copyMode())\n\n /** Which mode this pane is in at this moment, or empty when it is in none. */\n def mode(): F[Option[io.github.libtmux.PaneMode]] =\n self.server.execution(_root_.scala.jdk.OptionConverters.RichOptional(self.underlying.asJava.mode()).toScala)\n\n /** Leaves whichever mode this pane is in. */\n def exitMode(): F[Unit] =\n self.server.execution(self.underlying.asJava.exitMode())\n\n /** Makes this the active pane of its window. */\n def select(): F[Unit] =\n self.server.execution(self.underlying.asJava.select())\n\n /** Retitles this pane and returns its replacement capture. */\n def retitle(title: String): F[Pane[F]] =\n self.server.execution(self.server.pane(io.github.libtmux.scaladsl.Pane.wrap(self.underlying.asJava.retitle(title))))\n\n /** Resizes this pane. */\n def resizeTo(size: io.github.libtmux.Dimensions): F[Unit] =\n self.server.execution(self.underlying.asJava.resizeTo(size))\n\n /** The window link this pane was reached through. */\n def window: Window[F] =\n self.server.window(io.github.libtmux.scaladsl.Window.wrap(self.underlying.asJava.window()))\n\n /** This pane's own hooks. */\n def hooks: Hooks[F] =\n new Hooks(self.underlying.asJava.hooks(), self.server)\n\n /** This pane's own options. */\n def options: Options[F] =\n new Options(self.underlying.asJava.options(), self.server)\n\n /** This pane's visible content, one element per line. */\n def capture(): F[Vector[String]] =\n self.server.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.asJava.capture()).asScala.toVector)\n\n /** Notes text that reached this pane without going through this handle, so a wait discounts its\necho the way it discounts text sent through {@link #sendLiteral}. */\n def noteTyped(text: String): F[Unit] =\n self.server.execution(self.underlying.asJava.noteTyped(text))\n\n /** Reads part of this pane, described by a lambda. */\n def capture(configure: io.github.libtmux.CaptureSpec.Builder => Unit): F[Vector[String]] =\n self.server.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.asJava.capture(((it: io.github.libtmux.CaptureSpec.Builder) => configure(it)))).asScala.toVector)\n\n /** Reads part of this pane according to a spec, which may be reused across panes. */\n def capture(spec: io.github.libtmux.CaptureSpec): F[Vector[String]] =\n self.server.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.asJava.capture(spec)).asScala.toVector)\n\n /** Sends keys to this pane without pressing Enter. */\n def send(keys: String): F[Unit] =\n self.server.execution(self.underlying.asJava.send(keys))\n\n /** Sends an ordered group of key names to this pane, as tmux resolves them. */\n def sendKeys(keys: Vector[String]): F[Unit] =\n self.server.execution(self.underlying.asJava.sendKeys(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(keys).asJava))\n\n /** As {@link #sendKeys(List)}, after a caller validates the prepared input destination. */\n def sendKeys(keys: Vector[String], beforeSend: () => Unit): F[Unit] =\n self.server.execution(self.underlying.asJava.sendKeys(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(keys).asJava, (() => beforeSend())))\n\n /** Sends an ordered group of strings to this pane as the characters they spell. */\n def sendLiteral(keys: Vector[String]): F[Unit] =\n self.server.execution(self.underlying.asJava.sendLiteral(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(keys).asJava))\n\n /** As {@link #sendLiteral(List)}, after a caller validates the prepared input destination. */\n def sendLiteral(keys: Vector[String], beforeSend: () => Unit): F[Unit] =\n self.server.execution(self.underlying.asJava.sendLiteral(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(keys).asJava, (() => beforeSend())))\n\n /** Sends a line to this pane and presses Enter, which is how a command gets run. */\n def sendLine(command: String): F[Unit] =\n self.server.execution(self.underlying.asJava.sendLine(command))\n\n /** Moves this pane into a window of its own, leaving tmux to name it. */\n def breakOut(): F[Window[F]] =\n self.server.execution(self.server.window(io.github.libtmux.scaladsl.Window.wrap(self.underlying.asJava.breakOut())))\n\n /** Expands a tmux format in this pane's context, and answers with what it came to. */\n def expand(format: String): F[String] =\n self.server.execution(self.underlying.asJava.expand(format))\n\n /** Reads validated tmux variables in this pane's format context. */\n def variables(names: Vector[String]): F[_root_.scala.collection.immutable.VectorMap[String, String]] =\n self.server.execution(_root_.scala.collection.immutable.VectorMap.from(_root_.scala.jdk.CollectionConverters.MapHasAsScala(self.underlying.asJava.variables(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(names).asJava)).asScala))\n\n /** Kills whatever runs here and starts the pane's default command again. */\n def respawn(): F[Unit] =\n self.server.execution(self.underlying.asJava.respawn())\n\n /** Restarts the configured pane process in a caller-supplied literal directory, resolved against\nthis process's working directory when relative. */\n def respawnIn(directory: java.nio.file.Path): F[Unit] =\n self.server.execution(self.underlying.asJava.respawnIn(directory))\n\n /** Kills whatever runs here and starts the given command instead. */\n def respawn(command: String*): F[Unit] =\n self.server.execution(self.underlying.asJava.respawn(command*))\n\n /** Sends everything this pane prints to a shell command, until {@link #stopPiping}. */\n def pipeTo(shellCommand: String): F[Unit] =\n self.server.execution(self.underlying.asJava.pipeTo(shellCommand))\n\n /** Stops sending this pane's output anywhere. */\n def stopPiping(): F[Unit] =\n self.server.execution(self.underlying.asJava.stopPiping())\n\n /** Moves this pane into a window of its own with the given name. */\n def breakOut(windowName: String): F[Window[F]] =\n self.server.execution(self.server.window(io.github.libtmux.scaladsl.Window.wrap(self.underlying.asJava.breakOut(windowName))))\n\n /** Splits this pane in half, putting the new one below it. */\n def split(): F[Pane[F]] =\n self.server.execution(self.server.pane(io.github.libtmux.scaladsl.Pane.wrap(self.underlying.asJava.split())))\n\n /** Splits this pane as described. */\n def split(configure: io.github.libtmux.SplitSpec.Builder => Unit): F[Pane[F]] =\n self.server.execution(self.server.pane(io.github.libtmux.scaladsl.Pane.wrap(self.underlying.asJava.split(((it: io.github.libtmux.SplitSpec.Builder) => configure(it))))))\n\n /** Splits this pane according to a spec, which may be reused across panes. */\n def split(spec: io.github.libtmux.SplitSpec): F[Pane[F]] =\n self.server.execution(self.server.pane(io.github.libtmux.scaladsl.Pane.wrap(self.underlying.asJava.split(spec))))\n\n /** Pastes a named buffer into this pane, as though it had been typed. */\n def pasteBuffer(name: String): F[Unit] =\n self.server.execution(self.underlying.asJava.pasteBuffer(name))\n\n /** Pastes text into this pane as one block, leaving nothing behind on the server. */\n def paste(text: String): F[Unit] =\n self.server.execution(self.underlying.asJava.paste(text))\n\n /** As {@link #paste(String)}, after a caller rechecks state once its private buffer is ready. */\n def paste(text: String, beforePaste: () => Unit): F[Unit] =\n self.server.execution(self.underlying.asJava.paste(text, (() => beforePaste())))\n\n /** Discards this pane's scrollback. */\n def clearHistory(): F[Unit] =\n self.server.execution(self.underlying.asJava.clearHistory())\n\n /** Swaps this pane's position with another's. */\n def swapWith(other: Pane[F]): F[Unit] =\n self.server.execution(self.underlying.asJava.swapWith(other.underlying.asJava))\n\n /** Moves this pane into another window, splitting it. */\n def joinTo(window: Window[F]): F[Unit] =\n self.server.execution(self.underlying.asJava.joinTo(window.underlying.asJava))\n\n /** Closes this pane. */\n def kill(): F[Unit] =\n self.server.execution(self.underlying.asJava.kill())\n\n /** Takes a new capture and returns this pane as it is now. */\n def refresh(): F[Pane[F]] =\n self.server.execution(self.server.pane(io.github.libtmux.scaladsl.Pane.wrap(self.underlying.asJava.refresh())))\n }\n\n extension [F[_]](self: Prompt[F])(using F: _root_.cats.effect.Async[F]) {\n\n /** What has been typed at the prompt, oldest first. */\n def history(): F[Vector[String]] =\n self.server.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.history()).asScala.toVector)\n\n /** Forgets what has been typed at the prompt. */\n def clear(): F[Unit] =\n self.server.execution(self.underlying.clear())\n }\n\n extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F]) {\n\n /** Creates a detached session and returns that exact session. */\n def newSession(name: String): F[Session[F]] =\n self.execution(self.session(io.github.libtmux.scaladsl.Session.wrap(self.underlying.asJava.newSession(name))))\n\n /** Creates a session as described. */\n def newSession(configure: io.github.libtmux.SessionSpec.Builder => Unit): F[Session[F]] =\n self.execution(self.session(io.github.libtmux.scaladsl.Session.wrap(self.underlying.asJava.newSession(((it: io.github.libtmux.SessionSpec.Builder) => configure(it))))))\n\n /** Creates a session according to a spec, which may be reused across servers. */\n def newSession(spec: io.github.libtmux.SessionSpec): F[Session[F]] =\n self.execution(self.session(io.github.libtmux.scaladsl.Session.wrap(self.underlying.asJava.newSession(spec))))\n\n /** Whether a session with this name exists. */\n def hasSession(name: String): F[Boolean] =\n self.execution(self.underlying.asJava.hasSession(name))\n\n /** Ends the session with this name, and everything in it. */\n def killSession(name: String): F[Unit] =\n self.execution(self.underlying.asJava.killSession(name))\n\n /** Whether the server is running and answering. */\n def isAlive(): F[Boolean] =\n self.execution(self.underlying.asJava.isAlive())\n\n /** Whether the server is running and answering, within a deadline of the caller's choosing. */\n def isAlive(timeout: _root_.scala.concurrent.duration.FiniteDuration): F[Boolean] =\n self.execution(self.underlying.asJava.isAlive(_root_.scala.jdk.DurationConverters.ScalaDurationOps(timeout).toJava))\n\n /** Requires a running tmux daemon that answers the liveness probe. */\n def requireAlive(): F[Unit] =\n self.execution(self.underlying.asJava.requireAlive())\n\n /** Ends the tmux server and every session on it. */\n def killServer(): F[Unit] =\n self.execution(self.underlying.asJava.killServer())\n\n /** Ends the tmux server and every session on it, within a deadline of the caller's choosing. */\n def killServer(timeout: _root_.scala.concurrent.duration.FiniteDuration): F[Unit] =\n self.execution(self.underlying.asJava.killServer(_root_.scala.jdk.DurationConverters.ScalaDurationOps(timeout).toJava))\n\n /** Expands a tmux format against the server, and answers with what it came to. */\n def expand(format: String): F[String] =\n self.execution(self.underlying.asJava.expand(format))\n\n /** Shell commands run by tmux, and tmux commands chosen by a shell exit status. */\n def shell: Shell[F] =\n new Shell(self.underlying.asJava.shell(), self)\n\n /** The commands this tmux knows. */\n def commands: Commands[F] =\n new Commands(self.underlying.asJava.commands(), self)\n\n /** Locks every client attached to this server. */\n def lock(): F[Unit] =\n self.execution(self.underlying.asJava.lock())\n\n /** The server's message log. */\n def messageLog: MessageLog[F] =\n new MessageLog(self.underlying.asJava.messageLog(), self)\n\n /** The command prompt's history. */\n def prompt: Prompt[F] =\n new Prompt(self.underlying.asJava.prompt(), self)\n\n /** Reads only validated tmux variable names, never caller-authored format syntax. */\n def variables(names: Vector[String]): F[_root_.scala.collection.immutable.VectorMap[String, String]] =\n self.execution(_root_.scala.collection.immutable.VectorMap.from(_root_.scala.jdk.CollectionConverters.MapHasAsScala(self.underlying.asJava.variables(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(names).asJava)).asScala))\n\n /** Chosen fields for every pane on the server, from one listing. */\n def paneFields(names: Vector[String]): F[_root_.scala.collection.immutable.VectorMap[io.github.libtmux.PaneId, _root_.scala.collection.immutable.VectorMap[String, String]]] =\n self.execution(_root_.scala.collection.immutable.VectorMap.from(_root_.scala.jdk.CollectionConverters.MapHasAsScala(self.underlying.asJava.paneFields(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(names).asJava)).asScala.map { case (k, v) => k -> _root_.scala.collection.immutable.VectorMap.from(_root_.scala.jdk.CollectionConverters.MapHasAsScala(v).asScala) }))\n\n /** The server's key bindings: {@code prefix} when binding, every table when listing. */\n def keys: Keys[F] =\n new Keys(self.underlying.asJava.keys(), self)\n\n /** The server's paste buffers, which every session shares. */\n def buffers: Buffers[F] =\n new Buffers(self.underlying.asJava.buffers(), self)\n\n /** Runs a file of tmux commands, as a configuration file would be run. */\n def sourceFile(file: java.nio.file.Path): F[Unit] =\n self.execution(self.underlying.asJava.sourceFile(file))\n\n /** The server-wide options, the ones tmux keeps once per server. */\n def options: Options[F] =\n new Options(self.underlying.asJava.options(), self)\n\n /** The global session options every session inherits unless it sets its own. */\n def globalOptions: Options[F] =\n new Options(self.underlying.asJava.globalOptions(), self)\n\n /** The server's environment, which every session inherits and every new process is given. */\n def environment: Environment[F] =\n new Environment(self.underlying.asJava.environment(), self)\n\n /** The global hooks every session inherits. */\n def hooks: Hooks[F] =\n new Hooks(self.underlying.asJava.hooks(), self)\n\n /** Which tmux this server is running. */\n def version(): F[io.github.libtmux.TmuxVersion] =\n self.execution(self.underlying.asJava.version())\n\n /** Which server this is. */\n def identity: io.github.libtmux.ServerIdentity =\n self.underlying.asJava.identity()\n\n /** How this server was configured. */\n def config: io.github.libtmux.ServerConfig =\n self.underlying.asJava.config()\n\n /** Runs one tmux command against this server. */\n def cmd(argv: String*): F[io.github.libtmux.transport.CommandResult] =\n self.execution(self.underlying.asJava.cmd(argv*))\n\n /** Runs one tmux command against this server. */\n def cmd(argv: Vector[String]): F[io.github.libtmux.transport.CommandResult] =\n self.execution(self.underlying.asJava.cmd(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(argv).asJava))\n\n /** Runs one tmux command against this server, overriding the configured deadline. */\n def cmd(argv: Vector[String], timeout: _root_.scala.concurrent.duration.FiniteDuration): F[io.github.libtmux.transport.CommandResult] =\n self.execution(self.underlying.asJava.cmd(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(argv).asJava, _root_.scala.jdk.DurationConverters.ScalaDurationOps(timeout).toJava))\n\n /** Captures the whole hierarchy in at most four listings, retrying once if the server is\nreplaced. */\n def snapshot(): F[io.github.libtmux.snapshot.ServerSnapshot] =\n self.execution(self.underlying.asJava.snapshot())\n\n /** The sessions this expression matches, captured now. */\n def sessions(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Session]): F[Vector[Session[F]]] =\n self.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.asJava.sessions(expression.asJava)).asScala.iterator.map(v => self.session(io.github.libtmux.scaladsl.Session.wrap(v))).toVector)\n\n /** Every session, captured now. */\n def sessions(): F[Vector[Session[F]]] =\n self.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.asJava.sessions()).asScala.iterator.map(v => self.session(io.github.libtmux.scaladsl.Session.wrap(v))).toVector)\n\n /** Captures every winlink, preserving each session and index placement. */\n def windows(): F[Vector[Window[F]]] =\n self.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.asJava.windows()).asScala.iterator.map(v => self.window(io.github.libtmux.scaladsl.Window.wrap(v))).toVector)\n\n /** The winlinks this expression matches, captured now. */\n def windows(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Window]): F[Vector[Window[F]]] =\n self.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.asJava.windows(expression.asJava)).asScala.iterator.map(v => self.window(io.github.libtmux.scaladsl.Window.wrap(v))).toVector)\n\n /** Captures every pane on the server. */\n def panes(): F[Vector[Pane[F]]] =\n self.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.asJava.panes()).asScala.iterator.map(v => self.pane(io.github.libtmux.scaladsl.Pane.wrap(v))).toVector)\n\n /** The panes this expression matches, captured now. */\n def panes(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Pane]): F[Vector[Pane[F]]] =\n self.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.asJava.panes(expression.asJava)).asScala.iterator.map(v => self.pane(io.github.libtmux.scaladsl.Pane.wrap(v))).toVector)\n\n /** The one session this expression matches, captured now, or empty when none does. */\n def session(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Session]): F[Option[Session[F]]] =\n self.execution(_root_.scala.jdk.OptionConverters.RichOptional(self.underlying.asJava.session(expression.asJava)).toScala.map(v => self.session(io.github.libtmux.scaladsl.Session.wrap(v))))\n\n /** The one window link this expression matches, captured now, or empty when none does. */\n def window(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Window]): F[Option[Window[F]]] =\n self.execution(_root_.scala.jdk.OptionConverters.RichOptional(self.underlying.asJava.window(expression.asJava)).toScala.map(v => self.window(io.github.libtmux.scaladsl.Window.wrap(v))))\n\n /** The one pane this expression matches, captured now, or empty when none does. */\n def pane(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Pane]): F[Option[Pane[F]]] =\n self.execution(_root_.scala.jdk.OptionConverters.RichOptional(self.underlying.asJava.pane(expression.asJava)).toScala.map(v => self.pane(io.github.libtmux.scaladsl.Pane.wrap(v))))\n\n /** How many tmux commands this server's transport runs at once, from {@link ServerConfig#maxConcurrentCommands()} for a server {@link #open}ed here. */\n def admissionBound: Int =\n self.underlying.asJava.admissionBound()\n\n /** The session with this name, captured now. */\n def session(name: String): F[Option[Session[F]]] =\n self.execution(_root_.scala.jdk.OptionConverters.RichOptional(self.underlying.asJava.session(name)).toScala.map(v => self.session(io.github.libtmux.scaladsl.Session.wrap(v))))\n\n /** The session with this id, captured now. */\n def session(id: io.github.libtmux.SessionId): F[Option[Session[F]]] =\n self.execution(_root_.scala.jdk.OptionConverters.RichOptional(self.underlying.asJava.session(id)).toScala.map(v => self.session(io.github.libtmux.scaladsl.Session.wrap(v))))\n\n /** The pane with this id, captured now. */\n def pane(id: io.github.libtmux.PaneId): F[Option[Pane[F]]] =\n self.execution(_root_.scala.jdk.OptionConverters.RichOptional(self.underlying.asJava.pane(id)).toScala.map(v => self.pane(io.github.libtmux.scaladsl.Pane.wrap(v))))\n\n /** The winlink at this exact position, captured now. */\n def window(context: io.github.libtmux.snapshot.WindowContext): F[Option[Window[F]]] =\n self.execution(_root_.scala.jdk.OptionConverters.RichOptional(self.underlying.asJava.window(context)).toScala.map(v => self.window(io.github.libtmux.scaladsl.Window.wrap(v))))\n\n /** Every winlink of the window with this id, captured now. */\n def windows(id: io.github.libtmux.WindowId): F[Vector[Window[F]]] =\n self.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.asJava.windows(id)).asScala.iterator.map(v => self.window(io.github.libtmux.scaladsl.Window.wrap(v))).toVector)\n\n /** Captures every attached client. */\n def clients(): F[Vector[Client[F]]] =\n self.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.asJava.clients()).asScala.iterator.map(v => self.client(io.github.libtmux.scaladsl.Client.wrap(v))).toVector)\n\n /** Captures every session a client is attached to. */\n def attachedSessions(): F[Vector[Session[F]]] =\n self.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.asJava.attachedSessions()).asScala.iterator.map(v => self.session(io.github.libtmux.scaladsl.Session.wrap(v))).toVector)\n\n /** Runs a command that is expected to work, and raises when it did not. */\n def run(argv: Vector[String]): F[io.github.libtmux.transport.CommandResult] =\n self.execution(self.underlying.asJava.run(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(argv).asJava))\n\n /** A builder holding every configuration and ownership choice this server made. */\n def toBuilder: io.github.libtmux.Server.Builder =\n self.underlying.asJava.toBuilder()\n }\n\n extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F]) {\n\n /** The fields this capture stored. */\n def info: io.github.libtmux.snapshot.SessionState =\n self.underlying.asJava.info()\n\n /** The session's stable id. */\n def id: io.github.libtmux.SessionId =\n self.underlying.asJava.id()\n\n /** The session name, which a user may change at any time. */\n def name: String =\n self.underlying.asJava.name()\n\n /** Whether a client was attached when this was captured. */\n def attached: Boolean =\n self.underlying.asJava.attached()\n\n /** The window tmux had active in this session. */\n def activeWindow: Option[Window[F]] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.underlying.asJava.activeWindow()).toScala.map(v => self.server.window(io.github.libtmux.scaladsl.Window.wrap(v)))\n\n /** The active pane of the active window. */\n def activePane: Option[Pane[F]] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.underlying.asJava.activePane()).toScala.map(v => self.server.pane(io.github.libtmux.scaladsl.Pane.wrap(v)))\n\n /** Makes a window of this session the active one. */\n def selectWindow(window: Window[F]): F[Unit] =\n self.server.execution(self.underlying.asJava.selectWindow(window.underlying.asJava))\n\n /** Moves to the next window in this session, wrapping at the end. */\n def nextWindow(): F[Unit] =\n self.server.execution(self.underlying.asJava.nextWindow())\n\n /** Moves to the previous window in this session, wrapping at the start. */\n def previousWindow(): F[Unit] =\n self.server.execution(self.underlying.asJava.previousWindow())\n\n /** Returns to the window that was active before this one. */\n def lastWindow(): F[Unit] =\n self.server.execution(self.underlying.asJava.lastWindow())\n\n /** Detaches every client attached to this session, leaving the session running. */\n def detachClients(): F[Unit] =\n self.server.execution(self.underlying.asJava.detachClients())\n\n /** This session's own options. */\n def options: Options[F] =\n new Options(self.underlying.asJava.options(), self.server)\n\n /** This session's own environment, which a process started in it is given on top of the\nserver's. */\n def environment: Environment[F] =\n new Environment(self.underlying.asJava.environment(), self.server)\n\n /** This session's own hooks. */\n def hooks: Hooks[F] =\n new Hooks(self.underlying.asJava.hooks(), self.server)\n\n /** Sets the scrollback retained by panes created in this session. */\n def setHistoryLimit(lines: Int): F[Unit] =\n self.server.execution(self.underlying.asJava.setHistoryLimit(lines))\n\n /** This session's windows, in tmux's order. */\n def windows: Vector[Window[F]] =\n _root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.asJava.windows()).asScala.iterator.map(v => self.server.window(io.github.libtmux.scaladsl.Window.wrap(v))).toVector\n\n /** Creates a window in this session and returns that exact window. */\n def newWindow(name: String): F[Window[F]] =\n self.server.execution(self.server.window(io.github.libtmux.scaladsl.Window.wrap(self.underlying.asJava.newWindow(name))))\n\n /** Creates a window in this session as described. */\n def newWindow(configure: io.github.libtmux.WindowSpec.Builder => Unit): F[Window[F]] =\n self.server.execution(self.server.window(io.github.libtmux.scaladsl.Window.wrap(self.underlying.asJava.newWindow(((it: io.github.libtmux.WindowSpec.Builder) => configure(it))))))\n\n /** Creates a window in this session according to a spec, which may be reused across sessions. */\n def newWindow(spec: io.github.libtmux.WindowSpec): F[Window[F]] =\n self.server.execution(self.server.window(io.github.libtmux.scaladsl.Window.wrap(self.underlying.asJava.newWindow(spec))))\n\n /** Expands a tmux format in this session's context, and answers with what it came to. */\n def expand(format: String): F[String] =\n self.server.execution(self.underlying.asJava.expand(format))\n\n /** Renames this session and returns its replacement capture. */\n def rename(name: String): F[Session[F]] =\n self.server.execution(self.server.session(io.github.libtmux.scaladsl.Session.wrap(self.underlying.asJava.rename(name))))\n\n /** Ends this session. */\n def kill(): F[Unit] =\n self.server.execution(self.underlying.asJava.kill())\n\n /** Takes a new capture and returns this session as it is now. */\n def refresh(): F[Session[F]] =\n self.server.execution(self.server.session(io.github.libtmux.scaladsl.Session.wrap(self.underlying.asJava.refresh())))\n }\n\n extension [F[_]](self: Shell[F])(using F: _root_.cats.effect.Async[F]) {\n\n /** Runs a shell command for its effect. */\n def run(command: String): F[Unit] =\n self.server.execution(self.underlying.run(command))\n\n /** Runs a shell command and answers with what it printed. */\n def capturing(command: String): F[Vector[String]] =\n self.server.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.capturing(command)).asScala.toVector)\n\n /** Runs one tmux command when a shell command succeeds. */\n def choose(condition: String, whenTrue: String): F[Unit] =\n self.server.execution(self.underlying.choose(condition, whenTrue))\n\n /** Runs one tmux command or another, according to whether a shell command succeeds. */\n def choose(condition: String, whenTrue: String, whenFalse: String): F[Unit] =\n self.server.execution(self.underlying.choose(condition, whenTrue, whenFalse))\n }\n\n extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F]) {\n\n /** The fields this capture stored. */\n def info: io.github.libtmux.snapshot.WindowState =\n self.underlying.asJava.info()\n\n /** The underlying window, shared by every link to it. */\n def id: io.github.libtmux.WindowId =\n self.underlying.asJava.id()\n\n /** Where this link sits in its session. */\n def index: io.github.libtmux.WindowIndex =\n self.underlying.asJava.index()\n\n /** The winlink this handle addresses. */\n def context: io.github.libtmux.snapshot.WindowContext =\n self.underlying.asJava.context()\n\n /** The window name. */\n def name: String =\n self.underlying.asJava.name()\n\n /** Whether this was its session's active window when captured. */\n def active: Boolean =\n self.underlying.asJava.active()\n\n /** Whether the underlying window is linked into more than one session. */\n def linked: Boolean =\n self.underlying.asJava.linked()\n\n /** How large the window was when captured, in terminal cells. */\n def size: io.github.libtmux.Dimensions =\n self.underlying.asJava.size()\n\n /** tmux's own layout for this window, in whichever form this server writes it. */\n def layout: io.github.libtmux.WindowLayout =\n self.underlying.asJava.layout()\n\n /** The pane tmux had active here. */\n def activePane: Option[Pane[F]] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.underlying.asJava.activePane()).toScala.map(v => self.server.pane(io.github.libtmux.scaladsl.Pane.wrap(v)))\n\n /** Makes this the active window of its session. */\n def select(): F[Unit] =\n self.server.execution(self.underlying.asJava.select())\n\n /** The session this link belongs to. */\n def session: Session[F] =\n self.server.session(io.github.libtmux.scaladsl.Session.wrap(self.underlying.asJava.session()))\n\n /** This window's own hooks, which every link to it shares. */\n def hooks: Hooks[F] =\n new Hooks(self.underlying.asJava.hooks(), self.server)\n\n /** This window's own options, which every link to it shares. */\n def options: Options[F] =\n new Options(self.underlying.asJava.options(), self.server)\n\n /** This link's panes, in tmux's order. */\n def panes: Vector[Pane[F]] =\n _root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.asJava.panes()).asScala.iterator.map(v => self.server.pane(io.github.libtmux.scaladsl.Pane.wrap(v))).toVector\n\n /** Splits this window's active pane in half, putting the new one below it. */\n def split(): F[Pane[F]] =\n self.server.execution(self.server.pane(io.github.libtmux.scaladsl.Pane.wrap(self.underlying.asJava.split())))\n\n /** Splits this window's active pane as described. */\n def split(configure: io.github.libtmux.SplitSpec.Builder => Unit): F[Pane[F]] =\n self.server.execution(self.server.pane(io.github.libtmux.scaladsl.Pane.wrap(self.underlying.asJava.split(((it: io.github.libtmux.SplitSpec.Builder) => configure(it))))))\n\n /** Splits this window's active pane according to a spec, which may be reused across windows. */\n def split(spec: io.github.libtmux.SplitSpec): F[Pane[F]] =\n self.server.execution(self.server.pane(io.github.libtmux.scaladsl.Pane.wrap(self.underlying.asJava.split(spec))))\n\n /** Expands a tmux format in this window's context, and answers with what it came to. */\n def expand(format: String): F[String] =\n self.server.execution(self.underlying.asJava.expand(format))\n\n /** Renames this window and returns its replacement capture. */\n def rename(name: String): F[Window[F]] =\n self.server.execution(self.server.window(io.github.libtmux.scaladsl.Window.wrap(self.underlying.asJava.rename(name))))\n\n /** Links this window into another session, so one window sits in both. */\n def linkTo(session: Session[F]): F[Unit] =\n self.server.execution(self.underlying.asJava.linkTo(session.underlying.asJava))\n\n /** Removes this link, leaving the window wherever else it is linked. */\n def unlink(): F[Unit] =\n self.server.execution(self.underlying.asJava.unlink())\n\n /** Moves this window into another session. */\n def moveTo(session: Session[F]): F[Unit] =\n self.server.execution(self.underlying.asJava.moveTo(session.underlying.asJava))\n\n /** Moves this window to an exact index in another session. */\n def moveTo(session: Session[F], index: Int): F[Unit] =\n self.server.execution(self.underlying.asJava.moveTo(session.underlying.asJava, index))\n\n /** Resizes this window in terminal cells. */\n def resizeTo(size: io.github.libtmux.Dimensions): F[Unit] =\n self.server.execution(self.underlying.asJava.resizeTo(size))\n\n /** Copies input to one pane into every pane in this window, until {@link #stopSynchronizingPanes}. */\n def synchronizePanes(): F[Unit] =\n self.server.execution(self.underlying.asJava.synchronizePanes())\n\n /** Stops copying input between this window's panes. */\n def stopSynchronizingPanes(): F[Unit] =\n self.server.execution(self.underlying.asJava.stopSynchronizingPanes())\n\n /** Rotates the panes within this window. */\n def rotate(): F[Unit] =\n self.server.execution(self.underlying.asJava.rotate())\n\n /** Rearranges this window's panes into one of tmux's built-in layouts. */\n def selectLayout(layout: io.github.libtmux.Layout): F[Unit] =\n self.server.execution(self.underlying.asJava.selectLayout(layout))\n\n /** Moves to the next built-in layout, as tmux's own binding does. */\n def nextLayout(): F[Unit] =\n self.server.execution(self.underlying.asJava.nextLayout())\n\n /** Moves to the previous built-in layout, as tmux's own binding does. */\n def previousLayout(): F[Unit] =\n self.server.execution(self.underlying.asJava.previousLayout())\n\n /** Restores an exact arrangement previously read from {@link #layout()}. */\n def applyLayout(layout: io.github.libtmux.WindowLayout): F[Unit] =\n self.server.execution(self.underlying.asJava.applyLayout(layout))\n\n /** As {@link #applyLayout(WindowLayout)}, for a layout held as text — one saved to a file, say. */\n def applyLayout(layout: String): F[Unit] =\n self.server.execution(self.underlying.asJava.applyLayout(layout))\n\n /** Kills what is running in this window and starts it again. */\n def respawn(): F[Unit] =\n self.server.execution(self.underlying.asJava.respawn())\n\n /** Shows a popup over this window, running a command in it. */\n def displayPopup(shellCommand: String): F[Unit] =\n self.server.execution(self.underlying.asJava.displayPopup(shellCommand))\n\n /** Closes this window. */\n def kill(): F[Unit] =\n self.server.execution(self.underlying.asJava.kill())\n\n /** Takes a new capture and returns this winlink as it is now. */\n def refresh(): F[Window[F]] =\n self.server.execution(self.server.window(io.github.libtmux.scaladsl.Window.wrap(self.underlying.asJava.refresh())))\n }\n","libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala":"package io.github.libtmux.scaladsl\n\n// Generated from the operation catalog by build-logic/codegen (ScalaOperationGenerator). Not checked in.\n\n extension (self: Client) {\n\n /** The client's terminal name, which is how tmux addresses it. */\n def name: String =\n self.asJava.name()\n\n /** Detaches this client, leaving whatever it was attached to running. */\n def detach(): Unit =\n self.asJava.detach()\n\n /** Detaches every other client, leaving this one attached. */\n def detachOthers(): Unit =\n self.asJava.detachOthers()\n\n /** Moves this client to another session. */\n def switchTo(session: Session): Unit =\n self.asJava.switchTo(session.asJava)\n\n /** Asks tmux to redraw this client. */\n def redraw(): Unit =\n self.asJava.redraw()\n\n /** The server this client is connected to. */\n def server: Server =\n Server.wrap(self.asJava.server())\n\n /** The session this client was attached to when captured. */\n def session: Option[Session] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.asJava.session()).toScala.map(v => Session.wrap(v))\n\n /** What this client was looking at when captured. */\n def attachment: Option[io.github.libtmux.ClientAttachment] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.asJava.attachment()).toScala\n\n /** Takes a new capture and returns what this client is looking at now. */\n def fetchAttachment(): Option[io.github.libtmux.ClientAttachment] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.asJava.fetchAttachment()).toScala\n\n /** Takes a new capture and returns this client as it is now. */\n def refresh(): Client =\n Client.wrap(self.asJava.refresh())\n }\n\n extension (self: Pane) {\n\n /** The fields this capture stored. */\n def info: io.github.libtmux.snapshot.PaneState =\n self.asJava.info()\n\n /** The pane's stable id. */\n def id: io.github.libtmux.PaneId =\n self.asJava.id()\n\n /** The pane's position, which shifts as neighbours come and go. */\n def index: Int =\n self.asJava.index()\n\n /** Whether this was its window's active pane when captured. */\n def active: Boolean =\n self.asJava.active()\n\n /** The command tmux reported running here. */\n def currentCommand: String =\n self.asJava.currentCommand()\n\n /** Whether this pane floats, or empty when the running tmux cannot say. */\n def floating: Option[Boolean] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.asJava.floating()).toScala.map(v => v.booleanValue())\n\n /** How large the pane was when captured, in terminal cells. */\n def size: io.github.libtmux.Dimensions =\n self.asJava.size()\n\n /** Where the pane's top-left corner sat in its window when captured, in terminal cells. */\n def position: io.github.libtmux.PanePosition =\n self.asJava.position()\n\n /** The pane title, which a program running inside it can change. */\n def title: String =\n self.asJava.title()\n\n /** The working directory tmux reported for the pane. */\n def currentPath: java.nio.file.Path =\n self.asJava.currentPath()\n\n /** The working directory tmux reported for the pane, exactly as tmux reported it. */\n def currentPathText: String =\n self.asJava.currentPathText()\n\n /** The process id of the program running in the pane, captured at the time of the read this\nhandle came from. */\n def pid: Option[Long] =\n _root_.scala.jdk.OptionConverters.RichOptionalLong(self.asJava.pid()).toScala\n\n /** Whether this pane's process has exited, read fresh rather than from the capture. */\n def dead(): Boolean =\n self.asJava.dead()\n\n /** Grows this pane by a number of cells in one direction. */\n def resize(direction: io.github.libtmux.Direction, cells: Int): Unit =\n self.asJava.resize(direction, cells)\n\n /** Which sides of its window the pane touches. */\n def edges: io.github.libtmux.PaneEdges =\n self.asJava.edges()\n\n /** Puts this pane into copy mode, where its scrollback can be navigated. */\n def copyMode(): Unit =\n self.asJava.copyMode()\n\n /** Which mode this pane is in at this moment, or empty when it is in none. */\n def mode(): Option[io.github.libtmux.PaneMode] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.asJava.mode()).toScala\n\n /** Leaves whichever mode this pane is in. */\n def exitMode(): Unit =\n self.asJava.exitMode()\n\n /** Makes this the active pane of its window. */\n def select(): Unit =\n self.asJava.select()\n\n /** Retitles this pane and returns its replacement capture. */\n def retitle(title: String): Pane =\n Pane.wrap(self.asJava.retitle(title))\n\n /** Resizes this pane. */\n def resizeTo(size: io.github.libtmux.Dimensions): Unit =\n self.asJava.resizeTo(size)\n\n /** The server this pane lives on. */\n def server: Server =\n Server.wrap(self.asJava.server())\n\n /** Collects commands fenced to the server incarnation that produced this pane. */\n def batch: io.github.libtmux.batch.Batch =\n self.asJava.batch()\n\n /** The window link this pane was reached through. */\n def window: Window =\n Window.wrap(self.asJava.window())\n\n /** This pane's own hooks. */\n def hooks: io.github.libtmux.Hooks =\n self.asJava.hooks()\n\n /** This pane's own options. */\n def options: io.github.libtmux.Options =\n self.asJava.options()\n\n /** This pane's visible content, one element per line. */\n def capture(): Vector[String] =\n _root_.scala.jdk.CollectionConverters.ListHasAsScala(self.asJava.capture()).asScala.toVector\n\n /** Notes text that reached this pane without going through this handle, so a wait discounts its\necho the way it discounts text sent through {@link #sendLiteral}. */\n def noteTyped(text: String): Unit =\n self.asJava.noteTyped(text)\n\n /** Reads part of this pane, described by a lambda. */\n def capture(configure: io.github.libtmux.CaptureSpec.Builder => Unit): Vector[String] =\n _root_.scala.jdk.CollectionConverters.ListHasAsScala(self.asJava.capture(((it: io.github.libtmux.CaptureSpec.Builder) => configure(it)))).asScala.toVector\n\n /** Reads part of this pane according to a spec, which may be reused across panes. */\n def capture(spec: io.github.libtmux.CaptureSpec): Vector[String] =\n _root_.scala.jdk.CollectionConverters.ListHasAsScala(self.asJava.capture(spec)).asScala.toVector\n\n /** Sends keys to this pane without pressing Enter. */\n def send(keys: String): Unit =\n self.asJava.send(keys)\n\n /** Sends an ordered group of key names to this pane, as tmux resolves them. */\n def sendKeys(keys: Vector[String]): Unit =\n self.asJava.sendKeys(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(keys).asJava)\n\n /** As {@link #sendKeys(List)}, after a caller validates the prepared input destination. */\n def sendKeys(keys: Vector[String], beforeSend: () => Unit): Unit =\n self.asJava.sendKeys(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(keys).asJava, (() => beforeSend()))\n\n /** Sends an ordered group of strings to this pane as the characters they spell. */\n def sendLiteral(keys: Vector[String]): Unit =\n self.asJava.sendLiteral(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(keys).asJava)\n\n /** As {@link #sendLiteral(List)}, after a caller validates the prepared input destination. */\n def sendLiteral(keys: Vector[String], beforeSend: () => Unit): Unit =\n self.asJava.sendLiteral(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(keys).asJava, (() => beforeSend()))\n\n /** Sends a line to this pane and presses Enter, which is how a command gets run. */\n def sendLine(command: String): Unit =\n self.asJava.sendLine(command)\n\n /** Moves this pane into a window of its own, leaving tmux to name it. */\n def breakOut(): Window =\n Window.wrap(self.asJava.breakOut())\n\n /** Expands a tmux format in this pane's context, and answers with what it came to. */\n def expand(format: String): String =\n self.asJava.expand(format)\n\n /** Reads validated tmux variables in this pane's format context. */\n def variables(names: Vector[String]): _root_.scala.collection.immutable.VectorMap[String, String] =\n _root_.scala.collection.immutable.VectorMap.from(_root_.scala.jdk.CollectionConverters.MapHasAsScala(self.asJava.variables(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(names).asJava)).asScala)\n\n /** Kills whatever runs here and starts the pane's default command again. */\n def respawn(): Unit =\n self.asJava.respawn()\n\n /** Restarts the configured pane process in a caller-supplied literal directory, resolved against\nthis process's working directory when relative. */\n def respawnIn(directory: java.nio.file.Path): Unit =\n self.asJava.respawnIn(directory)\n\n /** Kills whatever runs here and starts the given command instead. */\n def respawn(command: String*): Unit =\n self.asJava.respawn(command*)\n\n /** Sends everything this pane prints to a shell command, until {@link #stopPiping}. */\n def pipeTo(shellCommand: String): Unit =\n self.asJava.pipeTo(shellCommand)\n\n /** Stops sending this pane's output anywhere. */\n def stopPiping(): Unit =\n self.asJava.stopPiping()\n\n /** Moves this pane into a window of its own with the given name. */\n def breakOut(windowName: String): Window =\n Window.wrap(self.asJava.breakOut(windowName))\n\n /** Splits this pane in half, putting the new one below it. */\n def split(): Pane =\n Pane.wrap(self.asJava.split())\n\n /** Splits this pane as described. */\n def split(configure: io.github.libtmux.SplitSpec.Builder => Unit): Pane =\n Pane.wrap(self.asJava.split(((it: io.github.libtmux.SplitSpec.Builder) => configure(it))))\n\n /** Splits this pane according to a spec, which may be reused across panes. */\n def split(spec: io.github.libtmux.SplitSpec): Pane =\n Pane.wrap(self.asJava.split(spec))\n\n /** Pastes a named buffer into this pane, as though it had been typed. */\n def pasteBuffer(name: String): Unit =\n self.asJava.pasteBuffer(name)\n\n /** Pastes text into this pane as one block, leaving nothing behind on the server. */\n def paste(text: String): Unit =\n self.asJava.paste(text)\n\n /** As {@link #paste(String)}, after a caller rechecks state once its private buffer is ready. */\n def paste(text: String, beforePaste: () => Unit): Unit =\n self.asJava.paste(text, (() => beforePaste()))\n\n /** Discards this pane's scrollback. */\n def clearHistory(): Unit =\n self.asJava.clearHistory()\n\n /** Swaps this pane's position with another's. */\n def swapWith(other: Pane): Unit =\n self.asJava.swapWith(other.asJava)\n\n /** Moves this pane into another window, splitting it. */\n def joinTo(window: Window): Unit =\n self.asJava.joinTo(window.asJava)\n\n /** Closes this pane. */\n def kill(): Unit =\n self.asJava.kill()\n\n /** Takes a new capture and returns this pane as it is now. */\n def refresh(): Pane =\n Pane.wrap(self.asJava.refresh())\n }\n\n extension (self: Server) {\n\n /** Creates a detached session and returns that exact session. */\n def newSession(name: String): Session =\n Session.wrap(self.asJava.newSession(name))\n\n /** Creates a session as described. */\n def newSession(configure: io.github.libtmux.SessionSpec.Builder => Unit): Session =\n Session.wrap(self.asJava.newSession(((it: io.github.libtmux.SessionSpec.Builder) => configure(it))))\n\n /** Creates a session according to a spec, which may be reused across servers. */\n def newSession(spec: io.github.libtmux.SessionSpec): Session =\n Session.wrap(self.asJava.newSession(spec))\n\n /** Whether a session with this name exists. */\n def hasSession(name: String): Boolean =\n self.asJava.hasSession(name)\n\n /** Ends the session with this name, and everything in it. */\n def killSession(name: String): Unit =\n self.asJava.killSession(name)\n\n /** Whether the server is running and answering. */\n def isAlive(): Boolean =\n self.asJava.isAlive()\n\n /** Whether the server is running and answering, within a deadline of the caller's choosing. */\n def isAlive(timeout: _root_.scala.concurrent.duration.FiniteDuration): Boolean =\n self.asJava.isAlive(_root_.scala.jdk.DurationConverters.ScalaDurationOps(timeout).toJava)\n\n /** Requires a running tmux daemon that answers the liveness probe. */\n def requireAlive(): Unit =\n self.asJava.requireAlive()\n\n /** Ends the tmux server and every session on it. */\n def killServer(): Unit =\n self.asJava.killServer()\n\n /** Ends the tmux server and every session on it, within a deadline of the caller's choosing. */\n def killServer(timeout: _root_.scala.concurrent.duration.FiniteDuration): Unit =\n self.asJava.killServer(_root_.scala.jdk.DurationConverters.ScalaDurationOps(timeout).toJava)\n\n /** Collects several commands to run in one tmux invocation. */\n def batch: io.github.libtmux.batch.Batch =\n self.asJava.batch()\n\n /** Starts a chain of commands where each one acts on what the last one made. */\n def chain: io.github.libtmux.CommandChain =\n self.asJava.chain()\n\n /** Expands a tmux format against the server, and answers with what it came to. */\n def expand(format: String): String =\n self.asJava.expand(format)\n\n /** Shell commands run by tmux, and tmux commands chosen by a shell exit status. */\n def shell: io.github.libtmux.Shell =\n self.asJava.shell()\n\n /** The commands this tmux knows. */\n def commands: io.github.libtmux.Commands =\n self.asJava.commands()\n\n /** Locks every client attached to this server. */\n def lock(): Unit =\n self.asJava.lock()\n\n /** The server's message log. */\n def messageLog: io.github.libtmux.MessageLog =\n self.asJava.messageLog()\n\n /** The command prompt's history. */\n def prompt: io.github.libtmux.Prompt =\n self.asJava.prompt()\n\n /** One of this server's wait-for channels, which is where a signal is sent and waited for. */\n def channel(name: String): io.github.libtmux.Channel =\n self.asJava.channel(name)\n\n /** Reads only validated tmux variable names, never caller-authored format syntax. */\n def variables(names: Vector[String]): _root_.scala.collection.immutable.VectorMap[String, String] =\n _root_.scala.collection.immutable.VectorMap.from(_root_.scala.jdk.CollectionConverters.MapHasAsScala(self.asJava.variables(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(names).asJava)).asScala)\n\n /** Chosen fields for every pane on the server, from one listing. */\n def paneFields(names: Vector[String]): _root_.scala.collection.immutable.VectorMap[io.github.libtmux.PaneId, _root_.scala.collection.immutable.VectorMap[String, String]] =\n _root_.scala.collection.immutable.VectorMap.from(_root_.scala.jdk.CollectionConverters.MapHasAsScala(self.asJava.paneFields(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(names).asJava)).asScala.map { case (k, v) => k -> _root_.scala.collection.immutable.VectorMap.from(_root_.scala.jdk.CollectionConverters.MapHasAsScala(v).asScala) })\n\n /** The server's key bindings: {@code prefix} when binding, every table when listing. */\n def keys: io.github.libtmux.Keys =\n self.asJava.keys()\n\n /** The server's paste buffers, which every session shares. */\n def buffers: io.github.libtmux.Buffers =\n self.asJava.buffers()\n\n /** Runs a file of tmux commands, as a configuration file would be run. */\n def sourceFile(file: java.nio.file.Path): Unit =\n self.asJava.sourceFile(file)\n\n /** The server-wide options, the ones tmux keeps once per server. */\n def options: io.github.libtmux.Options =\n self.asJava.options()\n\n /** The global session options every session inherits unless it sets its own. */\n def globalOptions: io.github.libtmux.Options =\n self.asJava.globalOptions()\n\n /** The server's environment, which every session inherits and every new process is given. */\n def environment: io.github.libtmux.Environment =\n self.asJava.environment()\n\n /** The global hooks every session inherits. */\n def hooks: io.github.libtmux.Hooks =\n self.asJava.hooks()\n\n /** Which tmux this server is running. */\n def version(): io.github.libtmux.TmuxVersion =\n self.asJava.version()\n\n /** Which server this is. */\n def identity: io.github.libtmux.ServerIdentity =\n self.asJava.identity()\n\n /** How this server was configured. */\n def config: io.github.libtmux.ServerConfig =\n self.asJava.config()\n\n /** Runs one tmux command against this server. */\n def cmd(argv: String*): io.github.libtmux.transport.CommandResult =\n self.asJava.cmd(argv*)\n\n /** Runs one tmux command against this server. */\n def cmd(argv: Vector[String]): io.github.libtmux.transport.CommandResult =\n self.asJava.cmd(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(argv).asJava)\n\n /** Runs one tmux command against this server, overriding the configured deadline. */\n def cmd(argv: Vector[String], timeout: _root_.scala.concurrent.duration.FiniteDuration): io.github.libtmux.transport.CommandResult =\n self.asJava.cmd(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(argv).asJava, _root_.scala.jdk.DurationConverters.ScalaDurationOps(timeout).toJava)\n\n /** Captures the whole hierarchy in at most four listings, retrying once if the server is\nreplaced. */\n def snapshot(): io.github.libtmux.snapshot.ServerSnapshot =\n self.asJava.snapshot()\n\n /** The sessions this expression matches, captured now. */\n def sessions(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Session]): Vector[Session] =\n _root_.scala.jdk.CollectionConverters.ListHasAsScala(self.asJava.sessions(expression.asJava)).asScala.iterator.map(v => Session.wrap(v)).toVector\n\n /** Every session, captured now. */\n def sessions(): Vector[Session] =\n _root_.scala.jdk.CollectionConverters.ListHasAsScala(self.asJava.sessions()).asScala.iterator.map(v => Session.wrap(v)).toVector\n\n /** Captures every winlink, preserving each session and index placement. */\n def windows(): Vector[Window] =\n _root_.scala.jdk.CollectionConverters.ListHasAsScala(self.asJava.windows()).asScala.iterator.map(v => Window.wrap(v)).toVector\n\n /** The winlinks this expression matches, captured now. */\n def windows(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Window]): Vector[Window] =\n _root_.scala.jdk.CollectionConverters.ListHasAsScala(self.asJava.windows(expression.asJava)).asScala.iterator.map(v => Window.wrap(v)).toVector\n\n /** Captures every pane on the server. */\n def panes(): Vector[Pane] =\n _root_.scala.jdk.CollectionConverters.ListHasAsScala(self.asJava.panes()).asScala.iterator.map(v => Pane.wrap(v)).toVector\n\n /** The panes this expression matches, captured now. */\n def panes(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Pane]): Vector[Pane] =\n _root_.scala.jdk.CollectionConverters.ListHasAsScala(self.asJava.panes(expression.asJava)).asScala.iterator.map(v => Pane.wrap(v)).toVector\n\n /** The one session this expression matches, captured now, or empty when none does. */\n def session(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Session]): Option[Session] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.asJava.session(expression.asJava)).toScala.map(v => Session.wrap(v))\n\n /** The one window link this expression matches, captured now, or empty when none does. */\n def window(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Window]): Option[Window] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.asJava.window(expression.asJava)).toScala.map(v => Window.wrap(v))\n\n /** The one pane this expression matches, captured now, or empty when none does. */\n def pane(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Pane]): Option[Pane] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.asJava.pane(expression.asJava)).toScala.map(v => Pane.wrap(v))\n\n /** How many tmux commands this server's transport runs at once, from {@link ServerConfig#maxConcurrentCommands()} for a server {@link #open}ed here. */\n def admissionBound: Int =\n self.asJava.admissionBound()\n\n /** The session with this name, captured now. */\n def session(name: String): Option[Session] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.asJava.session(name)).toScala.map(v => Session.wrap(v))\n\n /** The session with this id, captured now. */\n def session(id: io.github.libtmux.SessionId): Option[Session] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.asJava.session(id)).toScala.map(v => Session.wrap(v))\n\n /** The pane with this id, captured now. */\n def pane(id: io.github.libtmux.PaneId): Option[Pane] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.asJava.pane(id)).toScala.map(v => Pane.wrap(v))\n\n /** The winlink at this exact position, captured now. */\n def window(context: io.github.libtmux.snapshot.WindowContext): Option[Window] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.asJava.window(context)).toScala.map(v => Window.wrap(v))\n\n /** Every winlink of the window with this id, captured now. */\n def windows(id: io.github.libtmux.WindowId): Vector[Window] =\n _root_.scala.jdk.CollectionConverters.ListHasAsScala(self.asJava.windows(id)).asScala.iterator.map(v => Window.wrap(v)).toVector\n\n /** Captures every attached client. */\n def clients(): Vector[Client] =\n _root_.scala.jdk.CollectionConverters.ListHasAsScala(self.asJava.clients()).asScala.iterator.map(v => Client.wrap(v)).toVector\n\n /** Captures every session a client is attached to. */\n def attachedSessions(): Vector[Session] =\n _root_.scala.jdk.CollectionConverters.ListHasAsScala(self.asJava.attachedSessions()).asScala.iterator.map(v => Session.wrap(v)).toVector\n\n /** Runs a command that is expected to work, and raises when it did not. */\n def run(argv: Vector[String]): io.github.libtmux.transport.CommandResult =\n self.asJava.run(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(argv).asJava)\n\n /** A builder holding every configuration and ownership choice this server made. */\n def toBuilder: io.github.libtmux.Server.Builder =\n self.asJava.toBuilder()\n }\n\n extension (self: Session) {\n\n /** The fields this capture stored. */\n def info: io.github.libtmux.snapshot.SessionState =\n self.asJava.info()\n\n /** The session's stable id. */\n def id: io.github.libtmux.SessionId =\n self.asJava.id()\n\n /** The session name, which a user may change at any time. */\n def name: String =\n self.asJava.name()\n\n /** Whether a client was attached when this was captured. */\n def attached: Boolean =\n self.asJava.attached()\n\n /** The server this session lives on. */\n def server: Server =\n Server.wrap(self.asJava.server())\n\n /** The window tmux had active in this session. */\n def activeWindow: Option[Window] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.asJava.activeWindow()).toScala.map(v => Window.wrap(v))\n\n /** The active pane of the active window. */\n def activePane: Option[Pane] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.asJava.activePane()).toScala.map(v => Pane.wrap(v))\n\n /** Makes a window of this session the active one. */\n def selectWindow(window: Window): Unit =\n self.asJava.selectWindow(window.asJava)\n\n /** Moves to the next window in this session, wrapping at the end. */\n def nextWindow(): Unit =\n self.asJava.nextWindow()\n\n /** Moves to the previous window in this session, wrapping at the start. */\n def previousWindow(): Unit =\n self.asJava.previousWindow()\n\n /** Returns to the window that was active before this one. */\n def lastWindow(): Unit =\n self.asJava.lastWindow()\n\n /** Detaches every client attached to this session, leaving the session running. */\n def detachClients(): Unit =\n self.asJava.detachClients()\n\n /** This session's own options. */\n def options: io.github.libtmux.Options =\n self.asJava.options()\n\n /** This session's own environment, which a process started in it is given on top of the\nserver's. */\n def environment: io.github.libtmux.Environment =\n self.asJava.environment()\n\n /** This session's own hooks. */\n def hooks: io.github.libtmux.Hooks =\n self.asJava.hooks()\n\n /** Sets the scrollback retained by panes created in this session. */\n def setHistoryLimit(lines: Int): Unit =\n self.asJava.setHistoryLimit(lines)\n\n /** This session's windows, in tmux's order. */\n def windows: Vector[Window] =\n _root_.scala.jdk.CollectionConverters.ListHasAsScala(self.asJava.windows()).asScala.iterator.map(v => Window.wrap(v)).toVector\n\n /** Creates a window in this session and returns that exact window. */\n def newWindow(name: String): Window =\n Window.wrap(self.asJava.newWindow(name))\n\n /** Creates a window in this session as described. */\n def newWindow(configure: io.github.libtmux.WindowSpec.Builder => Unit): Window =\n Window.wrap(self.asJava.newWindow(((it: io.github.libtmux.WindowSpec.Builder) => configure(it))))\n\n /** Creates a window in this session according to a spec, which may be reused across sessions. */\n def newWindow(spec: io.github.libtmux.WindowSpec): Window =\n Window.wrap(self.asJava.newWindow(spec))\n\n /** Expands a tmux format in this session's context, and answers with what it came to. */\n def expand(format: String): String =\n self.asJava.expand(format)\n\n /** Renames this session and returns its replacement capture. */\n def rename(name: String): Session =\n Session.wrap(self.asJava.rename(name))\n\n /** Ends this session. */\n def kill(): Unit =\n self.asJava.kill()\n\n /** Takes a new capture and returns this session as it is now. */\n def refresh(): Session =\n Session.wrap(self.asJava.refresh())\n }\n\n extension (self: Window) {\n\n /** The fields this capture stored. */\n def info: io.github.libtmux.snapshot.WindowState =\n self.asJava.info()\n\n /** The underlying window, shared by every link to it. */\n def id: io.github.libtmux.WindowId =\n self.asJava.id()\n\n /** Where this link sits in its session. */\n def index: io.github.libtmux.WindowIndex =\n self.asJava.index()\n\n /** The winlink this handle addresses. */\n def context: io.github.libtmux.snapshot.WindowContext =\n self.asJava.context()\n\n /** The window name. */\n def name: String =\n self.asJava.name()\n\n /** Whether this was its session's active window when captured. */\n def active: Boolean =\n self.asJava.active()\n\n /** Whether the underlying window is linked into more than one session. */\n def linked: Boolean =\n self.asJava.linked()\n\n /** How large the window was when captured, in terminal cells. */\n def size: io.github.libtmux.Dimensions =\n self.asJava.size()\n\n /** tmux's own layout for this window, in whichever form this server writes it. */\n def layout: io.github.libtmux.WindowLayout =\n self.asJava.layout()\n\n /** The pane tmux had active here. */\n def activePane: Option[Pane] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.asJava.activePane()).toScala.map(v => Pane.wrap(v))\n\n /** Makes this the active window of its session. */\n def select(): Unit =\n self.asJava.select()\n\n /** The server this window lives on. */\n def server: Server =\n Server.wrap(self.asJava.server())\n\n /** The session this link belongs to. */\n def session: Session =\n Session.wrap(self.asJava.session())\n\n /** This window's own hooks, which every link to it shares. */\n def hooks: io.github.libtmux.Hooks =\n self.asJava.hooks()\n\n /** This window's own options, which every link to it shares. */\n def options: io.github.libtmux.Options =\n self.asJava.options()\n\n /** This link's panes, in tmux's order. */\n def panes: Vector[Pane] =\n _root_.scala.jdk.CollectionConverters.ListHasAsScala(self.asJava.panes()).asScala.iterator.map(v => Pane.wrap(v)).toVector\n\n /** Splits this window's active pane in half, putting the new one below it. */\n def split(): Pane =\n Pane.wrap(self.asJava.split())\n\n /** Splits this window's active pane as described. */\n def split(configure: io.github.libtmux.SplitSpec.Builder => Unit): Pane =\n Pane.wrap(self.asJava.split(((it: io.github.libtmux.SplitSpec.Builder) => configure(it))))\n\n /** Splits this window's active pane according to a spec, which may be reused across windows. */\n def split(spec: io.github.libtmux.SplitSpec): Pane =\n Pane.wrap(self.asJava.split(spec))\n\n /** Expands a tmux format in this window's context, and answers with what it came to. */\n def expand(format: String): String =\n self.asJava.expand(format)\n\n /** Renames this window and returns its replacement capture. */\n def rename(name: String): Window =\n Window.wrap(self.asJava.rename(name))\n\n /** Links this window into another session, so one window sits in both. */\n def linkTo(session: Session): Unit =\n self.asJava.linkTo(session.asJava)\n\n /** Removes this link, leaving the window wherever else it is linked. */\n def unlink(): Unit =\n self.asJava.unlink()\n\n /** Moves this window into another session. */\n def moveTo(session: Session): Unit =\n self.asJava.moveTo(session.asJava)\n\n /** Moves this window to an exact index in another session. */\n def moveTo(session: Session, index: Int): Unit =\n self.asJava.moveTo(session.asJava, index)\n\n /** Resizes this window in terminal cells. */\n def resizeTo(size: io.github.libtmux.Dimensions): Unit =\n self.asJava.resizeTo(size)\n\n /** Copies input to one pane into every pane in this window, until {@link #stopSynchronizingPanes}. */\n def synchronizePanes(): Unit =\n self.asJava.synchronizePanes()\n\n /** Stops copying input between this window's panes. */\n def stopSynchronizingPanes(): Unit =\n self.asJava.stopSynchronizingPanes()\n\n /** Rotates the panes within this window. */\n def rotate(): Unit =\n self.asJava.rotate()\n\n /** Rearranges this window's panes into one of tmux's built-in layouts. */\n def selectLayout(layout: io.github.libtmux.Layout): Unit =\n self.asJava.selectLayout(layout)\n\n /** Moves to the next built-in layout, as tmux's own binding does. */\n def nextLayout(): Unit =\n self.asJava.nextLayout()\n\n /** Moves to the previous built-in layout, as tmux's own binding does. */\n def previousLayout(): Unit =\n self.asJava.previousLayout()\n\n /** Restores an exact arrangement previously read from {@link #layout()}. */\n def applyLayout(layout: io.github.libtmux.WindowLayout): Unit =\n self.asJava.applyLayout(layout)\n\n /** As {@link #applyLayout(WindowLayout)}, for a layout held as text — one saved to a file, say. */\n def applyLayout(layout: String): Unit =\n self.asJava.applyLayout(layout)\n\n /** Kills what is running in this window and starts it again. */\n def respawn(): Unit =\n self.asJava.respawn()\n\n /** Shows a popup over this window, running a command in it. */\n def displayPopup(shellCommand: String): Unit =\n self.asJava.displayPopup(shellCommand)\n\n /** Closes this window. */\n def kill(): Unit =\n self.asJava.kill()\n\n /** Takes a new capture and returns this winlink as it is now. */\n def refresh(): Window =\n Window.wrap(self.asJava.refresh())\n }\n"},"repo":"libtmux/libtmux-java"} +{"port":"scala","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractor":"@libtmux/api-model (scala syntax)","symbols":[{"id":"io.github.libtmux.scaladsl.cats.Batch","name":"Batch","kind":"class","signatures":[{"raw":"final class Batch[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"_":"scala.jdk.CollectionConverters._","BatchResult":"io.github.libtmux.batch.BatchResult","JavaBatch":"io.github.libtmux.batch.Batch"},"modifiers":[],"doc":{"summary":"An immutable batch plan. Construction does no tmux I/O and never touches a shared Java object: each `add` returns a new value holding one more argument vector. Each `run`/`length` builds a fresh Java `Batch` from `create` and dispatches it through `Execution`, so it is F-suspended, cancellation-safe, and admission-bounded like every other Cats operation — cancelling one run never disturbs a concurrent one, since neither shares Java state."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Batch.scala","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-batch"},{"id":"io.github.libtmux.scaladsl.cats.Batch.add","name":"add","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Batch","signatures":[{"raw":"def add(argv: Seq[String]): Batch[F]","params":[{"name":"argv","type":"Seq[String]"}],"returns":"Batch[F]"},{"raw":"def add(command: String, arguments: String*): Batch[F]","params":[{"name":"command","type":"String"},{"name":"arguments","type":"String*"}],"returns":"Batch[F]"}],"imports":{"_":"scala.jdk.CollectionConverters._","BatchResult":"io.github.libtmux.batch.BatchResult","JavaBatch":"io.github.libtmux.batch.Batch"},"modifiers":["overload"],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Batch.scala","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-batch-add"},{"id":"io.github.libtmux.scaladsl.cats.Batch.size","name":"size","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Batch","signatures":[{"raw":"def size: Int","params":[],"returns":"Int"}],"imports":{"_":"scala.jdk.CollectionConverters._","BatchResult":"io.github.libtmux.batch.BatchResult","JavaBatch":"io.github.libtmux.batch.Batch"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Batch.scala","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-batch-size"},{"id":"io.github.libtmux.scaladsl.cats.Batch.length","name":"length","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Batch","signatures":[{"raw":"def length: F[Int]","params":[],"returns":"F[Int]"}],"imports":{"_":"scala.jdk.CollectionConverters._","BatchResult":"io.github.libtmux.batch.BatchResult","JavaBatch":"io.github.libtmux.batch.Batch"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Batch.scala","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-batch-length"},{"id":"io.github.libtmux.scaladsl.cats.Batch.run","name":"run","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Batch","signatures":[{"raw":"def run: F[BatchResult]","params":[],"returns":"F[BatchResult]"}],"imports":{"_":"scala.jdk.CollectionConverters._","BatchResult":"io.github.libtmux.batch.BatchResult","JavaBatch":"io.github.libtmux.batch.Batch"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Batch.scala","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-batch-run"},{"id":"io.github.libtmux.scaladsl.cats.Batch.toString","name":"toString","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Batch","signatures":[{"raw":"override def toString: String","params":[],"returns":"String"}],"imports":{"_":"scala.jdk.CollectionConverters._","BatchResult":"io.github.libtmux.batch.BatchResult","JavaBatch":"io.github.libtmux.batch.Batch"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Batch.scala","line":34,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-batch-tostring"},{"id":"io.github.libtmux.scaladsl.cats.Channel","name":"Channel","kind":"class","signatures":[{"raw":"final class Channel[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"Async":"_root_.cats.effect.Async","FiniteDuration":"scala.concurrent.duration.FiniteDuration","_":"scala.jdk.DurationConverters._","JavaChannel":"io.github.libtmux.Channel","WakeReason":"io.github.libtmux.WakeReason"},"modifiers":[],"doc":{"summary":"One of tmux's wait-for channels. `signal` is a real dispatch (tmux's own `wait-for -S`), routed through `Execution#apply` like any other mutation; `await` reserves this server's shared-wait capacity the way every other handwritten `WAIT` operation does, since a Cats caller waiting and the caller releasing it usually share this same bounded transport."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Channel.scala","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-channel"},{"id":"io.github.libtmux.scaladsl.cats.Channel.signal","name":"signal","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Channel","signatures":[{"raw":"def signal: F[Unit]","params":[],"returns":"F[Unit]"}],"imports":{"Async":"_root_.cats.effect.Async","FiniteDuration":"scala.concurrent.duration.FiniteDuration","_":"scala.jdk.DurationConverters._","JavaChannel":"io.github.libtmux.Channel","WakeReason":"io.github.libtmux.WakeReason"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Channel.scala","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-channel-signal"},{"id":"io.github.libtmux.scaladsl.cats.Channel.await","name":"await","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Channel","signatures":[{"raw":"def await(timeout: FiniteDuration): F[WakeReason]","params":[{"name":"timeout","type":"FiniteDuration"}],"returns":"F[WakeReason]"}],"imports":{"Async":"_root_.cats.effect.Async","FiniteDuration":"scala.concurrent.duration.FiniteDuration","_":"scala.jdk.DurationConverters._","JavaChannel":"io.github.libtmux.Channel","WakeReason":"io.github.libtmux.WakeReason"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Channel.scala","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-channel-await"},{"id":"io.github.libtmux.scaladsl.cats.Channel.toString","name":"toString","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Channel","signatures":[{"raw":"override def toString: String","params":[],"returns":"String"}],"imports":{"Async":"_root_.cats.effect.Async","FiniteDuration":"scala.concurrent.duration.FiniteDuration","_":"scala.jdk.DurationConverters._","JavaChannel":"io.github.libtmux.Channel","WakeReason":"io.github.libtmux.WakeReason"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Channel.scala","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-channel-tostring"},{"id":"io.github.libtmux.scaladsl.cats.CommandChain","name":"CommandChain","kind":"class","signatures":[{"raw":"final class CommandChain[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"BatchResult":"io.github.libtmux.batch.BatchResult","_":"scala.jdk.CollectionConverters._","JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"doc":{"summary":"An immutable plan using tmux's evolving current target. Construction does no tmux I/O; each `run` builds a fresh Java chain from `create` and dispatches it through `Execution`, F-suspended and cancellation-safe like every other Cats operation."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/CommandChain.scala","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-commandchain"},{"id":"io.github.libtmux.scaladsl.cats.CommandChain.newWindow","name":"newWindow","kind":"method","parent":"io.github.libtmux.scaladsl.cats.CommandChain","signatures":[{"raw":"def newWindow(name: String): CommandChain[F]","params":[{"name":"name","type":"String"}],"returns":"CommandChain[F]"}],"imports":{"BatchResult":"io.github.libtmux.batch.BatchResult","_":"scala.jdk.CollectionConverters._","JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/CommandChain.scala","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-commandchain-newwindow"},{"id":"io.github.libtmux.scaladsl.cats.CommandChain.renameWindow","name":"renameWindow","kind":"method","parent":"io.github.libtmux.scaladsl.cats.CommandChain","signatures":[{"raw":"def renameWindow(name: String): CommandChain[F]","params":[{"name":"name","type":"String"}],"returns":"CommandChain[F]"}],"imports":{"BatchResult":"io.github.libtmux.batch.BatchResult","_":"scala.jdk.CollectionConverters._","JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/CommandChain.scala","line":22,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-commandchain-renamewindow"},{"id":"io.github.libtmux.scaladsl.cats.CommandChain.splitLeftRight","name":"splitLeftRight","kind":"method","parent":"io.github.libtmux.scaladsl.cats.CommandChain","signatures":[{"raw":"def splitLeftRight(): CommandChain[F]","params":[],"returns":"CommandChain[F]"}],"imports":{"BatchResult":"io.github.libtmux.batch.BatchResult","_":"scala.jdk.CollectionConverters._","JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/CommandChain.scala","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-commandchain-splitleftright"},{"id":"io.github.libtmux.scaladsl.cats.CommandChain.splitTopBottom","name":"splitTopBottom","kind":"method","parent":"io.github.libtmux.scaladsl.cats.CommandChain","signatures":[{"raw":"def splitTopBottom(): CommandChain[F]","params":[],"returns":"CommandChain[F]"}],"imports":{"BatchResult":"io.github.libtmux.batch.BatchResult","_":"scala.jdk.CollectionConverters._","JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/CommandChain.scala","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-commandchain-splittopbottom"},{"id":"io.github.libtmux.scaladsl.cats.CommandChain.sendLine","name":"sendLine","kind":"method","parent":"io.github.libtmux.scaladsl.cats.CommandChain","signatures":[{"raw":"def sendLine(command: String): CommandChain[F]","params":[{"name":"command","type":"String"}],"returns":"CommandChain[F]"}],"imports":{"BatchResult":"io.github.libtmux.batch.BatchResult","_":"scala.jdk.CollectionConverters._","JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/CommandChain.scala","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-commandchain-sendline"},{"id":"io.github.libtmux.scaladsl.cats.CommandChain.arrange","name":"arrange","kind":"method","parent":"io.github.libtmux.scaladsl.cats.CommandChain","signatures":[{"raw":"def arrange(layout: String): CommandChain[F]","params":[{"name":"layout","type":"String"}],"returns":"CommandChain[F]"}],"imports":{"BatchResult":"io.github.libtmux.batch.BatchResult","_":"scala.jdk.CollectionConverters._","JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"doc":{"summary":"Layout validation and its possible version query occur during run."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/CommandChain.scala","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-commandchain-arrange"},{"id":"io.github.libtmux.scaladsl.cats.CommandChain.`then`","name":"`then`","kind":"method","parent":"io.github.libtmux.scaladsl.cats.CommandChain","signatures":[{"raw":"def `then`(argv: Seq[String]): CommandChain[F]","params":[{"name":"argv","type":"Seq[String]"}],"returns":"CommandChain[F]"},{"raw":"def `then`(command: String, arguments: String*): CommandChain[F]","params":[{"name":"command","type":"String"},{"name":"arguments","type":"String*"}],"returns":"CommandChain[F]"}],"imports":{"BatchResult":"io.github.libtmux.batch.BatchResult","_":"scala.jdk.CollectionConverters._","JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":["overload"],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/CommandChain.scala","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-commandchain-then"},{"id":"io.github.libtmux.scaladsl.cats.CommandChain.run","name":"run","kind":"method","parent":"io.github.libtmux.scaladsl.cats.CommandChain","signatures":[{"raw":"def run: F[BatchResult]","params":[],"returns":"F[BatchResult]"}],"imports":{"BatchResult":"io.github.libtmux.batch.BatchResult","_":"scala.jdk.CollectionConverters._","JavaCommandChain":"io.github.libtmux.CommandChain"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/CommandChain.scala","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-commandchain-run"},{"id":"io.github.libtmux.scaladsl.cats.Control","name":"Control","kind":"class","signatures":[{"raw":"final class Control[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"object Control","params":[]}],"imports":{"direct":"io.github.libtmux.scaladsl","OperationOutcome":"io.github.libtmux.batch.OperationOutcome","Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.CollectionConverters._","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","ServerConfig":"io.github.libtmux.ServerConfig","SessionId":"io.github.libtmux.SessionId","ControlClient":"io.github.libtmux.control.ControlClient","ControlEvent":"io.github.libtmux.control.ControlEvent","ControlReply":"io.github.libtmux.control.ControlReply","PaneOutput":"io.github.libtmux.control.PaneOutput"},"modifiers":[],"doc":{"summary":"Owns an attached Java control client. Canceling an active request can end this attachment and its queued requests and observations. Use separate attachments for commands and observations that must survive that failure."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Control.scala","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-control"},{"id":"io.github.libtmux.scaladsl.cats.Control.acknowledge","name":"acknowledge","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Control","signatures":[{"raw":"def acknowledge(\n argv: Seq[String],\n timeout: Duration = Duration.ofSeconds(30)\n ): F[Control.Ack]","params":[{"name":"argv","type":"Seq[String]"},{"name":"timeout","type":"Duration","default":"Duration.ofSeconds(30)"}],"returns":"F[Control.Ack]"}],"imports":{"direct":"io.github.libtmux.scaladsl","OperationOutcome":"io.github.libtmux.batch.OperationOutcome","Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.CollectionConverters._","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","ServerConfig":"io.github.libtmux.ServerConfig","SessionId":"io.github.libtmux.SessionId","ControlClient":"io.github.libtmux.control.ControlClient","ControlEvent":"io.github.libtmux.control.ControlEvent","ControlReply":"io.github.libtmux.control.ControlReply","PaneOutput":"io.github.libtmux.control.PaneOutput"},"modifiers":[],"doc":{"summary":"Reads one raw reply without claiming deferred command completion. Cancellation does not prove that tmux rolled back a dispatched command. The timeout starts after Scala admission; an effect timeout can bound the whole call."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Control.scala","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-control-acknowledge"},{"id":"io.github.libtmux.scaladsl.cats.Control.isAlive","name":"isAlive","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Control","signatures":[{"raw":"def isAlive: F[Boolean]","params":[],"returns":"F[Boolean]"}],"imports":{"direct":"io.github.libtmux.scaladsl","OperationOutcome":"io.github.libtmux.batch.OperationOutcome","Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.CollectionConverters._","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","ServerConfig":"io.github.libtmux.ServerConfig","SessionId":"io.github.libtmux.SessionId","ControlClient":"io.github.libtmux.control.ControlClient","ControlEvent":"io.github.libtmux.control.ControlEvent","ControlReply":"io.github.libtmux.control.ControlReply","PaneOutput":"io.github.libtmux.control.PaneOutput"},"modifiers":[],"doc":{"summary":"Whether this attachment's process is still running."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Control.scala","line":41,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-control-isalive"},{"id":"io.github.libtmux.scaladsl.cats.Control.standardError","name":"standardError","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Control","signatures":[{"raw":"def standardError: F[String]","params":[],"returns":"F[String]"}],"imports":{"direct":"io.github.libtmux.scaladsl","OperationOutcome":"io.github.libtmux.batch.OperationOutcome","Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.CollectionConverters._","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","ServerConfig":"io.github.libtmux.ServerConfig","SessionId":"io.github.libtmux.SessionId","ControlClient":"io.github.libtmux.control.ControlClient","ControlEvent":"io.github.libtmux.control.ControlEvent","ControlReply":"io.github.libtmux.control.ControlReply","PaneOutput":"io.github.libtmux.control.PaneOutput"},"modifiers":[],"doc":{"summary":"Error text from this control process, at most 4096 bytes."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Control.scala","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-control-standarderror"},{"id":"io.github.libtmux.scaladsl.cats.Control.standardErrorTruncated","name":"standardErrorTruncated","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Control","signatures":[{"raw":"def standardErrorTruncated: F[Boolean]","params":[],"returns":"F[Boolean]"}],"imports":{"direct":"io.github.libtmux.scaladsl","OperationOutcome":"io.github.libtmux.batch.OperationOutcome","Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.CollectionConverters._","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","ServerConfig":"io.github.libtmux.ServerConfig","SessionId":"io.github.libtmux.SessionId","ControlClient":"io.github.libtmux.control.ControlClient","ControlEvent":"io.github.libtmux.control.ControlEvent","ControlReply":"io.github.libtmux.control.ControlReply","PaneOutput":"io.github.libtmux.control.PaneOutput"},"modifiers":[],"doc":{"summary":"Whether `standardError` stopped before the process finished writing."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Control.scala","line":53,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-control-standarderrortruncated"},{"id":"io.github.libtmux.scaladsl.cats.Control.watch","name":"watch","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Control","signatures":[{"raw":"def watch(name: String, target: String, format: String): F[Control.Ack]","params":[{"name":"name","type":"String"},{"name":"target","type":"String"},{"name":"format","type":"String"}],"returns":"F[Control.Ack]"}],"imports":{"direct":"io.github.libtmux.scaladsl","OperationOutcome":"io.github.libtmux.batch.OperationOutcome","Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.CollectionConverters._","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","ServerConfig":"io.github.libtmux.ServerConfig","SessionId":"io.github.libtmux.SessionId","ControlClient":"io.github.libtmux.control.ControlClient","ControlEvent":"io.github.libtmux.control.ControlEvent","ControlReply":"io.github.libtmux.control.ControlReply","PaneOutput":"io.github.libtmux.control.PaneOutput"},"modifiers":[],"doc":{"summary":"Asks tmux to report `format` when it changes. A target that does not name a pane or window watches the attached session."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Control.scala","line":61,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-control-watch"},{"id":"io.github.libtmux.scaladsl.cats.Control.unwatch","name":"unwatch","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Control","signatures":[{"raw":"def unwatch(name: String): F[Control.Ack]","params":[{"name":"name","type":"String"}],"returns":"F[Control.Ack]"}],"imports":{"direct":"io.github.libtmux.scaladsl","OperationOutcome":"io.github.libtmux.batch.OperationOutcome","Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.CollectionConverters._","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","ServerConfig":"io.github.libtmux.ServerConfig","SessionId":"io.github.libtmux.SessionId","ControlClient":"io.github.libtmux.control.ControlClient","ControlEvent":"io.github.libtmux.control.ControlEvent","ControlReply":"io.github.libtmux.control.ControlReply","PaneOutput":"io.github.libtmux.control.PaneOutput"},"modifiers":[],"doc":{"summary":"Removes a watch registered under `name`."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Control.scala","line":68,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-control-unwatch"},{"id":"io.github.libtmux.scaladsl.cats.Control.output","name":"output","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Control","signatures":[{"raw":"def output(capacity: Int): Resource[F, Observation[F, PaneOutput]]","params":[{"name":"capacity","type":"Int"}],"returns":"Resource[F, Observation[F, PaneOutput]]"}],"imports":{"direct":"io.github.libtmux.scaladsl","OperationOutcome":"io.github.libtmux.batch.OperationOutcome","Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.CollectionConverters._","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","ServerConfig":"io.github.libtmux.ServerConfig","SessionId":"io.github.libtmux.SessionId","ControlClient":"io.github.libtmux.control.ControlClient","ControlEvent":"io.github.libtmux.control.ControlEvent","ControlReply":"io.github.libtmux.control.ControlReply","PaneOutput":"io.github.libtmux.control.PaneOutput"},"modifiers":[],"doc":{"summary":"Registers decoded text output before the returned resource body runs. Terminal bytes and character boundaries are not preserved by Java."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Control.scala","line":76,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-control-output"},{"id":"io.github.libtmux.scaladsl.cats.Control.events","name":"events","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Control","signatures":[{"raw":"def events(capacity: Int): Resource[F, Observation[F, ControlEvent]]","params":[{"name":"capacity","type":"Int"}],"returns":"Resource[F, Observation[F, ControlEvent]]"}],"imports":{"direct":"io.github.libtmux.scaladsl","OperationOutcome":"io.github.libtmux.batch.OperationOutcome","Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.CollectionConverters._","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","ServerConfig":"io.github.libtmux.ServerConfig","SessionId":"io.github.libtmux.SessionId","ControlClient":"io.github.libtmux.control.ControlClient","ControlEvent":"io.github.libtmux.control.ControlEvent","ControlReply":"io.github.libtmux.control.ControlReply","PaneOutput":"io.github.libtmux.control.PaneOutput"},"modifiers":[],"doc":{"summary":"Registers Java's typed notifications, including unknown event kinds."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Control.scala","line":86,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-control-events"},{"id":"io.github.libtmux.scaladsl.cats.Control.Ack","name":"Ack","kind":"class","parent":"io.github.libtmux.scaladsl.cats.Control","signatures":[{"raw":"final class Ack","params":[]}],"imports":{"direct":"io.github.libtmux.scaladsl","OperationOutcome":"io.github.libtmux.batch.OperationOutcome","Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.CollectionConverters._","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","ServerConfig":"io.github.libtmux.ServerConfig","SessionId":"io.github.libtmux.SessionId","ControlClient":"io.github.libtmux.control.ControlClient","ControlEvent":"io.github.libtmux.control.ControlEvent","ControlReply":"io.github.libtmux.control.ControlReply","PaneOutput":"io.github.libtmux.control.PaneOutput"},"modifiers":[],"doc":{"summary":"Retains tmux's raw reply framing and line shape."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Control.scala","line":105,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-control-ack"},{"id":"io.github.libtmux.scaladsl.cats.Control.Ack.unsafeJava","name":"unsafeJava","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Control.Ack","signatures":[{"raw":"def unsafeJava: ControlReply","params":[],"returns":"ControlReply"}],"imports":{"direct":"io.github.libtmux.scaladsl","OperationOutcome":"io.github.libtmux.batch.OperationOutcome","Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.CollectionConverters._","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","ServerConfig":"io.github.libtmux.ServerConfig","SessionId":"io.github.libtmux.SessionId","ControlClient":"io.github.libtmux.control.ControlClient","ControlEvent":"io.github.libtmux.control.ControlEvent","ControlReply":"io.github.libtmux.control.ControlReply","PaneOutput":"io.github.libtmux.control.PaneOutput"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Control.scala","line":106,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-control-ack-unsafejava"},{"id":"io.github.libtmux.scaladsl.cats.Control.Ack.accepted","name":"accepted","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Control.Ack","signatures":[{"raw":"def accepted: Boolean","params":[],"returns":"Boolean"}],"imports":{"direct":"io.github.libtmux.scaladsl","OperationOutcome":"io.github.libtmux.batch.OperationOutcome","Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.CollectionConverters._","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","ServerConfig":"io.github.libtmux.ServerConfig","SessionId":"io.github.libtmux.SessionId","ControlClient":"io.github.libtmux.control.ControlClient","ControlEvent":"io.github.libtmux.control.ControlEvent","ControlReply":"io.github.libtmux.control.ControlReply","PaneOutput":"io.github.libtmux.control.PaneOutput"},"modifiers":[],"doc":{"summary":"True for a %end reply. Deferred tmux work can still be running."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Control.scala","line":109,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-control-ack-accepted"},{"id":"io.github.libtmux.scaladsl.cats.Control.Ack.lines","name":"lines","kind":"property","parent":"io.github.libtmux.scaladsl.cats.Control.Ack","signatures":[{"raw":"val lines: Vector[String]","params":[],"returns":"Vector[String]"}],"imports":{"direct":"io.github.libtmux.scaladsl","OperationOutcome":"io.github.libtmux.batch.OperationOutcome","Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.CollectionConverters._","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","ServerConfig":"io.github.libtmux.ServerConfig","SessionId":"io.github.libtmux.SessionId","ControlClient":"io.github.libtmux.control.ControlClient","ControlEvent":"io.github.libtmux.control.ControlEvent","ControlReply":"io.github.libtmux.control.ControlReply","PaneOutput":"io.github.libtmux.control.PaneOutput"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Control.scala","line":110,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-control-ack-lines"},{"id":"io.github.libtmux.scaladsl.cats.Control.attachUnfenced","name":"attachUnfenced","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Control","signatures":[{"raw":"def attachUnfenced[F[_]: Async](\n config: ServerConfig,\n session: SessionId,\n timeout: Duration = Duration.ofSeconds(30),\n maxConcurrentCalls: Int = 4\n ): Resource[F, Control[F]]","params":[{"name":"config","type":"ServerConfig"},{"name":"session","type":"SessionId"},{"name":"timeout","type":"Duration","default":"Duration.ofSeconds(30)"},{"name":"maxConcurrentCalls","type":"Int","default":"4"}],"returns":"Resource[F, Control[F]]","typeParams":["F"],"typeParameters":[{"name":"F","bound":": Async"}]}],"imports":{"direct":"io.github.libtmux.scaladsl","OperationOutcome":"io.github.libtmux.batch.OperationOutcome","Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.CollectionConverters._","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","ServerConfig":"io.github.libtmux.ServerConfig","SessionId":"io.github.libtmux.SessionId","ControlClient":"io.github.libtmux.control.ControlClient","ControlEvent":"io.github.libtmux.control.ControlEvent","ControlReply":"io.github.libtmux.control.ControlReply","PaneOutput":"io.github.libtmux.control.PaneOutput"},"modifiers":[],"doc":{"summary":"Attaches lazily to whatever server now answers this endpoint, without an incarnation guard; prefer attaching a captured session. Bounds simultaneous acknowledgement calls. Release stops their owned work before detaching the client and preserves the tmux daemon."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Control.scala","line":118,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-control-attachunfenced"},{"id":"io.github.libtmux.scaladsl.cats.Control.attach","name":"attach","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Control","signatures":[{"raw":"def attach[F[_]: Async](session: Session[F]): Resource[F, Control[F]]","params":[{"name":"session","type":"Session[F]"}],"returns":"Resource[F, Control[F]]","typeParams":["F"],"typeParameters":[{"name":"F","bound":": Async"}]},{"raw":"def attach[F[_]: Async](\n session: Session[F],\n timeout: Duration,\n maxConcurrentCalls: Int\n ): Resource[F, Control[F]]","params":[{"name":"session","type":"Session[F]"},{"name":"timeout","type":"Duration"},{"name":"maxConcurrentCalls","type":"Int"}],"returns":"Resource[F, Control[F]]","typeParams":["F"],"typeParameters":[{"name":"F","bound":": Async"}]},{"raw":"def attach[F[_]: Async](\n session: direct.Session,\n timeout: Duration,\n maxConcurrentCalls: Int\n ): Resource[F, Control[F]]","params":[{"name":"session","type":"direct.Session"},{"name":"timeout","type":"Duration"},{"name":"maxConcurrentCalls","type":"Int"}],"returns":"Resource[F, Control[F]]","typeParams":["F"],"typeParameters":[{"name":"F","bound":": Async"}]}],"imports":{"direct":"io.github.libtmux.scaladsl","OperationOutcome":"io.github.libtmux.batch.OperationOutcome","Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.CollectionConverters._","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","ServerConfig":"io.github.libtmux.ServerConfig","SessionId":"io.github.libtmux.SessionId","ControlClient":"io.github.libtmux.control.ControlClient","ControlEvent":"io.github.libtmux.control.ControlEvent","ControlReply":"io.github.libtmux.control.ControlReply","PaneOutput":"io.github.libtmux.control.PaneOutput"},"modifiers":["overload"],"doc":{"summary":"Attaches to the process the captured session named."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Control.scala","line":132,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-control-attach"},{"id":"io.github.libtmux.scaladsl.cats.Session","name":"Session","kind":"class","signatures":[{"raw":"final class Session[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"doc":{"summary":"A tmux session whose operations run in the effect type `F`.","body":"Use [[server]] for the connection that owns this handle and [[asJava]] for\nJava interoperability. Captured properties stay unchanged until an explicit\nrefresh returns a new handle."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session"},{"id":"io.github.libtmux.scaladsl.cats.Session.server","name":"server","kind":"property","parent":"io.github.libtmux.scaladsl.cats.Session","imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"signatures":[{"raw":"val server: Server[F]","params":[],"returns":"Server[F]"}],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-server"},{"id":"io.github.libtmux.scaladsl.cats.Session.equals","name":"equals","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"override def equals(other: Any): Boolean","params":[{"name":"other","type":"Any"}],"returns":"Boolean"}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-equals"},{"id":"io.github.libtmux.scaladsl.cats.Session.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"override def hashCode(): Int","params":[],"returns":"Int"}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":22,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-hashcode"},{"id":"io.github.libtmux.scaladsl.cats.Session.toString","name":"toString","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"override def toString: String","params":[],"returns":"String"}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-tostring"},{"id":"io.github.libtmux.scaladsl.cats.Session.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"def asJava: io.github.libtmux.Session","params":[],"returns":"io.github.libtmux.Session"}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"doc":{"summary":"The Java handle this wraps: the one escape hatch, as on every handle."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-asjava"},{"id":"io.github.libtmux.scaladsl.cats.Window","name":"Window","kind":"class","signatures":[{"raw":"final class Window[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"doc":{"summary":"A tmux window at a specific session position, with operations in the effect type `F`."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window"},{"id":"io.github.libtmux.scaladsl.cats.Window.server","name":"server","kind":"property","parent":"io.github.libtmux.scaladsl.cats.Window","imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"signatures":[{"raw":"val server: Server[F]","params":[],"returns":"Server[F]"}],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":34,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-server"},{"id":"io.github.libtmux.scaladsl.cats.Window.equals","name":"equals","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"override def equals(other: Any): Boolean","params":[{"name":"other","type":"Any"}],"returns":"Boolean"}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-equals"},{"id":"io.github.libtmux.scaladsl.cats.Window.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"override def hashCode(): Int","params":[],"returns":"Int"}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":42,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-hashcode"},{"id":"io.github.libtmux.scaladsl.cats.Window.toString","name":"toString","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"override def toString: String","params":[],"returns":"String"}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":43,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-tostring"},{"id":"io.github.libtmux.scaladsl.cats.Window.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"def asJava: io.github.libtmux.Window","params":[],"returns":"io.github.libtmux.Window"}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"doc":{"summary":"The Java handle this wraps: the one escape hatch, as on every handle."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":46,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-asjava"},{"id":"io.github.libtmux.scaladsl.cats.Pane","name":"Pane","kind":"class","signatures":[{"raw":"final class Pane[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"object Pane","params":[]}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"doc":{"summary":"A tmux pane with input, output, and layout operations in the effect type `F`."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":52,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane"},{"id":"io.github.libtmux.scaladsl.cats.Pane.server","name":"server","kind":"property","parent":"io.github.libtmux.scaladsl.cats.Pane","imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"signatures":[{"raw":"val server: Server[F]","params":[],"returns":"Server[F]"}],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":54,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-server"},{"id":"io.github.libtmux.scaladsl.cats.Pane.equals","name":"equals","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"override def equals(other: Any): Boolean","params":[{"name":"other","type":"Any"}],"returns":"Boolean"}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":58,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-equals"},{"id":"io.github.libtmux.scaladsl.cats.Pane.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"override def hashCode(): Int","params":[],"returns":"Int"}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":62,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-hashcode"},{"id":"io.github.libtmux.scaladsl.cats.Pane.toString","name":"toString","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"override def toString: String","params":[],"returns":"String"}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":63,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-tostring"},{"id":"io.github.libtmux.scaladsl.cats.Pane.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"def asJava: io.github.libtmux.Pane","params":[],"returns":"io.github.libtmux.Pane"}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"doc":{"summary":"The Java handle this wraps: the one escape hatch, as on every handle."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":66,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-asjava"},{"id":"io.github.libtmux.scaladsl.cats.Client","name":"Client","kind":"class","signatures":[{"raw":"final class Client[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"doc":{"summary":"An attached tmux client with operations in the effect type `F`."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":168,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-client"},{"id":"io.github.libtmux.scaladsl.cats.Client.server","name":"server","kind":"property","parent":"io.github.libtmux.scaladsl.cats.Client","imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"signatures":[{"raw":"val server: Server[F]","params":[],"returns":"Server[F]"}],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":170,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-client-server"},{"id":"io.github.libtmux.scaladsl.cats.Client.equals","name":"equals","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Client","signatures":[{"raw":"override def equals(other: Any): Boolean","params":[{"name":"other","type":"Any"}],"returns":"Boolean"}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":174,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-client-equals"},{"id":"io.github.libtmux.scaladsl.cats.Client.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Client","signatures":[{"raw":"override def hashCode(): Int","params":[],"returns":"Int"}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":178,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-client-hashcode"},{"id":"io.github.libtmux.scaladsl.cats.Client.toString","name":"toString","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Client","signatures":[{"raw":"override def toString: String","params":[],"returns":"String"}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":179,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-client-tostring"},{"id":"io.github.libtmux.scaladsl.cats.Client.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Client","signatures":[{"raw":"def asJava: io.github.libtmux.Client","params":[],"returns":"io.github.libtmux.Client"}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"doc":{"summary":"The Java handle this wraps: the one escape hatch, as on every handle."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":182,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-client-asjava"},{"id":"io.github.libtmux.scaladsl.cats.Instances","name":"Instances","kind":"module","signatures":[{"raw":"object Instances","params":[]}],"imports":{"direct":"io.github.libtmux.scaladsl","Eq":"_root_.cats.Eq","Hash":"_root_.cats.Hash","Order":"_root_.cats.Order","Show":"_root_.cats.Show","PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId"},"modifiers":[],"doc":{"summary":"Instances derived from Java's `equals`/`hashCode`/`toString`, and from `TmuxVersion`'s own `Comparable` — the one handle-adjacent type that actually has a natural order. None of `Server`, `Session`, `Window`, `Pane` or `Client` implements `Comparable` in Java, and none has a domain-meaningful order (a pane's tmux index is not identity, and two panes can share an index across different windows), so those get `Eq`/`Show`/`Hash` only — never a manufactured `Order` that invites `.sorted`/`SortedSet` producing an ordering nobody asked for."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Instances.scala","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-instances"},{"id":"io.github.libtmux.scaladsl.cats.Instances.serverInstances","name":"serverInstances","kind":"constant","parent":"io.github.libtmux.scaladsl.cats.Instances","signatures":[{"raw":"given serverInstances\n : (Eq[direct.Server] & Hash[direct.Server] & Show[direct.Server])","params":[],"returns":"(Eq[direct.Server] & Hash[direct.Server] & Show[direct.Server])"}],"imports":{"direct":"io.github.libtmux.scaladsl","Eq":"_root_.cats.Eq","Hash":"_root_.cats.Hash","Order":"_root_.cats.Order","Show":"_root_.cats.Show","PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Instances.scala","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-instances-serverinstances"},{"id":"io.github.libtmux.scaladsl.cats.Instances.directSessionInstances","name":"directSessionInstances","kind":"constant","parent":"io.github.libtmux.scaladsl.cats.Instances","signatures":[{"raw":"given directSessionInstances\n : (Eq[direct.Session] & Hash[direct.Session] & Show[direct.Session])","params":[],"returns":"(Eq[direct.Session] & Hash[direct.Session] & Show[direct.Session])"}],"imports":{"direct":"io.github.libtmux.scaladsl","Eq":"_root_.cats.Eq","Hash":"_root_.cats.Hash","Order":"_root_.cats.Order","Show":"_root_.cats.Show","PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Instances.scala","line":34,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-instances-directsessioninstances"},{"id":"io.github.libtmux.scaladsl.cats.Instances.directWindowInstances","name":"directWindowInstances","kind":"constant","parent":"io.github.libtmux.scaladsl.cats.Instances","signatures":[{"raw":"given directWindowInstances\n : (Eq[direct.Window] & Hash[direct.Window] & Show[direct.Window])","params":[],"returns":"(Eq[direct.Window] & Hash[direct.Window] & Show[direct.Window])"}],"imports":{"direct":"io.github.libtmux.scaladsl","Eq":"_root_.cats.Eq","Hash":"_root_.cats.Hash","Order":"_root_.cats.Order","Show":"_root_.cats.Show","PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Instances.scala","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-instances-directwindowinstances"},{"id":"io.github.libtmux.scaladsl.cats.Instances.directPaneInstances","name":"directPaneInstances","kind":"constant","parent":"io.github.libtmux.scaladsl.cats.Instances","signatures":[{"raw":"given directPaneInstances\n : (Eq[direct.Pane] & Hash[direct.Pane] & Show[direct.Pane])","params":[],"returns":"(Eq[direct.Pane] & Hash[direct.Pane] & Show[direct.Pane])"}],"imports":{"direct":"io.github.libtmux.scaladsl","Eq":"_root_.cats.Eq","Hash":"_root_.cats.Hash","Order":"_root_.cats.Order","Show":"_root_.cats.Show","PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Instances.scala","line":40,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-instances-directpaneinstances"},{"id":"io.github.libtmux.scaladsl.cats.Instances.directClientInstances","name":"directClientInstances","kind":"constant","parent":"io.github.libtmux.scaladsl.cats.Instances","signatures":[{"raw":"given directClientInstances\n : (Eq[direct.Client] & Hash[direct.Client] & Show[direct.Client])","params":[],"returns":"(Eq[direct.Client] & Hash[direct.Client] & Show[direct.Client])"}],"imports":{"direct":"io.github.libtmux.scaladsl","Eq":"_root_.cats.Eq","Hash":"_root_.cats.Hash","Order":"_root_.cats.Order","Show":"_root_.cats.Show","PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Instances.scala","line":42,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-instances-directclientinstances"},{"id":"io.github.libtmux.scaladsl.cats.Instances.paneIdInstances","name":"paneIdInstances","kind":"constant","parent":"io.github.libtmux.scaladsl.cats.Instances","signatures":[{"raw":"given paneIdInstances: (Eq[PaneId] & Hash[PaneId] & Show[PaneId])","params":[],"returns":"(Eq[PaneId] & Hash[PaneId] & Show[PaneId])"}],"imports":{"direct":"io.github.libtmux.scaladsl","Eq":"_root_.cats.Eq","Hash":"_root_.cats.Hash","Order":"_root_.cats.Order","Show":"_root_.cats.Show","PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Instances.scala","line":46,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-instances-paneidinstances"},{"id":"io.github.libtmux.scaladsl.cats.Instances.sessionIdInstances","name":"sessionIdInstances","kind":"constant","parent":"io.github.libtmux.scaladsl.cats.Instances","signatures":[{"raw":"given sessionIdInstances\n : (Eq[SessionId] & Hash[SessionId] & Show[SessionId])","params":[],"returns":"(Eq[SessionId] & Hash[SessionId] & Show[SessionId])"}],"imports":{"direct":"io.github.libtmux.scaladsl","Eq":"_root_.cats.Eq","Hash":"_root_.cats.Hash","Order":"_root_.cats.Order","Show":"_root_.cats.Show","PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Instances.scala","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-instances-sessionidinstances"},{"id":"io.github.libtmux.scaladsl.cats.Instances.windowIdInstances","name":"windowIdInstances","kind":"constant","parent":"io.github.libtmux.scaladsl.cats.Instances","signatures":[{"raw":"given windowIdInstances: (Eq[WindowId] & Hash[WindowId] & Show[WindowId])","params":[],"returns":"(Eq[WindowId] & Hash[WindowId] & Show[WindowId])"}],"imports":{"direct":"io.github.libtmux.scaladsl","Eq":"_root_.cats.Eq","Hash":"_root_.cats.Hash","Order":"_root_.cats.Order","Show":"_root_.cats.Show","PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Instances.scala","line":49,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-instances-windowidinstances"},{"id":"io.github.libtmux.scaladsl.cats.Instances.tmuxVersionInstances","name":"tmuxVersionInstances","kind":"constant","parent":"io.github.libtmux.scaladsl.cats.Instances","signatures":[{"raw":"given tmuxVersionInstances: (Order[TmuxVersion] & Show[TmuxVersion])","params":[],"returns":"(Order[TmuxVersion] & Show[TmuxVersion])"}],"imports":{"direct":"io.github.libtmux.scaladsl","Eq":"_root_.cats.Eq","Hash":"_root_.cats.Hash","Order":"_root_.cats.Order","Show":"_root_.cats.Show","PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId"},"modifiers":[],"doc":{"summary":"`TmuxVersion` already defines a natural order in Java (`implements Comparable`); this is a direct projection of it, not a manufactured one."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Instances.scala","line":55,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-instances-tmuxversioninstances"},{"id":"io.github.libtmux.scaladsl.cats.Instances.sessionInstances","name":"sessionInstances","kind":"constant","parent":"io.github.libtmux.scaladsl.cats.Instances","signatures":[{"raw":"given sessionInstances[F[_]]\n : (Eq[Session[F]] & Hash[Session[F]] & Show[Session[F]])","params":[],"returns":"(Eq[Session[F]] & Hash[Session[F]] & Show[Session[F]])","typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"direct":"io.github.libtmux.scaladsl","Eq":"_root_.cats.Eq","Hash":"_root_.cats.Hash","Order":"_root_.cats.Order","Show":"_root_.cats.Show","PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Instances.scala","line":61,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-instances-sessioninstances"},{"id":"io.github.libtmux.scaladsl.cats.Instances.windowInstances","name":"windowInstances","kind":"constant","parent":"io.github.libtmux.scaladsl.cats.Instances","signatures":[{"raw":"given windowInstances[F[_]]\n : (Eq[Window[F]] & Hash[Window[F]] & Show[Window[F]])","params":[],"returns":"(Eq[Window[F]] & Hash[Window[F]] & Show[Window[F]])","typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"direct":"io.github.libtmux.scaladsl","Eq":"_root_.cats.Eq","Hash":"_root_.cats.Hash","Order":"_root_.cats.Order","Show":"_root_.cats.Show","PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Instances.scala","line":70,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-instances-windowinstances"},{"id":"io.github.libtmux.scaladsl.cats.Instances.paneInstances","name":"paneInstances","kind":"constant","parent":"io.github.libtmux.scaladsl.cats.Instances","signatures":[{"raw":"given paneInstances[F[_]]: (Eq[Pane[F]] & Hash[Pane[F]] & Show[Pane[F]])","params":[],"returns":"(Eq[Pane[F]] & Hash[Pane[F]] & Show[Pane[F]])","typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"direct":"io.github.libtmux.scaladsl","Eq":"_root_.cats.Eq","Hash":"_root_.cats.Hash","Order":"_root_.cats.Order","Show":"_root_.cats.Show","PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Instances.scala","line":79,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-instances-paneinstances"},{"id":"io.github.libtmux.scaladsl.cats.Instances.clientInstances","name":"clientInstances","kind":"constant","parent":"io.github.libtmux.scaladsl.cats.Instances","signatures":[{"raw":"given clientInstances[F[_]]\n : (Eq[Client[F]] & Hash[Client[F]] & Show[Client[F]])","params":[],"returns":"(Eq[Client[F]] & Hash[Client[F]] & Show[Client[F]])","typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"direct":"io.github.libtmux.scaladsl","Eq":"_root_.cats.Eq","Hash":"_root_.cats.Hash","Order":"_root_.cats.Order","Show":"_root_.cats.Show","PaneId":"io.github.libtmux.PaneId","SessionId":"io.github.libtmux.SessionId","TmuxVersion":"io.github.libtmux.TmuxVersion","WindowId":"io.github.libtmux.WindowId"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Instances.scala","line":86,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-instances-clientinstances"},{"id":"io.github.libtmux.scaladsl.cats.LiveServer","name":"LiveServer","kind":"class","signatures":[{"raw":"final class LiveServer[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"object LiveServer","params":[]}],"imports":{"_":"scala.jdk.OptionConverters._","Duration":"java.time.Duration","Async":"_root_.cats.effect.Async","Deferred":"_root_.cats.effect.Deferred","Outcome":"_root_.cats.effect.Outcome","Resource":"_root_.cats.effect.Resource","Signal":"fs2.concurrent.Signal","SignallingRef":"fs2.concurrent.SignallingRef","JavaServerMirror":"io.github.libtmux.snapshot.ServerMirror"},"modifiers":[],"doc":{"summary":"Observe a tmux server through a continuously updated [[signal]].","body":"[[LiveServer.attach]] returns a `Resource` that closes the Java\n[[io.github.libtmux.snapshot.ServerMirror ServerMirror]] when released. Read\n[[failure]] to distinguish a quiet server from a stopped poller."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/LiveServer.scala","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-liveserver"},{"id":"io.github.libtmux.scaladsl.cats.LiveServer.signal","name":"signal","kind":"property","parent":"io.github.libtmux.scaladsl.cats.LiveServer","imports":{"_":"scala.jdk.OptionConverters._","Duration":"java.time.Duration","Async":"_root_.cats.effect.Async","Deferred":"_root_.cats.effect.Deferred","Outcome":"_root_.cats.effect.Outcome","Resource":"_root_.cats.effect.Resource","Signal":"fs2.concurrent.Signal","SignallingRef":"fs2.concurrent.SignallingRef","JavaServerMirror":"io.github.libtmux.snapshot.ServerMirror"},"modifiers":[],"signatures":[{"raw":"val signal: Signal[F, JavaServerMirror.View]","params":[],"returns":"Signal[F, JavaServerMirror.View]"}],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/LiveServer.scala","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-liveserver-signal"},{"id":"io.github.libtmux.scaladsl.cats.LiveServer.failure","name":"failure","kind":"method","parent":"io.github.libtmux.scaladsl.cats.LiveServer","signatures":[{"raw":"def failure(implicit F: _root_.cats.Functor[F]): F[Option[Throwable]]","params":[{"name":"F","type":"_root_.cats.Functor[F]"}],"returns":"F[Option[Throwable]]"}],"imports":{"_":"scala.jdk.OptionConverters._","Duration":"java.time.Duration","Async":"_root_.cats.effect.Async","Deferred":"_root_.cats.effect.Deferred","Outcome":"_root_.cats.effect.Outcome","Resource":"_root_.cats.effect.Resource","Signal":"fs2.concurrent.Signal","SignallingRef":"fs2.concurrent.SignallingRef","JavaServerMirror":"io.github.libtmux.snapshot.ServerMirror"},"modifiers":[],"doc":{"summary":"`None` while still live; `Some(cause)` once the background poller has died. Never blocks."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/LiveServer.scala","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-liveserver-failure"},{"id":"io.github.libtmux.scaladsl.cats.LiveServer.attach","name":"attach","kind":"method","parent":"io.github.libtmux.scaladsl.cats.LiveServer","signatures":[{"raw":"def attach[F[_]](\n anchor: Session[F]\n )(implicit F: Async[F]): Resource[F, LiveServer[F]]","params":[{"name":"anchor","type":"Session[F]"},{"name":"F","type":"Async[F]"}],"returns":"Resource[F, LiveServer[F]]","typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"_":"scala.jdk.OptionConverters._","Duration":"java.time.Duration","Async":"_root_.cats.effect.Async","Deferred":"_root_.cats.effect.Deferred","Outcome":"_root_.cats.effect.Outcome","Resource":"_root_.cats.effect.Resource","Signal":"fs2.concurrent.Signal","SignallingRef":"fs2.concurrent.SignallingRef","JavaServerMirror":"io.github.libtmux.snapshot.ServerMirror"},"modifiers":[],"doc":{"summary":"Listens through a control client attached to `anchor`, rebuilding on every announcement. The session is a required parameter: there is no arbitrary pick left to make, and a session that later disappears is `ServerMirror`'s own reconnect-or-`TargetGoneException` policy, surfaced through [[LiveServer#failure]] like any other cause."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/LiveServer.scala","line":39,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-liveserver-attach"},{"id":"io.github.libtmux.scaladsl.cats.Observation","name":"Observation","kind":"class","signatures":[{"raw":"final class Observation[F[_], A]","params":[],"typeParams":["F","A"],"typeParameters":[{"name":"F"},{"name":"A"}]},{"raw":"object Observation","params":[]}],"imports":{"_":"scala.jdk.OptionConverters._","Stream":"fs2.Stream","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","Delivery":"io.github.libtmux.control.Delivery","EventSubscription":"io.github.libtmux.control.EventSubscription"},"modifiers":[],"doc":{"summary":"Pulls a bounded Java subscription with one active stream consumer. A full buffer yields a `Delivery.Gap` in this stream before the events that remain. FS2 demand does not provide tmux backpressure. A subscription does not reconnect: attach again and read a snapshot.","body":"The stream itself suspends the *fiber*, not a platform thread, while idle:\n[[io.github.libtmux.control.EventSubscription EventSubscription]] is already\nsingle-consumer by construction at the Java layer, with a non-blocking\n[[io.github.libtmux.control.EventSubscription#poll poll]] plus a one-shot\n[[io.github.libtmux.control.EventSubscription#onReady onReady]] wakeup. Each\nwait polls first — if something is already buffered, nothing suspends at all\n— and only then arms `onReady`, disarming it with\n[[io.github.libtmux.control.EventSubscription#clearReady clearReady]] if the\nfiber is cancelled first. No `ExecutionContext` sized for blocking stream\nreads is needed, because no read here ever blocks a thread."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Observation.scala","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-observation"},{"id":"io.github.libtmux.scaladsl.cats.Observation.stream","name":"stream","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Observation","signatures":[{"raw":"def stream: Stream[F, Delivery[A]]","params":[],"returns":"Stream[F, Delivery[A]]"}],"imports":{"_":"scala.jdk.OptionConverters._","Stream":"fs2.Stream","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","Delivery":"io.github.libtmux.control.Delivery","EventSubscription":"io.github.libtmux.control.EventSubscription"},"modifiers":[],"doc":{"summary":"Reads on `F`'s own fiber scheduler. Cancelling the stream releases its consumer slot and disarms any pending wakeup; releasing the observation discards its buffered events. Deliberate closure ends the stream. A client that ended the subscription fails it with that cause."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Observation.scala","line":61,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-observation-stream"},{"id":"io.github.libtmux.scaladsl.cats.Observation.droppedCount","name":"droppedCount","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Observation","signatures":[{"raw":"def droppedCount: F[Long]","params":[],"returns":"F[Long]"}],"imports":{"_":"scala.jdk.OptionConverters._","Stream":"fs2.Stream","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","Delivery":"io.github.libtmux.control.Delivery","EventSubscription":"io.github.libtmux.control.EventSubscription"},"modifiers":[],"doc":{"summary":"The cumulative overflow count. A `Delivery.Gap` in [[stream]] says where it sits."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Observation.scala","line":74,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-observation-droppedcount"},{"id":"io.github.libtmux.scaladsl.cats.Observation.isClosed","name":"isClosed","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Observation","signatures":[{"raw":"def isClosed: F[Boolean]","params":[],"returns":"F[Boolean]"}],"imports":{"_":"scala.jdk.OptionConverters._","Stream":"fs2.Stream","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","Delivery":"io.github.libtmux.control.Delivery","EventSubscription":"io.github.libtmux.control.EventSubscription"},"modifiers":[],"doc":{"summary":"Reports subscription closure, including after resource finalization."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Observation.scala","line":77,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-observation-isclosed"},{"id":"io.github.libtmux.scaladsl.cats.Observation.value","name":"value","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Observation","signatures":[{"raw":"def value[A](delivery: Delivery[A]): Option[A]","params":[{"name":"delivery","type":"Delivery[A]"}],"returns":"Option[A]","typeParams":["A"],"typeParameters":[{"name":"A"}]}],"imports":{"_":"scala.jdk.OptionConverters._","Stream":"fs2.Stream","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","Delivery":"io.github.libtmux.control.Delivery","EventSubscription":"io.github.libtmux.control.EventSubscription"},"modifiers":[],"doc":{"summary":"The value inside an event delivery, and none for a gap."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Observation.scala","line":86,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-observation-value"},{"id":"io.github.libtmux.scaladsl.cats.Observation.kept","name":"kept","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Observation","signatures":[{"raw":"def kept[A](delivery: Delivery[A]): A","params":[{"name":"delivery","type":"Delivery[A]"}],"returns":"A","typeParams":["A"],"typeParameters":[{"name":"A"}]}],"imports":{"_":"scala.jdk.OptionConverters._","Stream":"fs2.Stream","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","Delivery":"io.github.libtmux.control.Delivery","EventSubscription":"io.github.libtmux.control.EventSubscription"},"modifiers":[],"doc":{"summary":"The event a strict reader kept. A gap fails the read."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Observation.scala","line":92,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-observation-kept"},{"id":"io.github.libtmux.scaladsl.cats.Observation.UnknownCause","name":"UnknownCause","kind":"class","parent":"io.github.libtmux.scaladsl.cats.Observation","signatures":[{"raw":"final class UnknownCause \n extends IllegalStateException(\n \"control observation ended without a deliberate Scala close; Java exposes no cause\"\n )","params":[]}],"imports":{"_":"scala.jdk.OptionConverters._","Stream":"fs2.Stream","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","Delivery":"io.github.libtmux.control.Delivery","EventSubscription":"io.github.libtmux.control.EventSubscription"},"modifiers":[],"doc":{"summary":"Java ended the subscription without exposing the reason."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Observation.scala","line":99,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-observation-unknowncause"},{"id":"io.github.libtmux.scaladsl.cats.Server","name":"Server","kind":"class","signatures":[{"raw":"final class Server[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"object Server","params":[]}],"imports":{"direct":"io.github.libtmux.scaladsl","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","JavaServer":"io.github.libtmux.Server","ServerConfig":"io.github.libtmux.ServerConfig"},"modifiers":[],"doc":{"summary":"A tmux server whose operations run in the effect type `F`.","body":"Acquire it with [[Server.resource]], or borrow a Java client with\n[[Server.fromJava]]. Releasing the `Resource` cancels this scope's\noperations and closes an owned client. Cancellation does not roll back\ncommands already sent to tmux, and closing the client does not stop the tmux\nserver.","examples":[{"lang":"console","intro":"Connect to a private tmux server. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala-cats_3\"))\n .using(project(\":libtmux-scala-cats\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala-cats_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/Connect.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scalacats/Connect.scala","code":"package io.github.libtmux.examples.api.scalacats\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.cats.*\nimport _root_.cats.effect.{ExitCode, IO, IOApp}\nimport _root_.cats.syntax.all.*\n\n/** Connect to a private tmux server. */\nobject Connect extends IOApp {\n def run(args: List[String]): IO[ExitCode] = {\n val program = IO {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n }.flatMap { config =>\n Server.resource[IO](config).use { server =>\n for {\n alive <- server.isAlive()\n _ <- IO.println(s\"connected=$alive\")\n } yield ()\n }\n }\n program.as(ExitCode.Success).handleErrorWith { error =>\n IO(System.err.println(\"Example failed: \" + error.getMessage))\n .as(ExitCode.Error)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scalacats.Connect && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"connected=true\n"}]},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Server.scala","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server"},{"id":"io.github.libtmux.scaladsl.cats.Server.asJava","name":"asJava","kind":"property","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"val asJava: JavaServer","params":[],"returns":"JavaServer"}],"imports":{"direct":"io.github.libtmux.scaladsl","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","JavaServer":"io.github.libtmux.Server","ServerConfig":"io.github.libtmux.ServerConfig"},"modifiers":[],"doc":{"summary":"The Java client this wraps: the one escape hatch, as on every handle."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Server.scala","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-asjava"},{"id":"io.github.libtmux.scaladsl.cats.Server.resource","name":"resource","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"def resource[F[_]: Async](\n config: ServerConfig,\n maxConcurrentCalls: Int = 4\n ): Resource[F, Server[F]]","params":[{"name":"config","type":"ServerConfig"},{"name":"maxConcurrentCalls","type":"Int","default":"4"}],"returns":"Resource[F, Server[F]]","typeParams":["F"],"typeParameters":[{"name":"F","bound":": Async"}]}],"imports":{"direct":"io.github.libtmux.scaladsl","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","JavaServer":"io.github.libtmux.Server","ServerConfig":"io.github.libtmux.ServerConfig"},"modifiers":[],"doc":{"summary":"Owns a Java client, with one to four simultaneous facade calls. Release cancels queued and running operations before closing the client.","examples":[{"lang":"console","intro":"Connect to a private tmux server. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala-cats_3\"))\n .using(project(\":libtmux-scala-cats\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala-cats_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/Connect.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scalacats/Connect.scala","code":"package io.github.libtmux.examples.api.scalacats\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.cats.*\nimport _root_.cats.effect.{ExitCode, IO, IOApp}\nimport _root_.cats.syntax.all.*\n\n/** Connect to a private tmux server. */\nobject Connect extends IOApp {\n def run(args: List[String]): IO[ExitCode] = {\n val program = IO {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n }.flatMap { config =>\n Server.resource[IO](config).use { server =>\n for {\n alive <- server.isAlive()\n _ <- IO.println(s\"connected=$alive\")\n } yield ()\n }\n }\n program.as(ExitCode.Success).handleErrorWith { error =>\n IO(System.err.println(\"Example failed: \" + error.getMessage))\n .as(ExitCode.Error)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scalacats.Connect && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"connected=true\n"}]},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Server.scala","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-resource"},{"id":"io.github.libtmux.scaladsl.cats.Server.fromJava","name":"fromJava","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"def fromJava[F[_]: Async](\n java: JavaServer,\n maxConcurrentCalls: Int = 4\n ): Resource[F, Server[F]]","params":[{"name":"java","type":"JavaServer"},{"name":"maxConcurrentCalls","type":"Int","default":"4"}],"returns":"Resource[F, Server[F]]","typeParams":["F"],"typeParameters":[{"name":"F","bound":": Async"}]}],"imports":{"direct":"io.github.libtmux.scaladsl","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","JavaServer":"io.github.libtmux.Server","ServerConfig":"io.github.libtmux.ServerConfig"},"modifiers":[],"doc":{"summary":"Borrows Java without closing it. The bound covers this facade only; transport capacity and interruption remain the owner's responsibility.","body":"`direct.Server` is opaque, so a borrowed handle and an owned one are the\nsame runtime object. Release here tears down only this scope's own\n`Execution` (its semaphores and supervised fibers); it never calls\n`close()` on the borrowed handle, which is `resource`'s job alone."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Server.scala","line":66,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-fromjava"},{"id":"io.github.libtmux.scaladsl.cats.Hooks","name":"Hooks","kind":"class","signatures":[{"raw":"final class Hooks[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"Read and update tmux hooks through the owning [[server]].","body":"Operations run in the effect type `F`. Use [[asJava]] to access the Java\nhook API directly."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-hooks"},{"id":"io.github.libtmux.scaladsl.cats.Hooks.server","name":"server","kind":"property","parent":"io.github.libtmux.scaladsl.cats.Hooks","imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"signatures":[{"raw":"val server: Server[F]","params":[],"returns":"Server[F]"}],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-hooks-server"},{"id":"io.github.libtmux.scaladsl.cats.Hooks.equals","name":"equals","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Hooks","signatures":[{"raw":"override def equals(other: Any): Boolean","params":[{"name":"other","type":"Any"}],"returns":"Boolean"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-hooks-equals"},{"id":"io.github.libtmux.scaladsl.cats.Hooks.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Hooks","signatures":[{"raw":"override def hashCode(): Int","params":[],"returns":"Int"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-hooks-hashcode"},{"id":"io.github.libtmux.scaladsl.cats.Hooks.toString","name":"toString","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Hooks","signatures":[{"raw":"override def toString: String","params":[],"returns":"String"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-hooks-tostring"},{"id":"io.github.libtmux.scaladsl.cats.Hooks.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Hooks","signatures":[{"raw":"def asJava: io.github.libtmux.Hooks","params":[],"returns":"io.github.libtmux.Hooks"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"The Java handle this wraps: the one escape hatch, as on every handle."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":22,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-hooks-asjava"},{"id":"io.github.libtmux.scaladsl.cats.Options","name":"Options","kind":"class","signatures":[{"raw":"final class Options[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"object Options","params":[]}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"Read and update options on the server, session, window, or pane that owns this handle."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-options"},{"id":"io.github.libtmux.scaladsl.cats.Options.server","name":"server","kind":"property","parent":"io.github.libtmux.scaladsl.cats.Options","imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"signatures":[{"raw":"val server: Server[F]","params":[],"returns":"Server[F]"}],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-options-server"},{"id":"io.github.libtmux.scaladsl.cats.Options.equals","name":"equals","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Options","signatures":[{"raw":"override def equals(other: Any): Boolean","params":[{"name":"other","type":"Any"}],"returns":"Boolean"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-options-equals"},{"id":"io.github.libtmux.scaladsl.cats.Options.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Options","signatures":[{"raw":"override def hashCode(): Int","params":[],"returns":"Int"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-options-hashcode"},{"id":"io.github.libtmux.scaladsl.cats.Options.toString","name":"toString","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Options","signatures":[{"raw":"override def toString: String","params":[],"returns":"String"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-options-tostring"},{"id":"io.github.libtmux.scaladsl.cats.Options.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Options","signatures":[{"raw":"def asJava: io.github.libtmux.Options","params":[],"returns":"io.github.libtmux.Options"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"The Java handle this wraps: the one escape hatch, as on every handle."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":40,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-options-asjava"},{"id":"io.github.libtmux.scaladsl.cats.Shell","name":"Shell","kind":"class","signatures":[{"raw":"final class Shell[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"Run shell commands through tmux in the effect type `F`."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":83,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-shell"},{"id":"io.github.libtmux.scaladsl.cats.Shell.server","name":"server","kind":"property","parent":"io.github.libtmux.scaladsl.cats.Shell","imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"signatures":[{"raw":"val server: Server[F]","params":[],"returns":"Server[F]"}],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":85,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-shell-server"},{"id":"io.github.libtmux.scaladsl.cats.Shell.equals","name":"equals","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Shell","signatures":[{"raw":"override def equals(other: Any): Boolean","params":[{"name":"other","type":"Any"}],"returns":"Boolean"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":87,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-shell-equals"},{"id":"io.github.libtmux.scaladsl.cats.Shell.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Shell","signatures":[{"raw":"override def hashCode(): Int","params":[],"returns":"Int"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":91,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-shell-hashcode"},{"id":"io.github.libtmux.scaladsl.cats.Shell.toString","name":"toString","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Shell","signatures":[{"raw":"override def toString: String","params":[],"returns":"String"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":92,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-shell-tostring"},{"id":"io.github.libtmux.scaladsl.cats.Shell.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Shell","signatures":[{"raw":"def asJava: io.github.libtmux.Shell","params":[],"returns":"io.github.libtmux.Shell"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"The Java handle this wraps: the one escape hatch, as on every handle."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":95,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-shell-asjava"},{"id":"io.github.libtmux.scaladsl.cats.Commands","name":"Commands","kind":"class","signatures":[{"raw":"final class Commands[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"Inspect the commands supported by the selected tmux executable."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":99,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-commands"},{"id":"io.github.libtmux.scaladsl.cats.Commands.server","name":"server","kind":"property","parent":"io.github.libtmux.scaladsl.cats.Commands","imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"signatures":[{"raw":"val server: Server[F]","params":[],"returns":"Server[F]"}],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":101,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-commands-server"},{"id":"io.github.libtmux.scaladsl.cats.Commands.equals","name":"equals","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Commands","signatures":[{"raw":"override def equals(other: Any): Boolean","params":[{"name":"other","type":"Any"}],"returns":"Boolean"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":103,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-commands-equals"},{"id":"io.github.libtmux.scaladsl.cats.Commands.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Commands","signatures":[{"raw":"override def hashCode(): Int","params":[],"returns":"Int"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":107,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-commands-hashcode"},{"id":"io.github.libtmux.scaladsl.cats.Commands.toString","name":"toString","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Commands","signatures":[{"raw":"override def toString: String","params":[],"returns":"String"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":108,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-commands-tostring"},{"id":"io.github.libtmux.scaladsl.cats.Commands.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Commands","signatures":[{"raw":"def asJava: io.github.libtmux.Commands","params":[],"returns":"io.github.libtmux.Commands"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"The Java handle this wraps: the one escape hatch, as on every handle."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":111,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-commands-asjava"},{"id":"io.github.libtmux.scaladsl.cats.Buffers","name":"Buffers","kind":"class","signatures":[{"raw":"final class Buffers[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"Read, create, and remove the server's paste buffers."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":115,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-buffers"},{"id":"io.github.libtmux.scaladsl.cats.Buffers.server","name":"server","kind":"property","parent":"io.github.libtmux.scaladsl.cats.Buffers","imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"signatures":[{"raw":"val server: Server[F]","params":[],"returns":"Server[F]"}],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":117,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-buffers-server"},{"id":"io.github.libtmux.scaladsl.cats.Buffers.equals","name":"equals","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Buffers","signatures":[{"raw":"override def equals(other: Any): Boolean","params":[{"name":"other","type":"Any"}],"returns":"Boolean"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":119,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-buffers-equals"},{"id":"io.github.libtmux.scaladsl.cats.Buffers.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Buffers","signatures":[{"raw":"override def hashCode(): Int","params":[],"returns":"Int"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":123,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-buffers-hashcode"},{"id":"io.github.libtmux.scaladsl.cats.Buffers.toString","name":"toString","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Buffers","signatures":[{"raw":"override def toString: String","params":[],"returns":"String"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":124,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-buffers-tostring"},{"id":"io.github.libtmux.scaladsl.cats.Buffers.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Buffers","signatures":[{"raw":"def asJava: io.github.libtmux.Buffers","params":[],"returns":"io.github.libtmux.Buffers"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"The Java handle this wraps: the one escape hatch, as on every handle."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":127,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-buffers-asjava"},{"id":"io.github.libtmux.scaladsl.cats.Environment","name":"Environment","kind":"class","signatures":[{"raw":"final class Environment[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"Read and update environment variables for processes started by tmux."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":131,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-environment"},{"id":"io.github.libtmux.scaladsl.cats.Environment.server","name":"server","kind":"property","parent":"io.github.libtmux.scaladsl.cats.Environment","imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"signatures":[{"raw":"val server: Server[F]","params":[],"returns":"Server[F]"}],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":133,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-environment-server"},{"id":"io.github.libtmux.scaladsl.cats.Environment.equals","name":"equals","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Environment","signatures":[{"raw":"override def equals(other: Any): Boolean","params":[{"name":"other","type":"Any"}],"returns":"Boolean"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":135,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-environment-equals"},{"id":"io.github.libtmux.scaladsl.cats.Environment.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Environment","signatures":[{"raw":"override def hashCode(): Int","params":[],"returns":"Int"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":139,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-environment-hashcode"},{"id":"io.github.libtmux.scaladsl.cats.Environment.toString","name":"toString","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Environment","signatures":[{"raw":"override def toString: String","params":[],"returns":"String"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":140,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-environment-tostring"},{"id":"io.github.libtmux.scaladsl.cats.Environment.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Environment","signatures":[{"raw":"def asJava: io.github.libtmux.Environment","params":[],"returns":"io.github.libtmux.Environment"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"The Java handle this wraps: the one escape hatch, as on every handle."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":143,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-environment-asjava"},{"id":"io.github.libtmux.scaladsl.cats.MessageLog","name":"MessageLog","kind":"class","signatures":[{"raw":"final class MessageLog[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"Read messages recorded by the tmux server."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":147,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-messagelog"},{"id":"io.github.libtmux.scaladsl.cats.MessageLog.server","name":"server","kind":"property","parent":"io.github.libtmux.scaladsl.cats.MessageLog","imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"signatures":[{"raw":"val server: Server[F]","params":[],"returns":"Server[F]"}],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":149,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-messagelog-server"},{"id":"io.github.libtmux.scaladsl.cats.MessageLog.equals","name":"equals","kind":"method","parent":"io.github.libtmux.scaladsl.cats.MessageLog","signatures":[{"raw":"override def equals(other: Any): Boolean","params":[{"name":"other","type":"Any"}],"returns":"Boolean"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":151,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-messagelog-equals"},{"id":"io.github.libtmux.scaladsl.cats.MessageLog.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.scaladsl.cats.MessageLog","signatures":[{"raw":"override def hashCode(): Int","params":[],"returns":"Int"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":155,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-messagelog-hashcode"},{"id":"io.github.libtmux.scaladsl.cats.MessageLog.toString","name":"toString","kind":"method","parent":"io.github.libtmux.scaladsl.cats.MessageLog","signatures":[{"raw":"override def toString: String","params":[],"returns":"String"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":156,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-messagelog-tostring"},{"id":"io.github.libtmux.scaladsl.cats.MessageLog.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.cats.MessageLog","signatures":[{"raw":"def asJava: io.github.libtmux.MessageLog","params":[],"returns":"io.github.libtmux.MessageLog"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"The Java handle this wraps: the one escape hatch, as on every handle."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":159,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-messagelog-asjava"},{"id":"io.github.libtmux.scaladsl.cats.Prompt","name":"Prompt","kind":"class","signatures":[{"raw":"final class Prompt[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"Read and clear the server's command-prompt history."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":163,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-prompt"},{"id":"io.github.libtmux.scaladsl.cats.Prompt.server","name":"server","kind":"property","parent":"io.github.libtmux.scaladsl.cats.Prompt","imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"signatures":[{"raw":"val server: Server[F]","params":[],"returns":"Server[F]"}],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":165,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-prompt-server"},{"id":"io.github.libtmux.scaladsl.cats.Prompt.equals","name":"equals","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Prompt","signatures":[{"raw":"override def equals(other: Any): Boolean","params":[{"name":"other","type":"Any"}],"returns":"Boolean"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":167,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-prompt-equals"},{"id":"io.github.libtmux.scaladsl.cats.Prompt.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Prompt","signatures":[{"raw":"override def hashCode(): Int","params":[],"returns":"Int"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":171,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-prompt-hashcode"},{"id":"io.github.libtmux.scaladsl.cats.Prompt.toString","name":"toString","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Prompt","signatures":[{"raw":"override def toString: String","params":[],"returns":"String"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":172,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-prompt-tostring"},{"id":"io.github.libtmux.scaladsl.cats.Prompt.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Prompt","signatures":[{"raw":"def asJava: io.github.libtmux.Prompt","params":[],"returns":"io.github.libtmux.Prompt"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"The Java handle this wraps: the one escape hatch, as on every handle."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":175,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-prompt-asjava"},{"id":"io.github.libtmux.scaladsl.cats.Keys","name":"Keys","kind":"class","signatures":[{"raw":"final class Keys[F[_]]","params":[],"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"Read and update bindings in tmux key tables."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":179,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-keys"},{"id":"io.github.libtmux.scaladsl.cats.Keys.server","name":"server","kind":"property","parent":"io.github.libtmux.scaladsl.cats.Keys","imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"signatures":[{"raw":"val server: Server[F]","params":[],"returns":"Server[F]"}],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":181,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-keys-server"},{"id":"io.github.libtmux.scaladsl.cats.Keys.equals","name":"equals","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Keys","signatures":[{"raw":"override def equals(other: Any): Boolean","params":[{"name":"other","type":"Any"}],"returns":"Boolean"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":183,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-keys-equals"},{"id":"io.github.libtmux.scaladsl.cats.Keys.hashCode","name":"hashCode","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Keys","signatures":[{"raw":"override def hashCode(): Int","params":[],"returns":"Int"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":187,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-keys-hashcode"},{"id":"io.github.libtmux.scaladsl.cats.Keys.toString","name":"toString","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Keys","signatures":[{"raw":"override def toString: String","params":[],"returns":"String"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":188,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-keys-tostring"},{"id":"io.github.libtmux.scaladsl.cats.Keys.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Keys","signatures":[{"raw":"def asJava: io.github.libtmux.Keys","params":[],"returns":"io.github.libtmux.Keys"}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":[],"doc":{"summary":"The Java handle this wraps: the one escape hatch, as on every handle."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":191,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-keys-asjava"},{"id":"io.github.libtmux.scaladsl.ox.Flows","name":"Flows","kind":"module","signatures":[{"raw":"object Flows","params":[]}],"imports":{"LiveView":"io.github.libtmux.scaladsl.live.LiveView","ServerMirror":"io.github.libtmux.snapshot.ServerMirror","Flow":"ox.flow.Flow","Delivery":"io.github.libtmux.control.Delivery","EventSubscription":"io.github.libtmux.control.EventSubscription"},"modifiers":[],"doc":{"summary":"An Ox `Flow` over a subscription or a live view, for a supervised scope. Ox adds no new handle type (`io.github.libtmux.scaladsl`'s opaque handles work unchanged inside a `fork`); what it needs from this project is the same single-owner discipline the direct-style `Observation` and `LiveView` already give a blocking caller, expressed as a cold `Flow` instead of an `Iterator`."},"source":{"file":"libtmux-scala-ox/src/main/scala/io/github/libtmux/scaladsl/ox/Flows.scala","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-ox-flows"},{"id":"io.github.libtmux.scaladsl.ox.Flows.subscription","name":"subscription","kind":"method","parent":"io.github.libtmux.scaladsl.ox.Flows","signatures":[{"raw":"def subscription[T](sub: EventSubscription[T]): Flow[Delivery[T]]","params":[{"name":"sub","type":"EventSubscription[T]"}],"returns":"Flow[Delivery[T]]","typeParams":["T"],"typeParameters":[{"name":"T"}]}],"imports":{"LiveView":"io.github.libtmux.scaladsl.live.LiveView","ServerMirror":"io.github.libtmux.snapshot.ServerMirror","Flow":"ox.flow.Flow","Delivery":"io.github.libtmux.control.Delivery","EventSubscription":"io.github.libtmux.control.EventSubscription"},"modifiers":[],"doc":{"summary":"One `Flow` element per step: an event this subscription kept, or a gap naming what was lost. Collecting the flow takes the subscription for good, through the Java subscription's own single-reader claim, and closes it when the collection ends. A second collection is refused as it starts, before it can disturb the first. The flow fails with the control client's cause if the client ended the subscription."},"source":{"file":"libtmux-scala-ox/src/main/scala/io/github/libtmux/scaladsl/ox/Flows.scala","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-ox-flows-subscription"},{"id":"io.github.libtmux.scaladsl.ox.Flows.liveView","name":"liveView","kind":"method","parent":"io.github.libtmux.scaladsl.ox.Flows","signatures":[{"raw":"def liveView(view: LiveView): Flow[ServerMirror.View]","params":[{"name":"view","type":"LiveView"}],"returns":"Flow[ServerMirror.View]"}],"imports":{"LiveView":"io.github.libtmux.scaladsl.live.LiveView","ServerMirror":"io.github.libtmux.snapshot.ServerMirror","Flow":"ox.flow.Flow","Delivery":"io.github.libtmux.control.Delivery","EventSubscription":"io.github.libtmux.control.EventSubscription"},"modifiers":[],"doc":{"summary":"The current view when the flow starts, then every newer one, one per notification. Completes when the view is closed, and fails with its cause when the anchor session or server has gone."},"source":{"file":"libtmux-scala-ox/src/main/scala/io/github/libtmux/scaladsl/ox/Flows.scala","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-ox-flows-liveview"},{"id":"io.github.libtmux.scaladsl.generated.PaneFields","name":"PaneFields","kind":"module","signatures":[{"raw":"object PaneFields","params":[]}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"Typed fields for filtering captured pane objects."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-panefields"},{"id":"io.github.libtmux.scaladsl.generated.PaneFields.id","name":"id","kind":"method","parent":"io.github.libtmux.scaladsl.generated.PaneFields","signatures":[{"raw":"def id: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The pane id."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-panefields-id"},{"id":"io.github.libtmux.scaladsl.generated.PaneFields.command","name":"command","kind":"method","parent":"io.github.libtmux.scaladsl.generated.PaneFields","signatures":[{"raw":"def command: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The command tmux reported running in the pane."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-panefields-command"},{"id":"io.github.libtmux.scaladsl.generated.PaneFields.index","name":"index","kind":"method","parent":"io.github.libtmux.scaladsl.generated.PaneFields","signatures":[{"raw":"def index: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The pane's position in its window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-panefields-index"},{"id":"io.github.libtmux.scaladsl.generated.PaneFields.active","name":"active","kind":"method","parent":"io.github.libtmux.scaladsl.generated.PaneFields","signatures":[{"raw":"def active: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"Whether this was its window's active pane."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-panefields-active"},{"id":"io.github.libtmux.scaladsl.generated.PaneFields.title","name":"title","kind":"method","parent":"io.github.libtmux.scaladsl.generated.PaneFields","signatures":[{"raw":"def title: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The pane's title, which a program running in it can set."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-panefields-title"},{"id":"io.github.libtmux.scaladsl.generated.PaneFields.path","name":"path","kind":"method","parent":"io.github.libtmux.scaladsl.generated.PaneFields","signatures":[{"raw":"def path: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The pane's working directory, as the text tmux reported."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-panefields-path"},{"id":"io.github.libtmux.scaladsl.generated.PaneFields.width","name":"width","kind":"method","parent":"io.github.libtmux.scaladsl.generated.PaneFields","signatures":[{"raw":"def width: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The pane's width, in cells."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":39,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-panefields-width"},{"id":"io.github.libtmux.scaladsl.generated.PaneFields.height","name":"height","kind":"method","parent":"io.github.libtmux.scaladsl.generated.PaneFields","signatures":[{"raw":"def height: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The pane's height, in cells."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":43,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-panefields-height"},{"id":"io.github.libtmux.scaladsl.generated.PaneFields.left","name":"left","kind":"method","parent":"io.github.libtmux.scaladsl.generated.PaneFields","signatures":[{"raw":"def left: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The column of the pane's left edge in its window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-panefields-left"},{"id":"io.github.libtmux.scaladsl.generated.PaneFields.top","name":"top","kind":"method","parent":"io.github.libtmux.scaladsl.generated.PaneFields","signatures":[{"raw":"def top: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The row of the pane's top edge in its window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":51,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-panefields-top"},{"id":"io.github.libtmux.scaladsl.generated.PaneFields.atTop","name":"atTop","kind":"method","parent":"io.github.libtmux.scaladsl.generated.PaneFields","signatures":[{"raw":"def atTop: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"Whether the pane touches the top of its window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":55,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-panefields-attop"},{"id":"io.github.libtmux.scaladsl.generated.PaneFields.atBottom","name":"atBottom","kind":"method","parent":"io.github.libtmux.scaladsl.generated.PaneFields","signatures":[{"raw":"def atBottom: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"Whether the pane touches the bottom of its window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":59,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-panefields-atbottom"},{"id":"io.github.libtmux.scaladsl.generated.PaneFields.atLeft","name":"atLeft","kind":"method","parent":"io.github.libtmux.scaladsl.generated.PaneFields","signatures":[{"raw":"def atLeft: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"Whether the pane touches the left of its window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":63,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-panefields-atleft"},{"id":"io.github.libtmux.scaladsl.generated.PaneFields.atRight","name":"atRight","kind":"method","parent":"io.github.libtmux.scaladsl.generated.PaneFields","signatures":[{"raw":"def atRight: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"Whether the pane touches the right of its window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":67,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-panefields-atright"},{"id":"io.github.libtmux.scaladsl.generated.SessionFields","name":"SessionFields","kind":"module","signatures":[{"raw":"object SessionFields","params":[]}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"Typed fields for filtering captured session objects."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":72,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-sessionfields"},{"id":"io.github.libtmux.scaladsl.generated.SessionFields.id","name":"id","kind":"method","parent":"io.github.libtmux.scaladsl.generated.SessionFields","signatures":[{"raw":"def id: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaSession]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaSession]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The session id, as text, so it can be compared and listed."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":74,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-sessionfields-id"},{"id":"io.github.libtmux.scaladsl.generated.SessionFields.name","name":"name","kind":"method","parent":"io.github.libtmux.scaladsl.generated.SessionFields","signatures":[{"raw":"def name: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaSession]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaSession]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The session name."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":78,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-sessionfields-name"},{"id":"io.github.libtmux.scaladsl.generated.SessionFields.attached","name":"attached","kind":"method","parent":"io.github.libtmux.scaladsl.generated.SessionFields","signatures":[{"raw":"def attached: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaSession]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaSession]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"Whether a client was attached when this was captured."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":82,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-sessionfields-attached"},{"id":"io.github.libtmux.scaladsl.generated.SessionFields.windowCount","name":"windowCount","kind":"method","parent":"io.github.libtmux.scaladsl.generated.SessionFields","signatures":[{"raw":"def windowCount: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaSession]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaSession]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"How many windows this session holds."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":86,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-sessionfields-windowcount"},{"id":"io.github.libtmux.scaladsl.generated.SessionFields.windows","name":"windows","kind":"method","parent":"io.github.libtmux.scaladsl.generated.SessionFields","signatures":[{"raw":"def windows: _root_.io.github.libtmux.scaladsl.query.Fields.ToManyRef[JavaSession, JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.ToManyRef[JavaSession, JavaWindow]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"This session's windows."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":90,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-sessionfields-windows"},{"id":"io.github.libtmux.scaladsl.generated.WindowFields","name":"WindowFields","kind":"module","signatures":[{"raw":"object WindowFields","params":[]}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"Typed fields for filtering captured window objects."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":95,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-windowfields"},{"id":"io.github.libtmux.scaladsl.generated.WindowFields.id","name":"id","kind":"method","parent":"io.github.libtmux.scaladsl.generated.WindowFields","signatures":[{"raw":"def id: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaWindow]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The underlying window id, shared by every link to it."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":97,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-windowfields-id"},{"id":"io.github.libtmux.scaladsl.generated.WindowFields.name","name":"name","kind":"method","parent":"io.github.libtmux.scaladsl.generated.WindowFields","signatures":[{"raw":"def name: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaWindow]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The window name."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":101,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-windowfields-name"},{"id":"io.github.libtmux.scaladsl.generated.WindowFields.index","name":"index","kind":"method","parent":"io.github.libtmux.scaladsl.generated.WindowFields","signatures":[{"raw":"def index: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"Where this link sits in its session."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":105,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-windowfields-index"},{"id":"io.github.libtmux.scaladsl.generated.WindowFields.active","name":"active","kind":"method","parent":"io.github.libtmux.scaladsl.generated.WindowFields","signatures":[{"raw":"def active: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaWindow]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"Whether this was its session's active window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":109,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-windowfields-active"},{"id":"io.github.libtmux.scaladsl.generated.WindowFields.linked","name":"linked","kind":"method","parent":"io.github.libtmux.scaladsl.generated.WindowFields","signatures":[{"raw":"def linked: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaWindow]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"Whether the underlying window is linked into more than one session."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":113,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-windowfields-linked"},{"id":"io.github.libtmux.scaladsl.generated.WindowFields.width","name":"width","kind":"method","parent":"io.github.libtmux.scaladsl.generated.WindowFields","signatures":[{"raw":"def width: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The window's width, in cells."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":117,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-windowfields-width"},{"id":"io.github.libtmux.scaladsl.generated.WindowFields.height","name":"height","kind":"method","parent":"io.github.libtmux.scaladsl.generated.WindowFields","signatures":[{"raw":"def height: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The window's height, in cells."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":121,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-windowfields-height"},{"id":"io.github.libtmux.scaladsl.generated.WindowFields.paneCount","name":"paneCount","kind":"method","parent":"io.github.libtmux.scaladsl.generated.WindowFields","signatures":[{"raw":"def paneCount: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"How many panes this link holds."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":125,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-windowfields-panecount"},{"id":"io.github.libtmux.scaladsl.generated.WindowFields.panes","name":"panes","kind":"method","parent":"io.github.libtmux.scaladsl.generated.WindowFields","signatures":[{"raw":"def panes: _root_.io.github.libtmux.scaladsl.query.Fields.ToManyRef[JavaWindow, JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.ToManyRef[JavaWindow, JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"This link's panes."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":129,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-windowfields-panes"},{"id":"io.github.libtmux.scaladsl.generated.WindowFields.session","name":"session","kind":"method","parent":"io.github.libtmux.scaladsl.generated.WindowFields","signatures":[{"raw":"def session: _root_.io.github.libtmux.scaladsl.query.Fields.ToOneRef[JavaWindow, JavaSession]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.ToOneRef[JavaWindow, JavaSession]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The session this link belongs to."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":133,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-windowfields-session"},{"id":"io.github.libtmux.scaladsl.generated.ClientFields","name":"ClientFields","kind":"module","signatures":[{"raw":"object ClientFields","params":[]}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"Typed fields for filtering captured client objects."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":138,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-clientfields"},{"id":"io.github.libtmux.scaladsl.generated.ClientFields.name","name":"name","kind":"method","parent":"io.github.libtmux.scaladsl.generated.ClientFields","signatures":[{"raw":"def name: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaClient]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaClient]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The client's terminal name, which is how tmux addresses it."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":140,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-clientfields-name"},{"id":"io.github.libtmux.scaladsl.generated.ClientFields.session","name":"session","kind":"method","parent":"io.github.libtmux.scaladsl.generated.ClientFields","signatures":[{"raw":"def session: _root_.io.github.libtmux.scaladsl.query.Fields.ToOneRef[JavaClient, JavaSession]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.ToOneRef[JavaClient, JavaSession]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The session this client was attached to, if any."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":144,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-generated-clientfields-session"},{"id":"io.github.libtmux.scaladsl.Client","name":"Client","kind":"typealias","signatures":[{"raw":"opaque type Client = JavaClient","params":[]},{"raw":"object Client","params":[]}],"imports":{"Expr":"io.github.libtmux.scaladsl.query.Expr","JavaClient":"io.github.libtmux.Client"},"modifiers":["opaque"],"doc":{"summary":"A captured attached client, opaque over the Java handle. Every operation beyond equality is an extension, generated from the operation catalog or handwritten where the catalog marks it `WAIT`, `STREAM` or `LIFECYCLE`."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Client.scala","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-client"},{"id":"io.github.libtmux.scaladsl.Client.given_CanEqual_Client_Client","name":"given_CanEqual_Client_Client","kind":"constant","parent":"io.github.libtmux.scaladsl.Client","signatures":[{"raw":"given CanEqual[Client, Client]","params":[],"returns":"CanEqual[Client, Client]"}],"imports":{"Expr":"io.github.libtmux.scaladsl.query.Expr","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Client.scala","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-client-given_canequal_client_client"},{"id":"io.github.libtmux.scaladsl.Pane","name":"Pane","kind":"typealias","signatures":[{"raw":"opaque type Pane = JavaPane","params":[]},{"raw":"object Pane","params":[]}],"imports":{"Expr":"io.github.libtmux.scaladsl.query.Expr","FiniteDuration":"scala.concurrent.duration.FiniteDuration","_":"scala.jdk.DurationConverters._","JavaPane":"io.github.libtmux.Pane","PaneRun":"io.github.libtmux.PaneRun","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason"},"modifiers":["opaque"],"doc":{"summary":"A captured pane occurrence, opaque over the Java handle. Java equality identifies the physical pane; every operation beyond that is an extension, generated from the operation catalog or handwritten where the catalog marks it `WAIT`, `STREAM` or `LIFECYCLE`."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Pane.scala","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane"},{"id":"io.github.libtmux.scaladsl.Pane.given_CanEqual_Pane_Pane","name":"given_CanEqual_Pane_Pane","kind":"constant","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"given CanEqual[Pane, Pane]","params":[],"returns":"CanEqual[Pane, Pane]"}],"imports":{"Expr":"io.github.libtmux.scaladsl.query.Expr","FiniteDuration":"scala.concurrent.duration.FiniteDuration","_":"scala.jdk.DurationConverters._","JavaPane":"io.github.libtmux.Pane","PaneRun":"io.github.libtmux.PaneRun","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Pane.scala","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-given_canequal_pane_pane"},{"id":"io.github.libtmux.scaladsl.Server","name":"Server","kind":"typealias","signatures":[{"raw":"opaque type Server <: AutoCloseable = JavaServer","params":[]},{"raw":"object Server","params":[]}],"imports":{"ControlClient":"io.github.libtmux.control.ControlClient","FiniteDuration":"scala.concurrent.duration.FiniteDuration","_":"scala.jdk.DurationConverters._","JavaServer":"io.github.libtmux.Server","ServerConfig":"io.github.libtmux.ServerConfig"},"modifiers":["opaque"],"doc":{"summary":"The Java client, opaque: every member beyond [[java.lang.AutoCloseable#close]] is an extension, generated from the operation catalog or handwritten where the catalog marks it `WAIT`, `STREAM` or `LIFECYCLE`. Closing an owned client releases its transport, not tmux; `close()` comes from the `AutoCloseable` bound with no forwarding of its own, so `Using.resource(server) { ... }` works.","examples":[{"lang":"console","intro":"Connect to a private tmux server. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala_3\"))\n .using(project(\":libtmux-scala\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/Connect.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scaladirect/Connect.scala","code":"package io.github.libtmux.examples.api.scaladirect\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.*\nimport scala.util.Using\nimport scala.util.control.NonFatal\n\n/** Connect to a private tmux server. */\nobject Connect {\n def main(args: Array[String]): Unit = {\n try {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n val config = ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n Using.resource(Server.open(config)) { server =>\n println(s\"connected=${server.isAlive()}\")\n }\n } catch {\n case NonFatal(error) =>\n System.err.println(\"Example failed: \" + error.getMessage)\n sys.exit(1)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scaladirect.Connect && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"connected=true\n"}]},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Server.scala","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"extends":["AutoCloseable"],"product":"core","slug":"io-github-libtmux-scaladsl-server"},{"id":"io.github.libtmux.scaladsl.Server.open","name":"open","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"def open(config: ServerConfig): Server","params":[{"name":"config","type":"ServerConfig"}],"returns":"Server"}],"imports":{"ControlClient":"io.github.libtmux.control.ControlClient","FiniteDuration":"scala.concurrent.duration.FiniteDuration","_":"scala.jdk.DurationConverters._","JavaServer":"io.github.libtmux.Server","ServerConfig":"io.github.libtmux.ServerConfig"},"modifiers":[],"doc":{"summary":"Opens an owned client for `config`.","examples":[{"lang":"console","intro":"Connect to a private tmux server. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala_3\"))\n .using(project(\":libtmux-scala\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/Connect.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scaladirect/Connect.scala","code":"package io.github.libtmux.examples.api.scaladirect\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.*\nimport scala.util.Using\nimport scala.util.control.NonFatal\n\n/** Connect to a private tmux server. */\nobject Connect {\n def main(args: Array[String]): Unit = {\n try {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n val config = ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n Using.resource(Server.open(config)) { server =>\n println(s\"connected=${server.isAlive()}\")\n }\n } catch {\n case NonFatal(error) =>\n System.err.println(\"Example failed: \" + error.getMessage)\n sys.exit(1)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scaladirect.Connect && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"connected=true\n"}]},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Server.scala","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-open"},{"id":"io.github.libtmux.scaladsl.Server.fromJava","name":"fromJava","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"def fromJava(java: JavaServer): Server","params":[{"name":"java","type":"JavaServer"}],"returns":"Server"}],"imports":{"ControlClient":"io.github.libtmux.control.ControlClient","FiniteDuration":"scala.concurrent.duration.FiniteDuration","_":"scala.jdk.DurationConverters._","JavaServer":"io.github.libtmux.Server","ServerConfig":"io.github.libtmux.ServerConfig"},"modifiers":[],"doc":{"summary":"Borrows a Java client this facade did not open; closing it closes that client too."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Server.scala","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-fromjava"},{"id":"io.github.libtmux.scaladsl.Server.given_CanEqual_Server_Server","name":"given_CanEqual_Server_Server","kind":"constant","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"given CanEqual[Server, Server]","params":[],"returns":"CanEqual[Server, Server]"}],"imports":{"ControlClient":"io.github.libtmux.control.ControlClient","FiniteDuration":"scala.concurrent.duration.FiniteDuration","_":"scala.jdk.DurationConverters._","JavaServer":"io.github.libtmux.Server","ServerConfig":"io.github.libtmux.ServerConfig"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Server.scala","line":29,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-given_canequal_server_server"},{"id":"io.github.libtmux.scaladsl.Session","name":"Session","kind":"typealias","signatures":[{"raw":"opaque type Session = JavaSession","params":[]},{"raw":"object Session","params":[]}],"imports":{"Expr":"io.github.libtmux.scaladsl.query.Expr","JavaSession":"io.github.libtmux.Session"},"modifiers":["opaque"],"doc":{"summary":"A captured session, opaque over the Java handle; every operation beyond equality is an extension, generated from the operation catalog or handwritten where the catalog marks it `WAIT`, `STREAM` or `LIFECYCLE`."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Session.scala","line":10,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session"},{"id":"io.github.libtmux.scaladsl.Session.given_CanEqual_Session_Session","name":"given_CanEqual_Session_Session","kind":"constant","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"given CanEqual[Session, Session]","params":[],"returns":"CanEqual[Session, Session]"}],"imports":{"Expr":"io.github.libtmux.scaladsl.query.Expr","JavaSession":"io.github.libtmux.Session"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Session.scala","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-given_canequal_session_session"},{"id":"io.github.libtmux.scaladsl.Window","name":"Window","kind":"typealias","signatures":[{"raw":"opaque type Window = JavaWindow","params":[]},{"raw":"object Window","params":[]}],"imports":{"Expr":"io.github.libtmux.scaladsl.query.Expr","JavaWindow":"io.github.libtmux.Window"},"modifiers":["opaque"],"doc":{"summary":"One captured window placement, opaque over the Java handle. Equality includes its session and index, since a window linked into more than one session has more than one placement. Every operation beyond equality is an extension, generated from the operation catalog or handwritten where the catalog marks it `WAIT`, `STREAM` or `LIFECYCLE`."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Window.scala","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window"},{"id":"io.github.libtmux.scaladsl.Window.given_CanEqual_Window_Window","name":"given_CanEqual_Window_Window","kind":"constant","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"given CanEqual[Window, Window]","params":[],"returns":"CanEqual[Window, Window]"}],"imports":{"Expr":"io.github.libtmux.scaladsl.query.Expr","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Window.scala","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-given_canequal_window_window"},{"id":"io.github.libtmux.scaladsl.live.LiveView","name":"LiveView","kind":"typealias","signatures":[{"raw":"opaque type LiveView <: AutoCloseable = JavaServerMirror","params":[]},{"raw":"object LiveView","params":[]}],"imports":{"Session":"io.github.libtmux.scaladsl.Session","Duration":"java.time.Duration","_":"scala.jdk.OptionConverters._","JavaServerMirror":"io.github.libtmux.snapshot.ServerMirror"},"modifiers":["opaque"],"doc":{"summary":"A live view of one tmux server's sessions, windows, panes and clients, opaque over Java's own [[io.github.libtmux.snapshot.ServerMirror ServerMirror]] — re-snapshotting on notification, on a gap and on reconnect is entirely Java's job; this only wraps it, rather than re-deriving resnapshot-on-notification from a raw control subscription. `close()` comes from the `AutoCloseable` bound with no forwarding of its own."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/live/LiveView.scala","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"extends":["AutoCloseable"],"product":"core","slug":"io-github-libtmux-scaladsl-live-liveview"},{"id":"io.github.libtmux.scaladsl.live.LiveView.attach","name":"attach","kind":"method","parent":"io.github.libtmux.scaladsl.live.LiveView","signatures":[{"raw":"def attach(anchor: Session): LiveView","params":[{"name":"anchor","type":"Session"}],"returns":"LiveView"},{"raw":"def attach(anchor: Session, refreshEvery: Duration): LiveView","params":[{"name":"anchor","type":"Session"},{"name":"refreshEvery","type":"Duration"}],"returns":"LiveView"}],"imports":{"Session":"io.github.libtmux.scaladsl.Session","Duration":"java.time.Duration","_":"scala.jdk.OptionConverters._","JavaServerMirror":"io.github.libtmux.snapshot.ServerMirror"},"modifiers":["overload"],"doc":{"summary":"Listens through a control client attached to `anchor`, rebuilding on every announcement."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/live/LiveView.scala","line":43,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-live-liveview-attach"},{"id":"io.github.libtmux.scaladsl.query.CardinalityError","name":"CardinalityError","kind":"enum","signatures":[{"raw":"enum CardinalityError derives CanEqual","params":[]},{"raw":"object CardinalityError","params":[]}],"imports":{"CardinalityException":"io.github.libtmux.exception.CardinalityException"},"modifiers":[],"doc":{"summary":"Mirrors [[io.github.libtmux.exception.CardinalityException CardinalityException]]'s two leaves losslessly, including the match count Java's own `MultipleMatches.atLeast()` carries — dropping it would be exactly the hand-authored lossy projection this facade's opaque handles exist to make impossible everywhere else."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/CardinalityError.scala","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-cardinalityerror"},{"id":"io.github.libtmux.scaladsl.query.CardinalityError.NoMatch","name":"NoMatch","kind":"constant","parent":"io.github.libtmux.scaladsl.query.CardinalityError","signatures":[{"raw":"NoMatch","params":[]}],"imports":{"CardinalityException":"io.github.libtmux.exception.CardinalityException"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/CardinalityError.scala","line":13,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-cardinalityerror-nomatch"},{"id":"io.github.libtmux.scaladsl.query.CardinalityError.MultipleMatches","name":"MultipleMatches","kind":"constant","parent":"io.github.libtmux.scaladsl.query.CardinalityError","signatures":[{"raw":"MultipleMatches(atLeast: Int)","params":[{"name":"atLeast","type":"Int"}]}],"imports":{"CardinalityException":"io.github.libtmux.exception.CardinalityException"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/CardinalityError.scala","line":14,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-cardinalityerror-multiplematches"},{"id":"io.github.libtmux.scaladsl.query.CardinalityError.from","name":"from","kind":"method","parent":"io.github.libtmux.scaladsl.query.CardinalityError","signatures":[{"raw":"def from(e: CardinalityException): CardinalityError","params":[{"name":"e","type":"CardinalityException"}],"returns":"CardinalityError"}],"imports":{"CardinalityException":"io.github.libtmux.exception.CardinalityException"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/CardinalityError.scala","line":18,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-cardinalityerror-from"},{"id":"io.github.libtmux.scaladsl.query.Expr","name":"Expr","kind":"typealias","signatures":[{"raw":"opaque type Expr[T] = JavaFilterExpr[T]","params":[],"typeParams":["T"],"typeParameters":[{"name":"T"}]},{"raw":"object Expr","params":[]}],"imports":{"JavaFilterExpr":"io.github.libtmux.query.FilterExpr"},"modifiers":["opaque"],"doc":{"summary":"A filter over `T`, both runnable and readable, opaque over Java's own `FilterExpr[T]` — lossless by construction, the same reasoning [[io.github.libtmux.scaladsl.Pane]] and its siblings rest on. `T` is the raw Java handle type a Java field metamodel (`Pane_`, `Session_`, ...) is built over, not this facade's opaque one: a query is a Java-shaped value that this facade's own `.matching` extensions apply to captured Scala handles."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Expr.scala","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-expr-zfkn"},{"id":"io.github.libtmux.scaladsl.query.Expr.apply","name":"apply","kind":"method","parent":"io.github.libtmux.scaladsl.query.Expr","signatures":[{"raw":"def apply[T](java: JavaFilterExpr[T]): Expr[T]","params":[{"name":"java","type":"JavaFilterExpr[T]"}],"returns":"Expr[T]","typeParams":["T"],"typeParameters":[{"name":"T"}]}],"imports":{"JavaFilterExpr":"io.github.libtmux.query.FilterExpr"},"modifiers":[],"doc":{"summary":"Wraps an existing Java expression, such as one a typed field method already produced."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Expr.scala","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-expr-apply"},{"id":"io.github.libtmux.scaladsl.query.Fields","name":"Fields","kind":"module","signatures":[{"raw":"object Fields","params":[]}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"doc":{"summary":"Typed field handles, wrapping Java's `io.github.libtmux.query.Fields` records so every operator returns this facade's [[Expr]] rather than a raw Java `FilterExpr`. An extension cannot reshape these methods' return type on the Java records directly — same-named would silently lose to the Java member, exactly the trap `-Werror` exists to catch — so each kind gets its own small Scala class instead, one line per operator, forwarding to the Java one underneath."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields"},{"id":"io.github.libtmux.scaladsl.query.Fields.TextField","name":"TextField","kind":"class","parent":"io.github.libtmux.scaladsl.query.Fields","signatures":[{"raw":"final class TextField[T]","params":[],"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":17,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-textfield"},{"id":"io.github.libtmux.scaladsl.query.Fields.TextField.is","name":"is","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.TextField","signatures":[{"raw":"def is(value: String): Expr[T]","params":[{"name":"value","type":"String"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-textfield-is"},{"id":"io.github.libtmux.scaladsl.query.Fields.TextField.isNot","name":"isNot","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.TextField","signatures":[{"raw":"def isNot(value: String): Expr[T]","params":[{"name":"value","type":"String"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":21,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-textfield-isnot"},{"id":"io.github.libtmux.scaladsl.query.Fields.TextField.contains","name":"contains","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.TextField","signatures":[{"raw":"def contains(value: String): Expr[T]","params":[{"name":"value","type":"String"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":22,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-textfield-contains"},{"id":"io.github.libtmux.scaladsl.query.Fields.TextField.startsWith","name":"startsWith","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.TextField","signatures":[{"raw":"def startsWith(value: String): Expr[T]","params":[{"name":"value","type":"String"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-textfield-startswith"},{"id":"io.github.libtmux.scaladsl.query.Fields.TextField.endsWith","name":"endsWith","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.TextField","signatures":[{"raw":"def endsWith(value: String): Expr[T]","params":[{"name":"value","type":"String"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-textfield-endswith"},{"id":"io.github.libtmux.scaladsl.query.Fields.TextField.matches","name":"matches","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.TextField","signatures":[{"raw":"def matches(value: Pattern): Expr[T]","params":[{"name":"value","type":"Pattern"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":25,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-textfield-matches"},{"id":"io.github.libtmux.scaladsl.query.Fields.TextField.in","name":"in","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.TextField","signatures":[{"raw":"def in(values: Iterable[String]): Expr[T]","params":[{"name":"values","type":"Iterable[String]"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":26,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-textfield-in"},{"id":"io.github.libtmux.scaladsl.query.Fields.NumberField","name":"NumberField","kind":"class","parent":"io.github.libtmux.scaladsl.query.Fields","signatures":[{"raw":"final class NumberField[T]","params":[],"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-numberfield"},{"id":"io.github.libtmux.scaladsl.query.Fields.NumberField.is","name":"is","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.NumberField","signatures":[{"raw":"def is(value: Int): Expr[T]","params":[{"name":"value","type":"Int"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":34,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-numberfield-is"},{"id":"io.github.libtmux.scaladsl.query.Fields.NumberField.isNot","name":"isNot","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.NumberField","signatures":[{"raw":"def isNot(value: Int): Expr[T]","params":[{"name":"value","type":"Int"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-numberfield-isnot"},{"id":"io.github.libtmux.scaladsl.query.Fields.NumberField.lessThan","name":"lessThan","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.NumberField","signatures":[{"raw":"def lessThan(value: Int): Expr[T]","params":[{"name":"value","type":"Int"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-numberfield-lessthan"},{"id":"io.github.libtmux.scaladsl.query.Fields.NumberField.atMost","name":"atMost","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.NumberField","signatures":[{"raw":"def atMost(value: Int): Expr[T]","params":[{"name":"value","type":"Int"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":37,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-numberfield-atmost"},{"id":"io.github.libtmux.scaladsl.query.Fields.NumberField.greaterThan","name":"greaterThan","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.NumberField","signatures":[{"raw":"def greaterThan(value: Int): Expr[T]","params":[{"name":"value","type":"Int"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-numberfield-greaterthan"},{"id":"io.github.libtmux.scaladsl.query.Fields.NumberField.atLeast","name":"atLeast","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.NumberField","signatures":[{"raw":"def atLeast(value: Int): Expr[T]","params":[{"name":"value","type":"Int"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":39,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-numberfield-atleast"},{"id":"io.github.libtmux.scaladsl.query.Fields.FlagField","name":"FlagField","kind":"class","parent":"io.github.libtmux.scaladsl.query.Fields","signatures":[{"raw":"final class FlagField[T]","params":[],"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":42,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-flagfield"},{"id":"io.github.libtmux.scaladsl.query.Fields.FlagField.is","name":"is","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.FlagField","signatures":[{"raw":"def is(value: Boolean): Expr[T]","params":[{"name":"value","type":"Boolean"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":45,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-flagfield-is"},{"id":"io.github.libtmux.scaladsl.query.Fields.FlagField.isNot","name":"isNot","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.FlagField","signatures":[{"raw":"def isNot(value: Boolean): Expr[T]","params":[{"name":"value","type":"Boolean"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":46,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-flagfield-isnot"},{"id":"io.github.libtmux.scaladsl.query.Fields.FlagField.isTrue","name":"isTrue","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.FlagField","signatures":[{"raw":"def isTrue: Expr[T]","params":[],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-flagfield-istrue"},{"id":"io.github.libtmux.scaladsl.query.Fields.FlagField.isFalse","name":"isFalse","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.FlagField","signatures":[{"raw":"def isFalse: Expr[T]","params":[],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":48,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-flagfield-isfalse"},{"id":"io.github.libtmux.scaladsl.query.Fields.ToOneRef","name":"ToOneRef","kind":"class","parent":"io.github.libtmux.scaladsl.query.Fields","signatures":[{"raw":"final class ToOneRef[T, R]","params":[],"typeParams":["T","R"],"typeParameters":[{"name":"T"},{"name":"R"}]}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":51,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-tooneref"},{"id":"io.github.libtmux.scaladsl.query.Fields.ToOneRef.is","name":"is","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.ToOneRef","signatures":[{"raw":"def is(predicate: Expr[R]): Expr[T]","params":[{"name":"predicate","type":"Expr[R]"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":54,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-tooneref-is"},{"id":"io.github.libtmux.scaladsl.query.Fields.ToManyRef","name":"ToManyRef","kind":"class","parent":"io.github.libtmux.scaladsl.query.Fields","signatures":[{"raw":"final class ToManyRef[T, R]","params":[],"typeParams":["T","R"],"typeParameters":[{"name":"T"},{"name":"R"}]}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":57,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-tomanyref"},{"id":"io.github.libtmux.scaladsl.query.Fields.ToManyRef.any","name":"any","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.ToManyRef","signatures":[{"raw":"def any(predicate: Expr[R]): Expr[T]","params":[{"name":"predicate","type":"Expr[R]"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":60,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-tomanyref-any"},{"id":"io.github.libtmux.scaladsl.query.Fields.ToManyRef.all","name":"all","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.ToManyRef","signatures":[{"raw":"def all(predicate: Expr[R]): Expr[T]","params":[{"name":"predicate","type":"Expr[R]"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":61,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-tomanyref-all"},{"id":"io.github.libtmux.scaladsl.query.Fields.ToManyRef.none","name":"none","kind":"method","parent":"io.github.libtmux.scaladsl.query.Fields.ToManyRef","signatures":[{"raw":"def none(predicate: Expr[R]): Expr[T]","params":[{"name":"predicate","type":"Expr[R]"}],"returns":"Expr[T]"}],"imports":{"Pattern":"java.util.regex.Pattern","_":"scala.jdk.CollectionConverters._","javaquery":"io.github.libtmux.query"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Fields.scala","line":62,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-fields-tomanyref-none"},{"id":"io.github.libtmux.scaladsl.streaming.Observation","name":"Observation","kind":"class","signatures":[{"raw":"final class Observation[T] \n extends AutoCloseable","params":[],"typeParams":["T"],"typeParameters":[{"name":"T"}]},{"raw":"object Observation","params":[]}],"imports":{"Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.OptionConverters._","Delivery":"io.github.libtmux.control.Delivery","EventSubscription":"io.github.libtmux.control.EventSubscription"},"modifiers":[],"doc":{"summary":"A single-consumer guard over one Java subscription, for direct-style reading.","body":"`EventSubscription` is already single-consumer by construction at the Java\nlayer — a second concurrent read is refused — but that guard is scoped to\none call; nothing stopped two direct `Iterator`s built from the same\nsubscription from interleaving reads across calls. This adds the same\nscoped-CAS discipline the Cats module's own `Observation` already had, so a\n`read` call is the unit of exclusive ownership here too, released when it\nreturns so a later sequential `read` stays legal."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/streaming/Observation.scala","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-streaming-observation"},{"id":"io.github.libtmux.scaladsl.streaming.Observation.read","name":"read","kind":"method","parent":"io.github.libtmux.scaladsl.streaming.Observation","signatures":[{"raw":"def read[A](pollTimeout: Duration)(use: Iterator[Delivery[T]] => A): A","params":[{"name":"pollTimeout","type":"Duration"},{"name":"use","type":"Iterator[Delivery[T]] => A"}],"returns":"A","typeParams":["A"],"typeParameters":[{"name":"A"}],"raises":[{"type":"java.lang.IllegalStateException","doc":"if another `read` on this observation is already in progress"}]}],"imports":{"Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.OptionConverters._","Delivery":"io.github.libtmux.control.Delivery","EventSubscription":"io.github.libtmux.control.EventSubscription"},"modifiers":[],"doc":{"summary":"Runs `use` over every step waiting or arriving within `pollTimeout` per poll, until the subscription closes. Rejects a second, overlapping `read` on this observation."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/streaming/Observation.scala","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-streaming-observation-read"},{"id":"io.github.libtmux.scaladsl.streaming.Observation.droppedCount","name":"droppedCount","kind":"method","parent":"io.github.libtmux.scaladsl.streaming.Observation","signatures":[{"raw":"def droppedCount: Long","params":[],"returns":"Long"}],"imports":{"Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.OptionConverters._","Delivery":"io.github.libtmux.control.Delivery","EventSubscription":"io.github.libtmux.control.EventSubscription"},"modifiers":[],"doc":{"summary":"The cumulative overflow count. A [[io.github.libtmux.control.Delivery$Gap Delivery.Gap]] read by [[read]] says where it sits."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/streaming/Observation.scala","line":49,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-streaming-observation-droppedcount"},{"id":"io.github.libtmux.scaladsl.streaming.Observation.close","name":"close","kind":"method","parent":"io.github.libtmux.scaladsl.streaming.Observation","signatures":[{"raw":"def close(): Unit","params":[],"returns":"Unit"}],"imports":{"Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.OptionConverters._","Delivery":"io.github.libtmux.control.Delivery","EventSubscription":"io.github.libtmux.control.EventSubscription"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/streaming/Observation.scala","line":51,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-streaming-observation-close"},{"id":"io.github.libtmux.scaladsl.streaming.Observation.apply","name":"apply","kind":"method","parent":"io.github.libtmux.scaladsl.streaming.Observation","signatures":[{"raw":"def apply[T](sub: EventSubscription[T]): Observation[T]","params":[{"name":"sub","type":"EventSubscription[T]"}],"returns":"Observation[T]","typeParams":["T"],"typeParameters":[{"name":"T"}]}],"imports":{"Duration":"java.time.Duration","AtomicBoolean":"java.util.concurrent.atomic.AtomicBoolean","_":"scala.jdk.OptionConverters._","Delivery":"io.github.libtmux.control.Delivery","EventSubscription":"io.github.libtmux.control.EventSubscription"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/streaming/Observation.scala","line":55,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-streaming-observation-apply"},{"id":"io.github.libtmux.scaladsl.Client.name","name":"name","kind":"method","parent":"io.github.libtmux.scaladsl.Client","signatures":[{"raw":"def name: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaClient]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaClient]"},{"raw":"extension (self: Client)\ndef name: String","params":[],"returns":"String","receiver":{"name":"self","type":"Client"}}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"The client's terminal name, which is how tmux addresses it."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":140,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.ClientFields.name","product":"core","slug":"io-github-libtmux-scaladsl-client-name"},{"id":"io.github.libtmux.scaladsl.Client.session","name":"session","kind":"method","parent":"io.github.libtmux.scaladsl.Client","signatures":[{"raw":"def session: _root_.io.github.libtmux.scaladsl.query.Fields.ToOneRef[JavaClient, JavaSession]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.ToOneRef[JavaClient, JavaSession]"},{"raw":"extension (self: Client)\ndef session: Option[Session]","params":[],"returns":"Option[Session]","receiver":{"name":"self","type":"Client"}}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"The session this client was attached to, if any."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":144,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.ClientFields.session","product":"core","slug":"io-github-libtmux-scaladsl-client-session"},{"id":"io.github.libtmux.scaladsl.Pane.id","name":"id","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"def id: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane]"},{"raw":"extension (self: Pane)\ndef id: io.github.libtmux.PaneId","params":[],"returns":"io.github.libtmux.PaneId","receiver":{"name":"self","type":"Pane"}}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"The pane id."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":15,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.PaneFields.id","product":"core","slug":"io-github-libtmux-scaladsl-pane-id"},{"id":"io.github.libtmux.scaladsl.Pane.command","name":"command","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"def command: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The command tmux reported running in the pane."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":19,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.PaneFields.command","product":"core","slug":"io-github-libtmux-scaladsl-pane-command"},{"id":"io.github.libtmux.scaladsl.Pane.index","name":"index","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"def index: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]"},{"raw":"extension (self: Pane)\ndef index: Int","params":[],"returns":"Int","receiver":{"name":"self","type":"Pane"}}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"The pane's position in its window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":23,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.PaneFields.index","product":"core","slug":"io-github-libtmux-scaladsl-pane-index"},{"id":"io.github.libtmux.scaladsl.Pane.active","name":"active","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"def active: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]"},{"raw":"extension (self: Pane)\ndef active: Boolean","params":[],"returns":"Boolean","receiver":{"name":"self","type":"Pane"}}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"Whether this was its window's active pane."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":27,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.PaneFields.active","product":"core","slug":"io-github-libtmux-scaladsl-pane-active"},{"id":"io.github.libtmux.scaladsl.Pane.title","name":"title","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"def title: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane]"},{"raw":"extension (self: Pane)\ndef title: String","params":[],"returns":"String","receiver":{"name":"self","type":"Pane"}}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"The pane's title, which a program running in it can set."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.PaneFields.title","product":"core","slug":"io-github-libtmux-scaladsl-pane-title"},{"id":"io.github.libtmux.scaladsl.Pane.path","name":"path","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"def path: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The pane's working directory, as the text tmux reported."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.PaneFields.path","product":"core","slug":"io-github-libtmux-scaladsl-pane-path"},{"id":"io.github.libtmux.scaladsl.Pane.width","name":"width","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"def width: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The pane's width, in cells."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":39,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.PaneFields.width","product":"core","slug":"io-github-libtmux-scaladsl-pane-width"},{"id":"io.github.libtmux.scaladsl.Pane.height","name":"height","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"def height: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The pane's height, in cells."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":43,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.PaneFields.height","product":"core","slug":"io-github-libtmux-scaladsl-pane-height"},{"id":"io.github.libtmux.scaladsl.Pane.left","name":"left","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"def left: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The column of the pane's left edge in its window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.PaneFields.left","product":"core","slug":"io-github-libtmux-scaladsl-pane-left"},{"id":"io.github.libtmux.scaladsl.Pane.top","name":"top","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"def top: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The row of the pane's top edge in its window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":51,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.PaneFields.top","product":"core","slug":"io-github-libtmux-scaladsl-pane-top"},{"id":"io.github.libtmux.scaladsl.Pane.atTop","name":"atTop","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"def atTop: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"Whether the pane touches the top of its window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":55,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.PaneFields.atTop","product":"core","slug":"io-github-libtmux-scaladsl-pane-attop"},{"id":"io.github.libtmux.scaladsl.Pane.atBottom","name":"atBottom","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"def atBottom: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"Whether the pane touches the bottom of its window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":59,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.PaneFields.atBottom","product":"core","slug":"io-github-libtmux-scaladsl-pane-atbottom"},{"id":"io.github.libtmux.scaladsl.Pane.atLeft","name":"atLeft","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"def atLeft: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"Whether the pane touches the left of its window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":63,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.PaneFields.atLeft","product":"core","slug":"io-github-libtmux-scaladsl-pane-atleft"},{"id":"io.github.libtmux.scaladsl.Pane.atRight","name":"atRight","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"def atRight: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"Whether the pane touches the right of its window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":67,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.PaneFields.atRight","product":"core","slug":"io-github-libtmux-scaladsl-pane-atright"},{"id":"io.github.libtmux.scaladsl.Session.id","name":"id","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"def id: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaSession]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaSession]"},{"raw":"extension (self: Session)\ndef id: io.github.libtmux.SessionId","params":[],"returns":"io.github.libtmux.SessionId","receiver":{"name":"self","type":"Session"}}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"The session id, as text, so it can be compared and listed."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":74,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.SessionFields.id","product":"core","slug":"io-github-libtmux-scaladsl-session-id"},{"id":"io.github.libtmux.scaladsl.Session.name","name":"name","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"def name: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaSession]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaSession]"},{"raw":"extension (self: Session)\ndef name: String","params":[],"returns":"String","receiver":{"name":"self","type":"Session"}}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"The session name."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":78,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.SessionFields.name","product":"core","slug":"io-github-libtmux-scaladsl-session-name"},{"id":"io.github.libtmux.scaladsl.Session.attached","name":"attached","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"def attached: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaSession]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaSession]"},{"raw":"extension (self: Session)\ndef attached: Boolean","params":[],"returns":"Boolean","receiver":{"name":"self","type":"Session"}}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"Whether a client was attached when this was captured."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":82,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.SessionFields.attached","product":"core","slug":"io-github-libtmux-scaladsl-session-attached"},{"id":"io.github.libtmux.scaladsl.Session.windowCount","name":"windowCount","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"def windowCount: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaSession]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaSession]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"How many windows this session holds."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":86,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.SessionFields.windowCount","product":"core","slug":"io-github-libtmux-scaladsl-session-windowcount"},{"id":"io.github.libtmux.scaladsl.Session.windows","name":"windows","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"def windows: _root_.io.github.libtmux.scaladsl.query.Fields.ToManyRef[JavaSession, JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.ToManyRef[JavaSession, JavaWindow]"},{"raw":"extension (self: Session)\ndef windows: Vector[Window]","params":[],"returns":"Vector[Window]","receiver":{"name":"self","type":"Session"}}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"This session's windows.","examples":[{"lang":"console","intro":"List all windows, then the windows captured for one session. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala_3\"))\n .using(project(\":libtmux-scala\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/ListWindows.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scaladirect/ListWindows.scala","code":"package io.github.libtmux.examples.api.scaladirect\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.*\nimport scala.util.Using\nimport scala.util.control.NonFatal\n\n/** List all windows, then the windows captured for one session. */\nobject ListWindows {\n def main(args: Array[String]): Unit = {\n try {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n val config = ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n Using.resource(Server.open(config)) { server =>\n println(\"windows=\" + server.windows().map(_.name).sorted.mkString(\",\"))\n val session =\n server.session(\"work-one\").getOrElse(sys.error(\"missing work-one\"))\n println(\n \"session-windows=\" + session.windows.map(_.name).sorted.mkString(\",\")\n )\n }\n } catch {\n case NonFatal(error) =>\n System.err.println(\"Example failed: \" + error.getMessage)\n sys.exit(1)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scaladirect.ListWindows && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"windows=editor,editor,logs\nsession-windows=editor,logs\n"}]},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":90,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.SessionFields.windows","product":"core","slug":"io-github-libtmux-scaladsl-session-windows"},{"id":"io.github.libtmux.scaladsl.Window.id","name":"id","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"def id: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaWindow]"},{"raw":"extension (self: Window)\ndef id: io.github.libtmux.WindowId","params":[],"returns":"io.github.libtmux.WindowId","receiver":{"name":"self","type":"Window"}}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"The underlying window id, shared by every link to it."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":97,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.WindowFields.id","product":"core","slug":"io-github-libtmux-scaladsl-window-id"},{"id":"io.github.libtmux.scaladsl.Window.name","name":"name","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"def name: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaWindow]"},{"raw":"extension (self: Window)\ndef name: String","params":[],"returns":"String","receiver":{"name":"self","type":"Window"}}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"The window name."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":101,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.WindowFields.name","product":"core","slug":"io-github-libtmux-scaladsl-window-name"},{"id":"io.github.libtmux.scaladsl.Window.index","name":"index","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"def index: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow]"},{"raw":"extension (self: Window)\ndef index: io.github.libtmux.WindowIndex","params":[],"returns":"io.github.libtmux.WindowIndex","receiver":{"name":"self","type":"Window"}}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"Where this link sits in its session."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":105,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.WindowFields.index","product":"core","slug":"io-github-libtmux-scaladsl-window-index"},{"id":"io.github.libtmux.scaladsl.Window.active","name":"active","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"def active: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaWindow]"},{"raw":"extension (self: Window)\ndef active: Boolean","params":[],"returns":"Boolean","receiver":{"name":"self","type":"Window"}}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"Whether this was its session's active window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":109,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.WindowFields.active","product":"core","slug":"io-github-libtmux-scaladsl-window-active"},{"id":"io.github.libtmux.scaladsl.Window.linked","name":"linked","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"def linked: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaWindow]"},{"raw":"extension (self: Window)\ndef linked: Boolean","params":[],"returns":"Boolean","receiver":{"name":"self","type":"Window"}}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"Whether the underlying window is linked into more than one session."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":113,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.WindowFields.linked","product":"core","slug":"io-github-libtmux-scaladsl-window-linked"},{"id":"io.github.libtmux.scaladsl.Window.width","name":"width","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"def width: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The window's width, in cells."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":117,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.WindowFields.width","product":"core","slug":"io-github-libtmux-scaladsl-window-width"},{"id":"io.github.libtmux.scaladsl.Window.height","name":"height","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"def height: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The window's height, in cells."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":121,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.WindowFields.height","product":"core","slug":"io-github-libtmux-scaladsl-window-height"},{"id":"io.github.libtmux.scaladsl.Window.paneCount","name":"paneCount","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"def paneCount: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow]"}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"How many panes this link holds."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":125,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.WindowFields.paneCount","product":"core","slug":"io-github-libtmux-scaladsl-window-panecount"},{"id":"io.github.libtmux.scaladsl.Window.panes","name":"panes","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"def panes: _root_.io.github.libtmux.scaladsl.query.Fields.ToManyRef[JavaWindow, JavaPane]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.ToManyRef[JavaWindow, JavaPane]"},{"raw":"extension (self: Window)\ndef panes: Vector[Pane]","params":[],"returns":"Vector[Pane]","receiver":{"name":"self","type":"Window"}}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"This link's panes.","examples":[{"lang":"console","intro":"List all panes, then the panes captured for one window. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala_3\"))\n .using(project(\":libtmux-scala\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/ListPanes.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scaladirect/ListPanes.scala","code":"package io.github.libtmux.examples.api.scaladirect\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.*\nimport scala.util.Using\nimport scala.util.control.NonFatal\n\n/** List all panes, then the panes captured for one window. */\nobject ListPanes {\n def main(args: Array[String]): Unit = {\n try {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n val config = ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n Using.resource(Server.open(config)) { server =>\n println(s\"panes=${server.panes().size}\")\n val session =\n server.session(\"work-one\").getOrElse(sys.error(\"missing work-one\"))\n val window = session.windows\n .find(_.name.equals(\"editor\"))\n .getOrElse(sys.error(\"missing editor\"))\n println(s\"window-panes=${window.panes.size}\")\n }\n } catch {\n case NonFatal(error) =>\n System.err.println(\"Example failed: \" + error.getMessage)\n sys.exit(1)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scaladirect.ListPanes && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"panes=4\nwindow-panes=2\n"}]},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":129,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.WindowFields.panes","product":"core","slug":"io-github-libtmux-scaladsl-window-panes"},{"id":"io.github.libtmux.scaladsl.Window.session","name":"session","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"def session: _root_.io.github.libtmux.scaladsl.query.Fields.ToOneRef[JavaWindow, JavaSession]","params":[],"returns":"_root_.io.github.libtmux.scaladsl.query.Fields.ToOneRef[JavaWindow, JavaSession]"},{"raw":"extension (self: Window)\ndef session: Session","params":[],"returns":"Session","receiver":{"name":"self","type":"Window"}}],"imports":{"JavaPane":"io.github.libtmux.Pane","JavaSession":"io.github.libtmux.Session","JavaWindow":"io.github.libtmux.Window","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"The session this link belongs to."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala","line":133,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"exportedFrom":"io.github.libtmux.scaladsl.generated.WindowFields.session","product":"core","slug":"io-github-libtmux-scaladsl-window-session"},{"id":"io.github.libtmux.scaladsl.cats.Buffers.list","name":"list","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Buffers","signatures":[{"raw":"extension [F[_]](self: Buffers[F])(using F: _root_.cats.effect.Async[F])\ndef list(): F[Vector[io.github.libtmux.BufferInfo]]","params":[],"returns":"F[Vector[io.github.libtmux.BufferInfo]]","receiver":{"name":"self","type":"Buffers[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Captures every buffer the server holds, in tmux's order."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":8,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-buffers-list"},{"id":"io.github.libtmux.scaladsl.cats.Buffers.set","name":"set","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Buffers","signatures":[{"raw":"extension [F[_]](self: Buffers[F])(using F: _root_.cats.effect.Async[F])\ndef set(name: String, contents: String): F[Unit]","params":[{"name":"name","type":"String"},{"name":"contents","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Buffers[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Puts text in a named buffer, replacing whatever was there."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-buffers-set"},{"id":"io.github.libtmux.scaladsl.cats.Buffers.show","name":"show","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Buffers","signatures":[{"raw":"extension [F[_]](self: Buffers[F])(using F: _root_.cats.effect.Async[F])\ndef show(name: String): F[String]","params":[{"name":"name","type":"String"}],"returns":"F[String]","receiver":{"name":"self","type":"Buffers[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"What a buffer holds, without any line breaks it ends with."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-buffers-show"},{"id":"io.github.libtmux.scaladsl.cats.Buffers.delete","name":"delete","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Buffers","signatures":[{"raw":"extension [F[_]](self: Buffers[F])(using F: _root_.cats.effect.Async[F])\ndef delete(name: String): F[Unit]","params":[{"name":"name","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Buffers[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Removes a buffer by its exact name."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-buffers-delete"},{"id":"io.github.libtmux.scaladsl.cats.Buffers.save","name":"save","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Buffers","signatures":[{"raw":"extension [F[_]](self: Buffers[F])(using F: _root_.cats.effect.Async[F])\ndef save(name: String, file: java.nio.file.Path): F[Unit]","params":[{"name":"name","type":"String"},{"name":"file","type":"java.nio.file.Path"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Buffers[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Writes a buffer's contents to a file."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-buffers-save"},{"id":"io.github.libtmux.scaladsl.cats.Buffers.load","name":"load","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Buffers","signatures":[{"raw":"extension [F[_]](self: Buffers[F])(using F: _root_.cats.effect.Async[F])\ndef load(name: String, file: java.nio.file.Path): F[Unit]","params":[{"name":"name","type":"String"},{"name":"file","type":"java.nio.file.Path"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Buffers[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Reads a file into a named buffer."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-buffers-load"},{"id":"io.github.libtmux.scaladsl.cats.Client.name","name":"name","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Client","signatures":[{"raw":"extension [F[_]](self: Client[F])(using F: _root_.cats.effect.Async[F])\ndef name: String","params":[],"returns":"String","receiver":{"name":"self","type":"Client[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The client's terminal name, which is how tmux addresses it."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":35,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-client-name"},{"id":"io.github.libtmux.scaladsl.cats.Client.detach","name":"detach","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Client","signatures":[{"raw":"extension [F[_]](self: Client[F])(using F: _root_.cats.effect.Async[F])\ndef detach(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Client[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Detaches this client, leaving whatever it was attached to running."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":39,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-client-detach"},{"id":"io.github.libtmux.scaladsl.cats.Client.detachOthers","name":"detachOthers","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Client","signatures":[{"raw":"extension [F[_]](self: Client[F])(using F: _root_.cats.effect.Async[F])\ndef detachOthers(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Client[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Detaches every other client, leaving this one attached."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":43,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-client-detachothers"},{"id":"io.github.libtmux.scaladsl.cats.Client.switchTo","name":"switchTo","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Client","signatures":[{"raw":"extension [F[_]](self: Client[F])(using F: _root_.cats.effect.Async[F])\ndef switchTo(session: Session[F]): F[Unit]","params":[{"name":"session","type":"Session[F]"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Client[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Moves this client to another session."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-client-switchto"},{"id":"io.github.libtmux.scaladsl.cats.Client.redraw","name":"redraw","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Client","signatures":[{"raw":"extension [F[_]](self: Client[F])(using F: _root_.cats.effect.Async[F])\ndef redraw(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Client[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Asks tmux to redraw this client."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":51,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-client-redraw"},{"id":"io.github.libtmux.scaladsl.cats.Client.session","name":"session","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Client","signatures":[{"raw":"extension [F[_]](self: Client[F])(using F: _root_.cats.effect.Async[F])\ndef session: Option[Session[F]]","params":[],"returns":"Option[Session[F]]","receiver":{"name":"self","type":"Client[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The session this client was attached to when captured."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":55,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-client-session"},{"id":"io.github.libtmux.scaladsl.cats.Client.attachment","name":"attachment","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Client","signatures":[{"raw":"extension [F[_]](self: Client[F])(using F: _root_.cats.effect.Async[F])\ndef attachment: Option[io.github.libtmux.ClientAttachment]","params":[],"returns":"Option[io.github.libtmux.ClientAttachment]","receiver":{"name":"self","type":"Client[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"What this client was looking at when captured."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":59,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-client-attachment"},{"id":"io.github.libtmux.scaladsl.cats.Client.fetchAttachment","name":"fetchAttachment","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Client","signatures":[{"raw":"extension [F[_]](self: Client[F])(using F: _root_.cats.effect.Async[F])\ndef fetchAttachment(): F[Option[io.github.libtmux.ClientAttachment]]","params":[],"returns":"F[Option[io.github.libtmux.ClientAttachment]]","receiver":{"name":"self","type":"Client[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Takes a new capture and returns what this client is looking at now."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":63,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-client-fetchattachment"},{"id":"io.github.libtmux.scaladsl.cats.Client.refresh","name":"refresh","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Client","signatures":[{"raw":"extension [F[_]](self: Client[F])(using F: _root_.cats.effect.Async[F])\ndef refresh(): F[Client[F]]","params":[],"returns":"F[Client[F]]","receiver":{"name":"self","type":"Client[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Takes a new capture and returns this client as it is now."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":67,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-client-refresh"},{"id":"io.github.libtmux.scaladsl.cats.Commands.list","name":"list","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Commands","signatures":[{"raw":"extension [F[_]](self: Commands[F])(using F: _root_.cats.effect.Async[F])\ndef list(): F[Vector[String]]","params":[],"returns":"F[Vector[String]]","receiver":{"name":"self","type":"Commands[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Every command, as tmux prints it."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":74,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-commands-list"},{"id":"io.github.libtmux.scaladsl.cats.Environment.get","name":"get","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Environment","signatures":[{"raw":"extension [F[_]](self: Environment[F])(using F: _root_.cats.effect.Async[F])\ndef get(name: String): F[Option[String]]","params":[{"name":"name","type":"String"}],"returns":"F[Option[String]]","receiver":{"name":"self","type":"Environment[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The value set for this name, or empty when it is removed or absent."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":81,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-environment-get"},{"id":"io.github.libtmux.scaladsl.cats.Environment.isRemoved","name":"isRemoved","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Environment","signatures":[{"raw":"extension [F[_]](self: Environment[F])(using F: _root_.cats.effect.Async[F])\ndef isRemoved(name: String): F[Boolean]","params":[{"name":"name","type":"String"}],"returns":"F[Boolean]","receiver":{"name":"self","type":"Environment[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Whether new processes are told not to inherit this name."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":85,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-environment-isremoved"},{"id":"io.github.libtmux.scaladsl.cats.Environment.all","name":"all","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Environment","signatures":[{"raw":"extension [F[_]](self: Environment[F])(using F: _root_.cats.effect.Async[F])\ndef all(): F[_root_.scala.collection.immutable.VectorMap[String, String]]","params":[],"returns":"F[_root_.scala.collection.immutable.VectorMap[String, String]]","receiver":{"name":"self","type":"Environment[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Every name set at this scope, in tmux's order."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":89,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-environment-all"},{"id":"io.github.libtmux.scaladsl.cats.Environment.effective","name":"effective","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Environment","signatures":[{"raw":"extension [F[_]](self: Environment[F])(using F: _root_.cats.effect.Async[F])\ndef effective(): F[_root_.scala.collection.immutable.VectorMap[String, String]]","params":[],"returns":"F[_root_.scala.collection.immutable.VectorMap[String, String]]","receiver":{"name":"self","type":"Environment[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"What a process started from this scope is actually handed, both scopes taken together."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":93,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-environment-effective"},{"id":"io.github.libtmux.scaladsl.cats.Environment.removed","name":"removed","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Environment","signatures":[{"raw":"extension [F[_]](self: Environment[F])(using F: _root_.cats.effect.Async[F])\ndef removed(): F[Set[String]]","params":[],"returns":"F[Set[String]]","receiver":{"name":"self","type":"Environment[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Every name this scope tells a new process not to inherit."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":97,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-environment-removed"},{"id":"io.github.libtmux.scaladsl.cats.Environment.set","name":"set","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Environment","signatures":[{"raw":"extension [F[_]](self: Environment[F])(using F: _root_.cats.effect.Async[F])\ndef set(name: String, value: String): F[Unit]","params":[{"name":"name","type":"String"},{"name":"value","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Environment[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Sets a name to a literal value."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":101,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-environment-set"},{"id":"io.github.libtmux.scaladsl.cats.Environment.setExpanded","name":"setExpanded","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Environment","signatures":[{"raw":"extension [F[_]](self: Environment[F])(using F: _root_.cats.effect.Async[F])\ndef setExpanded(name: String, format: String): F[Unit]","params":[{"name":"name","type":"String"},{"name":"format","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Environment[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Sets a name to what a tmux format expands to now."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":105,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-environment-setexpanded"},{"id":"io.github.libtmux.scaladsl.cats.Environment.unset","name":"unset","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Environment","signatures":[{"raw":"extension [F[_]](self: Environment[F])(using F: _root_.cats.effect.Async[F])\ndef unset(name: String): F[Unit]","params":[{"name":"name","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Environment[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Removes the name from this scope, so it is neither set nor marked."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":109,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-environment-unset"},{"id":"io.github.libtmux.scaladsl.cats.Environment.remove","name":"remove","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Environment","signatures":[{"raw":"extension [F[_]](self: Environment[F])(using F: _root_.cats.effect.Async[F])\ndef remove(name: String): F[Unit]","params":[{"name":"name","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Environment[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Tells processes started after this not to inherit the name."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":113,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-environment-remove"},{"id":"io.github.libtmux.scaladsl.cats.Hooks.set","name":"set","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Hooks","signatures":[{"raw":"extension [F[_]](self: Hooks[F])(using F: _root_.cats.effect.Async[F])\ndef set(event: String, command: String): F[Unit]","params":[{"name":"event","type":"String"},{"name":"command","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Hooks[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Hooks[F])(using F: _root_.cats.effect.Async[F])\ndef set(event: String, command: Vector[String]): F[Unit]","params":[{"name":"event","type":"String"},{"name":"command","type":"Vector[String]"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Hooks[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Binds a tmux command to an event at this scope, replacing anything already bound to it."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":120,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-hooks-set"},{"id":"io.github.libtmux.scaladsl.cats.Hooks.append","name":"append","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Hooks","signatures":[{"raw":"extension [F[_]](self: Hooks[F])(using F: _root_.cats.effect.Async[F])\ndef append(event: String, command: Vector[String]): F[Unit]","params":[{"name":"event","type":"String"},{"name":"command","type":"Vector[String]"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Hooks[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Hooks[F])(using F: _root_.cats.effect.Async[F])\ndef append(event: String, command: String): F[Unit]","params":[{"name":"event","type":"String"},{"name":"command","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Hooks[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"As {@link #append(String, String)}, with the command as words."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":128,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-hooks-append"},{"id":"io.github.libtmux.scaladsl.cats.Hooks.unset","name":"unset","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Hooks","signatures":[{"raw":"extension [F[_]](self: Hooks[F])(using F: _root_.cats.effect.Async[F])\ndef unset(event: String): F[Unit]","params":[{"name":"event","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Hooks[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Removes everything bound to an event at this scope."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":136,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-hooks-unset"},{"id":"io.github.libtmux.scaladsl.cats.Hooks.run","name":"run","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Hooks","signatures":[{"raw":"extension [F[_]](self: Hooks[F])(using F: _root_.cats.effect.Async[F])\ndef run(event: String): F[Unit]","params":[{"name":"event","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Hooks[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Runs what is bound to an event now, without waiting for the event."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":140,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-hooks-run"},{"id":"io.github.libtmux.scaladsl.cats.Hooks.all","name":"all","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Hooks","signatures":[{"raw":"extension [F[_]](self: Hooks[F])(using F: _root_.cats.effect.Async[F])\ndef all(): F[_root_.scala.collection.immutable.VectorMap[String, Vector[String]]]","params":[],"returns":"F[_root_.scala.collection.immutable.VectorMap[String, Vector[String]]]","receiver":{"name":"self","type":"Hooks[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Every hook at this scope, keyed by event, each with its commands in the order tmux runs them."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":144,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-hooks-all"},{"id":"io.github.libtmux.scaladsl.cats.Keys.in","name":"in","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Keys","signatures":[{"raw":"extension [F[_]](self: Keys[F])(using F: _root_.cats.effect.Async[F])\ndef in(table: String): Keys[F]","params":[{"name":"table","type":"String"}],"returns":"Keys[F]","receiver":{"name":"self","type":"Keys[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The same bindings, in one named table."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":151,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-keys-in"},{"id":"io.github.libtmux.scaladsl.cats.Keys.bind","name":"bind","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Keys","signatures":[{"raw":"extension [F[_]](self: Keys[F])(using F: _root_.cats.effect.Async[F])\ndef bind(key: String, command: Vector[String]): F[Unit]","params":[{"name":"key","type":"String"},{"name":"command","type":"Vector[String]"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Keys[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Binds a key to a tmux command, given as its words."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":155,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-keys-bind"},{"id":"io.github.libtmux.scaladsl.cats.Keys.unbind","name":"unbind","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Keys","signatures":[{"raw":"extension [F[_]](self: Keys[F])(using F: _root_.cats.effect.Async[F])\ndef unbind(key: String): F[Unit]","params":[{"name":"key","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Keys[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Removes a key's binding."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":159,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-keys-unbind"},{"id":"io.github.libtmux.scaladsl.cats.Keys.list","name":"list","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Keys","signatures":[{"raw":"extension [F[_]](self: Keys[F])(using F: _root_.cats.effect.Async[F])\ndef list(): F[Vector[String]]","params":[],"returns":"F[Vector[String]]","receiver":{"name":"self","type":"Keys[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The bindings as tmux lists them, one per line."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":163,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-keys-list"},{"id":"io.github.libtmux.scaladsl.cats.MessageLog.lines","name":"lines","kind":"method","parent":"io.github.libtmux.scaladsl.cats.MessageLog","signatures":[{"raw":"extension [F[_]](self: MessageLog[F])(using F: _root_.cats.effect.Async[F])\ndef lines(): F[Vector[String]]","params":[],"returns":"F[Vector[String]]","receiver":{"name":"self","type":"MessageLog[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The log lines."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":170,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-messagelog-lines"},{"id":"io.github.libtmux.scaladsl.cats.Options.all","name":"all","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Options","signatures":[{"raw":"extension [F[_]](self: Options[F])(using F: _root_.cats.effect.Async[F])\ndef all(): F[_root_.scala.collection.immutable.VectorMap[String, String]]","params":[],"returns":"F[_root_.scala.collection.immutable.VectorMap[String, String]]","receiver":{"name":"self","type":"Options[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Every option set at this scope, in tmux's order."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":177,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-options-all"},{"id":"io.github.libtmux.scaladsl.cats.Options.effective","name":"effective","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Options","signatures":[{"raw":"extension [F[_]](self: Options[F])(using F: _root_.cats.effect.Async[F])\ndef effective(): F[_root_.scala.collection.immutable.VectorMap[String, String]]","params":[],"returns":"F[_root_.scala.collection.immutable.VectorMap[String, String]]","receiver":{"name":"self","type":"Options[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Every option tmux lists at this scope, including inherited built-in values."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":181,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-options-effective"},{"id":"io.github.libtmux.scaladsl.cats.Options.setIfAbsent","name":"setIfAbsent","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Options","signatures":[{"raw":"extension [F[_]](self: Options[F])(using F: _root_.cats.effect.Async[F])\ndef setIfAbsent(name: String, value: String): F[Boolean]","params":[{"name":"name","type":"String"},{"name":"value","type":"String"}],"returns":"F[Boolean]","receiver":{"name":"self","type":"Options[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Sets one option only if this scope does not already set it."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":185,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-options-setifabsent"},{"id":"io.github.libtmux.scaladsl.cats.Options.append","name":"append","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Options","signatures":[{"raw":"extension [F[_]](self: Options[F])(using F: _root_.cats.effect.Async[F])\ndef append(name: String, suffix: String): F[Unit]","params":[{"name":"name","type":"String"},{"name":"suffix","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Options[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Adds to the end of a string option, rather than replacing it."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":189,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-options-append"},{"id":"io.github.libtmux.scaladsl.cats.Options.setExpanded","name":"setExpanded","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Options","signatures":[{"raw":"extension [F[_]](self: Options[F])(using F: _root_.cats.effect.Async[F])\ndef setExpanded(name: String, format: String): F[Unit]","params":[{"name":"name","type":"String"},{"name":"format","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Options[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Sets one option to what a tmux format comes to, rather than to the format itself."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":193,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-options-setexpanded"},{"id":"io.github.libtmux.scaladsl.cats.Options.unset","name":"unset","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Options","signatures":[{"raw":"extension [F[_]](self: Options[F])(using F: _root_.cats.effect.Async[F])\ndef unset(name: String): F[Unit]","params":[{"name":"name","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Options[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Removes one option at this scope, so it falls back to whatever it inherits."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":197,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-options-unset"},{"id":"io.github.libtmux.scaladsl.cats.Pane.info","name":"info","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef info: io.github.libtmux.snapshot.PaneState","params":[],"returns":"io.github.libtmux.snapshot.PaneState","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The fields this capture stored."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":204,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-info"},{"id":"io.github.libtmux.scaladsl.cats.Pane.id","name":"id","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef id: io.github.libtmux.PaneId","params":[],"returns":"io.github.libtmux.PaneId","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The pane's stable id."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":208,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-id"},{"id":"io.github.libtmux.scaladsl.cats.Pane.index","name":"index","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef index: Int","params":[],"returns":"Int","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The pane's position, which shifts as neighbours come and go."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":212,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-index"},{"id":"io.github.libtmux.scaladsl.cats.Pane.active","name":"active","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef active: Boolean","params":[],"returns":"Boolean","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Whether this was its window's active pane when captured."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":216,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-active"},{"id":"io.github.libtmux.scaladsl.cats.Pane.currentCommand","name":"currentCommand","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef currentCommand: String","params":[],"returns":"String","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The command tmux reported running here."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":220,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-currentcommand"},{"id":"io.github.libtmux.scaladsl.cats.Pane.floating","name":"floating","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef floating: Option[Boolean]","params":[],"returns":"Option[Boolean]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Whether this pane floats, or empty when the running tmux cannot say."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":224,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-floating"},{"id":"io.github.libtmux.scaladsl.cats.Pane.size","name":"size","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef size: io.github.libtmux.Dimensions","params":[],"returns":"io.github.libtmux.Dimensions","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"How large the pane was when captured, in terminal cells."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":228,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-size"},{"id":"io.github.libtmux.scaladsl.cats.Pane.position","name":"position","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef position: io.github.libtmux.PanePosition","params":[],"returns":"io.github.libtmux.PanePosition","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Where the pane's top-left corner sat in its window when captured, in terminal cells."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":232,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-position"},{"id":"io.github.libtmux.scaladsl.cats.Pane.title","name":"title","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef title: String","params":[],"returns":"String","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The pane title, which a program running inside it can change."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":236,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-title"},{"id":"io.github.libtmux.scaladsl.cats.Pane.currentPath","name":"currentPath","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef currentPath: java.nio.file.Path","params":[],"returns":"java.nio.file.Path","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The working directory tmux reported for the pane."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":240,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-currentpath"},{"id":"io.github.libtmux.scaladsl.cats.Pane.currentPathText","name":"currentPathText","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef currentPathText: String","params":[],"returns":"String","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The working directory tmux reported for the pane, exactly as tmux reported it."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":244,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-currentpathtext"},{"id":"io.github.libtmux.scaladsl.cats.Pane.pid","name":"pid","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef pid: Option[Long]","params":[],"returns":"Option[Long]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The process id of the program running in the pane, captured at the time of the read this handle came from."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":249,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-pid"},{"id":"io.github.libtmux.scaladsl.cats.Pane.dead","name":"dead","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef dead(): F[Boolean]","params":[],"returns":"F[Boolean]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Whether this pane's process has exited, read fresh rather than from the capture."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":253,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-dead"},{"id":"io.github.libtmux.scaladsl.cats.Pane.resize","name":"resize","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef resize(direction: io.github.libtmux.Direction, cells: Int): F[Unit]","params":[{"name":"direction","type":"io.github.libtmux.Direction"},{"name":"cells","type":"Int"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Grows this pane by a number of cells in one direction."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":257,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-resize"},{"id":"io.github.libtmux.scaladsl.cats.Pane.edges","name":"edges","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef edges: io.github.libtmux.PaneEdges","params":[],"returns":"io.github.libtmux.PaneEdges","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Which sides of its window the pane touches."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":261,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-edges"},{"id":"io.github.libtmux.scaladsl.cats.Pane.copyMode","name":"copyMode","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef copyMode(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Puts this pane into copy mode, where its scrollback can be navigated."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":265,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-copymode"},{"id":"io.github.libtmux.scaladsl.cats.Pane.mode","name":"mode","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef mode(): F[Option[io.github.libtmux.PaneMode]]","params":[],"returns":"F[Option[io.github.libtmux.PaneMode]]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Which mode this pane is in at this moment, or empty when it is in none."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":269,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-mode"},{"id":"io.github.libtmux.scaladsl.cats.Pane.exitMode","name":"exitMode","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef exitMode(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Leaves whichever mode this pane is in."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":273,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-exitmode"},{"id":"io.github.libtmux.scaladsl.cats.Pane.select","name":"select","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef select(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Makes this the active pane of its window."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":277,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-select"},{"id":"io.github.libtmux.scaladsl.cats.Pane.retitle","name":"retitle","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef retitle(title: String): F[Pane[F]]","params":[{"name":"title","type":"String"}],"returns":"F[Pane[F]]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Retitles this pane and returns its replacement capture."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":281,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-retitle"},{"id":"io.github.libtmux.scaladsl.cats.Pane.resizeTo","name":"resizeTo","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef resizeTo(size: io.github.libtmux.Dimensions): F[Unit]","params":[{"name":"size","type":"io.github.libtmux.Dimensions"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Resizes this pane."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":285,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-resizeto"},{"id":"io.github.libtmux.scaladsl.cats.Pane.window","name":"window","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef window: Window[F]","params":[],"returns":"Window[F]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The window link this pane was reached through."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":289,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-window"},{"id":"io.github.libtmux.scaladsl.cats.Pane.hooks","name":"hooks","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef hooks: Hooks[F]","params":[],"returns":"Hooks[F]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"This pane's own hooks."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":293,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-hooks"},{"id":"io.github.libtmux.scaladsl.cats.Pane.options","name":"options","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef options: Options[F]","params":[],"returns":"Options[F]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"This pane's own options."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":297,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-options"},{"id":"io.github.libtmux.scaladsl.cats.Pane.capture","name":"capture","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef capture(): F[Vector[String]]","params":[],"returns":"F[Vector[String]]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef capture(configure: io.github.libtmux.CaptureSpec.Builder => Unit): F[Vector[String]]","params":[{"name":"configure","type":"io.github.libtmux.CaptureSpec.Builder => Unit"}],"returns":"F[Vector[String]]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef capture(spec: io.github.libtmux.CaptureSpec): F[Vector[String]]","params":[{"name":"spec","type":"io.github.libtmux.CaptureSpec"}],"returns":"F[Vector[String]]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"This pane's visible content, one element per line.","examples":[{"lang":"console","intro":"Send input and wait for output before capturing the pane. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala-cats_3\"))\n .using(project(\":libtmux-scala-cats\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala-cats_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/Capture.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scalacats/Capture.scala","code":"package io.github.libtmux.examples.api.scalacats\n\nimport io.github.libtmux.{\n ServerConfig,\n ServerEndpoint,\n SessionSpec,\n TextOutcome\n}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.cats.*\nimport scala.concurrent.duration.*\nimport _root_.cats.effect.{ExitCode, IO, IOApp}\nimport _root_.cats.syntax.all.*\n\n/** Send input and wait for output before capturing the pane. */\nobject Capture extends IOApp {\n def run(args: List[String]): IO[ExitCode] = {\n val program = IO {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n }.flatMap { config =>\n Server.resource[IO](config).use { server =>\n for {\n session <- server.newSession(\n SessionSpec\n .builder()\n .named(\"api-capture\")\n .running(\"/bin/sh\")\n .build()\n )\n pane = session.windows.head.panes.head\n _ <- pane.sendKeys(Vector(\"printf 'api-%s\\\\n' keys\", \"Enter\"))\n keys <- pane.awaitText(\"api-keys\", 5.seconds)\n _ <- IO.raiseWhen(keys.equals(TextOutcome.TIMED_OUT))(\n new IllegalStateException(\"timed out waiting for keys output\")\n )\n _ <- pane.sendLine(\"printf 'api-%s\\\\n' line\")\n line <- pane.awaitText(\"api-line\", 5.seconds)\n _ <- IO.raiseWhen(line.equals(TextOutcome.TIMED_OUT))(\n new IllegalStateException(\"timed out waiting for line output\")\n )\n lines <- pane.capture()\n _ <- Vector(\"api-keys\", \"api-line\").traverse_ { expected =>\n IO.raiseUnless(lines.exists(_.trim.equals(expected)))(\n new IllegalStateException(\"capture is missing \" + expected)\n ) *> IO.println(expected)\n }\n } yield ()\n }\n }\n program.as(ExitCode.Success).handleErrorWith { error =>\n IO(System.err.println(\"Example failed: \" + error.getMessage))\n .as(ExitCode.Error)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scalacats.Capture && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"api-keys\napi-line\n"}]},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":301,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-capture"},{"id":"io.github.libtmux.scaladsl.cats.Pane.noteTyped","name":"noteTyped","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef noteTyped(text: String): F[Unit]","params":[{"name":"text","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Notes text that reached this pane without going through this handle, so a wait discounts its echo the way it discounts text sent through {@link #sendLiteral}."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":306,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-notetyped"},{"id":"io.github.libtmux.scaladsl.cats.Pane.send","name":"send","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef send(keys: String): F[Unit]","params":[{"name":"keys","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Sends keys to this pane without pressing Enter."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":318,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-send"},{"id":"io.github.libtmux.scaladsl.cats.Pane.sendKeys","name":"sendKeys","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef sendKeys(keys: Vector[String]): F[Unit]","params":[{"name":"keys","type":"Vector[String]"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef sendKeys(keys: Vector[String], beforeSend: () => Unit): F[Unit]","params":[{"name":"keys","type":"Vector[String]"},{"name":"beforeSend","type":"() => Unit"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Sends an ordered group of key names to this pane, as tmux resolves them.","examples":[{"lang":"console","intro":"Send input and wait for output before capturing the pane. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala-cats_3\"))\n .using(project(\":libtmux-scala-cats\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala-cats_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/Capture.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scalacats/Capture.scala","code":"package io.github.libtmux.examples.api.scalacats\n\nimport io.github.libtmux.{\n ServerConfig,\n ServerEndpoint,\n SessionSpec,\n TextOutcome\n}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.cats.*\nimport scala.concurrent.duration.*\nimport _root_.cats.effect.{ExitCode, IO, IOApp}\nimport _root_.cats.syntax.all.*\n\n/** Send input and wait for output before capturing the pane. */\nobject Capture extends IOApp {\n def run(args: List[String]): IO[ExitCode] = {\n val program = IO {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n }.flatMap { config =>\n Server.resource[IO](config).use { server =>\n for {\n session <- server.newSession(\n SessionSpec\n .builder()\n .named(\"api-capture\")\n .running(\"/bin/sh\")\n .build()\n )\n pane = session.windows.head.panes.head\n _ <- pane.sendKeys(Vector(\"printf 'api-%s\\\\n' keys\", \"Enter\"))\n keys <- pane.awaitText(\"api-keys\", 5.seconds)\n _ <- IO.raiseWhen(keys.equals(TextOutcome.TIMED_OUT))(\n new IllegalStateException(\"timed out waiting for keys output\")\n )\n _ <- pane.sendLine(\"printf 'api-%s\\\\n' line\")\n line <- pane.awaitText(\"api-line\", 5.seconds)\n _ <- IO.raiseWhen(line.equals(TextOutcome.TIMED_OUT))(\n new IllegalStateException(\"timed out waiting for line output\")\n )\n lines <- pane.capture()\n _ <- Vector(\"api-keys\", \"api-line\").traverse_ { expected =>\n IO.raiseUnless(lines.exists(_.trim.equals(expected)))(\n new IllegalStateException(\"capture is missing \" + expected)\n ) *> IO.println(expected)\n }\n } yield ()\n }\n }\n program.as(ExitCode.Success).handleErrorWith { error =>\n IO(System.err.println(\"Example failed: \" + error.getMessage))\n .as(ExitCode.Error)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scalacats.Capture && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"api-keys\napi-line\n"}]},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":322,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-sendkeys"},{"id":"io.github.libtmux.scaladsl.cats.Pane.sendLiteral","name":"sendLiteral","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef sendLiteral(keys: Vector[String]): F[Unit]","params":[{"name":"keys","type":"Vector[String]"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef sendLiteral(keys: Vector[String], beforeSend: () => Unit): F[Unit]","params":[{"name":"keys","type":"Vector[String]"},{"name":"beforeSend","type":"() => Unit"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Sends an ordered group of strings to this pane as the characters they spell."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":330,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-sendliteral"},{"id":"io.github.libtmux.scaladsl.cats.Pane.sendLine","name":"sendLine","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef sendLine(command: String): F[Unit]","params":[{"name":"command","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Sends a line to this pane and presses Enter, which is how a command gets run.","examples":[{"lang":"console","intro":"Send input and wait for output before capturing the pane. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala-cats_3\"))\n .using(project(\":libtmux-scala-cats\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala-cats_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/Capture.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scalacats/Capture.scala","code":"package io.github.libtmux.examples.api.scalacats\n\nimport io.github.libtmux.{\n ServerConfig,\n ServerEndpoint,\n SessionSpec,\n TextOutcome\n}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.cats.*\nimport scala.concurrent.duration.*\nimport _root_.cats.effect.{ExitCode, IO, IOApp}\nimport _root_.cats.syntax.all.*\n\n/** Send input and wait for output before capturing the pane. */\nobject Capture extends IOApp {\n def run(args: List[String]): IO[ExitCode] = {\n val program = IO {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n }.flatMap { config =>\n Server.resource[IO](config).use { server =>\n for {\n session <- server.newSession(\n SessionSpec\n .builder()\n .named(\"api-capture\")\n .running(\"/bin/sh\")\n .build()\n )\n pane = session.windows.head.panes.head\n _ <- pane.sendKeys(Vector(\"printf 'api-%s\\\\n' keys\", \"Enter\"))\n keys <- pane.awaitText(\"api-keys\", 5.seconds)\n _ <- IO.raiseWhen(keys.equals(TextOutcome.TIMED_OUT))(\n new IllegalStateException(\"timed out waiting for keys output\")\n )\n _ <- pane.sendLine(\"printf 'api-%s\\\\n' line\")\n line <- pane.awaitText(\"api-line\", 5.seconds)\n _ <- IO.raiseWhen(line.equals(TextOutcome.TIMED_OUT))(\n new IllegalStateException(\"timed out waiting for line output\")\n )\n lines <- pane.capture()\n _ <- Vector(\"api-keys\", \"api-line\").traverse_ { expected =>\n IO.raiseUnless(lines.exists(_.trim.equals(expected)))(\n new IllegalStateException(\"capture is missing \" + expected)\n ) *> IO.println(expected)\n }\n } yield ()\n }\n }\n program.as(ExitCode.Success).handleErrorWith { error =>\n IO(System.err.println(\"Example failed: \" + error.getMessage))\n .as(ExitCode.Error)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scalacats.Capture && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"api-keys\napi-line\n"}]},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":338,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-sendline"},{"id":"io.github.libtmux.scaladsl.cats.Pane.breakOut","name":"breakOut","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef breakOut(): F[Window[F]]","params":[],"returns":"F[Window[F]]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef breakOut(windowName: String): F[Window[F]]","params":[{"name":"windowName","type":"String"}],"returns":"F[Window[F]]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Moves this pane into a window of its own, leaving tmux to name it."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":342,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-breakout"},{"id":"io.github.libtmux.scaladsl.cats.Pane.expand","name":"expand","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef expand(format: String): F[String]","params":[{"name":"format","type":"String"}],"returns":"F[String]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Expands a tmux format in this pane's context, and answers with what it came to."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":346,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-expand"},{"id":"io.github.libtmux.scaladsl.cats.Pane.variables","name":"variables","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef variables(names: Vector[String]): F[_root_.scala.collection.immutable.VectorMap[String, String]]","params":[{"name":"names","type":"Vector[String]"}],"returns":"F[_root_.scala.collection.immutable.VectorMap[String, String]]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Reads validated tmux variables in this pane's format context."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":350,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-variables"},{"id":"io.github.libtmux.scaladsl.cats.Pane.respawn","name":"respawn","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef respawn(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef respawn(command: String*): F[Unit]","params":[{"name":"command","type":"String*"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Kills whatever runs here and starts the pane's default command again."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":354,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-respawn"},{"id":"io.github.libtmux.scaladsl.cats.Pane.respawnIn","name":"respawnIn","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef respawnIn(directory: java.nio.file.Path): F[Unit]","params":[{"name":"directory","type":"java.nio.file.Path"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Restarts the configured pane process in a caller-supplied literal directory, resolved against this process's working directory when relative."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":359,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-respawnin"},{"id":"io.github.libtmux.scaladsl.cats.Pane.pipeTo","name":"pipeTo","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef pipeTo(shellCommand: String): F[Unit]","params":[{"name":"shellCommand","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Sends everything this pane prints to a shell command, until {@link #stopPiping}."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":367,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-pipeto"},{"id":"io.github.libtmux.scaladsl.cats.Pane.stopPiping","name":"stopPiping","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef stopPiping(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Stops sending this pane's output anywhere."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":371,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-stoppiping"},{"id":"io.github.libtmux.scaladsl.cats.Pane.split","name":"split","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef split(): F[Pane[F]]","params":[],"returns":"F[Pane[F]]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef split(configure: io.github.libtmux.SplitSpec.Builder => Unit): F[Pane[F]]","params":[{"name":"configure","type":"io.github.libtmux.SplitSpec.Builder => Unit"}],"returns":"F[Pane[F]]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef split(spec: io.github.libtmux.SplitSpec): F[Pane[F]]","params":[{"name":"spec","type":"io.github.libtmux.SplitSpec"}],"returns":"F[Pane[F]]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Splits this pane in half, putting the new one below it."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":379,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-split"},{"id":"io.github.libtmux.scaladsl.cats.Pane.pasteBuffer","name":"pasteBuffer","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef pasteBuffer(name: String): F[Unit]","params":[{"name":"name","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Pastes a named buffer into this pane, as though it had been typed."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":391,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-pastebuffer"},{"id":"io.github.libtmux.scaladsl.cats.Pane.paste","name":"paste","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef paste(text: String): F[Unit]","params":[{"name":"text","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef paste(text: String, beforePaste: () => Unit): F[Unit]","params":[{"name":"text","type":"String"},{"name":"beforePaste","type":"() => Unit"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Pastes text into this pane as one block, leaving nothing behind on the server."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":395,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-paste"},{"id":"io.github.libtmux.scaladsl.cats.Pane.clearHistory","name":"clearHistory","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef clearHistory(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Discards this pane's scrollback."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":403,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-clearhistory"},{"id":"io.github.libtmux.scaladsl.cats.Pane.swapWith","name":"swapWith","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef swapWith(other: Pane[F]): F[Unit]","params":[{"name":"other","type":"Pane[F]"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Swaps this pane's position with another's."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":407,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-swapwith"},{"id":"io.github.libtmux.scaladsl.cats.Pane.joinTo","name":"joinTo","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef joinTo(window: Window[F]): F[Unit]","params":[{"name":"window","type":"Window[F]"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Moves this pane into another window, splitting it."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":411,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-jointo"},{"id":"io.github.libtmux.scaladsl.cats.Pane.kill","name":"kill","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef kill(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Closes this pane."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":415,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-kill"},{"id":"io.github.libtmux.scaladsl.cats.Pane.refresh","name":"refresh","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F])\ndef refresh(): F[Pane[F]]","params":[],"returns":"F[Pane[F]]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Takes a new capture and returns this pane as it is now."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":419,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-refresh"},{"id":"io.github.libtmux.scaladsl.cats.Prompt.history","name":"history","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Prompt","signatures":[{"raw":"extension [F[_]](self: Prompt[F])(using F: _root_.cats.effect.Async[F])\ndef history(): F[Vector[String]]","params":[],"returns":"F[Vector[String]]","receiver":{"name":"self","type":"Prompt[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"What has been typed at the prompt, oldest first."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":426,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-prompt-history"},{"id":"io.github.libtmux.scaladsl.cats.Prompt.clear","name":"clear","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Prompt","signatures":[{"raw":"extension [F[_]](self: Prompt[F])(using F: _root_.cats.effect.Async[F])\ndef clear(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Prompt[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Forgets what has been typed at the prompt."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":430,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-prompt-clear"},{"id":"io.github.libtmux.scaladsl.cats.Server.newSession","name":"newSession","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef newSession(name: String): F[Session[F]]","params":[{"name":"name","type":"String"}],"returns":"F[Session[F]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef newSession(configure: io.github.libtmux.SessionSpec.Builder => Unit): F[Session[F]]","params":[{"name":"configure","type":"io.github.libtmux.SessionSpec.Builder => Unit"}],"returns":"F[Session[F]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef newSession(spec: io.github.libtmux.SessionSpec): F[Session[F]]","params":[{"name":"spec","type":"io.github.libtmux.SessionSpec"}],"returns":"F[Session[F]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Creates a detached session and returns that exact session.","examples":[{"lang":"console","intro":"Create a session running cat. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala-cats_3\"))\n .using(project(\":libtmux-scala-cats\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala-cats_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/NewSession.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scalacats/NewSession.scala","code":"package io.github.libtmux.examples.api.scalacats\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint, SessionSpec}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.cats.*\nimport _root_.cats.effect.{ExitCode, IO, IOApp}\nimport _root_.cats.syntax.all.*\n\n/** Create a session running cat. */\nobject NewSession extends IOApp {\n def run(args: List[String]): IO[ExitCode] = {\n val program = IO {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n }.flatMap { config =>\n Server.resource[IO](config).use { server =>\n for {\n session <- server.newSession(\n SessionSpec\n .builder()\n .named(\"api-session\")\n .running(\"/bin/cat\")\n .build()\n )\n _ <- IO.println(s\"created=${session.name}\")\n } yield ()\n }\n }\n program.as(ExitCode.Success).handleErrorWith { error =>\n IO(System.err.println(\"Example failed: \" + error.getMessage))\n .as(ExitCode.Error)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scalacats.NewSession && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"created=api-session\n"}]},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":437,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-newsession"},{"id":"io.github.libtmux.scaladsl.cats.Server.hasSession","name":"hasSession","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef hasSession(name: String): F[Boolean]","params":[{"name":"name","type":"String"}],"returns":"F[Boolean]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Whether a session with this name exists."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":449,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-hassession"},{"id":"io.github.libtmux.scaladsl.cats.Server.killSession","name":"killSession","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef killSession(name: String): F[Unit]","params":[{"name":"name","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Ends the session with this name, and everything in it."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":453,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-killsession"},{"id":"io.github.libtmux.scaladsl.cats.Server.isAlive","name":"isAlive","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef isAlive(): F[Boolean]","params":[],"returns":"F[Boolean]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef isAlive(timeout: _root_.scala.concurrent.duration.FiniteDuration): F[Boolean]","params":[{"name":"timeout","type":"_root_.scala.concurrent.duration.FiniteDuration"}],"returns":"F[Boolean]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Whether the server is running and answering."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":457,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-isalive"},{"id":"io.github.libtmux.scaladsl.cats.Server.requireAlive","name":"requireAlive","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef requireAlive(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Requires a running tmux daemon that answers the liveness probe."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":465,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-requirealive"},{"id":"io.github.libtmux.scaladsl.cats.Server.killServer","name":"killServer","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef killServer(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef killServer(timeout: _root_.scala.concurrent.duration.FiniteDuration): F[Unit]","params":[{"name":"timeout","type":"_root_.scala.concurrent.duration.FiniteDuration"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Ends the tmux server and every session on it."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":469,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-killserver"},{"id":"io.github.libtmux.scaladsl.cats.Server.expand","name":"expand","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef expand(format: String): F[String]","params":[{"name":"format","type":"String"}],"returns":"F[String]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Expands a tmux format against the server, and answers with what it came to."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":477,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-expand"},{"id":"io.github.libtmux.scaladsl.cats.Server.shell","name":"shell","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef shell: Shell[F]","params":[],"returns":"Shell[F]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Shell commands run by tmux, and tmux commands chosen by a shell exit status."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":481,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-shell"},{"id":"io.github.libtmux.scaladsl.cats.Server.commands","name":"commands","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef commands: Commands[F]","params":[],"returns":"Commands[F]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The commands this tmux knows."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":485,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-commands"},{"id":"io.github.libtmux.scaladsl.cats.Server.lock","name":"lock","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef lock(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Locks every client attached to this server."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":489,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-lock"},{"id":"io.github.libtmux.scaladsl.cats.Server.messageLog","name":"messageLog","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef messageLog: MessageLog[F]","params":[],"returns":"MessageLog[F]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The server's message log."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":493,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-messagelog"},{"id":"io.github.libtmux.scaladsl.cats.Server.prompt","name":"prompt","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef prompt: Prompt[F]","params":[],"returns":"Prompt[F]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The command prompt's history."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":497,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-prompt"},{"id":"io.github.libtmux.scaladsl.cats.Server.variables","name":"variables","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef variables(names: Vector[String]): F[_root_.scala.collection.immutable.VectorMap[String, String]]","params":[{"name":"names","type":"Vector[String]"}],"returns":"F[_root_.scala.collection.immutable.VectorMap[String, String]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Reads only validated tmux variable names, never caller-authored format syntax."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":501,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-variables"},{"id":"io.github.libtmux.scaladsl.cats.Server.paneFields","name":"paneFields","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef paneFields(names: Vector[String]): F[_root_.scala.collection.immutable.VectorMap[io.github.libtmux.PaneId, _root_.scala.collection.immutable.VectorMap[String, String]]]","params":[{"name":"names","type":"Vector[String]"}],"returns":"F[_root_.scala.collection.immutable.VectorMap[io.github.libtmux.PaneId, _root_.scala.collection.immutable.VectorMap[String, String]]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Chosen fields for every pane on the server, from one listing."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":505,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-panefields"},{"id":"io.github.libtmux.scaladsl.cats.Server.keys","name":"keys","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef keys: Keys[F]","params":[],"returns":"Keys[F]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The server's key bindings: {@code prefix} when binding, every table when listing."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":509,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-keys"},{"id":"io.github.libtmux.scaladsl.cats.Server.buffers","name":"buffers","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef buffers: Buffers[F]","params":[],"returns":"Buffers[F]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The server's paste buffers, which every session shares."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":513,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-buffers"},{"id":"io.github.libtmux.scaladsl.cats.Server.sourceFile","name":"sourceFile","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef sourceFile(file: java.nio.file.Path): F[Unit]","params":[{"name":"file","type":"java.nio.file.Path"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Runs a file of tmux commands, as a configuration file would be run."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":517,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-sourcefile"},{"id":"io.github.libtmux.scaladsl.cats.Server.options","name":"options","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef options: Options[F]","params":[],"returns":"Options[F]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The server-wide options, the ones tmux keeps once per server."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":521,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-options"},{"id":"io.github.libtmux.scaladsl.cats.Server.globalOptions","name":"globalOptions","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef globalOptions: Options[F]","params":[],"returns":"Options[F]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The global session options every session inherits unless it sets its own."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":525,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-globaloptions"},{"id":"io.github.libtmux.scaladsl.cats.Server.environment","name":"environment","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef environment: Environment[F]","params":[],"returns":"Environment[F]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The server's environment, which every session inherits and every new process is given."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":529,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-environment"},{"id":"io.github.libtmux.scaladsl.cats.Server.hooks","name":"hooks","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef hooks: Hooks[F]","params":[],"returns":"Hooks[F]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The global hooks every session inherits."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":533,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-hooks"},{"id":"io.github.libtmux.scaladsl.cats.Server.version","name":"version","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef version(): F[io.github.libtmux.TmuxVersion]","params":[],"returns":"F[io.github.libtmux.TmuxVersion]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Which tmux this server is running."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":537,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-version"},{"id":"io.github.libtmux.scaladsl.cats.Server.identity","name":"identity","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef identity: io.github.libtmux.ServerIdentity","params":[],"returns":"io.github.libtmux.ServerIdentity","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Which server this is."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":541,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-identity"},{"id":"io.github.libtmux.scaladsl.cats.Server.config","name":"config","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef config: io.github.libtmux.ServerConfig","params":[],"returns":"io.github.libtmux.ServerConfig","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"How this server was configured."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":545,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-config"},{"id":"io.github.libtmux.scaladsl.cats.Server.cmd","name":"cmd","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef cmd(argv: String*): F[io.github.libtmux.transport.CommandResult]","params":[{"name":"argv","type":"String*"}],"returns":"F[io.github.libtmux.transport.CommandResult]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef cmd(argv: Vector[String]): F[io.github.libtmux.transport.CommandResult]","params":[{"name":"argv","type":"Vector[String]"}],"returns":"F[io.github.libtmux.transport.CommandResult]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef cmd(argv: Vector[String], timeout: _root_.scala.concurrent.duration.FiniteDuration): F[io.github.libtmux.transport.CommandResult]","params":[{"name":"argv","type":"Vector[String]"},{"name":"timeout","type":"_root_.scala.concurrent.duration.FiniteDuration"}],"returns":"F[io.github.libtmux.transport.CommandResult]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Runs one tmux command against this server."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":549,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-cmd"},{"id":"io.github.libtmux.scaladsl.cats.Server.snapshot","name":"snapshot","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef snapshot(): F[io.github.libtmux.snapshot.ServerSnapshot]","params":[],"returns":"F[io.github.libtmux.snapshot.ServerSnapshot]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Captures the whole hierarchy in at most four listings, retrying once if the server is replaced."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":562,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-snapshot"},{"id":"io.github.libtmux.scaladsl.cats.Server.sessions","name":"sessions","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef sessions(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Session]): F[Vector[Session[F]]]","params":[{"name":"expression","type":"io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Session]"}],"returns":"F[Vector[Session[F]]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef sessions(): F[Vector[Session[F]]]","params":[],"returns":"F[Vector[Session[F]]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"The sessions this expression matches, captured now.","examples":[{"lang":"console","intro":"List the sessions returned by a server read. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala-cats_3\"))\n .using(project(\":libtmux-scala-cats\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala-cats_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/ListSessions.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scalacats/ListSessions.scala","code":"package io.github.libtmux.examples.api.scalacats\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.cats.*\nimport _root_.cats.effect.{ExitCode, IO, IOApp}\nimport _root_.cats.syntax.all.*\n\n/** List the sessions returned by a server read. */\nobject ListSessions extends IOApp {\n def run(args: List[String]): IO[ExitCode] = {\n val program = IO {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n }.flatMap { config =>\n Server.resource[IO](config).use { server =>\n for {\n sessions <- server.sessions()\n _ <- IO.println(\n \"sessions=\" + sessions.map(_.name).sorted.mkString(\",\")\n )\n } yield ()\n }\n }\n program.as(ExitCode.Success).handleErrorWith { error =>\n IO(System.err.println(\"Example failed: \" + error.getMessage))\n .as(ExitCode.Error)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scalacats.ListSessions && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"sessions=work-one,work-two\n"},{"lang":"console","intro":"Select sessions with a typed name filter. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala-cats_3\"))\n .using(project(\":libtmux-scala-cats\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala-cats_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/Query.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scalacats/Query.scala","code":"package io.github.libtmux.examples.api.scalacats\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.cats.*\nimport io.github.libtmux.scaladsl.{Session as SessionFields}\nimport io.github.libtmux.scaladsl.query.*\nimport _root_.cats.effect.{ExitCode, IO, IOApp}\nimport _root_.cats.syntax.all.*\n\n/** Select sessions with a typed name filter. */\nobject Query extends IOApp {\n def run(args: List[String]): IO[ExitCode] = {\n val program = IO {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n }.flatMap { config =>\n Server.resource[IO](config).use { server =>\n for {\n matches <- server.sessions(SessionFields.name.is(\"work-one\"))\n _ <- IO.println(\"matches=\" + matches.map(_.name).sorted.mkString(\",\"))\n } yield ()\n }\n }\n program.as(ExitCode.Success).handleErrorWith { error =>\n IO(System.err.println(\"Example failed: \" + error.getMessage))\n .as(ExitCode.Error)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scalacats.Query && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"matches=work-one\n"}]},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":566,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-sessions"},{"id":"io.github.libtmux.scaladsl.cats.Server.windows","name":"windows","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef windows(): F[Vector[Window[F]]]","params":[],"returns":"F[Vector[Window[F]]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef windows(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Window]): F[Vector[Window[F]]]","params":[{"name":"expression","type":"io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Window]"}],"returns":"F[Vector[Window[F]]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef windows(id: io.github.libtmux.WindowId): F[Vector[Window[F]]]","params":[{"name":"id","type":"io.github.libtmux.WindowId"}],"returns":"F[Vector[Window[F]]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Captures every winlink, preserving each session and index placement.","examples":[{"lang":"console","intro":"List all windows, then the windows captured for one session. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala-cats_3\"))\n .using(project(\":libtmux-scala-cats\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala-cats_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/ListWindows.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scalacats/ListWindows.scala","code":"package io.github.libtmux.examples.api.scalacats\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.cats.*\nimport _root_.cats.effect.{ExitCode, IO, IOApp}\nimport _root_.cats.syntax.all.*\n\n/** List all windows, then the windows captured for one session. */\nobject ListWindows extends IOApp {\n def run(args: List[String]): IO[ExitCode] = {\n val program = IO {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n }.flatMap { config =>\n Server.resource[IO](config).use { server =>\n for {\n windows <- server.windows()\n _ <- IO.println(\"windows=\" + windows.map(_.name).sorted.mkString(\",\"))\n found <- server.session(\"work-one\")\n session <- IO.fromOption(found)(\n new IllegalStateException(\"missing work-one\")\n )\n _ <- IO.println(\n \"session-windows=\" + session.windows\n .map(_.name)\n .sorted\n .mkString(\",\")\n )\n } yield ()\n }\n }\n program.as(ExitCode.Success).handleErrorWith { error =>\n IO(System.err.println(\"Example failed: \" + error.getMessage))\n .as(ExitCode.Error)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scalacats.ListWindows && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"windows=editor,editor,logs\nsession-windows=editor,logs\n"}]},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":574,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-windows"},{"id":"io.github.libtmux.scaladsl.cats.Server.panes","name":"panes","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef panes(): F[Vector[Pane[F]]]","params":[],"returns":"F[Vector[Pane[F]]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef panes(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Pane]): F[Vector[Pane[F]]]","params":[{"name":"expression","type":"io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Pane]"}],"returns":"F[Vector[Pane[F]]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Captures every pane on the server.","examples":[{"lang":"console","intro":"List all panes, then the panes captured for one window. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala-cats_3\"))\n .using(project(\":libtmux-scala-cats\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala-cats_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/ListPanes.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scalacats/ListPanes.scala","code":"package io.github.libtmux.examples.api.scalacats\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.cats.*\nimport _root_.cats.effect.{ExitCode, IO, IOApp}\nimport _root_.cats.syntax.all.*\n\n/** List all panes, then the panes captured for one window. */\nobject ListPanes extends IOApp {\n def run(args: List[String]): IO[ExitCode] = {\n val program = IO {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n }.flatMap { config =>\n Server.resource[IO](config).use { server =>\n for {\n panes <- server.panes()\n _ <- IO.println(s\"panes=${panes.size}\")\n found <- server.session(\"work-one\")\n session <- IO.fromOption(found)(\n new IllegalStateException(\"missing work-one\")\n )\n window <- IO.fromOption(\n session.windows.find(_.name.equals(\"editor\"))\n )(\n new IllegalStateException(\"missing editor\")\n )\n _ <- IO.println(s\"window-panes=${window.panes.size}\")\n } yield ()\n }\n }\n program.as(ExitCode.Success).handleErrorWith { error =>\n IO(System.err.println(\"Example failed: \" + error.getMessage))\n .as(ExitCode.Error)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scalacats.ListPanes && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"panes=4\nwindow-panes=2\n"}]},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":582,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-panes"},{"id":"io.github.libtmux.scaladsl.cats.Server.session","name":"session","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef session(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Session]): F[Option[Session[F]]]","params":[{"name":"expression","type":"io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Session]"}],"returns":"F[Option[Session[F]]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef session(name: String): F[Option[Session[F]]]","params":[{"name":"name","type":"String"}],"returns":"F[Option[Session[F]]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef session(id: io.github.libtmux.SessionId): F[Option[Session[F]]]","params":[{"name":"id","type":"io.github.libtmux.SessionId"}],"returns":"F[Option[Session[F]]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"The one session this expression matches, captured now, or empty when none does."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":590,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-session"},{"id":"io.github.libtmux.scaladsl.cats.Server.window","name":"window","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef window(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Window]): F[Option[Window[F]]]","params":[{"name":"expression","type":"io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Window]"}],"returns":"F[Option[Window[F]]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef window(context: io.github.libtmux.snapshot.WindowContext): F[Option[Window[F]]]","params":[{"name":"context","type":"io.github.libtmux.snapshot.WindowContext"}],"returns":"F[Option[Window[F]]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"The one window link this expression matches, captured now, or empty when none does."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":594,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-window"},{"id":"io.github.libtmux.scaladsl.cats.Server.pane","name":"pane","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef pane(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Pane]): F[Option[Pane[F]]]","params":[{"name":"expression","type":"io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Pane]"}],"returns":"F[Option[Pane[F]]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef pane(id: io.github.libtmux.PaneId): F[Option[Pane[F]]]","params":[{"name":"id","type":"io.github.libtmux.PaneId"}],"returns":"F[Option[Pane[F]]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"The one pane this expression matches, captured now, or empty when none does."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":598,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-pane"},{"id":"io.github.libtmux.scaladsl.cats.Server.admissionBound","name":"admissionBound","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef admissionBound: Int","params":[],"returns":"Int","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"How many tmux commands this server's transport runs at once, from {@link ServerConfig#maxConcurrentCommands()} for a server {@link #open}ed here."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":602,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-admissionbound"},{"id":"io.github.libtmux.scaladsl.cats.Server.clients","name":"clients","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef clients(): F[Vector[Client[F]]]","params":[],"returns":"F[Vector[Client[F]]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Captures every attached client."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":626,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-clients"},{"id":"io.github.libtmux.scaladsl.cats.Server.attachedSessions","name":"attachedSessions","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef attachedSessions(): F[Vector[Session[F]]]","params":[],"returns":"F[Vector[Session[F]]]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Captures every session a client is attached to."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":630,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-attachedsessions"},{"id":"io.github.libtmux.scaladsl.cats.Server.run","name":"run","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef run(argv: Vector[String]): F[io.github.libtmux.transport.CommandResult]","params":[{"name":"argv","type":"Vector[String]"}],"returns":"F[io.github.libtmux.transport.CommandResult]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Runs a command that is expected to work, and raises when it did not."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":634,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-run"},{"id":"io.github.libtmux.scaladsl.cats.Server.toBuilder","name":"toBuilder","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F])\ndef toBuilder: io.github.libtmux.Server.Builder","params":[],"returns":"io.github.libtmux.Server.Builder","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"A builder holding every configuration and ownership choice this server made."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":638,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-tobuilder"},{"id":"io.github.libtmux.scaladsl.cats.Session.info","name":"info","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef info: io.github.libtmux.snapshot.SessionState","params":[],"returns":"io.github.libtmux.snapshot.SessionState","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The fields this capture stored."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":645,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-info"},{"id":"io.github.libtmux.scaladsl.cats.Session.id","name":"id","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef id: io.github.libtmux.SessionId","params":[],"returns":"io.github.libtmux.SessionId","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The session's stable id."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":649,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-id"},{"id":"io.github.libtmux.scaladsl.cats.Session.name","name":"name","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef name: String","params":[],"returns":"String","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The session name, which a user may change at any time."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":653,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-name"},{"id":"io.github.libtmux.scaladsl.cats.Session.attached","name":"attached","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef attached: Boolean","params":[],"returns":"Boolean","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Whether a client was attached when this was captured."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":657,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-attached"},{"id":"io.github.libtmux.scaladsl.cats.Session.activeWindow","name":"activeWindow","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef activeWindow: Option[Window[F]]","params":[],"returns":"Option[Window[F]]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The window tmux had active in this session."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":661,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-activewindow"},{"id":"io.github.libtmux.scaladsl.cats.Session.activePane","name":"activePane","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef activePane: Option[Pane[F]]","params":[],"returns":"Option[Pane[F]]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The active pane of the active window."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":665,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-activepane"},{"id":"io.github.libtmux.scaladsl.cats.Session.selectWindow","name":"selectWindow","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef selectWindow(window: Window[F]): F[Unit]","params":[{"name":"window","type":"Window[F]"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Makes a window of this session the active one."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":669,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-selectwindow"},{"id":"io.github.libtmux.scaladsl.cats.Session.nextWindow","name":"nextWindow","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef nextWindow(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Moves to the next window in this session, wrapping at the end."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":673,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-nextwindow"},{"id":"io.github.libtmux.scaladsl.cats.Session.previousWindow","name":"previousWindow","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef previousWindow(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Moves to the previous window in this session, wrapping at the start."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":677,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-previouswindow"},{"id":"io.github.libtmux.scaladsl.cats.Session.lastWindow","name":"lastWindow","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef lastWindow(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Returns to the window that was active before this one."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":681,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-lastwindow"},{"id":"io.github.libtmux.scaladsl.cats.Session.detachClients","name":"detachClients","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef detachClients(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Detaches every client attached to this session, leaving the session running."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":685,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-detachclients"},{"id":"io.github.libtmux.scaladsl.cats.Session.options","name":"options","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef options: Options[F]","params":[],"returns":"Options[F]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"This session's own options."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":689,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-options"},{"id":"io.github.libtmux.scaladsl.cats.Session.environment","name":"environment","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef environment: Environment[F]","params":[],"returns":"Environment[F]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"This session's own environment, which a process started in it is given on top of the server's."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":694,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-environment"},{"id":"io.github.libtmux.scaladsl.cats.Session.hooks","name":"hooks","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef hooks: Hooks[F]","params":[],"returns":"Hooks[F]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"This session's own hooks."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":698,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-hooks"},{"id":"io.github.libtmux.scaladsl.cats.Session.setHistoryLimit","name":"setHistoryLimit","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef setHistoryLimit(lines: Int): F[Unit]","params":[{"name":"lines","type":"Int"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Sets the scrollback retained by panes created in this session."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":702,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-sethistorylimit"},{"id":"io.github.libtmux.scaladsl.cats.Session.windows","name":"windows","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef windows: Vector[Window[F]]","params":[],"returns":"Vector[Window[F]]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"This session's windows, in tmux's order.","examples":[{"lang":"console","intro":"List all windows, then the windows captured for one session. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala-cats_3\"))\n .using(project(\":libtmux-scala-cats\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala-cats_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/ListWindows.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scalacats/ListWindows.scala","code":"package io.github.libtmux.examples.api.scalacats\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.cats.*\nimport _root_.cats.effect.{ExitCode, IO, IOApp}\nimport _root_.cats.syntax.all.*\n\n/** List all windows, then the windows captured for one session. */\nobject ListWindows extends IOApp {\n def run(args: List[String]): IO[ExitCode] = {\n val program = IO {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n }.flatMap { config =>\n Server.resource[IO](config).use { server =>\n for {\n windows <- server.windows()\n _ <- IO.println(\"windows=\" + windows.map(_.name).sorted.mkString(\",\"))\n found <- server.session(\"work-one\")\n session <- IO.fromOption(found)(\n new IllegalStateException(\"missing work-one\")\n )\n _ <- IO.println(\n \"session-windows=\" + session.windows\n .map(_.name)\n .sorted\n .mkString(\",\")\n )\n } yield ()\n }\n }\n program.as(ExitCode.Success).handleErrorWith { error =>\n IO(System.err.println(\"Example failed: \" + error.getMessage))\n .as(ExitCode.Error)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scalacats.ListWindows && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"windows=editor,editor,logs\nsession-windows=editor,logs\n"}]},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":706,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-windows"},{"id":"io.github.libtmux.scaladsl.cats.Session.newWindow","name":"newWindow","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef newWindow(name: String): F[Window[F]]","params":[{"name":"name","type":"String"}],"returns":"F[Window[F]]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef newWindow(configure: io.github.libtmux.WindowSpec.Builder => Unit): F[Window[F]]","params":[{"name":"configure","type":"io.github.libtmux.WindowSpec.Builder => Unit"}],"returns":"F[Window[F]]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef newWindow(spec: io.github.libtmux.WindowSpec): F[Window[F]]","params":[{"name":"spec","type":"io.github.libtmux.WindowSpec"}],"returns":"F[Window[F]]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Creates a window in this session and returns that exact window.","examples":[{"lang":"console","intro":"Create a window and read the updated session. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala-cats_3\"))\n .using(project(\":libtmux-scala-cats\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala-cats_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/NewWindow.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scalacats/NewWindow.scala","code":"package io.github.libtmux.examples.api.scalacats\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint, WindowSpec}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.cats.*\nimport _root_.cats.effect.{ExitCode, IO, IOApp}\nimport _root_.cats.syntax.all.*\n\n/** Create a window and read the updated session. */\nobject NewWindow extends IOApp {\n def run(args: List[String]): IO[ExitCode] = {\n val program = IO {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n }.flatMap { config =>\n Server.resource[IO](config).use { server =>\n for {\n found <- server.session(\"work-one\")\n session <- IO.fromOption(found)(\n new IllegalStateException(\"missing work-one\")\n )\n window <- session.newWindow(\n WindowSpec.builder().named(\"api-window\").running(\"/bin/cat\").build()\n )\n _ <- IO.println(s\"created=${window.name}\")\n updated <- server.session(\"work-one\")\n refreshed <- IO.fromOption(updated)(\n new IllegalStateException(\"missing work-one\")\n )\n _ <- IO.println(\n \"windows=\" + refreshed.windows.map(_.name).sorted.mkString(\",\")\n )\n } yield ()\n }\n }\n program.as(ExitCode.Success).handleErrorWith { error =>\n IO(System.err.println(\"Example failed: \" + error.getMessage))\n .as(ExitCode.Error)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scalacats.NewWindow && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"created=api-window\nwindows=api-window,editor,logs\n"}]},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":710,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-newwindow"},{"id":"io.github.libtmux.scaladsl.cats.Session.expand","name":"expand","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef expand(format: String): F[String]","params":[{"name":"format","type":"String"}],"returns":"F[String]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Expands a tmux format in this session's context, and answers with what it came to."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":722,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-expand"},{"id":"io.github.libtmux.scaladsl.cats.Session.rename","name":"rename","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef rename(name: String): F[Session[F]]","params":[{"name":"name","type":"String"}],"returns":"F[Session[F]]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Renames this session and returns its replacement capture."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":726,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-rename"},{"id":"io.github.libtmux.scaladsl.cats.Session.kill","name":"kill","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef kill(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Ends this session."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":730,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-kill"},{"id":"io.github.libtmux.scaladsl.cats.Session.refresh","name":"refresh","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Session","signatures":[{"raw":"extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F])\ndef refresh(): F[Session[F]]","params":[],"returns":"F[Session[F]]","receiver":{"name":"self","type":"Session[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Takes a new capture and returns this session as it is now."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":734,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-session-refresh"},{"id":"io.github.libtmux.scaladsl.cats.Shell.run","name":"run","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Shell","signatures":[{"raw":"extension [F[_]](self: Shell[F])(using F: _root_.cats.effect.Async[F])\ndef run(command: String): F[Unit]","params":[{"name":"command","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Shell[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Runs a shell command for its effect."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":741,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-shell-run"},{"id":"io.github.libtmux.scaladsl.cats.Shell.capturing","name":"capturing","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Shell","signatures":[{"raw":"extension [F[_]](self: Shell[F])(using F: _root_.cats.effect.Async[F])\ndef capturing(command: String): F[Vector[String]]","params":[{"name":"command","type":"String"}],"returns":"F[Vector[String]]","receiver":{"name":"self","type":"Shell[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Runs a shell command and answers with what it printed."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":745,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-shell-capturing"},{"id":"io.github.libtmux.scaladsl.cats.Shell.choose","name":"choose","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Shell","signatures":[{"raw":"extension [F[_]](self: Shell[F])(using F: _root_.cats.effect.Async[F])\ndef choose(condition: String, whenTrue: String): F[Unit]","params":[{"name":"condition","type":"String"},{"name":"whenTrue","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Shell[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Shell[F])(using F: _root_.cats.effect.Async[F])\ndef choose(condition: String, whenTrue: String, whenFalse: String): F[Unit]","params":[{"name":"condition","type":"String"},{"name":"whenTrue","type":"String"},{"name":"whenFalse","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Shell[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Runs one tmux command when a shell command succeeds."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":749,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-shell-choose"},{"id":"io.github.libtmux.scaladsl.cats.Window.info","name":"info","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef info: io.github.libtmux.snapshot.WindowState","params":[],"returns":"io.github.libtmux.snapshot.WindowState","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The fields this capture stored."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":760,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-info"},{"id":"io.github.libtmux.scaladsl.cats.Window.id","name":"id","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef id: io.github.libtmux.WindowId","params":[],"returns":"io.github.libtmux.WindowId","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The underlying window, shared by every link to it."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":764,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-id"},{"id":"io.github.libtmux.scaladsl.cats.Window.index","name":"index","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef index: io.github.libtmux.WindowIndex","params":[],"returns":"io.github.libtmux.WindowIndex","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Where this link sits in its session."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":768,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-index"},{"id":"io.github.libtmux.scaladsl.cats.Window.context","name":"context","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef context: io.github.libtmux.snapshot.WindowContext","params":[],"returns":"io.github.libtmux.snapshot.WindowContext","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The winlink this handle addresses."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":772,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-context"},{"id":"io.github.libtmux.scaladsl.cats.Window.name","name":"name","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef name: String","params":[],"returns":"String","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The window name."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":776,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-name"},{"id":"io.github.libtmux.scaladsl.cats.Window.active","name":"active","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef active: Boolean","params":[],"returns":"Boolean","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Whether this was its session's active window when captured."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":780,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-active"},{"id":"io.github.libtmux.scaladsl.cats.Window.linked","name":"linked","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef linked: Boolean","params":[],"returns":"Boolean","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Whether the underlying window is linked into more than one session."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":784,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-linked"},{"id":"io.github.libtmux.scaladsl.cats.Window.size","name":"size","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef size: io.github.libtmux.Dimensions","params":[],"returns":"io.github.libtmux.Dimensions","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"How large the window was when captured, in terminal cells."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":788,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-size"},{"id":"io.github.libtmux.scaladsl.cats.Window.layout","name":"layout","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef layout: io.github.libtmux.WindowLayout","params":[],"returns":"io.github.libtmux.WindowLayout","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"tmux's own layout for this window, in whichever form this server writes it."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":792,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-layout"},{"id":"io.github.libtmux.scaladsl.cats.Window.activePane","name":"activePane","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef activePane: Option[Pane[F]]","params":[],"returns":"Option[Pane[F]]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The pane tmux had active here."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":796,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-activepane"},{"id":"io.github.libtmux.scaladsl.cats.Window.select","name":"select","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef select(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Makes this the active window of its session."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":800,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-select"},{"id":"io.github.libtmux.scaladsl.cats.Window.session","name":"session","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef session: Session[F]","params":[],"returns":"Session[F]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"The session this link belongs to."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":804,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-session"},{"id":"io.github.libtmux.scaladsl.cats.Window.hooks","name":"hooks","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef hooks: Hooks[F]","params":[],"returns":"Hooks[F]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"This window's own hooks, which every link to it shares."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":808,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-hooks"},{"id":"io.github.libtmux.scaladsl.cats.Window.options","name":"options","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef options: Options[F]","params":[],"returns":"Options[F]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"This window's own options, which every link to it shares."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":812,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-options"},{"id":"io.github.libtmux.scaladsl.cats.Window.panes","name":"panes","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef panes: Vector[Pane[F]]","params":[],"returns":"Vector[Pane[F]]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"This link's panes, in tmux's order.","examples":[{"lang":"console","intro":"List all panes, then the panes captured for one window. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala-cats_3\"))\n .using(project(\":libtmux-scala-cats\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala-cats_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/ListPanes.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scalacats/ListPanes.scala","code":"package io.github.libtmux.examples.api.scalacats\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.cats.*\nimport _root_.cats.effect.{ExitCode, IO, IOApp}\nimport _root_.cats.syntax.all.*\n\n/** List all panes, then the panes captured for one window. */\nobject ListPanes extends IOApp {\n def run(args: List[String]): IO[ExitCode] = {\n val program = IO {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n }.flatMap { config =>\n Server.resource[IO](config).use { server =>\n for {\n panes <- server.panes()\n _ <- IO.println(s\"panes=${panes.size}\")\n found <- server.session(\"work-one\")\n session <- IO.fromOption(found)(\n new IllegalStateException(\"missing work-one\")\n )\n window <- IO.fromOption(\n session.windows.find(_.name.equals(\"editor\"))\n )(\n new IllegalStateException(\"missing editor\")\n )\n _ <- IO.println(s\"window-panes=${window.panes.size}\")\n } yield ()\n }\n }\n program.as(ExitCode.Success).handleErrorWith { error =>\n IO(System.err.println(\"Example failed: \" + error.getMessage))\n .as(ExitCode.Error)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scalacats.ListPanes && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"panes=4\nwindow-panes=2\n"}]},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":816,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-panes"},{"id":"io.github.libtmux.scaladsl.cats.Window.split","name":"split","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef split(): F[Pane[F]]","params":[],"returns":"F[Pane[F]]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef split(configure: io.github.libtmux.SplitSpec.Builder => Unit): F[Pane[F]]","params":[{"name":"configure","type":"io.github.libtmux.SplitSpec.Builder => Unit"}],"returns":"F[Pane[F]]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef split(spec: io.github.libtmux.SplitSpec): F[Pane[F]]","params":[{"name":"spec","type":"io.github.libtmux.SplitSpec"}],"returns":"F[Pane[F]]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Splits this window's active pane in half, putting the new one below it."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":820,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-split"},{"id":"io.github.libtmux.scaladsl.cats.Window.expand","name":"expand","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef expand(format: String): F[String]","params":[{"name":"format","type":"String"}],"returns":"F[String]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Expands a tmux format in this window's context, and answers with what it came to."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":832,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-expand"},{"id":"io.github.libtmux.scaladsl.cats.Window.rename","name":"rename","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef rename(name: String): F[Window[F]]","params":[{"name":"name","type":"String"}],"returns":"F[Window[F]]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Renames this window and returns its replacement capture."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":836,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-rename"},{"id":"io.github.libtmux.scaladsl.cats.Window.linkTo","name":"linkTo","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef linkTo(session: Session[F]): F[Unit]","params":[{"name":"session","type":"Session[F]"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Links this window into another session, so one window sits in both."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":840,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-linkto"},{"id":"io.github.libtmux.scaladsl.cats.Window.unlink","name":"unlink","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef unlink(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Removes this link, leaving the window wherever else it is linked."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":844,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-unlink"},{"id":"io.github.libtmux.scaladsl.cats.Window.moveTo","name":"moveTo","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef moveTo(session: Session[F]): F[Unit]","params":[{"name":"session","type":"Session[F]"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef moveTo(session: Session[F], index: Int): F[Unit]","params":[{"name":"session","type":"Session[F]"},{"name":"index","type":"Int"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Moves this window into another session."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":848,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-moveto"},{"id":"io.github.libtmux.scaladsl.cats.Window.resizeTo","name":"resizeTo","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef resizeTo(size: io.github.libtmux.Dimensions): F[Unit]","params":[{"name":"size","type":"io.github.libtmux.Dimensions"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Resizes this window in terminal cells."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":856,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-resizeto"},{"id":"io.github.libtmux.scaladsl.cats.Window.synchronizePanes","name":"synchronizePanes","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef synchronizePanes(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Copies input to one pane into every pane in this window, until {@link #stopSynchronizingPanes}."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":860,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-synchronizepanes"},{"id":"io.github.libtmux.scaladsl.cats.Window.stopSynchronizingPanes","name":"stopSynchronizingPanes","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef stopSynchronizingPanes(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Stops copying input between this window's panes."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":864,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-stopsynchronizingpanes"},{"id":"io.github.libtmux.scaladsl.cats.Window.rotate","name":"rotate","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef rotate(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Rotates the panes within this window."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":868,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-rotate"},{"id":"io.github.libtmux.scaladsl.cats.Window.selectLayout","name":"selectLayout","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef selectLayout(layout: io.github.libtmux.Layout): F[Unit]","params":[{"name":"layout","type":"io.github.libtmux.Layout"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Rearranges this window's panes into one of tmux's built-in layouts."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":872,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-selectlayout"},{"id":"io.github.libtmux.scaladsl.cats.Window.nextLayout","name":"nextLayout","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef nextLayout(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Moves to the next built-in layout, as tmux's own binding does."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":876,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-nextlayout"},{"id":"io.github.libtmux.scaladsl.cats.Window.previousLayout","name":"previousLayout","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef previousLayout(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Moves to the previous built-in layout, as tmux's own binding does."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":880,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-previouslayout"},{"id":"io.github.libtmux.scaladsl.cats.Window.applyLayout","name":"applyLayout","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef applyLayout(layout: io.github.libtmux.WindowLayout): F[Unit]","params":[{"name":"layout","type":"io.github.libtmux.WindowLayout"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef applyLayout(layout: String): F[Unit]","params":[{"name":"layout","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Restores an exact arrangement previously read from {@link #layout()}."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":884,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-applylayout"},{"id":"io.github.libtmux.scaladsl.cats.Window.respawn","name":"respawn","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef respawn(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Kills what is running in this window and starts it again."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":892,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-respawn"},{"id":"io.github.libtmux.scaladsl.cats.Window.displayPopup","name":"displayPopup","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef displayPopup(shellCommand: String): F[Unit]","params":[{"name":"shellCommand","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Shows a popup over this window, running a command in it."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":896,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-displaypopup"},{"id":"io.github.libtmux.scaladsl.cats.Window.kill","name":"kill","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef kill(): F[Unit]","params":[],"returns":"F[Unit]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Closes this window."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":900,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-kill"},{"id":"io.github.libtmux.scaladsl.cats.Window.refresh","name":"refresh","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Window","signatures":[{"raw":"extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F])\ndef refresh(): F[Window[F]]","params":[],"returns":"F[Window[F]]","receiver":{"name":"self","type":"Window[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{},"modifiers":[],"doc":{"summary":"Takes a new capture and returns this winlink as it is now."},"source":{"file":"libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":904,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-window-refresh"},{"id":"io.github.libtmux.scaladsl.cats.Pane.batch","name":"batch","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: Async[F])\ndef batch: Batch[F]","params":[],"returns":"Batch[F]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"doc":{"summary":"An immutable batch plan; each run dispatches a fresh Java `Batch` through this pane's server's `Execution`."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":89,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-batch"},{"id":"io.github.libtmux.scaladsl.cats.Pane.awaitText","name":"awaitText","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: Async[F])\ndef awaitText(\n text: String,\n timeout: scala.concurrent.duration.FiniteDuration\n ): F[io.github.libtmux.TextOutcome]","params":[{"name":"text","type":"String"},{"name":"timeout","type":"scala.concurrent.duration.FiniteDuration"}],"returns":"F[io.github.libtmux.TextOutcome]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Pane[F])(using F: Async[F])\ndef awaitText(\n text: String,\n timeout: scala.concurrent.duration.FiniteDuration,\n every: scala.concurrent.duration.FiniteDuration\n ): F[io.github.libtmux.TextOutcome]","params":[{"name":"text","type":"String"},{"name":"timeout","type":"scala.concurrent.duration.FiniteDuration"},{"name":"every","type":"scala.concurrent.duration.FiniteDuration"}],"returns":"F[io.github.libtmux.TextOutcome]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":["overload"],"doc":{"summary":"Waits until `text` appears, or `timeout` passes first.","examples":[{"lang":"console","intro":"Send input and wait for output before capturing the pane. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala-cats_3\"))\n .using(project(\":libtmux-scala-cats\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-cats/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala-cats_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/Capture.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scalacats/Capture.scala","code":"package io.github.libtmux.examples.api.scalacats\n\nimport io.github.libtmux.{\n ServerConfig,\n ServerEndpoint,\n SessionSpec,\n TextOutcome\n}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.cats.*\nimport scala.concurrent.duration.*\nimport _root_.cats.effect.{ExitCode, IO, IOApp}\nimport _root_.cats.syntax.all.*\n\n/** Send input and wait for output before capturing the pane. */\nobject Capture extends IOApp {\n def run(args: List[String]): IO[ExitCode] = {\n val program = IO {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n }.flatMap { config =>\n Server.resource[IO](config).use { server =>\n for {\n session <- server.newSession(\n SessionSpec\n .builder()\n .named(\"api-capture\")\n .running(\"/bin/sh\")\n .build()\n )\n pane = session.windows.head.panes.head\n _ <- pane.sendKeys(Vector(\"printf 'api-%s\\\\n' keys\", \"Enter\"))\n keys <- pane.awaitText(\"api-keys\", 5.seconds)\n _ <- IO.raiseWhen(keys.equals(TextOutcome.TIMED_OUT))(\n new IllegalStateException(\"timed out waiting for keys output\")\n )\n _ <- pane.sendLine(\"printf 'api-%s\\\\n' line\")\n line <- pane.awaitText(\"api-line\", 5.seconds)\n _ <- IO.raiseWhen(line.equals(TextOutcome.TIMED_OUT))(\n new IllegalStateException(\"timed out waiting for line output\")\n )\n lines <- pane.capture()\n _ <- Vector(\"api-keys\", \"api-line\").traverse_ { expected =>\n IO.raiseUnless(lines.exists(_.trim.equals(expected)))(\n new IllegalStateException(\"capture is missing \" + expected)\n ) *> IO.println(expected)\n }\n } yield ()\n }\n }\n program.as(ExitCode.Success).handleErrorWith { error =>\n IO(System.err.println(\"Example failed: \" + error.getMessage))\n .as(ExitCode.Error)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scalacats.Capture && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"api-keys\napi-line\n"}]},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":96,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-awaittext"},{"id":"io.github.libtmux.scaladsl.cats.Pane.run","name":"run","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: Async[F])\ndef run(\n command: String,\n timeout: scala.concurrent.duration.FiniteDuration\n ): F[io.github.libtmux.PaneRun]","params":[{"name":"command","type":"String"},{"name":"timeout","type":"scala.concurrent.duration.FiniteDuration"}],"returns":"F[io.github.libtmux.PaneRun]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":[],"doc":{"summary":"Runs a shell command in this pane to its end, and answers with its exit status and output."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":126,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-run"},{"id":"io.github.libtmux.scaladsl.cats.Pane.await","name":"await","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Pane","signatures":[{"raw":"extension [F[_]](self: Pane[F])(using F: Async[F])\ndef await(\n settled: Pane[F] => Boolean,\n timeout: scala.concurrent.duration.FiniteDuration\n ): F[io.github.libtmux.WakeReason]","params":[{"name":"settled","type":"Pane[F] => Boolean"},{"name":"timeout","type":"scala.concurrent.duration.FiniteDuration"}],"returns":"F[io.github.libtmux.WakeReason]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Pane[F])(using F: Async[F])\ndef await(\n settled: Pane[F] => Boolean,\n timeout: scala.concurrent.duration.FiniteDuration,\n every: scala.concurrent.duration.FiniteDuration\n ): F[io.github.libtmux.WakeReason]","params":[{"name":"settled","type":"Pane[F] => Boolean"},{"name":"timeout","type":"scala.concurrent.duration.FiniteDuration"},{"name":"every","type":"scala.concurrent.duration.FiniteDuration"}],"returns":"F[io.github.libtmux.WakeReason]","receiver":{"name":"self","type":"Pane[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"Async":"_root_.cats.effect.Async","direct":"io.github.libtmux.scaladsl"},"modifiers":["overload"],"doc":{"summary":"Waits until `settled` holds for this pane as it is now. `settled` runs on the blocking worker with each fresh capture."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Handles.scala","line":140,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-pane-await"},{"id":"io.github.libtmux.scaladsl.cats.Server.batch","name":"batch","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: Async[F])\ndef batch: Batch[F]","params":[],"returns":"Batch[F]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"direct":"io.github.libtmux.scaladsl","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","JavaServer":"io.github.libtmux.Server","ServerConfig":"io.github.libtmux.ServerConfig"},"modifiers":[],"doc":{"summary":"An immutable batch plan; each run dispatches a fresh Java `Batch` through this server's `Execution`."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Server.scala","line":85,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-batch"},{"id":"io.github.libtmux.scaladsl.cats.Server.chain","name":"chain","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: Async[F])\ndef chain: CommandChain[F]","params":[],"returns":"CommandChain[F]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"direct":"io.github.libtmux.scaladsl","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","JavaServer":"io.github.libtmux.Server","ServerConfig":"io.github.libtmux.ServerConfig"},"modifiers":[],"doc":{"summary":"An immutable chain plan using tmux's evolving current target; each run dispatches a fresh Java `CommandChain` through this server's `Execution`."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Server.scala","line":92,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-chain"},{"id":"io.github.libtmux.scaladsl.cats.Server.channel","name":"channel","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Server","signatures":[{"raw":"extension [F[_]](self: Server[F])(using F: Async[F])\ndef channel(name: String): Channel[F]","params":[{"name":"name","type":"String"}],"returns":"Channel[F]","receiver":{"name":"self","type":"Server[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]}],"imports":{"direct":"io.github.libtmux.scaladsl","Async":"_root_.cats.effect.Async","Resource":"_root_.cats.effect.Resource","JavaServer":"io.github.libtmux.Server","ServerConfig":"io.github.libtmux.ServerConfig"},"modifiers":[],"doc":{"summary":"One of tmux's wait-for channels, named once."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Server.scala","line":96,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-server-channel"},{"id":"io.github.libtmux.scaladsl.cats.Options.get","name":"get","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Options","signatures":[{"raw":"extension [F[_]](self: Options[F])(using F: Async[F])\ndef get(name: String): F[Option[String]]","params":[{"name":"name","type":"String"}],"returns":"F[Option[String]]","receiver":{"name":"self","type":"Options[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Options[F])(using F: Async[F])\ndef get[T](key: io.github.libtmux.OptionKey[T]): F[Option[T]]","params":[{"name":"key","type":"io.github.libtmux.OptionKey[T]"}],"returns":"F[Option[T]]","receiver":{"name":"self","type":"Options[F]"},"typeParams":["F","T"],"typeParameters":[{"name":"F"},{"name":"T"}]}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":["overload"],"doc":{"summary":"The value in effect at this scope, inherited from a parent scope when this one does not set it."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":57,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-options-get"},{"id":"io.github.libtmux.scaladsl.cats.Options.set","name":"set","kind":"method","parent":"io.github.libtmux.scaladsl.cats.Options","signatures":[{"raw":"extension [F[_]](self: Options[F])(using F: Async[F])\ndef set(name: String, value: String): F[Unit]","params":[{"name":"name","type":"String"},{"name":"value","type":"String"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Options[F]"},"typeParams":["F"],"typeParameters":[{"name":"F"}]},{"raw":"extension [F[_]](self: Options[F])(using F: Async[F])\ndef set[T](key: io.github.libtmux.OptionKey[T], value: T): F[Unit]","params":[{"name":"key","type":"io.github.libtmux.OptionKey[T]"},{"name":"value","type":"T"}],"returns":"F[Unit]","receiver":{"name":"self","type":"Options[F]"},"typeParams":["F","T"],"typeParameters":[{"name":"F"},{"name":"T"}]}],"imports":{"Async":"_root_.cats.effect.Async"},"modifiers":["overload"],"doc":{"summary":"Sets one option at this scope."},"source":{"file":"libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala","line":73,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-cats-options-set"},{"id":"io.github.libtmux.scaladsl.Client.detach","name":"detach","kind":"method","parent":"io.github.libtmux.scaladsl.Client","signatures":[{"raw":"extension (self: Client)\ndef detach(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Client"}}],"imports":{},"modifiers":[],"doc":{"summary":"Detaches this client, leaving whatever it was attached to running."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":12,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-client-detach"},{"id":"io.github.libtmux.scaladsl.Client.detachOthers","name":"detachOthers","kind":"method","parent":"io.github.libtmux.scaladsl.Client","signatures":[{"raw":"extension (self: Client)\ndef detachOthers(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Client"}}],"imports":{},"modifiers":[],"doc":{"summary":"Detaches every other client, leaving this one attached."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":16,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-client-detachothers"},{"id":"io.github.libtmux.scaladsl.Client.switchTo","name":"switchTo","kind":"method","parent":"io.github.libtmux.scaladsl.Client","signatures":[{"raw":"extension (self: Client)\ndef switchTo(session: Session): Unit","params":[{"name":"session","type":"Session"}],"returns":"Unit","receiver":{"name":"self","type":"Client"}}],"imports":{},"modifiers":[],"doc":{"summary":"Moves this client to another session."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":20,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-client-switchto"},{"id":"io.github.libtmux.scaladsl.Client.redraw","name":"redraw","kind":"method","parent":"io.github.libtmux.scaladsl.Client","signatures":[{"raw":"extension (self: Client)\ndef redraw(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Client"}}],"imports":{},"modifiers":[],"doc":{"summary":"Asks tmux to redraw this client."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":24,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-client-redraw"},{"id":"io.github.libtmux.scaladsl.Client.server","name":"server","kind":"method","parent":"io.github.libtmux.scaladsl.Client","signatures":[{"raw":"extension (self: Client)\ndef server: Server","params":[],"returns":"Server","receiver":{"name":"self","type":"Client"}}],"imports":{},"modifiers":[],"doc":{"summary":"The server this client is connected to."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-client-server"},{"id":"io.github.libtmux.scaladsl.Client.attachment","name":"attachment","kind":"method","parent":"io.github.libtmux.scaladsl.Client","signatures":[{"raw":"extension (self: Client)\ndef attachment: Option[io.github.libtmux.ClientAttachment]","params":[],"returns":"Option[io.github.libtmux.ClientAttachment]","receiver":{"name":"self","type":"Client"}}],"imports":{},"modifiers":[],"doc":{"summary":"What this client was looking at when captured."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-client-attachment"},{"id":"io.github.libtmux.scaladsl.Client.fetchAttachment","name":"fetchAttachment","kind":"method","parent":"io.github.libtmux.scaladsl.Client","signatures":[{"raw":"extension (self: Client)\ndef fetchAttachment(): Option[io.github.libtmux.ClientAttachment]","params":[],"returns":"Option[io.github.libtmux.ClientAttachment]","receiver":{"name":"self","type":"Client"}}],"imports":{},"modifiers":[],"doc":{"summary":"Takes a new capture and returns what this client is looking at now."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":40,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-client-fetchattachment"},{"id":"io.github.libtmux.scaladsl.Client.refresh","name":"refresh","kind":"method","parent":"io.github.libtmux.scaladsl.Client","signatures":[{"raw":"extension (self: Client)\ndef refresh(): Client","params":[],"returns":"Client","receiver":{"name":"self","type":"Client"}}],"imports":{},"modifiers":[],"doc":{"summary":"Takes a new capture and returns this client as it is now."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":44,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-client-refresh"},{"id":"io.github.libtmux.scaladsl.Pane.info","name":"info","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef info: io.github.libtmux.snapshot.PaneState","params":[],"returns":"io.github.libtmux.snapshot.PaneState","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"The fields this capture stored."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":51,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-info"},{"id":"io.github.libtmux.scaladsl.Pane.currentCommand","name":"currentCommand","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef currentCommand: String","params":[],"returns":"String","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"The command tmux reported running here."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":67,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-currentcommand"},{"id":"io.github.libtmux.scaladsl.Pane.floating","name":"floating","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef floating: Option[Boolean]","params":[],"returns":"Option[Boolean]","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Whether this pane floats, or empty when the running tmux cannot say."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":71,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-floating"},{"id":"io.github.libtmux.scaladsl.Pane.size","name":"size","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef size: io.github.libtmux.Dimensions","params":[],"returns":"io.github.libtmux.Dimensions","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"How large the pane was when captured, in terminal cells."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":75,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-size"},{"id":"io.github.libtmux.scaladsl.Pane.position","name":"position","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef position: io.github.libtmux.PanePosition","params":[],"returns":"io.github.libtmux.PanePosition","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Where the pane's top-left corner sat in its window when captured, in terminal cells."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":79,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-position"},{"id":"io.github.libtmux.scaladsl.Pane.currentPath","name":"currentPath","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef currentPath: java.nio.file.Path","params":[],"returns":"java.nio.file.Path","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"The working directory tmux reported for the pane."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":87,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-currentpath"},{"id":"io.github.libtmux.scaladsl.Pane.currentPathText","name":"currentPathText","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef currentPathText: String","params":[],"returns":"String","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"The working directory tmux reported for the pane, exactly as tmux reported it."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":91,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-currentpathtext"},{"id":"io.github.libtmux.scaladsl.Pane.pid","name":"pid","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef pid: Option[Long]","params":[],"returns":"Option[Long]","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"The process id of the program running in the pane, captured at the time of the read this handle came from."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":96,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-pid"},{"id":"io.github.libtmux.scaladsl.Pane.dead","name":"dead","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef dead(): Boolean","params":[],"returns":"Boolean","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Whether this pane's process has exited, read fresh rather than from the capture."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":100,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-dead"},{"id":"io.github.libtmux.scaladsl.Pane.resize","name":"resize","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef resize(direction: io.github.libtmux.Direction, cells: Int): Unit","params":[{"name":"direction","type":"io.github.libtmux.Direction"},{"name":"cells","type":"Int"}],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Grows this pane by a number of cells in one direction."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":104,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-resize"},{"id":"io.github.libtmux.scaladsl.Pane.edges","name":"edges","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef edges: io.github.libtmux.PaneEdges","params":[],"returns":"io.github.libtmux.PaneEdges","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Which sides of its window the pane touches."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":108,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-edges"},{"id":"io.github.libtmux.scaladsl.Pane.copyMode","name":"copyMode","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef copyMode(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Puts this pane into copy mode, where its scrollback can be navigated."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":112,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-copymode"},{"id":"io.github.libtmux.scaladsl.Pane.mode","name":"mode","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef mode(): Option[io.github.libtmux.PaneMode]","params":[],"returns":"Option[io.github.libtmux.PaneMode]","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Which mode this pane is in at this moment, or empty when it is in none."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":116,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-mode"},{"id":"io.github.libtmux.scaladsl.Pane.exitMode","name":"exitMode","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef exitMode(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Leaves whichever mode this pane is in."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":120,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-exitmode"},{"id":"io.github.libtmux.scaladsl.Pane.select","name":"select","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef select(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Makes this the active pane of its window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":124,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-select"},{"id":"io.github.libtmux.scaladsl.Pane.retitle","name":"retitle","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef retitle(title: String): Pane","params":[{"name":"title","type":"String"}],"returns":"Pane","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Retitles this pane and returns its replacement capture."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":128,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-retitle"},{"id":"io.github.libtmux.scaladsl.Pane.resizeTo","name":"resizeTo","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef resizeTo(size: io.github.libtmux.Dimensions): Unit","params":[{"name":"size","type":"io.github.libtmux.Dimensions"}],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Resizes this pane."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":132,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-resizeto"},{"id":"io.github.libtmux.scaladsl.Pane.server","name":"server","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef server: Server","params":[],"returns":"Server","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"The server this pane lives on."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":136,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-server"},{"id":"io.github.libtmux.scaladsl.Pane.batch","name":"batch","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef batch: io.github.libtmux.batch.Batch","params":[],"returns":"io.github.libtmux.batch.Batch","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Collects commands fenced to the server incarnation that produced this pane."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":140,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-batch"},{"id":"io.github.libtmux.scaladsl.Pane.window","name":"window","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef window: Window","params":[],"returns":"Window","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"The window link this pane was reached through."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":144,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-window"},{"id":"io.github.libtmux.scaladsl.Pane.hooks","name":"hooks","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef hooks: io.github.libtmux.Hooks","params":[],"returns":"io.github.libtmux.Hooks","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"This pane's own hooks."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":148,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-hooks"},{"id":"io.github.libtmux.scaladsl.Pane.options","name":"options","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef options: io.github.libtmux.Options","params":[],"returns":"io.github.libtmux.Options","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"This pane's own options."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":152,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-options"},{"id":"io.github.libtmux.scaladsl.Pane.capture","name":"capture","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef capture(): Vector[String]","params":[],"returns":"Vector[String]","receiver":{"name":"self","type":"Pane"}},{"raw":"extension (self: Pane)\ndef capture(configure: io.github.libtmux.CaptureSpec.Builder => Unit): Vector[String]","params":[{"name":"configure","type":"io.github.libtmux.CaptureSpec.Builder => Unit"}],"returns":"Vector[String]","receiver":{"name":"self","type":"Pane"}},{"raw":"extension (self: Pane)\ndef capture(spec: io.github.libtmux.CaptureSpec): Vector[String]","params":[{"name":"spec","type":"io.github.libtmux.CaptureSpec"}],"returns":"Vector[String]","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"This pane's visible content, one element per line.","examples":[{"lang":"console","intro":"Send input and wait for output before capturing the pane. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala_3\"))\n .using(project(\":libtmux-scala\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/Capture.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scaladirect/Capture.scala","code":"package io.github.libtmux.examples.api.scaladirect\n\nimport io.github.libtmux.{\n ServerConfig,\n ServerEndpoint,\n SessionSpec,\n TextOutcome\n}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.*\nimport scala.concurrent.duration.*\nimport scala.util.Using\nimport scala.util.control.NonFatal\n\n/** Send input and wait for output before capturing the pane. */\nobject Capture {\n def main(args: Array[String]): Unit = {\n try {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n val config = ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n Using.resource(Server.open(config)) { server =>\n val session = server.newSession(\n SessionSpec.builder().named(\"api-capture\").running(\"/bin/sh\").build()\n )\n val pane = session.windows.head.panes.head\n pane.sendKeys(Vector(\"printf 'api-%s\\\\n' keys\", \"Enter\"))\n require(\n !pane.awaitText(\"api-keys\", 5.seconds).equals(TextOutcome.TIMED_OUT),\n \"timed out waiting for keys output\"\n )\n pane.sendLine(\"printf 'api-%s\\\\n' line\")\n require(\n !pane.awaitText(\"api-line\", 5.seconds).equals(TextOutcome.TIMED_OUT),\n \"timed out waiting for line output\"\n )\n val lines = pane.capture()\n Vector(\"api-keys\", \"api-line\").foreach { expected =>\n require(\n lines.exists(_.trim.equals(expected)),\n \"capture is missing \" + expected\n )\n println(expected)\n }\n }\n } catch {\n case NonFatal(error) =>\n System.err.println(\"Example failed: \" + error.getMessage)\n sys.exit(1)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scaladirect.Capture && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"api-keys\napi-line\n"}]},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":156,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-capture"},{"id":"io.github.libtmux.scaladsl.Pane.noteTyped","name":"noteTyped","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef noteTyped(text: String): Unit","params":[{"name":"text","type":"String"}],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Notes text that reached this pane without going through this handle, so a wait discounts its echo the way it discounts text sent through {@link #sendLiteral}."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":161,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-notetyped"},{"id":"io.github.libtmux.scaladsl.Pane.send","name":"send","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef send(keys: String): Unit","params":[{"name":"keys","type":"String"}],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Sends keys to this pane without pressing Enter."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":173,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-send"},{"id":"io.github.libtmux.scaladsl.Pane.sendKeys","name":"sendKeys","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef sendKeys(keys: Vector[String]): Unit","params":[{"name":"keys","type":"Vector[String]"}],"returns":"Unit","receiver":{"name":"self","type":"Pane"}},{"raw":"extension (self: Pane)\ndef sendKeys(keys: Vector[String], beforeSend: () => Unit): Unit","params":[{"name":"keys","type":"Vector[String]"},{"name":"beforeSend","type":"() => Unit"}],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Sends an ordered group of key names to this pane, as tmux resolves them.","examples":[{"lang":"console","intro":"Send input and wait for output before capturing the pane. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala_3\"))\n .using(project(\":libtmux-scala\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/Capture.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scaladirect/Capture.scala","code":"package io.github.libtmux.examples.api.scaladirect\n\nimport io.github.libtmux.{\n ServerConfig,\n ServerEndpoint,\n SessionSpec,\n TextOutcome\n}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.*\nimport scala.concurrent.duration.*\nimport scala.util.Using\nimport scala.util.control.NonFatal\n\n/** Send input and wait for output before capturing the pane. */\nobject Capture {\n def main(args: Array[String]): Unit = {\n try {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n val config = ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n Using.resource(Server.open(config)) { server =>\n val session = server.newSession(\n SessionSpec.builder().named(\"api-capture\").running(\"/bin/sh\").build()\n )\n val pane = session.windows.head.panes.head\n pane.sendKeys(Vector(\"printf 'api-%s\\\\n' keys\", \"Enter\"))\n require(\n !pane.awaitText(\"api-keys\", 5.seconds).equals(TextOutcome.TIMED_OUT),\n \"timed out waiting for keys output\"\n )\n pane.sendLine(\"printf 'api-%s\\\\n' line\")\n require(\n !pane.awaitText(\"api-line\", 5.seconds).equals(TextOutcome.TIMED_OUT),\n \"timed out waiting for line output\"\n )\n val lines = pane.capture()\n Vector(\"api-keys\", \"api-line\").foreach { expected =>\n require(\n lines.exists(_.trim.equals(expected)),\n \"capture is missing \" + expected\n )\n println(expected)\n }\n }\n } catch {\n case NonFatal(error) =>\n System.err.println(\"Example failed: \" + error.getMessage)\n sys.exit(1)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scaladirect.Capture && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"api-keys\napi-line\n"}]},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":177,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-sendkeys"},{"id":"io.github.libtmux.scaladsl.Pane.sendLiteral","name":"sendLiteral","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef sendLiteral(keys: Vector[String]): Unit","params":[{"name":"keys","type":"Vector[String]"}],"returns":"Unit","receiver":{"name":"self","type":"Pane"}},{"raw":"extension (self: Pane)\ndef sendLiteral(keys: Vector[String], beforeSend: () => Unit): Unit","params":[{"name":"keys","type":"Vector[String]"},{"name":"beforeSend","type":"() => Unit"}],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Sends an ordered group of strings to this pane as the characters they spell."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":185,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-sendliteral"},{"id":"io.github.libtmux.scaladsl.Pane.sendLine","name":"sendLine","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef sendLine(command: String): Unit","params":[{"name":"command","type":"String"}],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Sends a line to this pane and presses Enter, which is how a command gets run.","examples":[{"lang":"console","intro":"Send input and wait for output before capturing the pane. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala_3\"))\n .using(project(\":libtmux-scala\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/Capture.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scaladirect/Capture.scala","code":"package io.github.libtmux.examples.api.scaladirect\n\nimport io.github.libtmux.{\n ServerConfig,\n ServerEndpoint,\n SessionSpec,\n TextOutcome\n}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.*\nimport scala.concurrent.duration.*\nimport scala.util.Using\nimport scala.util.control.NonFatal\n\n/** Send input and wait for output before capturing the pane. */\nobject Capture {\n def main(args: Array[String]): Unit = {\n try {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n val config = ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n Using.resource(Server.open(config)) { server =>\n val session = server.newSession(\n SessionSpec.builder().named(\"api-capture\").running(\"/bin/sh\").build()\n )\n val pane = session.windows.head.panes.head\n pane.sendKeys(Vector(\"printf 'api-%s\\\\n' keys\", \"Enter\"))\n require(\n !pane.awaitText(\"api-keys\", 5.seconds).equals(TextOutcome.TIMED_OUT),\n \"timed out waiting for keys output\"\n )\n pane.sendLine(\"printf 'api-%s\\\\n' line\")\n require(\n !pane.awaitText(\"api-line\", 5.seconds).equals(TextOutcome.TIMED_OUT),\n \"timed out waiting for line output\"\n )\n val lines = pane.capture()\n Vector(\"api-keys\", \"api-line\").foreach { expected =>\n require(\n lines.exists(_.trim.equals(expected)),\n \"capture is missing \" + expected\n )\n println(expected)\n }\n }\n } catch {\n case NonFatal(error) =>\n System.err.println(\"Example failed: \" + error.getMessage)\n sys.exit(1)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scaladirect.Capture && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"api-keys\napi-line\n"}]},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":193,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-sendline"},{"id":"io.github.libtmux.scaladsl.Pane.breakOut","name":"breakOut","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef breakOut(): Window","params":[],"returns":"Window","receiver":{"name":"self","type":"Pane"}},{"raw":"extension (self: Pane)\ndef breakOut(windowName: String): Window","params":[{"name":"windowName","type":"String"}],"returns":"Window","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Moves this pane into a window of its own, leaving tmux to name it."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":197,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-breakout"},{"id":"io.github.libtmux.scaladsl.Pane.expand","name":"expand","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef expand(format: String): String","params":[{"name":"format","type":"String"}],"returns":"String","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Expands a tmux format in this pane's context, and answers with what it came to."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":201,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-expand"},{"id":"io.github.libtmux.scaladsl.Pane.variables","name":"variables","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef variables(names: Vector[String]): _root_.scala.collection.immutable.VectorMap[String, String]","params":[{"name":"names","type":"Vector[String]"}],"returns":"_root_.scala.collection.immutable.VectorMap[String, String]","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Reads validated tmux variables in this pane's format context."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":205,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-variables"},{"id":"io.github.libtmux.scaladsl.Pane.respawn","name":"respawn","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef respawn(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Pane"}},{"raw":"extension (self: Pane)\ndef respawn(command: String*): Unit","params":[{"name":"command","type":"String*"}],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Kills whatever runs here and starts the pane's default command again."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":209,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-respawn"},{"id":"io.github.libtmux.scaladsl.Pane.respawnIn","name":"respawnIn","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef respawnIn(directory: java.nio.file.Path): Unit","params":[{"name":"directory","type":"java.nio.file.Path"}],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Restarts the configured pane process in a caller-supplied literal directory, resolved against this process's working directory when relative."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":214,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-respawnin"},{"id":"io.github.libtmux.scaladsl.Pane.pipeTo","name":"pipeTo","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef pipeTo(shellCommand: String): Unit","params":[{"name":"shellCommand","type":"String"}],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Sends everything this pane prints to a shell command, until {@link #stopPiping}."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":222,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-pipeto"},{"id":"io.github.libtmux.scaladsl.Pane.stopPiping","name":"stopPiping","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef stopPiping(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Stops sending this pane's output anywhere."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":226,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-stoppiping"},{"id":"io.github.libtmux.scaladsl.Pane.split","name":"split","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef split(): Pane","params":[],"returns":"Pane","receiver":{"name":"self","type":"Pane"}},{"raw":"extension (self: Pane)\ndef split(configure: io.github.libtmux.SplitSpec.Builder => Unit): Pane","params":[{"name":"configure","type":"io.github.libtmux.SplitSpec.Builder => Unit"}],"returns":"Pane","receiver":{"name":"self","type":"Pane"}},{"raw":"extension (self: Pane)\ndef split(spec: io.github.libtmux.SplitSpec): Pane","params":[{"name":"spec","type":"io.github.libtmux.SplitSpec"}],"returns":"Pane","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Splits this pane in half, putting the new one below it."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":234,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-split"},{"id":"io.github.libtmux.scaladsl.Pane.pasteBuffer","name":"pasteBuffer","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef pasteBuffer(name: String): Unit","params":[{"name":"name","type":"String"}],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Pastes a named buffer into this pane, as though it had been typed."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":246,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-pastebuffer"},{"id":"io.github.libtmux.scaladsl.Pane.paste","name":"paste","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef paste(text: String): Unit","params":[{"name":"text","type":"String"}],"returns":"Unit","receiver":{"name":"self","type":"Pane"}},{"raw":"extension (self: Pane)\ndef paste(text: String, beforePaste: () => Unit): Unit","params":[{"name":"text","type":"String"},{"name":"beforePaste","type":"() => Unit"}],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Pastes text into this pane as one block, leaving nothing behind on the server."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":250,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-paste"},{"id":"io.github.libtmux.scaladsl.Pane.clearHistory","name":"clearHistory","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef clearHistory(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Discards this pane's scrollback."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":258,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-clearhistory"},{"id":"io.github.libtmux.scaladsl.Pane.swapWith","name":"swapWith","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef swapWith(other: Pane): Unit","params":[{"name":"other","type":"Pane"}],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Swaps this pane's position with another's."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":262,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-swapwith"},{"id":"io.github.libtmux.scaladsl.Pane.joinTo","name":"joinTo","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef joinTo(window: Window): Unit","params":[{"name":"window","type":"Window"}],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Moves this pane into another window, splitting it."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":266,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-jointo"},{"id":"io.github.libtmux.scaladsl.Pane.kill","name":"kill","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef kill(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Closes this pane."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":270,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-kill"},{"id":"io.github.libtmux.scaladsl.Pane.refresh","name":"refresh","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef refresh(): Pane","params":[],"returns":"Pane","receiver":{"name":"self","type":"Pane"}}],"imports":{},"modifiers":[],"doc":{"summary":"Takes a new capture and returns this pane as it is now."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":274,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-refresh"},{"id":"io.github.libtmux.scaladsl.Server.newSession","name":"newSession","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef newSession(name: String): Session","params":[{"name":"name","type":"String"}],"returns":"Session","receiver":{"name":"self","type":"Server"}},{"raw":"extension (self: Server)\ndef newSession(configure: io.github.libtmux.SessionSpec.Builder => Unit): Session","params":[{"name":"configure","type":"io.github.libtmux.SessionSpec.Builder => Unit"}],"returns":"Session","receiver":{"name":"self","type":"Server"}},{"raw":"extension (self: Server)\ndef newSession(spec: io.github.libtmux.SessionSpec): Session","params":[{"name":"spec","type":"io.github.libtmux.SessionSpec"}],"returns":"Session","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Creates a detached session and returns that exact session.","examples":[{"lang":"console","intro":"Create a session running cat. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala_3\"))\n .using(project(\":libtmux-scala\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/NewSession.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scaladirect/NewSession.scala","code":"package io.github.libtmux.examples.api.scaladirect\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint, SessionSpec}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.*\nimport scala.util.Using\nimport scala.util.control.NonFatal\n\n/** Create a session running cat. */\nobject NewSession {\n def main(args: Array[String]): Unit = {\n try {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n val config = ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n Using.resource(Server.open(config)) { server =>\n val session = server.newSession(\n SessionSpec.builder().named(\"api-session\").running(\"/bin/cat\").build()\n )\n println(s\"created=${session.name}\")\n }\n } catch {\n case NonFatal(error) =>\n System.err.println(\"Example failed: \" + error.getMessage)\n sys.exit(1)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scaladirect.NewSession && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"created=api-session\n"}]},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":281,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-newsession"},{"id":"io.github.libtmux.scaladsl.Server.hasSession","name":"hasSession","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef hasSession(name: String): Boolean","params":[{"name":"name","type":"String"}],"returns":"Boolean","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"Whether a session with this name exists."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":293,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-hassession"},{"id":"io.github.libtmux.scaladsl.Server.killSession","name":"killSession","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef killSession(name: String): Unit","params":[{"name":"name","type":"String"}],"returns":"Unit","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"Ends the session with this name, and everything in it."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":297,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-killsession"},{"id":"io.github.libtmux.scaladsl.Server.isAlive","name":"isAlive","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef isAlive(): Boolean","params":[],"returns":"Boolean","receiver":{"name":"self","type":"Server"}},{"raw":"extension (self: Server)\ndef isAlive(timeout: _root_.scala.concurrent.duration.FiniteDuration): Boolean","params":[{"name":"timeout","type":"_root_.scala.concurrent.duration.FiniteDuration"}],"returns":"Boolean","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Whether the server is running and answering."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":301,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-isalive"},{"id":"io.github.libtmux.scaladsl.Server.requireAlive","name":"requireAlive","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef requireAlive(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"Requires a running tmux daemon that answers the liveness probe."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":309,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-requirealive"},{"id":"io.github.libtmux.scaladsl.Server.killServer","name":"killServer","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef killServer(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Server"}},{"raw":"extension (self: Server)\ndef killServer(timeout: _root_.scala.concurrent.duration.FiniteDuration): Unit","params":[{"name":"timeout","type":"_root_.scala.concurrent.duration.FiniteDuration"}],"returns":"Unit","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Ends the tmux server and every session on it."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":313,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-killserver"},{"id":"io.github.libtmux.scaladsl.Server.batch","name":"batch","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef batch: io.github.libtmux.batch.Batch","params":[],"returns":"io.github.libtmux.batch.Batch","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"Collects several commands to run in one tmux invocation."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":321,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-batch"},{"id":"io.github.libtmux.scaladsl.Server.chain","name":"chain","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef chain: io.github.libtmux.CommandChain","params":[],"returns":"io.github.libtmux.CommandChain","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"Starts a chain of commands where each one acts on what the last one made."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":325,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-chain"},{"id":"io.github.libtmux.scaladsl.Server.expand","name":"expand","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef expand(format: String): String","params":[{"name":"format","type":"String"}],"returns":"String","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"Expands a tmux format against the server, and answers with what it came to."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":329,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-expand"},{"id":"io.github.libtmux.scaladsl.Server.shell","name":"shell","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef shell: io.github.libtmux.Shell","params":[],"returns":"io.github.libtmux.Shell","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"Shell commands run by tmux, and tmux commands chosen by a shell exit status."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":333,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-shell"},{"id":"io.github.libtmux.scaladsl.Server.commands","name":"commands","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef commands: io.github.libtmux.Commands","params":[],"returns":"io.github.libtmux.Commands","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"The commands this tmux knows."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":337,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-commands"},{"id":"io.github.libtmux.scaladsl.Server.lock","name":"lock","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef lock(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"Locks every client attached to this server."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":341,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-lock"},{"id":"io.github.libtmux.scaladsl.Server.messageLog","name":"messageLog","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef messageLog: io.github.libtmux.MessageLog","params":[],"returns":"io.github.libtmux.MessageLog","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"The server's message log."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":345,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-messagelog"},{"id":"io.github.libtmux.scaladsl.Server.prompt","name":"prompt","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef prompt: io.github.libtmux.Prompt","params":[],"returns":"io.github.libtmux.Prompt","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"The command prompt's history."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":349,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-prompt"},{"id":"io.github.libtmux.scaladsl.Server.channel","name":"channel","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef channel(name: String): io.github.libtmux.Channel","params":[{"name":"name","type":"String"}],"returns":"io.github.libtmux.Channel","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"One of this server's wait-for channels, which is where a signal is sent and waited for."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":353,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-channel"},{"id":"io.github.libtmux.scaladsl.Server.variables","name":"variables","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef variables(names: Vector[String]): _root_.scala.collection.immutable.VectorMap[String, String]","params":[{"name":"names","type":"Vector[String]"}],"returns":"_root_.scala.collection.immutable.VectorMap[String, String]","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"Reads only validated tmux variable names, never caller-authored format syntax."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":357,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-variables"},{"id":"io.github.libtmux.scaladsl.Server.paneFields","name":"paneFields","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef paneFields(names: Vector[String]): _root_.scala.collection.immutable.VectorMap[io.github.libtmux.PaneId, _root_.scala.collection.immutable.VectorMap[String, String]]","params":[{"name":"names","type":"Vector[String]"}],"returns":"_root_.scala.collection.immutable.VectorMap[io.github.libtmux.PaneId, _root_.scala.collection.immutable.VectorMap[String, String]]","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"Chosen fields for every pane on the server, from one listing."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":361,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-panefields"},{"id":"io.github.libtmux.scaladsl.Server.keys","name":"keys","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef keys: io.github.libtmux.Keys","params":[],"returns":"io.github.libtmux.Keys","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"The server's key bindings: {@code prefix} when binding, every table when listing."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":365,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-keys"},{"id":"io.github.libtmux.scaladsl.Server.buffers","name":"buffers","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef buffers: io.github.libtmux.Buffers","params":[],"returns":"io.github.libtmux.Buffers","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"The server's paste buffers, which every session shares."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":369,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-buffers"},{"id":"io.github.libtmux.scaladsl.Server.sourceFile","name":"sourceFile","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef sourceFile(file: java.nio.file.Path): Unit","params":[{"name":"file","type":"java.nio.file.Path"}],"returns":"Unit","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"Runs a file of tmux commands, as a configuration file would be run."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":373,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-sourcefile"},{"id":"io.github.libtmux.scaladsl.Server.options","name":"options","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef options: io.github.libtmux.Options","params":[],"returns":"io.github.libtmux.Options","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"The server-wide options, the ones tmux keeps once per server."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":377,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-options"},{"id":"io.github.libtmux.scaladsl.Server.globalOptions","name":"globalOptions","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef globalOptions: io.github.libtmux.Options","params":[],"returns":"io.github.libtmux.Options","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"The global session options every session inherits unless it sets its own."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":381,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-globaloptions"},{"id":"io.github.libtmux.scaladsl.Server.environment","name":"environment","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef environment: io.github.libtmux.Environment","params":[],"returns":"io.github.libtmux.Environment","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"The server's environment, which every session inherits and every new process is given."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":385,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-environment"},{"id":"io.github.libtmux.scaladsl.Server.hooks","name":"hooks","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef hooks: io.github.libtmux.Hooks","params":[],"returns":"io.github.libtmux.Hooks","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"The global hooks every session inherits."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":389,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-hooks"},{"id":"io.github.libtmux.scaladsl.Server.version","name":"version","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef version(): io.github.libtmux.TmuxVersion","params":[],"returns":"io.github.libtmux.TmuxVersion","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"Which tmux this server is running."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":393,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-version"},{"id":"io.github.libtmux.scaladsl.Server.identity","name":"identity","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef identity: io.github.libtmux.ServerIdentity","params":[],"returns":"io.github.libtmux.ServerIdentity","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"Which server this is."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":397,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-identity"},{"id":"io.github.libtmux.scaladsl.Server.config","name":"config","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef config: io.github.libtmux.ServerConfig","params":[],"returns":"io.github.libtmux.ServerConfig","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"How this server was configured."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":401,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-config"},{"id":"io.github.libtmux.scaladsl.Server.cmd","name":"cmd","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef cmd(argv: String*): io.github.libtmux.transport.CommandResult","params":[{"name":"argv","type":"String*"}],"returns":"io.github.libtmux.transport.CommandResult","receiver":{"name":"self","type":"Server"}},{"raw":"extension (self: Server)\ndef cmd(argv: Vector[String]): io.github.libtmux.transport.CommandResult","params":[{"name":"argv","type":"Vector[String]"}],"returns":"io.github.libtmux.transport.CommandResult","receiver":{"name":"self","type":"Server"}},{"raw":"extension (self: Server)\ndef cmd(argv: Vector[String], timeout: _root_.scala.concurrent.duration.FiniteDuration): io.github.libtmux.transport.CommandResult","params":[{"name":"argv","type":"Vector[String]"},{"name":"timeout","type":"_root_.scala.concurrent.duration.FiniteDuration"}],"returns":"io.github.libtmux.transport.CommandResult","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Runs one tmux command against this server."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":405,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-cmd"},{"id":"io.github.libtmux.scaladsl.Server.snapshot","name":"snapshot","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef snapshot(): io.github.libtmux.snapshot.ServerSnapshot","params":[],"returns":"io.github.libtmux.snapshot.ServerSnapshot","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"Captures the whole hierarchy in at most four listings, retrying once if the server is replaced."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":418,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-snapshot"},{"id":"io.github.libtmux.scaladsl.Server.sessions","name":"sessions","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef sessions(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Session]): Vector[Session]","params":[{"name":"expression","type":"io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Session]"}],"returns":"Vector[Session]","receiver":{"name":"self","type":"Server"}},{"raw":"extension (self: Server)\ndef sessions(): Vector[Session]","params":[],"returns":"Vector[Session]","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"The sessions this expression matches, captured now.","examples":[{"lang":"console","intro":"List the sessions returned by a server read. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala_3\"))\n .using(project(\":libtmux-scala\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/ListSessions.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scaladirect/ListSessions.scala","code":"package io.github.libtmux.examples.api.scaladirect\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.*\nimport scala.util.Using\nimport scala.util.control.NonFatal\n\n/** List the sessions returned by a server read. */\nobject ListSessions {\n def main(args: Array[String]): Unit = {\n try {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n val config = ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n Using.resource(Server.open(config)) { server =>\n println(\n \"sessions=\" + server.sessions().map(_.name).sorted.mkString(\",\")\n )\n }\n } catch {\n case NonFatal(error) =>\n System.err.println(\"Example failed: \" + error.getMessage)\n sys.exit(1)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scaladirect.ListSessions && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"sessions=work-one,work-two\n"},{"lang":"console","intro":"Select sessions with a typed name filter. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala_3\"))\n .using(project(\":libtmux-scala\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/Query.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scaladirect/Query.scala","code":"package io.github.libtmux.examples.api.scaladirect\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.*\nimport io.github.libtmux.scaladsl.query.*\nimport scala.util.Using\nimport scala.util.control.NonFatal\n\n/** Select sessions with a typed name filter. */\nobject Query {\n def main(args: Array[String]): Unit = {\n try {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n val config = ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n Using.resource(Server.open(config)) { server =>\n val matches = server.sessions(Session.name.is(\"work-one\"))\n println(\"matches=\" + matches.map(_.name).sorted.mkString(\",\"))\n }\n } catch {\n case NonFatal(error) =>\n System.err.println(\"Example failed: \" + error.getMessage)\n sys.exit(1)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scaladirect.Query && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"matches=work-one\n"}]},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":422,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-sessions"},{"id":"io.github.libtmux.scaladsl.Server.windows","name":"windows","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef windows(): Vector[Window]","params":[],"returns":"Vector[Window]","receiver":{"name":"self","type":"Server"}},{"raw":"extension (self: Server)\ndef windows(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Window]): Vector[Window]","params":[{"name":"expression","type":"io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Window]"}],"returns":"Vector[Window]","receiver":{"name":"self","type":"Server"}},{"raw":"extension (self: Server)\ndef windows(id: io.github.libtmux.WindowId): Vector[Window]","params":[{"name":"id","type":"io.github.libtmux.WindowId"}],"returns":"Vector[Window]","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Captures every winlink, preserving each session and index placement.","examples":[{"lang":"console","intro":"List all windows, then the windows captured for one session. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala_3\"))\n .using(project(\":libtmux-scala\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/ListWindows.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scaladirect/ListWindows.scala","code":"package io.github.libtmux.examples.api.scaladirect\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.*\nimport scala.util.Using\nimport scala.util.control.NonFatal\n\n/** List all windows, then the windows captured for one session. */\nobject ListWindows {\n def main(args: Array[String]): Unit = {\n try {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n val config = ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n Using.resource(Server.open(config)) { server =>\n println(\"windows=\" + server.windows().map(_.name).sorted.mkString(\",\"))\n val session =\n server.session(\"work-one\").getOrElse(sys.error(\"missing work-one\"))\n println(\n \"session-windows=\" + session.windows.map(_.name).sorted.mkString(\",\")\n )\n }\n } catch {\n case NonFatal(error) =>\n System.err.println(\"Example failed: \" + error.getMessage)\n sys.exit(1)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scaladirect.ListWindows && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"windows=editor,editor,logs\nsession-windows=editor,logs\n"}]},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":430,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-windows"},{"id":"io.github.libtmux.scaladsl.Server.panes","name":"panes","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef panes(): Vector[Pane]","params":[],"returns":"Vector[Pane]","receiver":{"name":"self","type":"Server"}},{"raw":"extension (self: Server)\ndef panes(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Pane]): Vector[Pane]","params":[{"name":"expression","type":"io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Pane]"}],"returns":"Vector[Pane]","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Captures every pane on the server.","examples":[{"lang":"console","intro":"List all panes, then the panes captured for one window. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala_3\"))\n .using(project(\":libtmux-scala\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/ListPanes.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scaladirect/ListPanes.scala","code":"package io.github.libtmux.examples.api.scaladirect\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.*\nimport scala.util.Using\nimport scala.util.control.NonFatal\n\n/** List all panes, then the panes captured for one window. */\nobject ListPanes {\n def main(args: Array[String]): Unit = {\n try {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n val config = ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n Using.resource(Server.open(config)) { server =>\n println(s\"panes=${server.panes().size}\")\n val session =\n server.session(\"work-one\").getOrElse(sys.error(\"missing work-one\"))\n val window = session.windows\n .find(_.name.equals(\"editor\"))\n .getOrElse(sys.error(\"missing editor\"))\n println(s\"window-panes=${window.panes.size}\")\n }\n } catch {\n case NonFatal(error) =>\n System.err.println(\"Example failed: \" + error.getMessage)\n sys.exit(1)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scaladirect.ListPanes && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"panes=4\nwindow-panes=2\n"}]},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":438,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-panes"},{"id":"io.github.libtmux.scaladsl.Server.session","name":"session","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef session(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Session]): Option[Session]","params":[{"name":"expression","type":"io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Session]"}],"returns":"Option[Session]","receiver":{"name":"self","type":"Server"}},{"raw":"extension (self: Server)\ndef session(name: String): Option[Session]","params":[{"name":"name","type":"String"}],"returns":"Option[Session]","receiver":{"name":"self","type":"Server"}},{"raw":"extension (self: Server)\ndef session(id: io.github.libtmux.SessionId): Option[Session]","params":[{"name":"id","type":"io.github.libtmux.SessionId"}],"returns":"Option[Session]","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"The one session this expression matches, captured now, or empty when none does."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":446,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-session"},{"id":"io.github.libtmux.scaladsl.Server.window","name":"window","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef window(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Window]): Option[Window]","params":[{"name":"expression","type":"io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Window]"}],"returns":"Option[Window]","receiver":{"name":"self","type":"Server"}},{"raw":"extension (self: Server)\ndef window(context: io.github.libtmux.snapshot.WindowContext): Option[Window]","params":[{"name":"context","type":"io.github.libtmux.snapshot.WindowContext"}],"returns":"Option[Window]","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"The one window link this expression matches, captured now, or empty when none does."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":450,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-window"},{"id":"io.github.libtmux.scaladsl.Server.pane","name":"pane","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef pane(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Pane]): Option[Pane]","params":[{"name":"expression","type":"io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Pane]"}],"returns":"Option[Pane]","receiver":{"name":"self","type":"Server"}},{"raw":"extension (self: Server)\ndef pane(id: io.github.libtmux.PaneId): Option[Pane]","params":[{"name":"id","type":"io.github.libtmux.PaneId"}],"returns":"Option[Pane]","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"The one pane this expression matches, captured now, or empty when none does."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":454,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-pane"},{"id":"io.github.libtmux.scaladsl.Server.admissionBound","name":"admissionBound","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef admissionBound: Int","params":[],"returns":"Int","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"How many tmux commands this server's transport runs at once, from {@link ServerConfig#maxConcurrentCommands()} for a server {@link #open}ed here."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":458,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-admissionbound"},{"id":"io.github.libtmux.scaladsl.Server.clients","name":"clients","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef clients(): Vector[Client]","params":[],"returns":"Vector[Client]","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"Captures every attached client."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":482,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-clients"},{"id":"io.github.libtmux.scaladsl.Server.attachedSessions","name":"attachedSessions","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef attachedSessions(): Vector[Session]","params":[],"returns":"Vector[Session]","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"Captures every session a client is attached to."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":486,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-attachedsessions"},{"id":"io.github.libtmux.scaladsl.Server.run","name":"run","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef run(argv: Vector[String]): io.github.libtmux.transport.CommandResult","params":[{"name":"argv","type":"Vector[String]"}],"returns":"io.github.libtmux.transport.CommandResult","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"Runs a command that is expected to work, and raises when it did not."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":490,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-run"},{"id":"io.github.libtmux.scaladsl.Server.toBuilder","name":"toBuilder","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef toBuilder: io.github.libtmux.Server.Builder","params":[],"returns":"io.github.libtmux.Server.Builder","receiver":{"name":"self","type":"Server"}}],"imports":{},"modifiers":[],"doc":{"summary":"A builder holding every configuration and ownership choice this server made."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":494,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-tobuilder"},{"id":"io.github.libtmux.scaladsl.Session.info","name":"info","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef info: io.github.libtmux.snapshot.SessionState","params":[],"returns":"io.github.libtmux.snapshot.SessionState","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":[],"doc":{"summary":"The fields this capture stored."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":501,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-info"},{"id":"io.github.libtmux.scaladsl.Session.server","name":"server","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef server: Server","params":[],"returns":"Server","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":[],"doc":{"summary":"The server this session lives on."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":517,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-server"},{"id":"io.github.libtmux.scaladsl.Session.activeWindow","name":"activeWindow","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef activeWindow: Option[Window]","params":[],"returns":"Option[Window]","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":[],"doc":{"summary":"The window tmux had active in this session."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":521,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-activewindow"},{"id":"io.github.libtmux.scaladsl.Session.activePane","name":"activePane","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef activePane: Option[Pane]","params":[],"returns":"Option[Pane]","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":[],"doc":{"summary":"The active pane of the active window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":525,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-activepane"},{"id":"io.github.libtmux.scaladsl.Session.selectWindow","name":"selectWindow","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef selectWindow(window: Window): Unit","params":[{"name":"window","type":"Window"}],"returns":"Unit","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":[],"doc":{"summary":"Makes a window of this session the active one."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":529,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-selectwindow"},{"id":"io.github.libtmux.scaladsl.Session.nextWindow","name":"nextWindow","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef nextWindow(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":[],"doc":{"summary":"Moves to the next window in this session, wrapping at the end."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":533,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-nextwindow"},{"id":"io.github.libtmux.scaladsl.Session.previousWindow","name":"previousWindow","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef previousWindow(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":[],"doc":{"summary":"Moves to the previous window in this session, wrapping at the start."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":537,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-previouswindow"},{"id":"io.github.libtmux.scaladsl.Session.lastWindow","name":"lastWindow","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef lastWindow(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":[],"doc":{"summary":"Returns to the window that was active before this one."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":541,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-lastwindow"},{"id":"io.github.libtmux.scaladsl.Session.detachClients","name":"detachClients","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef detachClients(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":[],"doc":{"summary":"Detaches every client attached to this session, leaving the session running."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":545,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-detachclients"},{"id":"io.github.libtmux.scaladsl.Session.options","name":"options","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef options: io.github.libtmux.Options","params":[],"returns":"io.github.libtmux.Options","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":[],"doc":{"summary":"This session's own options."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":549,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-options"},{"id":"io.github.libtmux.scaladsl.Session.environment","name":"environment","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef environment: io.github.libtmux.Environment","params":[],"returns":"io.github.libtmux.Environment","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":[],"doc":{"summary":"This session's own environment, which a process started in it is given on top of the server's."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":554,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-environment"},{"id":"io.github.libtmux.scaladsl.Session.hooks","name":"hooks","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef hooks: io.github.libtmux.Hooks","params":[],"returns":"io.github.libtmux.Hooks","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":[],"doc":{"summary":"This session's own hooks."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":558,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-hooks"},{"id":"io.github.libtmux.scaladsl.Session.setHistoryLimit","name":"setHistoryLimit","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef setHistoryLimit(lines: Int): Unit","params":[{"name":"lines","type":"Int"}],"returns":"Unit","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":[],"doc":{"summary":"Sets the scrollback retained by panes created in this session."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":562,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-sethistorylimit"},{"id":"io.github.libtmux.scaladsl.Session.newWindow","name":"newWindow","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef newWindow(name: String): Window","params":[{"name":"name","type":"String"}],"returns":"Window","receiver":{"name":"self","type":"Session"}},{"raw":"extension (self: Session)\ndef newWindow(configure: io.github.libtmux.WindowSpec.Builder => Unit): Window","params":[{"name":"configure","type":"io.github.libtmux.WindowSpec.Builder => Unit"}],"returns":"Window","receiver":{"name":"self","type":"Session"}},{"raw":"extension (self: Session)\ndef newWindow(spec: io.github.libtmux.WindowSpec): Window","params":[{"name":"spec","type":"io.github.libtmux.WindowSpec"}],"returns":"Window","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Creates a window in this session and returns that exact window.","examples":[{"lang":"console","intro":"Create a window and read the updated session. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala_3\"))\n .using(project(\":libtmux-scala\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/NewWindow.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scaladirect/NewWindow.scala","code":"package io.github.libtmux.examples.api.scaladirect\n\nimport io.github.libtmux.{ServerConfig, ServerEndpoint, WindowSpec}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.*\nimport scala.util.Using\nimport scala.util.control.NonFatal\n\n/** Create a window and read the updated session. */\nobject NewWindow {\n def main(args: Array[String]): Unit = {\n try {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n val config = ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n Using.resource(Server.open(config)) { server =>\n val session =\n server.session(\"work-one\").getOrElse(sys.error(\"missing work-one\"))\n val window = session.newWindow(\n WindowSpec.builder().named(\"api-window\").running(\"/bin/cat\").build()\n )\n println(s\"created=${window.name}\")\n val refreshed =\n server.session(\"work-one\").getOrElse(sys.error(\"missing work-one\"))\n println(\"windows=\" + refreshed.windows.map(_.name).sorted.mkString(\",\"))\n }\n } catch {\n case NonFatal(error) =>\n System.err.println(\"Example failed: \" + error.getMessage)\n sys.exit(1)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scaladirect.NewWindow && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"created=api-window\nwindows=api-window,editor,logs\n"}]},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":570,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-newwindow"},{"id":"io.github.libtmux.scaladsl.Session.expand","name":"expand","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef expand(format: String): String","params":[{"name":"format","type":"String"}],"returns":"String","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":[],"doc":{"summary":"Expands a tmux format in this session's context, and answers with what it came to."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":582,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-expand"},{"id":"io.github.libtmux.scaladsl.Session.rename","name":"rename","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef rename(name: String): Session","params":[{"name":"name","type":"String"}],"returns":"Session","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":[],"doc":{"summary":"Renames this session and returns its replacement capture."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":586,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-rename"},{"id":"io.github.libtmux.scaladsl.Session.kill","name":"kill","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef kill(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":[],"doc":{"summary":"Ends this session."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":590,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-kill"},{"id":"io.github.libtmux.scaladsl.Session.refresh","name":"refresh","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef refresh(): Session","params":[],"returns":"Session","receiver":{"name":"self","type":"Session"}}],"imports":{},"modifiers":[],"doc":{"summary":"Takes a new capture and returns this session as it is now."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":594,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-refresh"},{"id":"io.github.libtmux.scaladsl.Window.info","name":"info","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef info: io.github.libtmux.snapshot.WindowState","params":[],"returns":"io.github.libtmux.snapshot.WindowState","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"The fields this capture stored."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":601,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-info"},{"id":"io.github.libtmux.scaladsl.Window.context","name":"context","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef context: io.github.libtmux.snapshot.WindowContext","params":[],"returns":"io.github.libtmux.snapshot.WindowContext","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"The winlink this handle addresses."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":613,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-context"},{"id":"io.github.libtmux.scaladsl.Window.size","name":"size","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef size: io.github.libtmux.Dimensions","params":[],"returns":"io.github.libtmux.Dimensions","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"How large the window was when captured, in terminal cells."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":629,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-size"},{"id":"io.github.libtmux.scaladsl.Window.layout","name":"layout","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef layout: io.github.libtmux.WindowLayout","params":[],"returns":"io.github.libtmux.WindowLayout","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"tmux's own layout for this window, in whichever form this server writes it."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":633,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-layout"},{"id":"io.github.libtmux.scaladsl.Window.activePane","name":"activePane","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef activePane: Option[Pane]","params":[],"returns":"Option[Pane]","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"The pane tmux had active here."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":637,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-activepane"},{"id":"io.github.libtmux.scaladsl.Window.select","name":"select","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef select(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"Makes this the active window of its session."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":641,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-select"},{"id":"io.github.libtmux.scaladsl.Window.server","name":"server","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef server: Server","params":[],"returns":"Server","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"The server this window lives on."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":645,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-server"},{"id":"io.github.libtmux.scaladsl.Window.hooks","name":"hooks","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef hooks: io.github.libtmux.Hooks","params":[],"returns":"io.github.libtmux.Hooks","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"This window's own hooks, which every link to it shares."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":653,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-hooks"},{"id":"io.github.libtmux.scaladsl.Window.options","name":"options","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef options: io.github.libtmux.Options","params":[],"returns":"io.github.libtmux.Options","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"This window's own options, which every link to it shares."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":657,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-options"},{"id":"io.github.libtmux.scaladsl.Window.split","name":"split","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef split(): Pane","params":[],"returns":"Pane","receiver":{"name":"self","type":"Window"}},{"raw":"extension (self: Window)\ndef split(configure: io.github.libtmux.SplitSpec.Builder => Unit): Pane","params":[{"name":"configure","type":"io.github.libtmux.SplitSpec.Builder => Unit"}],"returns":"Pane","receiver":{"name":"self","type":"Window"}},{"raw":"extension (self: Window)\ndef split(spec: io.github.libtmux.SplitSpec): Pane","params":[{"name":"spec","type":"io.github.libtmux.SplitSpec"}],"returns":"Pane","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Splits this window's active pane in half, putting the new one below it."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":665,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-split"},{"id":"io.github.libtmux.scaladsl.Window.expand","name":"expand","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef expand(format: String): String","params":[{"name":"format","type":"String"}],"returns":"String","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"Expands a tmux format in this window's context, and answers with what it came to."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":677,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-expand"},{"id":"io.github.libtmux.scaladsl.Window.rename","name":"rename","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef rename(name: String): Window","params":[{"name":"name","type":"String"}],"returns":"Window","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"Renames this window and returns its replacement capture."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":681,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-rename"},{"id":"io.github.libtmux.scaladsl.Window.linkTo","name":"linkTo","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef linkTo(session: Session): Unit","params":[{"name":"session","type":"Session"}],"returns":"Unit","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"Links this window into another session, so one window sits in both."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":685,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-linkto"},{"id":"io.github.libtmux.scaladsl.Window.unlink","name":"unlink","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef unlink(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"Removes this link, leaving the window wherever else it is linked."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":689,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-unlink"},{"id":"io.github.libtmux.scaladsl.Window.moveTo","name":"moveTo","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef moveTo(session: Session): Unit","params":[{"name":"session","type":"Session"}],"returns":"Unit","receiver":{"name":"self","type":"Window"}},{"raw":"extension (self: Window)\ndef moveTo(session: Session, index: Int): Unit","params":[{"name":"session","type":"Session"},{"name":"index","type":"Int"}],"returns":"Unit","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Moves this window into another session."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":693,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-moveto"},{"id":"io.github.libtmux.scaladsl.Window.resizeTo","name":"resizeTo","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef resizeTo(size: io.github.libtmux.Dimensions): Unit","params":[{"name":"size","type":"io.github.libtmux.Dimensions"}],"returns":"Unit","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"Resizes this window in terminal cells."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":701,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-resizeto"},{"id":"io.github.libtmux.scaladsl.Window.synchronizePanes","name":"synchronizePanes","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef synchronizePanes(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"Copies input to one pane into every pane in this window, until {@link #stopSynchronizingPanes}."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":705,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-synchronizepanes"},{"id":"io.github.libtmux.scaladsl.Window.stopSynchronizingPanes","name":"stopSynchronizingPanes","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef stopSynchronizingPanes(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"Stops copying input between this window's panes."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":709,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-stopsynchronizingpanes"},{"id":"io.github.libtmux.scaladsl.Window.rotate","name":"rotate","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef rotate(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"Rotates the panes within this window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":713,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-rotate"},{"id":"io.github.libtmux.scaladsl.Window.selectLayout","name":"selectLayout","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef selectLayout(layout: io.github.libtmux.Layout): Unit","params":[{"name":"layout","type":"io.github.libtmux.Layout"}],"returns":"Unit","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"Rearranges this window's panes into one of tmux's built-in layouts."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":717,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-selectlayout"},{"id":"io.github.libtmux.scaladsl.Window.nextLayout","name":"nextLayout","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef nextLayout(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"Moves to the next built-in layout, as tmux's own binding does."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":721,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-nextlayout"},{"id":"io.github.libtmux.scaladsl.Window.previousLayout","name":"previousLayout","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef previousLayout(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"Moves to the previous built-in layout, as tmux's own binding does."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":725,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-previouslayout"},{"id":"io.github.libtmux.scaladsl.Window.applyLayout","name":"applyLayout","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef applyLayout(layout: io.github.libtmux.WindowLayout): Unit","params":[{"name":"layout","type":"io.github.libtmux.WindowLayout"}],"returns":"Unit","receiver":{"name":"self","type":"Window"}},{"raw":"extension (self: Window)\ndef applyLayout(layout: String): Unit","params":[{"name":"layout","type":"String"}],"returns":"Unit","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":["overload"],"doc":{"summary":"Restores an exact arrangement previously read from {@link #layout()}."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":729,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-applylayout"},{"id":"io.github.libtmux.scaladsl.Window.respawn","name":"respawn","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef respawn(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"Kills what is running in this window and starts it again."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":737,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-respawn"},{"id":"io.github.libtmux.scaladsl.Window.displayPopup","name":"displayPopup","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef displayPopup(shellCommand: String): Unit","params":[{"name":"shellCommand","type":"String"}],"returns":"Unit","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"Shows a popup over this window, running a command in it."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":741,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-displaypopup"},{"id":"io.github.libtmux.scaladsl.Window.kill","name":"kill","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef kill(): Unit","params":[],"returns":"Unit","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"Closes this window."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":745,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-kill"},{"id":"io.github.libtmux.scaladsl.Window.refresh","name":"refresh","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef refresh(): Window","params":[],"returns":"Window","receiver":{"name":"self","type":"Window"}}],"imports":{},"modifiers":[],"doc":{"summary":"Takes a new capture and returns this winlink as it is now."},"source":{"file":"libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala","line":749,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-refresh"},{"id":"io.github.libtmux.scaladsl.Client.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.Client","signatures":[{"raw":"extension (self: Client)\ndef asJava: JavaClient","params":[],"returns":"JavaClient","receiver":{"name":"self","type":"Client"}}],"imports":{"Expr":"io.github.libtmux.scaladsl.query.Expr","JavaClient":"io.github.libtmux.Client"},"modifiers":[],"doc":{"summary":"The underlying Java client. Opaque wrapping is free, so this never copies scope or state."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Client.scala","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-client-asjava"},{"id":"io.github.libtmux.scaladsl.Vector.matching","name":"matching","kind":"function","signatures":[{"raw":"extension (clients: Vector[Client])\ndef matching(expr: Expr[JavaClient]): Vector[Client]","params":[{"name":"expr","type":"Expr[JavaClient]"}],"returns":"Vector[Client]","receiver":{"name":"clients","type":"Vector[Client]"}},{"raw":"extension (panes: Vector[Pane])\ndef matching(expr: Expr[JavaPane]): Vector[Pane]","params":[{"name":"expr","type":"Expr[JavaPane]"}],"returns":"Vector[Pane]","receiver":{"name":"panes","type":"Vector[Pane]"}},{"raw":"extension (sessions: Vector[Session])\ndef matching(expr: Expr[JavaSession]): Vector[Session]","params":[{"name":"expr","type":"Expr[JavaSession]"}],"returns":"Vector[Session]","receiver":{"name":"sessions","type":"Vector[Session]"}},{"raw":"extension (windows: Vector[Window])\ndef matching(expr: Expr[JavaWindow]): Vector[Window]","params":[{"name":"expr","type":"Expr[JavaWindow]"}],"returns":"Vector[Window]","receiver":{"name":"windows","type":"Vector[Window]"}}],"imports":{"Expr":"io.github.libtmux.scaladsl.query.Expr","JavaClient":"io.github.libtmux.Client"},"modifiers":["overload"],"doc":{"summary":"The captured clients `expr` matches: a local filter over what is already held."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Client.scala","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-vector-matching"},{"id":"io.github.libtmux.scaladsl.Pane.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef asJava: JavaPane","params":[],"returns":"JavaPane","receiver":{"name":"self","type":"Pane"}}],"imports":{"Expr":"io.github.libtmux.scaladsl.query.Expr","FiniteDuration":"scala.concurrent.duration.FiniteDuration","_":"scala.jdk.DurationConverters._","JavaPane":"io.github.libtmux.Pane","PaneRun":"io.github.libtmux.PaneRun","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason"},"modifiers":[],"doc":{"summary":"The underlying Java pane. Opaque wrapping is free, so this never copies scope or state."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Pane.scala","line":38,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-asjava"},{"id":"io.github.libtmux.scaladsl.Pane.awaitText","name":"awaitText","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef awaitText(text: String, timeout: FiniteDuration): TextOutcome","params":[{"name":"text","type":"String"},{"name":"timeout","type":"FiniteDuration"}],"returns":"TextOutcome","receiver":{"name":"self","type":"Pane"}},{"raw":"extension (self: Pane)\ndef awaitText(\n text: String,\n timeout: FiniteDuration,\n every: FiniteDuration\n ): TextOutcome","params":[{"name":"text","type":"String"},{"name":"timeout","type":"FiniteDuration"},{"name":"every","type":"FiniteDuration"}],"returns":"TextOutcome","receiver":{"name":"self","type":"Pane"}}],"imports":{"Expr":"io.github.libtmux.scaladsl.query.Expr","FiniteDuration":"scala.concurrent.duration.FiniteDuration","_":"scala.jdk.DurationConverters._","JavaPane":"io.github.libtmux.Pane","PaneRun":"io.github.libtmux.PaneRun","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason"},"modifiers":["overload"],"doc":{"summary":"Waits until `text` appears, or `timeout` passes first.","examples":[{"lang":"console","intro":"Send input and wait for output before capturing the pane. Use JDK 25, Git, and tmux 3.3a through 3.7c on Linux, with /bin/cat and /bin/sh available. In an empty directory, fetch the documented library revision:","code":"$ git clone https://github.com/libtmux/libtmux-java.git libtmux-source && \\\n git -C libtmux-source checkout a0ecbc16da00140e2520462d478a2af470878272\n"},{"lang":"kotlin","intro":"Save this consumer setup as settings.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/settings.gradle.kts","code":"rootProject.name = \"api-example\"\n\nincludeBuild(\"libtmux-source\") {\n dependencySubstitution {\n substitute(module(\"io.github.libtmux:libtmux-scala_3\"))\n .using(project(\":libtmux-scala\"))\n }\n}\n"},{"lang":"kotlin","intro":"Save this consumer setup as build.gradle.kts:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/scala-direct/build.gradle.kts","code":"plugins {\n scala\n application\n}\n\nrepositories { mavenCentral() }\n\ndependencies {\n implementation(\"io.github.libtmux:libtmux-scala_3:0.0.1-alpha.17-SNAPSHOT\")\n implementation(\"org.scala-lang:scala3-library_3:3.9.0\")\n}\n\njava { toolchain { languageVersion.set(JavaLanguageVersion.of(25)) } }\n\napplication { mainClass.set(providers.gradleProperty(\"exampleMain\")) }\n"},{"lang":"properties","intro":"Save this consumer setup as gradle.properties:","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/gradle.properties","code":"org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8\nkotlin.daemon.jvmargs=-Xmx2g\norg.gradle.workers.max=2\n"},{"lang":"sh","intro":"Save this launcher as run.sh. It creates and stops a private tmux server, including after program failure. A shutdown failure retains its socket directory and exits unsuccessfully.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/api/run.sh","code":"#!/bin/sh\nset -eu\n\nif [ \"$#\" -eq 0 ]; then\n printf 'Usage: sh run.sh program [arguments...]\\n' >&2\n exit 2\nfi\nbinary=$(command -v \"${TMUX_BIN:-tmux}\")\nmkdir -p /tmp/libtmux-java-dev\ndirectory=$(mktemp -d /tmp/libtmux-java-dev/api.XXXXXX)\nsocket=\"$directory/tmux.sock\"\nconfig=\"$directory/tmux.conf\"\n\nalive() {\n \"$binary\" -S \"$socket\" display-message -p '#{pid}' >/dev/null 2>&1\n}\n\ncleanup() {\n status=$?\n trap - 0 HUP INT TERM\n if alive; then\n if ! \"$binary\" -S \"$socket\" kill-server; then\n printf 'Cannot stop tmux; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n attempts=0\n while alive && [ \"$attempts\" -lt 100 ]; do\n sleep 0.05\n attempts=$((attempts + 1))\n done\n if alive; then\n printf 'tmux is still responding; kept %s\\n' \"$directory\" >&2\n exit 1\n fi\n fi\n rm -rf \"$directory\" || exit 1\n exit \"$status\"\n}\ntrap cleanup 0\ntrap 'exit 1' HUP INT TERM\n\nunset TMUX TMUX_PANE\nprintf 'set-option -g default-shell /bin/sh\\n' > \"$config\"\n\"$binary\" -S \"$socket\" -f \"$config\" new-session -d -s work-one -n editor /bin/cat\n\"$binary\" -S \"$socket\" split-window -h -t '=work-one:editor' /bin/cat\n\"$binary\" -S \"$socket\" new-window -d -t '=work-one' -n logs /bin/cat\n\"$binary\" -S \"$socket\" new-session -d -s work-two -n editor /bin/cat\n\"$@\" \"$binary\" \"$socket\" \"$config\"\n\"$binary\" -S \"$socket\" has-session -t '=work-one'\n\"$binary\" -S \"$socket\" has-session -t '=work-two'\n"},{"lang":"scala","intro":"Save this complete program as src/main/scala/Capture.scala. It opens an ordinary client for the launcher's server; closing the client releases its transport.","sourceUrl":"https://github.com/libtmux/libtmux-java/blob/a0ecbc16da00140e2520462d478a2af470878272/examples/src/main/scala/io/github/libtmux/examples/api/scaladirect/Capture.scala","code":"package io.github.libtmux.examples.api.scaladirect\n\nimport io.github.libtmux.{\n ServerConfig,\n ServerEndpoint,\n SessionSpec,\n TextOutcome\n}\nimport java.nio.file.Path\nimport io.github.libtmux.scaladsl.*\nimport scala.concurrent.duration.*\nimport scala.util.Using\nimport scala.util.control.NonFatal\n\n/** Send input and wait for output before capturing the pane. */\nobject Capture {\n def main(args: Array[String]): Unit = {\n try {\n require(args.length == 3, \"expected: tmux-binary socket-path config-file\")\n val config = ServerConfig\n .builder()\n .binary(args(0))\n .endpoint(ServerEndpoint.socketPath(Path.of(args(1))))\n .configFile(Path.of(args(2)))\n .build()\n Using.resource(Server.open(config)) { server =>\n val session = server.newSession(\n SessionSpec.builder().named(\"api-capture\").running(\"/bin/sh\").build()\n )\n val pane = session.windows.head.panes.head\n pane.sendKeys(Vector(\"printf 'api-%s\\\\n' keys\", \"Enter\"))\n require(\n !pane.awaitText(\"api-keys\", 5.seconds).equals(TextOutcome.TIMED_OUT),\n \"timed out waiting for keys output\"\n )\n pane.sendLine(\"printf 'api-%s\\\\n' line\")\n require(\n !pane.awaitText(\"api-line\", 5.seconds).equals(TextOutcome.TIMED_OUT),\n \"timed out waiting for line output\"\n )\n val lines = pane.capture()\n Vector(\"api-keys\", \"api-line\").foreach { expected =>\n require(\n lines.exists(_.trim.equals(expected)),\n \"capture is missing \" + expected\n )\n println(expected)\n }\n }\n } catch {\n case NonFatal(error) =>\n System.err.println(\"Example failed: \" + error.getMessage)\n sys.exit(1)\n }\n }\n}\n"},{"lang":"console","intro":"Build the minimal consumer and run the saved program with the private fixture. An operation or cleanup error makes the command exit unsuccessfully:","code":"$ ./libtmux-source/gradlew --project-dir . --console=plain --quiet \\\n installDist -PexampleMain=io.github.libtmux.examples.api.scaladirect.Capture && \\\n sh run.sh build/install/api-example/bin/api-example\n"},{"lang":"text","intro":"Expected output:","code":"api-keys\napi-line\n"}]},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Pane.scala","line":45,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-awaittext"},{"id":"io.github.libtmux.scaladsl.Pane.run","name":"run","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef run(command: String, timeout: FiniteDuration): PaneRun","params":[{"name":"command","type":"String"},{"name":"timeout","type":"FiniteDuration"}],"returns":"PaneRun","receiver":{"name":"self","type":"Pane"}}],"imports":{"Expr":"io.github.libtmux.scaladsl.query.Expr","FiniteDuration":"scala.concurrent.duration.FiniteDuration","_":"scala.jdk.DurationConverters._","JavaPane":"io.github.libtmux.Pane","PaneRun":"io.github.libtmux.PaneRun","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason"},"modifiers":[],"doc":{"summary":"Runs a shell command in this pane to its end, and answers with its exit status and output."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Pane.scala","line":61,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-run"},{"id":"io.github.libtmux.scaladsl.Pane.await","name":"await","kind":"method","parent":"io.github.libtmux.scaladsl.Pane","signatures":[{"raw":"extension (self: Pane)\ndef await(settled: Pane => Boolean, timeout: FiniteDuration): WakeReason","params":[{"name":"settled","type":"Pane => Boolean"},{"name":"timeout","type":"FiniteDuration"}],"returns":"WakeReason","receiver":{"name":"self","type":"Pane"}},{"raw":"extension (self: Pane)\ndef await(\n settled: Pane => Boolean,\n timeout: FiniteDuration,\n every: FiniteDuration\n ): WakeReason","params":[{"name":"settled","type":"Pane => Boolean"},{"name":"timeout","type":"FiniteDuration"},{"name":"every","type":"FiniteDuration"}],"returns":"WakeReason","receiver":{"name":"self","type":"Pane"}}],"imports":{"Expr":"io.github.libtmux.scaladsl.query.Expr","FiniteDuration":"scala.concurrent.duration.FiniteDuration","_":"scala.jdk.DurationConverters._","JavaPane":"io.github.libtmux.Pane","PaneRun":"io.github.libtmux.PaneRun","TextOutcome":"io.github.libtmux.TextOutcome","WakeReason":"io.github.libtmux.WakeReason"},"modifiers":["overload"],"doc":{"summary":"Waits until `settled` holds for this pane as it is now. `settled` receives a fresh capture each look."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Pane.scala","line":67,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-pane-await"},{"id":"io.github.libtmux.scaladsl.Server.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef asJava: JavaServer","params":[],"returns":"JavaServer","receiver":{"name":"self","type":"Server"}}],"imports":{"ControlClient":"io.github.libtmux.control.ControlClient","FiniteDuration":"scala.concurrent.duration.FiniteDuration","_":"scala.jdk.DurationConverters._","JavaServer":"io.github.libtmux.Server","ServerConfig":"io.github.libtmux.ServerConfig"},"modifiers":[],"doc":{"summary":"The underlying Java client. Opaque wrapping is free, so this never copies scope or state."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Server.scala","line":41,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-asjava"},{"id":"io.github.libtmux.scaladsl.Server.within","name":"within","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef within(timeout: FiniteDuration): Server","params":[{"name":"timeout","type":"FiniteDuration"}],"returns":"Server","receiver":{"name":"self","type":"Server"}}],"imports":{"ControlClient":"io.github.libtmux.control.ControlClient","FiniteDuration":"scala.concurrent.duration.FiniteDuration","_":"scala.jdk.DurationConverters._","JavaServer":"io.github.libtmux.Server","ServerConfig":"io.github.libtmux.ServerConfig"},"modifiers":[],"doc":{"summary":"This server with every command given `timeout` rather than the default, sharing this one's transport and scope. `LIFECYCLE`, handwritten: not a per-operation forward, a derived scope."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Server.scala","line":47,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-within"},{"id":"io.github.libtmux.scaladsl.Server.control","name":"control","kind":"method","parent":"io.github.libtmux.scaladsl.Server","signatures":[{"raw":"extension (self: Server)\ndef control(session: Session): ControlClient","params":[{"name":"session","type":"Session"}],"returns":"ControlClient","receiver":{"name":"self","type":"Server"}},{"raw":"extension (self: Server)\ndef control(session: Session, timeout: FiniteDuration): ControlClient","params":[{"name":"session","type":"Session"},{"name":"timeout","type":"FiniteDuration"}],"returns":"ControlClient","receiver":{"name":"self","type":"Server"}}],"imports":{"ControlClient":"io.github.libtmux.control.ControlClient","FiniteDuration":"scala.concurrent.duration.FiniteDuration","_":"scala.jdk.DurationConverters._","JavaServer":"io.github.libtmux.Server","ServerConfig":"io.github.libtmux.ServerConfig"},"modifiers":["overload"],"doc":{"summary":"A control-mode client on `session`, refused by a tmux other than the one that captured it. `LIFECYCLE`, handwritten: resource scoping, not a per-operation forward."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Server.scala","line":54,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-server-control"},{"id":"io.github.libtmux.scaladsl.Session.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.Session","signatures":[{"raw":"extension (self: Session)\ndef asJava: JavaSession","params":[],"returns":"JavaSession","receiver":{"name":"self","type":"Session"}}],"imports":{"Expr":"io.github.libtmux.scaladsl.query.Expr","JavaSession":"io.github.libtmux.Session"},"modifiers":[],"doc":{"summary":"The underlying Java session. Opaque wrapping is free, so this never copies scope or state."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Session.scala","line":28,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-session-asjava"},{"id":"io.github.libtmux.scaladsl.Window.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.Window","signatures":[{"raw":"extension (self: Window)\ndef asJava: JavaWindow","params":[],"returns":"JavaWindow","receiver":{"name":"self","type":"Window"}}],"imports":{"Expr":"io.github.libtmux.scaladsl.query.Expr","JavaWindow":"io.github.libtmux.Window"},"modifiers":[],"doc":{"summary":"The underlying Java window link. Opaque wrapping is free, so this never copies scope or state."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/Window.scala","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-window-asjava"},{"id":"io.github.libtmux.scaladsl.live.LiveView.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.live.LiveView","signatures":[{"raw":"extension (self: LiveView)\ndef asJava: JavaServerMirror","params":[],"returns":"JavaServerMirror","receiver":{"name":"self","type":"LiveView"}}],"imports":{"Session":"io.github.libtmux.scaladsl.Session","Duration":"java.time.Duration","_":"scala.jdk.OptionConverters._","JavaServerMirror":"io.github.libtmux.snapshot.ServerMirror"},"modifiers":[],"doc":{"summary":"The underlying Java mirror. Opaque wrapping is free, so this never copies scope or state."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/live/LiveView.scala","line":58,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-live-liveview-asjava"},{"id":"io.github.libtmux.scaladsl.live.LiveView.current","name":"current","kind":"method","parent":"io.github.libtmux.scaladsl.live.LiveView","signatures":[{"raw":"extension (self: LiveView)\ndef current: JavaServerMirror.View","params":[],"returns":"JavaServerMirror.View","receiver":{"name":"self","type":"LiveView"}}],"imports":{"Session":"io.github.libtmux.scaladsl.Session","Duration":"java.time.Duration","_":"scala.jdk.OptionConverters._","JavaServerMirror":"io.github.libtmux.snapshot.ServerMirror"},"modifiers":[],"doc":{"summary":"The latest published view. Never blocks."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/live/LiveView.scala","line":61,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-live-liveview-current"},{"id":"io.github.libtmux.scaladsl.live.LiveView.awaitNewer","name":"awaitNewer","kind":"method","parent":"io.github.libtmux.scaladsl.live.LiveView","signatures":[{"raw":"extension (self: LiveView)\ndef awaitNewer(\n epoch: Long,\n timeout: Duration\n ): Option[JavaServerMirror.View]","params":[{"name":"epoch","type":"Long"},{"name":"timeout","type":"Duration"}],"returns":"Option[JavaServerMirror.View]","receiver":{"name":"self","type":"LiveView"}}],"imports":{"Session":"io.github.libtmux.scaladsl.Session","Duration":"java.time.Duration","_":"scala.jdk.OptionConverters._","JavaServerMirror":"io.github.libtmux.snapshot.ServerMirror"},"modifiers":[],"doc":{"summary":"Waits for a view newer than `epoch`, or empty when `timeout` passed first or this mirror ended; [[isEnded]] and [[cause]] tell those apart."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/live/LiveView.scala","line":66,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-live-liveview-awaitnewer"},{"id":"io.github.libtmux.scaladsl.live.LiveView.isEnded","name":"isEnded","kind":"method","parent":"io.github.libtmux.scaladsl.live.LiveView","signatures":[{"raw":"extension (self: LiveView)\ndef isEnded: Boolean","params":[],"returns":"Boolean","receiver":{"name":"self","type":"LiveView"}}],"imports":{"Session":"io.github.libtmux.scaladsl.Session","Duration":"java.time.Duration","_":"scala.jdk.OptionConverters._","JavaServerMirror":"io.github.libtmux.snapshot.ServerMirror"},"modifiers":[],"doc":{"summary":"Whether this mirror has stopped publishing, because it was closed or its anchor has gone."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/live/LiveView.scala","line":75,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-live-liveview-isended"},{"id":"io.github.libtmux.scaladsl.live.LiveView.cause","name":"cause","kind":"method","parent":"io.github.libtmux.scaladsl.live.LiveView","signatures":[{"raw":"extension (self: LiveView)\ndef cause: Option[Throwable]","params":[],"returns":"Option[Throwable]","receiver":{"name":"self","type":"LiveView"}}],"imports":{"Session":"io.github.libtmux.scaladsl.Session","Duration":"java.time.Duration","_":"scala.jdk.OptionConverters._","JavaServerMirror":"io.github.libtmux.snapshot.ServerMirror"},"modifiers":[],"doc":{"summary":"Why this mirror ended, when something other than [[java.lang.AutoCloseable#close close]] ended it."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/live/LiveView.scala","line":80,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-live-liveview-cause"},{"id":"io.github.libtmux.scaladsl.live.LiveView.snapshots","name":"snapshots","kind":"method","parent":"io.github.libtmux.scaladsl.live.LiveView","signatures":[{"raw":"extension (self: LiveView)\ndef snapshots: Iterator[JavaServerMirror.View]","params":[],"returns":"Iterator[JavaServerMirror.View]","receiver":{"name":"self","type":"LiveView"}}],"imports":{"Session":"io.github.libtmux.scaladsl.Session","Duration":"java.time.Duration","_":"scala.jdk.OptionConverters._","JavaServerMirror":"io.github.libtmux.snapshot.ServerMirror"},"modifiers":[],"doc":{"summary":"The current view, then every newer one, one per notification, blocking between them: as a `StateFlow` or an fs2 `Signal` does. A change made before this call is in the first view rather than lost between reading [[current]] and starting to iterate. Ends when this view is closed, and throws [[cause]] when its anchor or server has gone."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/live/LiveView.scala","line":88,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-live-liveview-snapshots"},{"id":"io.github.libtmux.scaladsl.live.LiveView.snapshotsAfter","name":"snapshotsAfter","kind":"method","parent":"io.github.libtmux.scaladsl.live.LiveView","signatures":[{"raw":"extension (self: LiveView)\ndef snapshotsAfter(epoch: Long): Iterator[JavaServerMirror.View]","params":[{"name":"epoch","type":"Long"}],"returns":"Iterator[JavaServerMirror.View]","receiver":{"name":"self","type":"LiveView"}}],"imports":{"Session":"io.github.libtmux.scaladsl.Session","Duration":"java.time.Duration","_":"scala.jdk.OptionConverters._","JavaServerMirror":"io.github.libtmux.snapshot.ServerMirror"},"modifiers":[],"doc":{"summary":"Every view newer than `epoch`, one per notification, blocking between them. A view already published after `epoch` comes first, so nothing is missed between reading a view and starting to iterate. Ends and throws as [[snapshots]] does."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/live/LiveView.scala","line":98,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-live-liveview-snapshotsafter"},{"id":"io.github.libtmux.scaladsl.query.IterableOnce.exactlyOne","name":"exactlyOne","kind":"function","signatures":[{"raw":"extension [A](values: IterableOnce[A])\ndef exactlyOne: Either[CardinalityError, A]","params":[],"returns":"Either[CardinalityError, A]","receiver":{"name":"values","type":"IterableOnce[A]"},"typeParams":["A"],"typeParameters":[{"name":"A"}]}],"imports":{"CardinalityException":"io.github.libtmux.exception.CardinalityException"},"modifiers":[],"doc":{"summary":"The single match, or a failure naming which way the count was wrong. Single-pass: mirrors `Selections.exactlyOne`'s early exit, stopping at the second match."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/CardinalityError.scala","line":31,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-iterableonce-exactlyone"},{"id":"io.github.libtmux.scaladsl.query.IterableOnce.atMostOne","name":"atMostOne","kind":"function","signatures":[{"raw":"extension [A](values: IterableOnce[A])\ndef atMostOne: Either[CardinalityError, Option[A]]","params":[],"returns":"Either[CardinalityError, Option[A]]","receiver":{"name":"values","type":"IterableOnce[A]"},"typeParams":["A"],"typeParameters":[{"name":"A"}]}],"imports":{"CardinalityException":"io.github.libtmux.exception.CardinalityException"},"modifiers":[],"doc":{"summary":"The single match if there is one, `None` if there is none — still a failure for several."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/CardinalityError.scala","line":44,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-iterableonce-atmostone"},{"id":"io.github.libtmux.scaladsl.query.Expr.asJava","name":"asJava","kind":"method","parent":"io.github.libtmux.scaladsl.query.Expr","signatures":[{"raw":"extension [T](e: Expr[T])\ndef asJava: JavaFilterExpr[T]","params":[],"returns":"JavaFilterExpr[T]","receiver":{"name":"e","type":"Expr[T]"},"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"imports":{"JavaFilterExpr":"io.github.libtmux.query.FilterExpr"},"modifiers":[],"doc":{"summary":"The underlying Java expression. Opaque wrapping is free, so this never copies anything."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Expr.scala","line":30,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-expr-asjava"},{"id":"io.github.libtmux.scaladsl.query.Expr.&&","name":"&&","kind":"method","parent":"io.github.libtmux.scaladsl.query.Expr","signatures":[{"raw":"extension [T](e: Expr[T])\ndef &&(other: Expr[T]): Expr[T]","params":[{"name":"other","type":"Expr[T]"}],"returns":"Expr[T]","receiver":{"name":"e","type":"Expr[T]"},"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"imports":{"JavaFilterExpr":"io.github.libtmux.query.FilterExpr"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Expr.scala","line":32,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-expr-14f0"},{"id":"io.github.libtmux.scaladsl.query.Expr.||","name":"||","kind":"method","parent":"io.github.libtmux.scaladsl.query.Expr","signatures":[{"raw":"extension [T](e: Expr[T])\ndef ||(other: Expr[T]): Expr[T]","params":[{"name":"other","type":"Expr[T]"}],"returns":"Expr[T]","receiver":{"name":"e","type":"Expr[T]"},"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"imports":{"JavaFilterExpr":"io.github.libtmux.query.FilterExpr"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Expr.scala","line":34,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-expr-1nzt"},{"id":"io.github.libtmux.scaladsl.query.Expr.unary_!","name":"unary_!","kind":"method","parent":"io.github.libtmux.scaladsl.query.Expr","signatures":[{"raw":"extension [T](e: Expr[T])\ndef unary_! : Expr[T]","params":[],"returns":"Expr[T]","receiver":{"name":"e","type":"Expr[T]"},"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"imports":{"JavaFilterExpr":"io.github.libtmux.query.FilterExpr"},"modifiers":[],"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Expr.scala","line":36,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-expr-unary_"},{"id":"io.github.libtmux.scaladsl.query.Expr.and","name":"and","kind":"method","parent":"io.github.libtmux.scaladsl.query.Expr","signatures":[{"raw":"extension [T](e: Expr[T])\ndef and(other: Expr[T]): Expr[T]","params":[{"name":"other","type":"Expr[T]"}],"returns":"Expr[T]","receiver":{"name":"e","type":"Expr[T]"},"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"imports":{"JavaFilterExpr":"io.github.libtmux.query.FilterExpr"},"modifiers":[],"doc":{"summary":"`&&`, spelled out."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Expr.scala","line":39,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-expr-and"},{"id":"io.github.libtmux.scaladsl.query.Expr.or","name":"or","kind":"method","parent":"io.github.libtmux.scaladsl.query.Expr","signatures":[{"raw":"extension [T](e: Expr[T])\ndef or(other: Expr[T]): Expr[T]","params":[{"name":"other","type":"Expr[T]"}],"returns":"Expr[T]","receiver":{"name":"e","type":"Expr[T]"},"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"imports":{"JavaFilterExpr":"io.github.libtmux.query.FilterExpr"},"modifiers":[],"doc":{"summary":"`||`, spelled out."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Expr.scala","line":42,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-expr-or"},{"id":"io.github.libtmux.scaladsl.query.Expr.not","name":"not","kind":"method","parent":"io.github.libtmux.scaladsl.query.Expr","signatures":[{"raw":"extension [T](e: Expr[T])\ndef not: Expr[T]","params":[],"returns":"Expr[T]","receiver":{"name":"e","type":"Expr[T]"},"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"imports":{"JavaFilterExpr":"io.github.libtmux.query.FilterExpr"},"modifiers":[],"doc":{"summary":"`unary_!`, spelled out."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Expr.scala","line":45,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-expr-not"},{"id":"io.github.libtmux.scaladsl.query.Expr.describe","name":"describe","kind":"method","parent":"io.github.libtmux.scaladsl.query.Expr","signatures":[{"raw":"extension [T](e: Expr[T])\ndef describe: String","params":[],"returns":"String","receiver":{"name":"e","type":"Expr[T]"},"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"imports":{"JavaFilterExpr":"io.github.libtmux.query.FilterExpr"},"modifiers":[],"doc":{"summary":"Renders this expression as inspectable text."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Expr.scala","line":48,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-expr-describe"},{"id":"io.github.libtmux.scaladsl.query.Expr.matches","name":"matches","kind":"method","parent":"io.github.libtmux.scaladsl.query.Expr","signatures":[{"raw":"extension [T](e: Expr[T])\ndef matches(value: T): Boolean","params":[{"name":"value","type":"T"}],"returns":"Boolean","receiver":{"name":"e","type":"Expr[T]"},"typeParams":["T"],"typeParameters":[{"name":"T"}]}],"imports":{"JavaFilterExpr":"io.github.libtmux.query.FilterExpr"},"modifiers":[],"doc":{"summary":"Evaluates this expression against one value, with no tmux I/O."},"source":{"file":"libtmux-scala/src/main/scala/io/github/libtmux/scaladsl/query/Expr.scala","line":51,"repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272"},"product":"core","slug":"io-github-libtmux-scaladsl-query-expr-matches"}],"sources":[{"product":"core","package":"io.github.libtmux:libtmux-scala_3","repo":"libtmux/libtmux-java","revision":"a0ecbc16da00140e2520462d478a2af470878272","extractedRevision":"a0ecbc16da00140e2520462d478a2af470878272","version":"0.0.1-alpha.17-SNAPSHOT"}],"generatedSources":{"libtmux-scala/build/generated/sources/catalog/scala/fields/GeneratedFields.scala":"package io.github.libtmux.scaladsl.generated\n\n// Generated from field-catalog.tsv by build-logic/codegen (ScalaFieldGenerator). Not checked in.\n\nimport io.github.libtmux.{\n Pane => JavaPane,\n Session => JavaSession,\n Window => JavaWindow,\n Client => JavaClient\n}\n\n/** Typed fields for filtering captured pane objects. */\nobject PaneFields {\n /** The pane id. */\n def id: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane](_root_.io.github.libtmux.Pane_.id())\n\n /** The command tmux reported running in the pane. */\n def command: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane](_root_.io.github.libtmux.Pane_.command())\n\n /** The pane's position in its window. */\n def index: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane](_root_.io.github.libtmux.Pane_.index())\n\n /** Whether this was its window's active pane. */\n def active: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane](_root_.io.github.libtmux.Pane_.active())\n\n /** The pane's title, which a program running in it can set. */\n def title: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane](_root_.io.github.libtmux.Pane_.title())\n\n /** The pane's working directory, as the text tmux reported. */\n def path: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaPane](_root_.io.github.libtmux.Pane_.path())\n\n /** The pane's width, in cells. */\n def width: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane](_root_.io.github.libtmux.Pane_.width())\n\n /** The pane's height, in cells. */\n def height: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane](_root_.io.github.libtmux.Pane_.height())\n\n /** The column of the pane's left edge in its window. */\n def left: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane](_root_.io.github.libtmux.Pane_.left())\n\n /** The row of the pane's top edge in its window. */\n def top: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaPane](_root_.io.github.libtmux.Pane_.top())\n\n /** Whether the pane touches the top of its window. */\n def atTop: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane](_root_.io.github.libtmux.Pane_.atTop())\n\n /** Whether the pane touches the bottom of its window. */\n def atBottom: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane](_root_.io.github.libtmux.Pane_.atBottom())\n\n /** Whether the pane touches the left of its window. */\n def atLeft: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane](_root_.io.github.libtmux.Pane_.atLeft())\n\n /** Whether the pane touches the right of its window. */\n def atRight: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaPane](_root_.io.github.libtmux.Pane_.atRight())\n}\n\n/** Typed fields for filtering captured session objects. */\nobject SessionFields {\n /** The session id, as text, so it can be compared and listed. */\n def id: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaSession] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaSession](_root_.io.github.libtmux.Session_.id())\n\n /** The session name. */\n def name: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaSession] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaSession](_root_.io.github.libtmux.Session_.name())\n\n /** Whether a client was attached when this was captured. */\n def attached: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaSession] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaSession](_root_.io.github.libtmux.Session_.attached())\n\n /** How many windows this session holds. */\n def windowCount: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaSession] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaSession](_root_.io.github.libtmux.Session_.windowCount())\n\n /** This session's windows. */\n def windows: _root_.io.github.libtmux.scaladsl.query.Fields.ToManyRef[JavaSession, JavaWindow] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.ToManyRef[JavaSession, JavaWindow](_root_.io.github.libtmux.Session_.windows())\n}\n\n/** Typed fields for filtering captured window objects. */\nobject WindowFields {\n /** The underlying window id, shared by every link to it. */\n def id: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaWindow] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaWindow](_root_.io.github.libtmux.Window_.id())\n\n /** The window name. */\n def name: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaWindow] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaWindow](_root_.io.github.libtmux.Window_.name())\n\n /** Where this link sits in its session. */\n def index: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow](_root_.io.github.libtmux.Window_.index())\n\n /** Whether this was its session's active window. */\n def active: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaWindow] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaWindow](_root_.io.github.libtmux.Window_.active())\n\n /** Whether the underlying window is linked into more than one session. */\n def linked: _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaWindow] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.FlagField[JavaWindow](_root_.io.github.libtmux.Window_.linked())\n\n /** The window's width, in cells. */\n def width: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow](_root_.io.github.libtmux.Window_.width())\n\n /** The window's height, in cells. */\n def height: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow](_root_.io.github.libtmux.Window_.height())\n\n /** How many panes this link holds. */\n def paneCount: _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.NumberField[JavaWindow](_root_.io.github.libtmux.Window_.paneCount())\n\n /** This link's panes. */\n def panes: _root_.io.github.libtmux.scaladsl.query.Fields.ToManyRef[JavaWindow, JavaPane] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.ToManyRef[JavaWindow, JavaPane](_root_.io.github.libtmux.Window_.panes())\n\n /** The session this link belongs to. */\n def session: _root_.io.github.libtmux.scaladsl.query.Fields.ToOneRef[JavaWindow, JavaSession] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.ToOneRef[JavaWindow, JavaSession](_root_.io.github.libtmux.Window_.session())\n}\n\n/** Typed fields for filtering captured client objects. */\nobject ClientFields {\n /** The client's terminal name, which is how tmux addresses it. */\n def name: _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaClient] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.TextField[JavaClient](_root_.io.github.libtmux.Client_.name())\n\n /** The session this client was attached to, if any. */\n def session: _root_.io.github.libtmux.scaladsl.query.Fields.ToOneRef[JavaClient, JavaSession] =\n new _root_.io.github.libtmux.scaladsl.query.Fields.ToOneRef[JavaClient, JavaSession](_root_.io.github.libtmux.Client_.session())\n}\n","libtmux-scala-cats/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala":"package io.github.libtmux.scaladsl.cats\n\n// Generated from the operation catalog by build-logic/codegen (ScalaOperationGenerator). Not checked in.\n\n extension [F[_]](self: Buffers[F])(using F: _root_.cats.effect.Async[F]) {\n\n /** Captures every buffer the server holds, in tmux's order. */\n def list(): F[Vector[io.github.libtmux.BufferInfo]] =\n self.server.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.list()).asScala.toVector)\n\n /** Puts text in a named buffer, replacing whatever was there. */\n def set(name: String, contents: String): F[Unit] =\n self.server.execution(self.underlying.set(name, contents))\n\n /** What a buffer holds, without any line breaks it ends with. */\n def show(name: String): F[String] =\n self.server.execution(self.underlying.show(name))\n\n /** Removes a buffer by its exact name. */\n def delete(name: String): F[Unit] =\n self.server.execution(self.underlying.delete(name))\n\n /** Writes a buffer's contents to a file. */\n def save(name: String, file: java.nio.file.Path): F[Unit] =\n self.server.execution(self.underlying.save(name, file))\n\n /** Reads a file into a named buffer. */\n def load(name: String, file: java.nio.file.Path): F[Unit] =\n self.server.execution(self.underlying.load(name, file))\n }\n\n extension [F[_]](self: Client[F])(using F: _root_.cats.effect.Async[F]) {\n\n /** The client's terminal name, which is how tmux addresses it. */\n def name: String =\n self.underlying.asJava.name()\n\n /** Detaches this client, leaving whatever it was attached to running. */\n def detach(): F[Unit] =\n self.server.execution(self.underlying.asJava.detach())\n\n /** Detaches every other client, leaving this one attached. */\n def detachOthers(): F[Unit] =\n self.server.execution(self.underlying.asJava.detachOthers())\n\n /** Moves this client to another session. */\n def switchTo(session: Session[F]): F[Unit] =\n self.server.execution(self.underlying.asJava.switchTo(session.underlying.asJava))\n\n /** Asks tmux to redraw this client. */\n def redraw(): F[Unit] =\n self.server.execution(self.underlying.asJava.redraw())\n\n /** The session this client was attached to when captured. */\n def session: Option[Session[F]] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.underlying.asJava.session()).toScala.map(v => self.server.session(io.github.libtmux.scaladsl.Session.wrap(v)))\n\n /** What this client was looking at when captured. */\n def attachment: Option[io.github.libtmux.ClientAttachment] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.underlying.asJava.attachment()).toScala\n\n /** Takes a new capture and returns what this client is looking at now. */\n def fetchAttachment(): F[Option[io.github.libtmux.ClientAttachment]] =\n self.server.execution(_root_.scala.jdk.OptionConverters.RichOptional(self.underlying.asJava.fetchAttachment()).toScala)\n\n /** Takes a new capture and returns this client as it is now. */\n def refresh(): F[Client[F]] =\n self.server.execution(self.server.client(io.github.libtmux.scaladsl.Client.wrap(self.underlying.asJava.refresh())))\n }\n\n extension [F[_]](self: Commands[F])(using F: _root_.cats.effect.Async[F]) {\n\n /** Every command, as tmux prints it. */\n def list(): F[Vector[String]] =\n self.server.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.list()).asScala.toVector)\n }\n\n extension [F[_]](self: Environment[F])(using F: _root_.cats.effect.Async[F]) {\n\n /** The value set for this name, or empty when it is removed or absent. */\n def get(name: String): F[Option[String]] =\n self.server.execution(_root_.scala.jdk.OptionConverters.RichOptional(self.underlying.get(name)).toScala)\n\n /** Whether new processes are told not to inherit this name. */\n def isRemoved(name: String): F[Boolean] =\n self.server.execution(self.underlying.isRemoved(name))\n\n /** Every name set at this scope, in tmux's order. */\n def all(): F[_root_.scala.collection.immutable.VectorMap[String, String]] =\n self.server.execution(_root_.scala.collection.immutable.VectorMap.from(_root_.scala.jdk.CollectionConverters.MapHasAsScala(self.underlying.all()).asScala))\n\n /** What a process started from this scope is actually handed, both scopes taken together. */\n def effective(): F[_root_.scala.collection.immutable.VectorMap[String, String]] =\n self.server.execution(_root_.scala.collection.immutable.VectorMap.from(_root_.scala.jdk.CollectionConverters.MapHasAsScala(self.underlying.effective()).asScala))\n\n /** Every name this scope tells a new process not to inherit. */\n def removed(): F[Set[String]] =\n self.server.execution(_root_.scala.jdk.CollectionConverters.SetHasAsScala(self.underlying.removed()).asScala.toSet)\n\n /** Sets a name to a literal value. */\n def set(name: String, value: String): F[Unit] =\n self.server.execution(self.underlying.set(name, value))\n\n /** Sets a name to what a tmux format expands to now. */\n def setExpanded(name: String, format: String): F[Unit] =\n self.server.execution(self.underlying.setExpanded(name, format))\n\n /** Removes the name from this scope, so it is neither set nor marked. */\n def unset(name: String): F[Unit] =\n self.server.execution(self.underlying.unset(name))\n\n /** Tells processes started after this not to inherit the name. */\n def remove(name: String): F[Unit] =\n self.server.execution(self.underlying.remove(name))\n }\n\n extension [F[_]](self: Hooks[F])(using F: _root_.cats.effect.Async[F]) {\n\n /** Binds a tmux command to an event at this scope, replacing anything already bound to it. */\n def set(event: String, command: String): F[Unit] =\n self.server.execution(self.underlying.set(event, command))\n\n /** As {@link #set(String, String)}, with the command as words rather than a line tmux parses. */\n def set(event: String, command: Vector[String]): F[Unit] =\n self.server.execution(self.underlying.set(event, _root_.scala.jdk.CollectionConverters.SeqHasAsJava(command).asJava))\n\n /** As {@link #append(String, String)}, with the command as words. */\n def append(event: String, command: Vector[String]): F[Unit] =\n self.server.execution(self.underlying.append(event, _root_.scala.jdk.CollectionConverters.SeqHasAsJava(command).asJava))\n\n /** Binds another command to an event, after whatever is already bound to it. */\n def append(event: String, command: String): F[Unit] =\n self.server.execution(self.underlying.append(event, command))\n\n /** Removes everything bound to an event at this scope. */\n def unset(event: String): F[Unit] =\n self.server.execution(self.underlying.unset(event))\n\n /** Runs what is bound to an event now, without waiting for the event. */\n def run(event: String): F[Unit] =\n self.server.execution(self.underlying.run(event))\n\n /** Every hook at this scope, keyed by event, each with its commands in the order tmux runs them. */\n def all(): F[_root_.scala.collection.immutable.VectorMap[String, Vector[String]]] =\n self.server.execution(_root_.scala.collection.immutable.VectorMap.from(_root_.scala.jdk.CollectionConverters.MapHasAsScala(self.underlying.all()).asScala.map { case (k, v) => k -> _root_.scala.jdk.CollectionConverters.ListHasAsScala(v).asScala.toVector }))\n }\n\n extension [F[_]](self: Keys[F])(using F: _root_.cats.effect.Async[F]) {\n\n /** The same bindings, in one named table. */\n def in(table: String): Keys[F] =\n new Keys(self.underlying.in(table), self.server)\n\n /** Binds a key to a tmux command, given as its words. */\n def bind(key: String, command: Vector[String]): F[Unit] =\n self.server.execution(self.underlying.bind(key, _root_.scala.jdk.CollectionConverters.SeqHasAsJava(command).asJava))\n\n /** Removes a key's binding. */\n def unbind(key: String): F[Unit] =\n self.server.execution(self.underlying.unbind(key))\n\n /** The bindings as tmux lists them, one per line. */\n def list(): F[Vector[String]] =\n self.server.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.list()).asScala.toVector)\n }\n\n extension [F[_]](self: MessageLog[F])(using F: _root_.cats.effect.Async[F]) {\n\n /** The log lines. */\n def lines(): F[Vector[String]] =\n self.server.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.lines()).asScala.toVector)\n }\n\n extension [F[_]](self: Options[F])(using F: _root_.cats.effect.Async[F]) {\n\n /** Every option set at this scope, in tmux's order. */\n def all(): F[_root_.scala.collection.immutable.VectorMap[String, String]] =\n self.server.execution(_root_.scala.collection.immutable.VectorMap.from(_root_.scala.jdk.CollectionConverters.MapHasAsScala(self.underlying.all()).asScala))\n\n /** Every option tmux lists at this scope, including inherited built-in values. */\n def effective(): F[_root_.scala.collection.immutable.VectorMap[String, String]] =\n self.server.execution(_root_.scala.collection.immutable.VectorMap.from(_root_.scala.jdk.CollectionConverters.MapHasAsScala(self.underlying.effective()).asScala))\n\n /** Sets one option only if this scope does not already set it. */\n def setIfAbsent(name: String, value: String): F[Boolean] =\n self.server.execution(self.underlying.setIfAbsent(name, value))\n\n /** Adds to the end of a string option, rather than replacing it. */\n def append(name: String, suffix: String): F[Unit] =\n self.server.execution(self.underlying.append(name, suffix))\n\n /** Sets one option to what a tmux format comes to, rather than to the format itself. */\n def setExpanded(name: String, format: String): F[Unit] =\n self.server.execution(self.underlying.setExpanded(name, format))\n\n /** Removes one option at this scope, so it falls back to whatever it inherits. */\n def unset(name: String): F[Unit] =\n self.server.execution(self.underlying.unset(name))\n }\n\n extension [F[_]](self: Pane[F])(using F: _root_.cats.effect.Async[F]) {\n\n /** The fields this capture stored. */\n def info: io.github.libtmux.snapshot.PaneState =\n self.underlying.asJava.info()\n\n /** The pane's stable id. */\n def id: io.github.libtmux.PaneId =\n self.underlying.asJava.id()\n\n /** The pane's position, which shifts as neighbours come and go. */\n def index: Int =\n self.underlying.asJava.index()\n\n /** Whether this was its window's active pane when captured. */\n def active: Boolean =\n self.underlying.asJava.active()\n\n /** The command tmux reported running here. */\n def currentCommand: String =\n self.underlying.asJava.currentCommand()\n\n /** Whether this pane floats, or empty when the running tmux cannot say. */\n def floating: Option[Boolean] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.underlying.asJava.floating()).toScala.map(v => v.booleanValue())\n\n /** How large the pane was when captured, in terminal cells. */\n def size: io.github.libtmux.Dimensions =\n self.underlying.asJava.size()\n\n /** Where the pane's top-left corner sat in its window when captured, in terminal cells. */\n def position: io.github.libtmux.PanePosition =\n self.underlying.asJava.position()\n\n /** The pane title, which a program running inside it can change. */\n def title: String =\n self.underlying.asJava.title()\n\n /** The working directory tmux reported for the pane. */\n def currentPath: java.nio.file.Path =\n self.underlying.asJava.currentPath()\n\n /** The working directory tmux reported for the pane, exactly as tmux reported it. */\n def currentPathText: String =\n self.underlying.asJava.currentPathText()\n\n /** The process id of the program running in the pane, captured at the time of the read this\nhandle came from. */\n def pid: Option[Long] =\n _root_.scala.jdk.OptionConverters.RichOptionalLong(self.underlying.asJava.pid()).toScala\n\n /** Whether this pane's process has exited, read fresh rather than from the capture. */\n def dead(): F[Boolean] =\n self.server.execution(self.underlying.asJava.dead())\n\n /** Grows this pane by a number of cells in one direction. */\n def resize(direction: io.github.libtmux.Direction, cells: Int): F[Unit] =\n self.server.execution(self.underlying.asJava.resize(direction, cells))\n\n /** Which sides of its window the pane touches. */\n def edges: io.github.libtmux.PaneEdges =\n self.underlying.asJava.edges()\n\n /** Puts this pane into copy mode, where its scrollback can be navigated. */\n def copyMode(): F[Unit] =\n self.server.execution(self.underlying.asJava.copyMode())\n\n /** Which mode this pane is in at this moment, or empty when it is in none. */\n def mode(): F[Option[io.github.libtmux.PaneMode]] =\n self.server.execution(_root_.scala.jdk.OptionConverters.RichOptional(self.underlying.asJava.mode()).toScala)\n\n /** Leaves whichever mode this pane is in. */\n def exitMode(): F[Unit] =\n self.server.execution(self.underlying.asJava.exitMode())\n\n /** Makes this the active pane of its window. */\n def select(): F[Unit] =\n self.server.execution(self.underlying.asJava.select())\n\n /** Retitles this pane and returns its replacement capture. */\n def retitle(title: String): F[Pane[F]] =\n self.server.execution(self.server.pane(io.github.libtmux.scaladsl.Pane.wrap(self.underlying.asJava.retitle(title))))\n\n /** Resizes this pane. */\n def resizeTo(size: io.github.libtmux.Dimensions): F[Unit] =\n self.server.execution(self.underlying.asJava.resizeTo(size))\n\n /** The window link this pane was reached through. */\n def window: Window[F] =\n self.server.window(io.github.libtmux.scaladsl.Window.wrap(self.underlying.asJava.window()))\n\n /** This pane's own hooks. */\n def hooks: Hooks[F] =\n new Hooks(self.underlying.asJava.hooks(), self.server)\n\n /** This pane's own options. */\n def options: Options[F] =\n new Options(self.underlying.asJava.options(), self.server)\n\n /** This pane's visible content, one element per line. */\n def capture(): F[Vector[String]] =\n self.server.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.asJava.capture()).asScala.toVector)\n\n /** Notes text that reached this pane without going through this handle, so a wait discounts its\necho the way it discounts text sent through {@link #sendLiteral}. */\n def noteTyped(text: String): F[Unit] =\n self.server.execution(self.underlying.asJava.noteTyped(text))\n\n /** Reads part of this pane, described by a lambda. */\n def capture(configure: io.github.libtmux.CaptureSpec.Builder => Unit): F[Vector[String]] =\n self.server.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.asJava.capture(((it: io.github.libtmux.CaptureSpec.Builder) => configure(it)))).asScala.toVector)\n\n /** Reads part of this pane according to a spec, which may be reused across panes. */\n def capture(spec: io.github.libtmux.CaptureSpec): F[Vector[String]] =\n self.server.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.asJava.capture(spec)).asScala.toVector)\n\n /** Sends keys to this pane without pressing Enter. */\n def send(keys: String): F[Unit] =\n self.server.execution(self.underlying.asJava.send(keys))\n\n /** Sends an ordered group of key names to this pane, as tmux resolves them. */\n def sendKeys(keys: Vector[String]): F[Unit] =\n self.server.execution(self.underlying.asJava.sendKeys(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(keys).asJava))\n\n /** As {@link #sendKeys(List)}, after a caller validates the prepared input destination. */\n def sendKeys(keys: Vector[String], beforeSend: () => Unit): F[Unit] =\n self.server.execution(self.underlying.asJava.sendKeys(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(keys).asJava, (() => beforeSend())))\n\n /** Sends an ordered group of strings to this pane as the characters they spell. */\n def sendLiteral(keys: Vector[String]): F[Unit] =\n self.server.execution(self.underlying.asJava.sendLiteral(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(keys).asJava))\n\n /** As {@link #sendLiteral(List)}, after a caller validates the prepared input destination. */\n def sendLiteral(keys: Vector[String], beforeSend: () => Unit): F[Unit] =\n self.server.execution(self.underlying.asJava.sendLiteral(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(keys).asJava, (() => beforeSend())))\n\n /** Sends a line to this pane and presses Enter, which is how a command gets run. */\n def sendLine(command: String): F[Unit] =\n self.server.execution(self.underlying.asJava.sendLine(command))\n\n /** Moves this pane into a window of its own, leaving tmux to name it. */\n def breakOut(): F[Window[F]] =\n self.server.execution(self.server.window(io.github.libtmux.scaladsl.Window.wrap(self.underlying.asJava.breakOut())))\n\n /** Expands a tmux format in this pane's context, and answers with what it came to. */\n def expand(format: String): F[String] =\n self.server.execution(self.underlying.asJava.expand(format))\n\n /** Reads validated tmux variables in this pane's format context. */\n def variables(names: Vector[String]): F[_root_.scala.collection.immutable.VectorMap[String, String]] =\n self.server.execution(_root_.scala.collection.immutable.VectorMap.from(_root_.scala.jdk.CollectionConverters.MapHasAsScala(self.underlying.asJava.variables(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(names).asJava)).asScala))\n\n /** Kills whatever runs here and starts the pane's default command again. */\n def respawn(): F[Unit] =\n self.server.execution(self.underlying.asJava.respawn())\n\n /** Restarts the configured pane process in a caller-supplied literal directory, resolved against\nthis process's working directory when relative. */\n def respawnIn(directory: java.nio.file.Path): F[Unit] =\n self.server.execution(self.underlying.asJava.respawnIn(directory))\n\n /** Kills whatever runs here and starts the given command instead. */\n def respawn(command: String*): F[Unit] =\n self.server.execution(self.underlying.asJava.respawn(command*))\n\n /** Sends everything this pane prints to a shell command, until {@link #stopPiping}. */\n def pipeTo(shellCommand: String): F[Unit] =\n self.server.execution(self.underlying.asJava.pipeTo(shellCommand))\n\n /** Stops sending this pane's output anywhere. */\n def stopPiping(): F[Unit] =\n self.server.execution(self.underlying.asJava.stopPiping())\n\n /** Moves this pane into a window of its own with the given name. */\n def breakOut(windowName: String): F[Window[F]] =\n self.server.execution(self.server.window(io.github.libtmux.scaladsl.Window.wrap(self.underlying.asJava.breakOut(windowName))))\n\n /** Splits this pane in half, putting the new one below it. */\n def split(): F[Pane[F]] =\n self.server.execution(self.server.pane(io.github.libtmux.scaladsl.Pane.wrap(self.underlying.asJava.split())))\n\n /** Splits this pane as described. */\n def split(configure: io.github.libtmux.SplitSpec.Builder => Unit): F[Pane[F]] =\n self.server.execution(self.server.pane(io.github.libtmux.scaladsl.Pane.wrap(self.underlying.asJava.split(((it: io.github.libtmux.SplitSpec.Builder) => configure(it))))))\n\n /** Splits this pane according to a spec, which may be reused across panes. */\n def split(spec: io.github.libtmux.SplitSpec): F[Pane[F]] =\n self.server.execution(self.server.pane(io.github.libtmux.scaladsl.Pane.wrap(self.underlying.asJava.split(spec))))\n\n /** Pastes a named buffer into this pane, as though it had been typed. */\n def pasteBuffer(name: String): F[Unit] =\n self.server.execution(self.underlying.asJava.pasteBuffer(name))\n\n /** Pastes text into this pane as one block, leaving nothing behind on the server. */\n def paste(text: String): F[Unit] =\n self.server.execution(self.underlying.asJava.paste(text))\n\n /** As {@link #paste(String)}, after a caller rechecks state once its private buffer is ready. */\n def paste(text: String, beforePaste: () => Unit): F[Unit] =\n self.server.execution(self.underlying.asJava.paste(text, (() => beforePaste())))\n\n /** Discards this pane's scrollback. */\n def clearHistory(): F[Unit] =\n self.server.execution(self.underlying.asJava.clearHistory())\n\n /** Swaps this pane's position with another's. */\n def swapWith(other: Pane[F]): F[Unit] =\n self.server.execution(self.underlying.asJava.swapWith(other.underlying.asJava))\n\n /** Moves this pane into another window, splitting it. */\n def joinTo(window: Window[F]): F[Unit] =\n self.server.execution(self.underlying.asJava.joinTo(window.underlying.asJava))\n\n /** Closes this pane. */\n def kill(): F[Unit] =\n self.server.execution(self.underlying.asJava.kill())\n\n /** Takes a new capture and returns this pane as it is now. */\n def refresh(): F[Pane[F]] =\n self.server.execution(self.server.pane(io.github.libtmux.scaladsl.Pane.wrap(self.underlying.asJava.refresh())))\n }\n\n extension [F[_]](self: Prompt[F])(using F: _root_.cats.effect.Async[F]) {\n\n /** What has been typed at the prompt, oldest first. */\n def history(): F[Vector[String]] =\n self.server.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.history()).asScala.toVector)\n\n /** Forgets what has been typed at the prompt. */\n def clear(): F[Unit] =\n self.server.execution(self.underlying.clear())\n }\n\n extension [F[_]](self: Server[F])(using F: _root_.cats.effect.Async[F]) {\n\n /** Creates a detached session and returns that exact session. */\n def newSession(name: String): F[Session[F]] =\n self.execution(self.session(io.github.libtmux.scaladsl.Session.wrap(self.underlying.asJava.newSession(name))))\n\n /** Creates a session as described. */\n def newSession(configure: io.github.libtmux.SessionSpec.Builder => Unit): F[Session[F]] =\n self.execution(self.session(io.github.libtmux.scaladsl.Session.wrap(self.underlying.asJava.newSession(((it: io.github.libtmux.SessionSpec.Builder) => configure(it))))))\n\n /** Creates a session according to a spec, which may be reused across servers. */\n def newSession(spec: io.github.libtmux.SessionSpec): F[Session[F]] =\n self.execution(self.session(io.github.libtmux.scaladsl.Session.wrap(self.underlying.asJava.newSession(spec))))\n\n /** Whether a session with this name exists. */\n def hasSession(name: String): F[Boolean] =\n self.execution(self.underlying.asJava.hasSession(name))\n\n /** Ends the session with this name, and everything in it. */\n def killSession(name: String): F[Unit] =\n self.execution(self.underlying.asJava.killSession(name))\n\n /** Whether the server is running and answering. */\n def isAlive(): F[Boolean] =\n self.execution(self.underlying.asJava.isAlive())\n\n /** Whether the server is running and answering, within a deadline of the caller's choosing. */\n def isAlive(timeout: _root_.scala.concurrent.duration.FiniteDuration): F[Boolean] =\n self.execution(self.underlying.asJava.isAlive(_root_.scala.jdk.DurationConverters.ScalaDurationOps(timeout).toJava))\n\n /** Requires a running tmux daemon that answers the liveness probe. */\n def requireAlive(): F[Unit] =\n self.execution(self.underlying.asJava.requireAlive())\n\n /** Ends the tmux server and every session on it. */\n def killServer(): F[Unit] =\n self.execution(self.underlying.asJava.killServer())\n\n /** Ends the tmux server and every session on it, within a deadline of the caller's choosing. */\n def killServer(timeout: _root_.scala.concurrent.duration.FiniteDuration): F[Unit] =\n self.execution(self.underlying.asJava.killServer(_root_.scala.jdk.DurationConverters.ScalaDurationOps(timeout).toJava))\n\n /** Expands a tmux format against the server, and answers with what it came to. */\n def expand(format: String): F[String] =\n self.execution(self.underlying.asJava.expand(format))\n\n /** Shell commands run by tmux, and tmux commands chosen by a shell exit status. */\n def shell: Shell[F] =\n new Shell(self.underlying.asJava.shell(), self)\n\n /** The commands this tmux knows. */\n def commands: Commands[F] =\n new Commands(self.underlying.asJava.commands(), self)\n\n /** Locks every client attached to this server. */\n def lock(): F[Unit] =\n self.execution(self.underlying.asJava.lock())\n\n /** The server's message log. */\n def messageLog: MessageLog[F] =\n new MessageLog(self.underlying.asJava.messageLog(), self)\n\n /** The command prompt's history. */\n def prompt: Prompt[F] =\n new Prompt(self.underlying.asJava.prompt(), self)\n\n /** Reads only validated tmux variable names, never caller-authored format syntax. */\n def variables(names: Vector[String]): F[_root_.scala.collection.immutable.VectorMap[String, String]] =\n self.execution(_root_.scala.collection.immutable.VectorMap.from(_root_.scala.jdk.CollectionConverters.MapHasAsScala(self.underlying.asJava.variables(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(names).asJava)).asScala))\n\n /** Chosen fields for every pane on the server, from one listing. */\n def paneFields(names: Vector[String]): F[_root_.scala.collection.immutable.VectorMap[io.github.libtmux.PaneId, _root_.scala.collection.immutable.VectorMap[String, String]]] =\n self.execution(_root_.scala.collection.immutable.VectorMap.from(_root_.scala.jdk.CollectionConverters.MapHasAsScala(self.underlying.asJava.paneFields(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(names).asJava)).asScala.map { case (k, v) => k -> _root_.scala.collection.immutable.VectorMap.from(_root_.scala.jdk.CollectionConverters.MapHasAsScala(v).asScala) }))\n\n /** The server's key bindings: {@code prefix} when binding, every table when listing. */\n def keys: Keys[F] =\n new Keys(self.underlying.asJava.keys(), self)\n\n /** The server's paste buffers, which every session shares. */\n def buffers: Buffers[F] =\n new Buffers(self.underlying.asJava.buffers(), self)\n\n /** Runs a file of tmux commands, as a configuration file would be run. */\n def sourceFile(file: java.nio.file.Path): F[Unit] =\n self.execution(self.underlying.asJava.sourceFile(file))\n\n /** The server-wide options, the ones tmux keeps once per server. */\n def options: Options[F] =\n new Options(self.underlying.asJava.options(), self)\n\n /** The global session options every session inherits unless it sets its own. */\n def globalOptions: Options[F] =\n new Options(self.underlying.asJava.globalOptions(), self)\n\n /** The server's environment, which every session inherits and every new process is given. */\n def environment: Environment[F] =\n new Environment(self.underlying.asJava.environment(), self)\n\n /** The global hooks every session inherits. */\n def hooks: Hooks[F] =\n new Hooks(self.underlying.asJava.hooks(), self)\n\n /** Which tmux this server is running. */\n def version(): F[io.github.libtmux.TmuxVersion] =\n self.execution(self.underlying.asJava.version())\n\n /** Which server this is. */\n def identity: io.github.libtmux.ServerIdentity =\n self.underlying.asJava.identity()\n\n /** How this server was configured. */\n def config: io.github.libtmux.ServerConfig =\n self.underlying.asJava.config()\n\n /** Runs one tmux command against this server. */\n def cmd(argv: String*): F[io.github.libtmux.transport.CommandResult] =\n self.execution(self.underlying.asJava.cmd(argv*))\n\n /** Runs one tmux command against this server. */\n def cmd(argv: Vector[String]): F[io.github.libtmux.transport.CommandResult] =\n self.execution(self.underlying.asJava.cmd(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(argv).asJava))\n\n /** Runs one tmux command against this server, overriding the configured deadline. */\n def cmd(argv: Vector[String], timeout: _root_.scala.concurrent.duration.FiniteDuration): F[io.github.libtmux.transport.CommandResult] =\n self.execution(self.underlying.asJava.cmd(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(argv).asJava, _root_.scala.jdk.DurationConverters.ScalaDurationOps(timeout).toJava))\n\n /** Captures the whole hierarchy in at most four listings, retrying once if the server is\nreplaced. */\n def snapshot(): F[io.github.libtmux.snapshot.ServerSnapshot] =\n self.execution(self.underlying.asJava.snapshot())\n\n /** The sessions this expression matches, captured now. */\n def sessions(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Session]): F[Vector[Session[F]]] =\n self.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.asJava.sessions(expression.asJava)).asScala.iterator.map(v => self.session(io.github.libtmux.scaladsl.Session.wrap(v))).toVector)\n\n /** Every session, captured now. */\n def sessions(): F[Vector[Session[F]]] =\n self.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.asJava.sessions()).asScala.iterator.map(v => self.session(io.github.libtmux.scaladsl.Session.wrap(v))).toVector)\n\n /** Captures every winlink, preserving each session and index placement. */\n def windows(): F[Vector[Window[F]]] =\n self.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.asJava.windows()).asScala.iterator.map(v => self.window(io.github.libtmux.scaladsl.Window.wrap(v))).toVector)\n\n /** The winlinks this expression matches, captured now. */\n def windows(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Window]): F[Vector[Window[F]]] =\n self.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.asJava.windows(expression.asJava)).asScala.iterator.map(v => self.window(io.github.libtmux.scaladsl.Window.wrap(v))).toVector)\n\n /** Captures every pane on the server. */\n def panes(): F[Vector[Pane[F]]] =\n self.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.asJava.panes()).asScala.iterator.map(v => self.pane(io.github.libtmux.scaladsl.Pane.wrap(v))).toVector)\n\n /** The panes this expression matches, captured now. */\n def panes(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Pane]): F[Vector[Pane[F]]] =\n self.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.asJava.panes(expression.asJava)).asScala.iterator.map(v => self.pane(io.github.libtmux.scaladsl.Pane.wrap(v))).toVector)\n\n /** The one session this expression matches, captured now, or empty when none does. */\n def session(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Session]): F[Option[Session[F]]] =\n self.execution(_root_.scala.jdk.OptionConverters.RichOptional(self.underlying.asJava.session(expression.asJava)).toScala.map(v => self.session(io.github.libtmux.scaladsl.Session.wrap(v))))\n\n /** The one window link this expression matches, captured now, or empty when none does. */\n def window(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Window]): F[Option[Window[F]]] =\n self.execution(_root_.scala.jdk.OptionConverters.RichOptional(self.underlying.asJava.window(expression.asJava)).toScala.map(v => self.window(io.github.libtmux.scaladsl.Window.wrap(v))))\n\n /** The one pane this expression matches, captured now, or empty when none does. */\n def pane(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Pane]): F[Option[Pane[F]]] =\n self.execution(_root_.scala.jdk.OptionConverters.RichOptional(self.underlying.asJava.pane(expression.asJava)).toScala.map(v => self.pane(io.github.libtmux.scaladsl.Pane.wrap(v))))\n\n /** How many tmux commands this server's transport runs at once, from {@link ServerConfig#maxConcurrentCommands()} for a server {@link #open}ed here. */\n def admissionBound: Int =\n self.underlying.asJava.admissionBound()\n\n /** The session with this name, captured now. */\n def session(name: String): F[Option[Session[F]]] =\n self.execution(_root_.scala.jdk.OptionConverters.RichOptional(self.underlying.asJava.session(name)).toScala.map(v => self.session(io.github.libtmux.scaladsl.Session.wrap(v))))\n\n /** The session with this id, captured now. */\n def session(id: io.github.libtmux.SessionId): F[Option[Session[F]]] =\n self.execution(_root_.scala.jdk.OptionConverters.RichOptional(self.underlying.asJava.session(id)).toScala.map(v => self.session(io.github.libtmux.scaladsl.Session.wrap(v))))\n\n /** The pane with this id, captured now. */\n def pane(id: io.github.libtmux.PaneId): F[Option[Pane[F]]] =\n self.execution(_root_.scala.jdk.OptionConverters.RichOptional(self.underlying.asJava.pane(id)).toScala.map(v => self.pane(io.github.libtmux.scaladsl.Pane.wrap(v))))\n\n /** The winlink at this exact position, captured now. */\n def window(context: io.github.libtmux.snapshot.WindowContext): F[Option[Window[F]]] =\n self.execution(_root_.scala.jdk.OptionConverters.RichOptional(self.underlying.asJava.window(context)).toScala.map(v => self.window(io.github.libtmux.scaladsl.Window.wrap(v))))\n\n /** Every winlink of the window with this id, captured now. */\n def windows(id: io.github.libtmux.WindowId): F[Vector[Window[F]]] =\n self.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.asJava.windows(id)).asScala.iterator.map(v => self.window(io.github.libtmux.scaladsl.Window.wrap(v))).toVector)\n\n /** Captures every attached client. */\n def clients(): F[Vector[Client[F]]] =\n self.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.asJava.clients()).asScala.iterator.map(v => self.client(io.github.libtmux.scaladsl.Client.wrap(v))).toVector)\n\n /** Captures every session a client is attached to. */\n def attachedSessions(): F[Vector[Session[F]]] =\n self.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.asJava.attachedSessions()).asScala.iterator.map(v => self.session(io.github.libtmux.scaladsl.Session.wrap(v))).toVector)\n\n /** Runs a command that is expected to work, and raises when it did not. */\n def run(argv: Vector[String]): F[io.github.libtmux.transport.CommandResult] =\n self.execution(self.underlying.asJava.run(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(argv).asJava))\n\n /** A builder holding every configuration and ownership choice this server made. */\n def toBuilder: io.github.libtmux.Server.Builder =\n self.underlying.asJava.toBuilder()\n }\n\n extension [F[_]](self: Session[F])(using F: _root_.cats.effect.Async[F]) {\n\n /** The fields this capture stored. */\n def info: io.github.libtmux.snapshot.SessionState =\n self.underlying.asJava.info()\n\n /** The session's stable id. */\n def id: io.github.libtmux.SessionId =\n self.underlying.asJava.id()\n\n /** The session name, which a user may change at any time. */\n def name: String =\n self.underlying.asJava.name()\n\n /** Whether a client was attached when this was captured. */\n def attached: Boolean =\n self.underlying.asJava.attached()\n\n /** The window tmux had active in this session. */\n def activeWindow: Option[Window[F]] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.underlying.asJava.activeWindow()).toScala.map(v => self.server.window(io.github.libtmux.scaladsl.Window.wrap(v)))\n\n /** The active pane of the active window. */\n def activePane: Option[Pane[F]] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.underlying.asJava.activePane()).toScala.map(v => self.server.pane(io.github.libtmux.scaladsl.Pane.wrap(v)))\n\n /** Makes a window of this session the active one. */\n def selectWindow(window: Window[F]): F[Unit] =\n self.server.execution(self.underlying.asJava.selectWindow(window.underlying.asJava))\n\n /** Moves to the next window in this session, wrapping at the end. */\n def nextWindow(): F[Unit] =\n self.server.execution(self.underlying.asJava.nextWindow())\n\n /** Moves to the previous window in this session, wrapping at the start. */\n def previousWindow(): F[Unit] =\n self.server.execution(self.underlying.asJava.previousWindow())\n\n /** Returns to the window that was active before this one. */\n def lastWindow(): F[Unit] =\n self.server.execution(self.underlying.asJava.lastWindow())\n\n /** Detaches every client attached to this session, leaving the session running. */\n def detachClients(): F[Unit] =\n self.server.execution(self.underlying.asJava.detachClients())\n\n /** This session's own options. */\n def options: Options[F] =\n new Options(self.underlying.asJava.options(), self.server)\n\n /** This session's own environment, which a process started in it is given on top of the\nserver's. */\n def environment: Environment[F] =\n new Environment(self.underlying.asJava.environment(), self.server)\n\n /** This session's own hooks. */\n def hooks: Hooks[F] =\n new Hooks(self.underlying.asJava.hooks(), self.server)\n\n /** Sets the scrollback retained by panes created in this session. */\n def setHistoryLimit(lines: Int): F[Unit] =\n self.server.execution(self.underlying.asJava.setHistoryLimit(lines))\n\n /** This session's windows, in tmux's order. */\n def windows: Vector[Window[F]] =\n _root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.asJava.windows()).asScala.iterator.map(v => self.server.window(io.github.libtmux.scaladsl.Window.wrap(v))).toVector\n\n /** Creates a window in this session and returns that exact window. */\n def newWindow(name: String): F[Window[F]] =\n self.server.execution(self.server.window(io.github.libtmux.scaladsl.Window.wrap(self.underlying.asJava.newWindow(name))))\n\n /** Creates a window in this session as described. */\n def newWindow(configure: io.github.libtmux.WindowSpec.Builder => Unit): F[Window[F]] =\n self.server.execution(self.server.window(io.github.libtmux.scaladsl.Window.wrap(self.underlying.asJava.newWindow(((it: io.github.libtmux.WindowSpec.Builder) => configure(it))))))\n\n /** Creates a window in this session according to a spec, which may be reused across sessions. */\n def newWindow(spec: io.github.libtmux.WindowSpec): F[Window[F]] =\n self.server.execution(self.server.window(io.github.libtmux.scaladsl.Window.wrap(self.underlying.asJava.newWindow(spec))))\n\n /** Expands a tmux format in this session's context, and answers with what it came to. */\n def expand(format: String): F[String] =\n self.server.execution(self.underlying.asJava.expand(format))\n\n /** Renames this session and returns its replacement capture. */\n def rename(name: String): F[Session[F]] =\n self.server.execution(self.server.session(io.github.libtmux.scaladsl.Session.wrap(self.underlying.asJava.rename(name))))\n\n /** Ends this session. */\n def kill(): F[Unit] =\n self.server.execution(self.underlying.asJava.kill())\n\n /** Takes a new capture and returns this session as it is now. */\n def refresh(): F[Session[F]] =\n self.server.execution(self.server.session(io.github.libtmux.scaladsl.Session.wrap(self.underlying.asJava.refresh())))\n }\n\n extension [F[_]](self: Shell[F])(using F: _root_.cats.effect.Async[F]) {\n\n /** Runs a shell command for its effect. */\n def run(command: String): F[Unit] =\n self.server.execution(self.underlying.run(command))\n\n /** Runs a shell command and answers with what it printed. */\n def capturing(command: String): F[Vector[String]] =\n self.server.execution(_root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.capturing(command)).asScala.toVector)\n\n /** Runs one tmux command when a shell command succeeds. */\n def choose(condition: String, whenTrue: String): F[Unit] =\n self.server.execution(self.underlying.choose(condition, whenTrue))\n\n /** Runs one tmux command or another, according to whether a shell command succeeds. */\n def choose(condition: String, whenTrue: String, whenFalse: String): F[Unit] =\n self.server.execution(self.underlying.choose(condition, whenTrue, whenFalse))\n }\n\n extension [F[_]](self: Window[F])(using F: _root_.cats.effect.Async[F]) {\n\n /** The fields this capture stored. */\n def info: io.github.libtmux.snapshot.WindowState =\n self.underlying.asJava.info()\n\n /** The underlying window, shared by every link to it. */\n def id: io.github.libtmux.WindowId =\n self.underlying.asJava.id()\n\n /** Where this link sits in its session. */\n def index: io.github.libtmux.WindowIndex =\n self.underlying.asJava.index()\n\n /** The winlink this handle addresses. */\n def context: io.github.libtmux.snapshot.WindowContext =\n self.underlying.asJava.context()\n\n /** The window name. */\n def name: String =\n self.underlying.asJava.name()\n\n /** Whether this was its session's active window when captured. */\n def active: Boolean =\n self.underlying.asJava.active()\n\n /** Whether the underlying window is linked into more than one session. */\n def linked: Boolean =\n self.underlying.asJava.linked()\n\n /** How large the window was when captured, in terminal cells. */\n def size: io.github.libtmux.Dimensions =\n self.underlying.asJava.size()\n\n /** tmux's own layout for this window, in whichever form this server writes it. */\n def layout: io.github.libtmux.WindowLayout =\n self.underlying.asJava.layout()\n\n /** The pane tmux had active here. */\n def activePane: Option[Pane[F]] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.underlying.asJava.activePane()).toScala.map(v => self.server.pane(io.github.libtmux.scaladsl.Pane.wrap(v)))\n\n /** Makes this the active window of its session. */\n def select(): F[Unit] =\n self.server.execution(self.underlying.asJava.select())\n\n /** The session this link belongs to. */\n def session: Session[F] =\n self.server.session(io.github.libtmux.scaladsl.Session.wrap(self.underlying.asJava.session()))\n\n /** This window's own hooks, which every link to it shares. */\n def hooks: Hooks[F] =\n new Hooks(self.underlying.asJava.hooks(), self.server)\n\n /** This window's own options, which every link to it shares. */\n def options: Options[F] =\n new Options(self.underlying.asJava.options(), self.server)\n\n /** This link's panes, in tmux's order. */\n def panes: Vector[Pane[F]] =\n _root_.scala.jdk.CollectionConverters.ListHasAsScala(self.underlying.asJava.panes()).asScala.iterator.map(v => self.server.pane(io.github.libtmux.scaladsl.Pane.wrap(v))).toVector\n\n /** Splits this window's active pane in half, putting the new one below it. */\n def split(): F[Pane[F]] =\n self.server.execution(self.server.pane(io.github.libtmux.scaladsl.Pane.wrap(self.underlying.asJava.split())))\n\n /** Splits this window's active pane as described. */\n def split(configure: io.github.libtmux.SplitSpec.Builder => Unit): F[Pane[F]] =\n self.server.execution(self.server.pane(io.github.libtmux.scaladsl.Pane.wrap(self.underlying.asJava.split(((it: io.github.libtmux.SplitSpec.Builder) => configure(it))))))\n\n /** Splits this window's active pane according to a spec, which may be reused across windows. */\n def split(spec: io.github.libtmux.SplitSpec): F[Pane[F]] =\n self.server.execution(self.server.pane(io.github.libtmux.scaladsl.Pane.wrap(self.underlying.asJava.split(spec))))\n\n /** Expands a tmux format in this window's context, and answers with what it came to. */\n def expand(format: String): F[String] =\n self.server.execution(self.underlying.asJava.expand(format))\n\n /** Renames this window and returns its replacement capture. */\n def rename(name: String): F[Window[F]] =\n self.server.execution(self.server.window(io.github.libtmux.scaladsl.Window.wrap(self.underlying.asJava.rename(name))))\n\n /** Links this window into another session, so one window sits in both. */\n def linkTo(session: Session[F]): F[Unit] =\n self.server.execution(self.underlying.asJava.linkTo(session.underlying.asJava))\n\n /** Removes this link, leaving the window wherever else it is linked. */\n def unlink(): F[Unit] =\n self.server.execution(self.underlying.asJava.unlink())\n\n /** Moves this window into another session. */\n def moveTo(session: Session[F]): F[Unit] =\n self.server.execution(self.underlying.asJava.moveTo(session.underlying.asJava))\n\n /** Moves this window to an exact index in another session. */\n def moveTo(session: Session[F], index: Int): F[Unit] =\n self.server.execution(self.underlying.asJava.moveTo(session.underlying.asJava, index))\n\n /** Resizes this window in terminal cells. */\n def resizeTo(size: io.github.libtmux.Dimensions): F[Unit] =\n self.server.execution(self.underlying.asJava.resizeTo(size))\n\n /** Copies input to one pane into every pane in this window, until {@link #stopSynchronizingPanes}. */\n def synchronizePanes(): F[Unit] =\n self.server.execution(self.underlying.asJava.synchronizePanes())\n\n /** Stops copying input between this window's panes. */\n def stopSynchronizingPanes(): F[Unit] =\n self.server.execution(self.underlying.asJava.stopSynchronizingPanes())\n\n /** Rotates the panes within this window. */\n def rotate(): F[Unit] =\n self.server.execution(self.underlying.asJava.rotate())\n\n /** Rearranges this window's panes into one of tmux's built-in layouts. */\n def selectLayout(layout: io.github.libtmux.Layout): F[Unit] =\n self.server.execution(self.underlying.asJava.selectLayout(layout))\n\n /** Moves to the next built-in layout, as tmux's own binding does. */\n def nextLayout(): F[Unit] =\n self.server.execution(self.underlying.asJava.nextLayout())\n\n /** Moves to the previous built-in layout, as tmux's own binding does. */\n def previousLayout(): F[Unit] =\n self.server.execution(self.underlying.asJava.previousLayout())\n\n /** Restores an exact arrangement previously read from {@link #layout()}. */\n def applyLayout(layout: io.github.libtmux.WindowLayout): F[Unit] =\n self.server.execution(self.underlying.asJava.applyLayout(layout))\n\n /** As {@link #applyLayout(WindowLayout)}, for a layout held as text — one saved to a file, say. */\n def applyLayout(layout: String): F[Unit] =\n self.server.execution(self.underlying.asJava.applyLayout(layout))\n\n /** Kills what is running in this window and starts it again. */\n def respawn(): F[Unit] =\n self.server.execution(self.underlying.asJava.respawn())\n\n /** Shows a popup over this window, running a command in it. */\n def displayPopup(shellCommand: String): F[Unit] =\n self.server.execution(self.underlying.asJava.displayPopup(shellCommand))\n\n /** Closes this window. */\n def kill(): F[Unit] =\n self.server.execution(self.underlying.asJava.kill())\n\n /** Takes a new capture and returns this winlink as it is now. */\n def refresh(): F[Window[F]] =\n self.server.execution(self.server.window(io.github.libtmux.scaladsl.Window.wrap(self.underlying.asJava.refresh())))\n }\n","libtmux-scala/build/generated/sources/catalog/scala/operations/GeneratedOperations.scala":"package io.github.libtmux.scaladsl\n\n// Generated from the operation catalog by build-logic/codegen (ScalaOperationGenerator). Not checked in.\n\n extension (self: Client) {\n\n /** The client's terminal name, which is how tmux addresses it. */\n def name: String =\n self.asJava.name()\n\n /** Detaches this client, leaving whatever it was attached to running. */\n def detach(): Unit =\n self.asJava.detach()\n\n /** Detaches every other client, leaving this one attached. */\n def detachOthers(): Unit =\n self.asJava.detachOthers()\n\n /** Moves this client to another session. */\n def switchTo(session: Session): Unit =\n self.asJava.switchTo(session.asJava)\n\n /** Asks tmux to redraw this client. */\n def redraw(): Unit =\n self.asJava.redraw()\n\n /** The server this client is connected to. */\n def server: Server =\n Server.wrap(self.asJava.server())\n\n /** The session this client was attached to when captured. */\n def session: Option[Session] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.asJava.session()).toScala.map(v => Session.wrap(v))\n\n /** What this client was looking at when captured. */\n def attachment: Option[io.github.libtmux.ClientAttachment] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.asJava.attachment()).toScala\n\n /** Takes a new capture and returns what this client is looking at now. */\n def fetchAttachment(): Option[io.github.libtmux.ClientAttachment] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.asJava.fetchAttachment()).toScala\n\n /** Takes a new capture and returns this client as it is now. */\n def refresh(): Client =\n Client.wrap(self.asJava.refresh())\n }\n\n extension (self: Pane) {\n\n /** The fields this capture stored. */\n def info: io.github.libtmux.snapshot.PaneState =\n self.asJava.info()\n\n /** The pane's stable id. */\n def id: io.github.libtmux.PaneId =\n self.asJava.id()\n\n /** The pane's position, which shifts as neighbours come and go. */\n def index: Int =\n self.asJava.index()\n\n /** Whether this was its window's active pane when captured. */\n def active: Boolean =\n self.asJava.active()\n\n /** The command tmux reported running here. */\n def currentCommand: String =\n self.asJava.currentCommand()\n\n /** Whether this pane floats, or empty when the running tmux cannot say. */\n def floating: Option[Boolean] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.asJava.floating()).toScala.map(v => v.booleanValue())\n\n /** How large the pane was when captured, in terminal cells. */\n def size: io.github.libtmux.Dimensions =\n self.asJava.size()\n\n /** Where the pane's top-left corner sat in its window when captured, in terminal cells. */\n def position: io.github.libtmux.PanePosition =\n self.asJava.position()\n\n /** The pane title, which a program running inside it can change. */\n def title: String =\n self.asJava.title()\n\n /** The working directory tmux reported for the pane. */\n def currentPath: java.nio.file.Path =\n self.asJava.currentPath()\n\n /** The working directory tmux reported for the pane, exactly as tmux reported it. */\n def currentPathText: String =\n self.asJava.currentPathText()\n\n /** The process id of the program running in the pane, captured at the time of the read this\nhandle came from. */\n def pid: Option[Long] =\n _root_.scala.jdk.OptionConverters.RichOptionalLong(self.asJava.pid()).toScala\n\n /** Whether this pane's process has exited, read fresh rather than from the capture. */\n def dead(): Boolean =\n self.asJava.dead()\n\n /** Grows this pane by a number of cells in one direction. */\n def resize(direction: io.github.libtmux.Direction, cells: Int): Unit =\n self.asJava.resize(direction, cells)\n\n /** Which sides of its window the pane touches. */\n def edges: io.github.libtmux.PaneEdges =\n self.asJava.edges()\n\n /** Puts this pane into copy mode, where its scrollback can be navigated. */\n def copyMode(): Unit =\n self.asJava.copyMode()\n\n /** Which mode this pane is in at this moment, or empty when it is in none. */\n def mode(): Option[io.github.libtmux.PaneMode] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.asJava.mode()).toScala\n\n /** Leaves whichever mode this pane is in. */\n def exitMode(): Unit =\n self.asJava.exitMode()\n\n /** Makes this the active pane of its window. */\n def select(): Unit =\n self.asJava.select()\n\n /** Retitles this pane and returns its replacement capture. */\n def retitle(title: String): Pane =\n Pane.wrap(self.asJava.retitle(title))\n\n /** Resizes this pane. */\n def resizeTo(size: io.github.libtmux.Dimensions): Unit =\n self.asJava.resizeTo(size)\n\n /** The server this pane lives on. */\n def server: Server =\n Server.wrap(self.asJava.server())\n\n /** Collects commands fenced to the server incarnation that produced this pane. */\n def batch: io.github.libtmux.batch.Batch =\n self.asJava.batch()\n\n /** The window link this pane was reached through. */\n def window: Window =\n Window.wrap(self.asJava.window())\n\n /** This pane's own hooks. */\n def hooks: io.github.libtmux.Hooks =\n self.asJava.hooks()\n\n /** This pane's own options. */\n def options: io.github.libtmux.Options =\n self.asJava.options()\n\n /** This pane's visible content, one element per line. */\n def capture(): Vector[String] =\n _root_.scala.jdk.CollectionConverters.ListHasAsScala(self.asJava.capture()).asScala.toVector\n\n /** Notes text that reached this pane without going through this handle, so a wait discounts its\necho the way it discounts text sent through {@link #sendLiteral}. */\n def noteTyped(text: String): Unit =\n self.asJava.noteTyped(text)\n\n /** Reads part of this pane, described by a lambda. */\n def capture(configure: io.github.libtmux.CaptureSpec.Builder => Unit): Vector[String] =\n _root_.scala.jdk.CollectionConverters.ListHasAsScala(self.asJava.capture(((it: io.github.libtmux.CaptureSpec.Builder) => configure(it)))).asScala.toVector\n\n /** Reads part of this pane according to a spec, which may be reused across panes. */\n def capture(spec: io.github.libtmux.CaptureSpec): Vector[String] =\n _root_.scala.jdk.CollectionConverters.ListHasAsScala(self.asJava.capture(spec)).asScala.toVector\n\n /** Sends keys to this pane without pressing Enter. */\n def send(keys: String): Unit =\n self.asJava.send(keys)\n\n /** Sends an ordered group of key names to this pane, as tmux resolves them. */\n def sendKeys(keys: Vector[String]): Unit =\n self.asJava.sendKeys(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(keys).asJava)\n\n /** As {@link #sendKeys(List)}, after a caller validates the prepared input destination. */\n def sendKeys(keys: Vector[String], beforeSend: () => Unit): Unit =\n self.asJava.sendKeys(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(keys).asJava, (() => beforeSend()))\n\n /** Sends an ordered group of strings to this pane as the characters they spell. */\n def sendLiteral(keys: Vector[String]): Unit =\n self.asJava.sendLiteral(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(keys).asJava)\n\n /** As {@link #sendLiteral(List)}, after a caller validates the prepared input destination. */\n def sendLiteral(keys: Vector[String], beforeSend: () => Unit): Unit =\n self.asJava.sendLiteral(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(keys).asJava, (() => beforeSend()))\n\n /** Sends a line to this pane and presses Enter, which is how a command gets run. */\n def sendLine(command: String): Unit =\n self.asJava.sendLine(command)\n\n /** Moves this pane into a window of its own, leaving tmux to name it. */\n def breakOut(): Window =\n Window.wrap(self.asJava.breakOut())\n\n /** Expands a tmux format in this pane's context, and answers with what it came to. */\n def expand(format: String): String =\n self.asJava.expand(format)\n\n /** Reads validated tmux variables in this pane's format context. */\n def variables(names: Vector[String]): _root_.scala.collection.immutable.VectorMap[String, String] =\n _root_.scala.collection.immutable.VectorMap.from(_root_.scala.jdk.CollectionConverters.MapHasAsScala(self.asJava.variables(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(names).asJava)).asScala)\n\n /** Kills whatever runs here and starts the pane's default command again. */\n def respawn(): Unit =\n self.asJava.respawn()\n\n /** Restarts the configured pane process in a caller-supplied literal directory, resolved against\nthis process's working directory when relative. */\n def respawnIn(directory: java.nio.file.Path): Unit =\n self.asJava.respawnIn(directory)\n\n /** Kills whatever runs here and starts the given command instead. */\n def respawn(command: String*): Unit =\n self.asJava.respawn(command*)\n\n /** Sends everything this pane prints to a shell command, until {@link #stopPiping}. */\n def pipeTo(shellCommand: String): Unit =\n self.asJava.pipeTo(shellCommand)\n\n /** Stops sending this pane's output anywhere. */\n def stopPiping(): Unit =\n self.asJava.stopPiping()\n\n /** Moves this pane into a window of its own with the given name. */\n def breakOut(windowName: String): Window =\n Window.wrap(self.asJava.breakOut(windowName))\n\n /** Splits this pane in half, putting the new one below it. */\n def split(): Pane =\n Pane.wrap(self.asJava.split())\n\n /** Splits this pane as described. */\n def split(configure: io.github.libtmux.SplitSpec.Builder => Unit): Pane =\n Pane.wrap(self.asJava.split(((it: io.github.libtmux.SplitSpec.Builder) => configure(it))))\n\n /** Splits this pane according to a spec, which may be reused across panes. */\n def split(spec: io.github.libtmux.SplitSpec): Pane =\n Pane.wrap(self.asJava.split(spec))\n\n /** Pastes a named buffer into this pane, as though it had been typed. */\n def pasteBuffer(name: String): Unit =\n self.asJava.pasteBuffer(name)\n\n /** Pastes text into this pane as one block, leaving nothing behind on the server. */\n def paste(text: String): Unit =\n self.asJava.paste(text)\n\n /** As {@link #paste(String)}, after a caller rechecks state once its private buffer is ready. */\n def paste(text: String, beforePaste: () => Unit): Unit =\n self.asJava.paste(text, (() => beforePaste()))\n\n /** Discards this pane's scrollback. */\n def clearHistory(): Unit =\n self.asJava.clearHistory()\n\n /** Swaps this pane's position with another's. */\n def swapWith(other: Pane): Unit =\n self.asJava.swapWith(other.asJava)\n\n /** Moves this pane into another window, splitting it. */\n def joinTo(window: Window): Unit =\n self.asJava.joinTo(window.asJava)\n\n /** Closes this pane. */\n def kill(): Unit =\n self.asJava.kill()\n\n /** Takes a new capture and returns this pane as it is now. */\n def refresh(): Pane =\n Pane.wrap(self.asJava.refresh())\n }\n\n extension (self: Server) {\n\n /** Creates a detached session and returns that exact session. */\n def newSession(name: String): Session =\n Session.wrap(self.asJava.newSession(name))\n\n /** Creates a session as described. */\n def newSession(configure: io.github.libtmux.SessionSpec.Builder => Unit): Session =\n Session.wrap(self.asJava.newSession(((it: io.github.libtmux.SessionSpec.Builder) => configure(it))))\n\n /** Creates a session according to a spec, which may be reused across servers. */\n def newSession(spec: io.github.libtmux.SessionSpec): Session =\n Session.wrap(self.asJava.newSession(spec))\n\n /** Whether a session with this name exists. */\n def hasSession(name: String): Boolean =\n self.asJava.hasSession(name)\n\n /** Ends the session with this name, and everything in it. */\n def killSession(name: String): Unit =\n self.asJava.killSession(name)\n\n /** Whether the server is running and answering. */\n def isAlive(): Boolean =\n self.asJava.isAlive()\n\n /** Whether the server is running and answering, within a deadline of the caller's choosing. */\n def isAlive(timeout: _root_.scala.concurrent.duration.FiniteDuration): Boolean =\n self.asJava.isAlive(_root_.scala.jdk.DurationConverters.ScalaDurationOps(timeout).toJava)\n\n /** Requires a running tmux daemon that answers the liveness probe. */\n def requireAlive(): Unit =\n self.asJava.requireAlive()\n\n /** Ends the tmux server and every session on it. */\n def killServer(): Unit =\n self.asJava.killServer()\n\n /** Ends the tmux server and every session on it, within a deadline of the caller's choosing. */\n def killServer(timeout: _root_.scala.concurrent.duration.FiniteDuration): Unit =\n self.asJava.killServer(_root_.scala.jdk.DurationConverters.ScalaDurationOps(timeout).toJava)\n\n /** Collects several commands to run in one tmux invocation. */\n def batch: io.github.libtmux.batch.Batch =\n self.asJava.batch()\n\n /** Starts a chain of commands where each one acts on what the last one made. */\n def chain: io.github.libtmux.CommandChain =\n self.asJava.chain()\n\n /** Expands a tmux format against the server, and answers with what it came to. */\n def expand(format: String): String =\n self.asJava.expand(format)\n\n /** Shell commands run by tmux, and tmux commands chosen by a shell exit status. */\n def shell: io.github.libtmux.Shell =\n self.asJava.shell()\n\n /** The commands this tmux knows. */\n def commands: io.github.libtmux.Commands =\n self.asJava.commands()\n\n /** Locks every client attached to this server. */\n def lock(): Unit =\n self.asJava.lock()\n\n /** The server's message log. */\n def messageLog: io.github.libtmux.MessageLog =\n self.asJava.messageLog()\n\n /** The command prompt's history. */\n def prompt: io.github.libtmux.Prompt =\n self.asJava.prompt()\n\n /** One of this server's wait-for channels, which is where a signal is sent and waited for. */\n def channel(name: String): io.github.libtmux.Channel =\n self.asJava.channel(name)\n\n /** Reads only validated tmux variable names, never caller-authored format syntax. */\n def variables(names: Vector[String]): _root_.scala.collection.immutable.VectorMap[String, String] =\n _root_.scala.collection.immutable.VectorMap.from(_root_.scala.jdk.CollectionConverters.MapHasAsScala(self.asJava.variables(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(names).asJava)).asScala)\n\n /** Chosen fields for every pane on the server, from one listing. */\n def paneFields(names: Vector[String]): _root_.scala.collection.immutable.VectorMap[io.github.libtmux.PaneId, _root_.scala.collection.immutable.VectorMap[String, String]] =\n _root_.scala.collection.immutable.VectorMap.from(_root_.scala.jdk.CollectionConverters.MapHasAsScala(self.asJava.paneFields(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(names).asJava)).asScala.map { case (k, v) => k -> _root_.scala.collection.immutable.VectorMap.from(_root_.scala.jdk.CollectionConverters.MapHasAsScala(v).asScala) })\n\n /** The server's key bindings: {@code prefix} when binding, every table when listing. */\n def keys: io.github.libtmux.Keys =\n self.asJava.keys()\n\n /** The server's paste buffers, which every session shares. */\n def buffers: io.github.libtmux.Buffers =\n self.asJava.buffers()\n\n /** Runs a file of tmux commands, as a configuration file would be run. */\n def sourceFile(file: java.nio.file.Path): Unit =\n self.asJava.sourceFile(file)\n\n /** The server-wide options, the ones tmux keeps once per server. */\n def options: io.github.libtmux.Options =\n self.asJava.options()\n\n /** The global session options every session inherits unless it sets its own. */\n def globalOptions: io.github.libtmux.Options =\n self.asJava.globalOptions()\n\n /** The server's environment, which every session inherits and every new process is given. */\n def environment: io.github.libtmux.Environment =\n self.asJava.environment()\n\n /** The global hooks every session inherits. */\n def hooks: io.github.libtmux.Hooks =\n self.asJava.hooks()\n\n /** Which tmux this server is running. */\n def version(): io.github.libtmux.TmuxVersion =\n self.asJava.version()\n\n /** Which server this is. */\n def identity: io.github.libtmux.ServerIdentity =\n self.asJava.identity()\n\n /** How this server was configured. */\n def config: io.github.libtmux.ServerConfig =\n self.asJava.config()\n\n /** Runs one tmux command against this server. */\n def cmd(argv: String*): io.github.libtmux.transport.CommandResult =\n self.asJava.cmd(argv*)\n\n /** Runs one tmux command against this server. */\n def cmd(argv: Vector[String]): io.github.libtmux.transport.CommandResult =\n self.asJava.cmd(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(argv).asJava)\n\n /** Runs one tmux command against this server, overriding the configured deadline. */\n def cmd(argv: Vector[String], timeout: _root_.scala.concurrent.duration.FiniteDuration): io.github.libtmux.transport.CommandResult =\n self.asJava.cmd(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(argv).asJava, _root_.scala.jdk.DurationConverters.ScalaDurationOps(timeout).toJava)\n\n /** Captures the whole hierarchy in at most four listings, retrying once if the server is\nreplaced. */\n def snapshot(): io.github.libtmux.snapshot.ServerSnapshot =\n self.asJava.snapshot()\n\n /** The sessions this expression matches, captured now. */\n def sessions(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Session]): Vector[Session] =\n _root_.scala.jdk.CollectionConverters.ListHasAsScala(self.asJava.sessions(expression.asJava)).asScala.iterator.map(v => Session.wrap(v)).toVector\n\n /** Every session, captured now. */\n def sessions(): Vector[Session] =\n _root_.scala.jdk.CollectionConverters.ListHasAsScala(self.asJava.sessions()).asScala.iterator.map(v => Session.wrap(v)).toVector\n\n /** Captures every winlink, preserving each session and index placement. */\n def windows(): Vector[Window] =\n _root_.scala.jdk.CollectionConverters.ListHasAsScala(self.asJava.windows()).asScala.iterator.map(v => Window.wrap(v)).toVector\n\n /** The winlinks this expression matches, captured now. */\n def windows(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Window]): Vector[Window] =\n _root_.scala.jdk.CollectionConverters.ListHasAsScala(self.asJava.windows(expression.asJava)).asScala.iterator.map(v => Window.wrap(v)).toVector\n\n /** Captures every pane on the server. */\n def panes(): Vector[Pane] =\n _root_.scala.jdk.CollectionConverters.ListHasAsScala(self.asJava.panes()).asScala.iterator.map(v => Pane.wrap(v)).toVector\n\n /** The panes this expression matches, captured now. */\n def panes(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Pane]): Vector[Pane] =\n _root_.scala.jdk.CollectionConverters.ListHasAsScala(self.asJava.panes(expression.asJava)).asScala.iterator.map(v => Pane.wrap(v)).toVector\n\n /** The one session this expression matches, captured now, or empty when none does. */\n def session(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Session]): Option[Session] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.asJava.session(expression.asJava)).toScala.map(v => Session.wrap(v))\n\n /** The one window link this expression matches, captured now, or empty when none does. */\n def window(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Window]): Option[Window] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.asJava.window(expression.asJava)).toScala.map(v => Window.wrap(v))\n\n /** The one pane this expression matches, captured now, or empty when none does. */\n def pane(expression: io.github.libtmux.scaladsl.query.Expr[io.github.libtmux.Pane]): Option[Pane] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.asJava.pane(expression.asJava)).toScala.map(v => Pane.wrap(v))\n\n /** How many tmux commands this server's transport runs at once, from {@link ServerConfig#maxConcurrentCommands()} for a server {@link #open}ed here. */\n def admissionBound: Int =\n self.asJava.admissionBound()\n\n /** The session with this name, captured now. */\n def session(name: String): Option[Session] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.asJava.session(name)).toScala.map(v => Session.wrap(v))\n\n /** The session with this id, captured now. */\n def session(id: io.github.libtmux.SessionId): Option[Session] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.asJava.session(id)).toScala.map(v => Session.wrap(v))\n\n /** The pane with this id, captured now. */\n def pane(id: io.github.libtmux.PaneId): Option[Pane] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.asJava.pane(id)).toScala.map(v => Pane.wrap(v))\n\n /** The winlink at this exact position, captured now. */\n def window(context: io.github.libtmux.snapshot.WindowContext): Option[Window] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.asJava.window(context)).toScala.map(v => Window.wrap(v))\n\n /** Every winlink of the window with this id, captured now. */\n def windows(id: io.github.libtmux.WindowId): Vector[Window] =\n _root_.scala.jdk.CollectionConverters.ListHasAsScala(self.asJava.windows(id)).asScala.iterator.map(v => Window.wrap(v)).toVector\n\n /** Captures every attached client. */\n def clients(): Vector[Client] =\n _root_.scala.jdk.CollectionConverters.ListHasAsScala(self.asJava.clients()).asScala.iterator.map(v => Client.wrap(v)).toVector\n\n /** Captures every session a client is attached to. */\n def attachedSessions(): Vector[Session] =\n _root_.scala.jdk.CollectionConverters.ListHasAsScala(self.asJava.attachedSessions()).asScala.iterator.map(v => Session.wrap(v)).toVector\n\n /** Runs a command that is expected to work, and raises when it did not. */\n def run(argv: Vector[String]): io.github.libtmux.transport.CommandResult =\n self.asJava.run(_root_.scala.jdk.CollectionConverters.SeqHasAsJava(argv).asJava)\n\n /** A builder holding every configuration and ownership choice this server made. */\n def toBuilder: io.github.libtmux.Server.Builder =\n self.asJava.toBuilder()\n }\n\n extension (self: Session) {\n\n /** The fields this capture stored. */\n def info: io.github.libtmux.snapshot.SessionState =\n self.asJava.info()\n\n /** The session's stable id. */\n def id: io.github.libtmux.SessionId =\n self.asJava.id()\n\n /** The session name, which a user may change at any time. */\n def name: String =\n self.asJava.name()\n\n /** Whether a client was attached when this was captured. */\n def attached: Boolean =\n self.asJava.attached()\n\n /** The server this session lives on. */\n def server: Server =\n Server.wrap(self.asJava.server())\n\n /** The window tmux had active in this session. */\n def activeWindow: Option[Window] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.asJava.activeWindow()).toScala.map(v => Window.wrap(v))\n\n /** The active pane of the active window. */\n def activePane: Option[Pane] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.asJava.activePane()).toScala.map(v => Pane.wrap(v))\n\n /** Makes a window of this session the active one. */\n def selectWindow(window: Window): Unit =\n self.asJava.selectWindow(window.asJava)\n\n /** Moves to the next window in this session, wrapping at the end. */\n def nextWindow(): Unit =\n self.asJava.nextWindow()\n\n /** Moves to the previous window in this session, wrapping at the start. */\n def previousWindow(): Unit =\n self.asJava.previousWindow()\n\n /** Returns to the window that was active before this one. */\n def lastWindow(): Unit =\n self.asJava.lastWindow()\n\n /** Detaches every client attached to this session, leaving the session running. */\n def detachClients(): Unit =\n self.asJava.detachClients()\n\n /** This session's own options. */\n def options: io.github.libtmux.Options =\n self.asJava.options()\n\n /** This session's own environment, which a process started in it is given on top of the\nserver's. */\n def environment: io.github.libtmux.Environment =\n self.asJava.environment()\n\n /** This session's own hooks. */\n def hooks: io.github.libtmux.Hooks =\n self.asJava.hooks()\n\n /** Sets the scrollback retained by panes created in this session. */\n def setHistoryLimit(lines: Int): Unit =\n self.asJava.setHistoryLimit(lines)\n\n /** This session's windows, in tmux's order. */\n def windows: Vector[Window] =\n _root_.scala.jdk.CollectionConverters.ListHasAsScala(self.asJava.windows()).asScala.iterator.map(v => Window.wrap(v)).toVector\n\n /** Creates a window in this session and returns that exact window. */\n def newWindow(name: String): Window =\n Window.wrap(self.asJava.newWindow(name))\n\n /** Creates a window in this session as described. */\n def newWindow(configure: io.github.libtmux.WindowSpec.Builder => Unit): Window =\n Window.wrap(self.asJava.newWindow(((it: io.github.libtmux.WindowSpec.Builder) => configure(it))))\n\n /** Creates a window in this session according to a spec, which may be reused across sessions. */\n def newWindow(spec: io.github.libtmux.WindowSpec): Window =\n Window.wrap(self.asJava.newWindow(spec))\n\n /** Expands a tmux format in this session's context, and answers with what it came to. */\n def expand(format: String): String =\n self.asJava.expand(format)\n\n /** Renames this session and returns its replacement capture. */\n def rename(name: String): Session =\n Session.wrap(self.asJava.rename(name))\n\n /** Ends this session. */\n def kill(): Unit =\n self.asJava.kill()\n\n /** Takes a new capture and returns this session as it is now. */\n def refresh(): Session =\n Session.wrap(self.asJava.refresh())\n }\n\n extension (self: Window) {\n\n /** The fields this capture stored. */\n def info: io.github.libtmux.snapshot.WindowState =\n self.asJava.info()\n\n /** The underlying window, shared by every link to it. */\n def id: io.github.libtmux.WindowId =\n self.asJava.id()\n\n /** Where this link sits in its session. */\n def index: io.github.libtmux.WindowIndex =\n self.asJava.index()\n\n /** The winlink this handle addresses. */\n def context: io.github.libtmux.snapshot.WindowContext =\n self.asJava.context()\n\n /** The window name. */\n def name: String =\n self.asJava.name()\n\n /** Whether this was its session's active window when captured. */\n def active: Boolean =\n self.asJava.active()\n\n /** Whether the underlying window is linked into more than one session. */\n def linked: Boolean =\n self.asJava.linked()\n\n /** How large the window was when captured, in terminal cells. */\n def size: io.github.libtmux.Dimensions =\n self.asJava.size()\n\n /** tmux's own layout for this window, in whichever form this server writes it. */\n def layout: io.github.libtmux.WindowLayout =\n self.asJava.layout()\n\n /** The pane tmux had active here. */\n def activePane: Option[Pane] =\n _root_.scala.jdk.OptionConverters.RichOptional(self.asJava.activePane()).toScala.map(v => Pane.wrap(v))\n\n /** Makes this the active window of its session. */\n def select(): Unit =\n self.asJava.select()\n\n /** The server this window lives on. */\n def server: Server =\n Server.wrap(self.asJava.server())\n\n /** The session this link belongs to. */\n def session: Session =\n Session.wrap(self.asJava.session())\n\n /** This window's own hooks, which every link to it shares. */\n def hooks: io.github.libtmux.Hooks =\n self.asJava.hooks()\n\n /** This window's own options, which every link to it shares. */\n def options: io.github.libtmux.Options =\n self.asJava.options()\n\n /** This link's panes, in tmux's order. */\n def panes: Vector[Pane] =\n _root_.scala.jdk.CollectionConverters.ListHasAsScala(self.asJava.panes()).asScala.iterator.map(v => Pane.wrap(v)).toVector\n\n /** Splits this window's active pane in half, putting the new one below it. */\n def split(): Pane =\n Pane.wrap(self.asJava.split())\n\n /** Splits this window's active pane as described. */\n def split(configure: io.github.libtmux.SplitSpec.Builder => Unit): Pane =\n Pane.wrap(self.asJava.split(((it: io.github.libtmux.SplitSpec.Builder) => configure(it))))\n\n /** Splits this window's active pane according to a spec, which may be reused across windows. */\n def split(spec: io.github.libtmux.SplitSpec): Pane =\n Pane.wrap(self.asJava.split(spec))\n\n /** Expands a tmux format in this window's context, and answers with what it came to. */\n def expand(format: String): String =\n self.asJava.expand(format)\n\n /** Renames this window and returns its replacement capture. */\n def rename(name: String): Window =\n Window.wrap(self.asJava.rename(name))\n\n /** Links this window into another session, so one window sits in both. */\n def linkTo(session: Session): Unit =\n self.asJava.linkTo(session.asJava)\n\n /** Removes this link, leaving the window wherever else it is linked. */\n def unlink(): Unit =\n self.asJava.unlink()\n\n /** Moves this window into another session. */\n def moveTo(session: Session): Unit =\n self.asJava.moveTo(session.asJava)\n\n /** Moves this window to an exact index in another session. */\n def moveTo(session: Session, index: Int): Unit =\n self.asJava.moveTo(session.asJava, index)\n\n /** Resizes this window in terminal cells. */\n def resizeTo(size: io.github.libtmux.Dimensions): Unit =\n self.asJava.resizeTo(size)\n\n /** Copies input to one pane into every pane in this window, until {@link #stopSynchronizingPanes}. */\n def synchronizePanes(): Unit =\n self.asJava.synchronizePanes()\n\n /** Stops copying input between this window's panes. */\n def stopSynchronizingPanes(): Unit =\n self.asJava.stopSynchronizingPanes()\n\n /** Rotates the panes within this window. */\n def rotate(): Unit =\n self.asJava.rotate()\n\n /** Rearranges this window's panes into one of tmux's built-in layouts. */\n def selectLayout(layout: io.github.libtmux.Layout): Unit =\n self.asJava.selectLayout(layout)\n\n /** Moves to the next built-in layout, as tmux's own binding does. */\n def nextLayout(): Unit =\n self.asJava.nextLayout()\n\n /** Moves to the previous built-in layout, as tmux's own binding does. */\n def previousLayout(): Unit =\n self.asJava.previousLayout()\n\n /** Restores an exact arrangement previously read from {@link #layout()}. */\n def applyLayout(layout: io.github.libtmux.WindowLayout): Unit =\n self.asJava.applyLayout(layout)\n\n /** As {@link #applyLayout(WindowLayout)}, for a layout held as text — one saved to a file, say. */\n def applyLayout(layout: String): Unit =\n self.asJava.applyLayout(layout)\n\n /** Kills what is running in this window and starts it again. */\n def respawn(): Unit =\n self.asJava.respawn()\n\n /** Shows a popup over this window, running a command in it. */\n def displayPopup(shellCommand: String): Unit =\n self.asJava.displayPopup(shellCommand)\n\n /** Closes this window. */\n def kill(): Unit =\n self.asJava.kill()\n\n /** Takes a new capture and returns this winlink as it is now. */\n def refresh(): Window =\n Window.wrap(self.asJava.refresh())\n }\n"},"repo":"libtmux/libtmux-java"} diff --git a/site/src/data/tmux-usage/csharp.json b/site/src/data/tmux-usage/csharp.json new file mode 100644 index 000000000..1f9f4ede6 --- /dev/null +++ b/site/src/data/tmux-usage/csharp.json @@ -0,0 +1,1834 @@ +{ + "commands": [ + "attach-session", + "bind-key", + "break-pane", + "capture-pane", + "choose-buffer", + "choose-client", + "choose-tree", + "clear-history", + "clear-prompt-history", + "clock-mode", + "command-prompt", + "confirm-before", + "copy-mode", + "customize-mode", + "delete-buffer", + "detach-client", + "display-menu", + "display-message", + "display-panes", + "display-popup", + "find-window", + "has-session", + "if-shell", + "join-pane", + "kill-pane", + "kill-server", + "kill-session", + "kill-window", + "last-pane", + "last-window", + "link-window", + "list-buffers", + "list-clients", + "list-commands", + "list-keys", + "list-panes", + "list-sessions", + "list-windows", + "load-buffer", + "lock-client", + "lock-server", + "lock-session", + "move-pane", + "move-window", + "new-pane", + "new-session", + "new-window", + "next-layout", + "next-window", + "paste-buffer", + "pipe-pane", + "previous-layout", + "previous-window", + "refresh-client", + "rename-session", + "rename-window", + "resize-pane", + "resize-window", + "respawn-pane", + "respawn-window", + "rotate-window", + "run-shell", + "save-buffer", + "select-layout", + "select-pane", + "select-window", + "send-keys", + "send-prefix", + "server-access", + "set-buffer", + "set-environment", + "set-hook", + "set-option", + "set-window-option", + "show-buffer", + "show-environment", + "show-hooks", + "show-messages", + "show-options", + "show-prompt-history", + "show-window-options", + "source-file", + "split-window", + "start-server", + "suspend-client", + "swap-pane", + "swap-window", + "switch-client", + "unbind-key", + "unlink-window", + "wait-for" + ], + "port": "csharp", + "repo": "libtmux/libtmux-dotnet", + "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", + "schemaVersion": 1, + "symbols": { + "LibTmux.Client.GetAsync": [ + { + "command": "list-clients", + "evidence": [ + "src/LibTmux/Server.Clients.cs:41", + "src/LibTmux/Server.Clients.cs:27", + "src/LibTmux/Client.Administration.cs:79" + ], + "reviewed": true, + "scope": null + } + ], + "LibTmux.Client.GetAttachedPaneAsync": [ + { + "command": "list-clients", + "evidence": [ + "src/LibTmux/Server.Clients.cs:41", + "src/LibTmux/Server.Clients.cs:27", + "src/LibTmux/Client.Administration.cs:114", + "src/LibTmux/Client.Administration.cs:172" + ], + "reviewed": true, + "scope": null + }, + { + "command": "list-panes", + "evidence": [ + "src/LibTmux/Window.Relations.cs:123", + "src/LibTmux/Client.Administration.cs:142", + "src/LibTmux/Client.Administration.cs:172" + ], + "reviewed": true, + "scope": "window" + } + ], + "LibTmux.Client.GetAttachedSessionAsync": [ + { + "command": "list-clients", + "evidence": [ + "src/LibTmux/Server.Clients.cs:41", + "src/LibTmux/Server.Clients.cs:27", + "src/LibTmux/Client.Administration.cs:114", + "src/LibTmux/Client.Administration.cs:156" + ], + "reviewed": true, + "scope": null + }, + { + "command": "list-sessions", + "evidence": [ + "src/LibTmux/Server.Collections.cs:18", + "src/LibTmux/Client.Administration.cs:123", + "src/LibTmux/Client.Administration.cs:156" + ], + "reviewed": true, + "scope": null + } + ], + "LibTmux.Client.GetAttachedWindowAsync": [ + { + "command": "list-clients", + "evidence": [ + "src/LibTmux/Server.Clients.cs:41", + "src/LibTmux/Server.Clients.cs:27", + "src/LibTmux/Client.Administration.cs:114", + "src/LibTmux/Client.Administration.cs:164" + ], + "reviewed": true, + "scope": null + }, + { + "command": "list-windows", + "evidence": [ + "src/LibTmux/Session.Relations.cs:153", + "src/LibTmux/Client.Administration.cs:133", + "src/LibTmux/Client.Administration.cs:164" + ], + "reviewed": true, + "scope": "session" + } + ], + "LibTmux.Client.ResolveAttachmentAsync": [ + { + "command": "list-clients", + "evidence": [ + "src/LibTmux/Server.Clients.cs:41", + "src/LibTmux/Server.Clients.cs:27", + "src/LibTmux/Client.Administration.cs:114" + ], + "forwardable": true, + "reviewed": true, + "scope": null + } + ], + "LibTmux.ControlModeSubscriptions.SubscribeSessionAsync": [ + { + "command": "refresh-client", + "evidence": [ + "src/LibTmux/ControlMode/ControlModeSubscriptions.cs:37" + ], + "scope": null + } + ], + "LibTmux.Pane.BreakAsync": [ + { + "command": "break-pane", + "evidence": [ + "src/LibTmux/Pane.Topology.cs:187" + ], + "scope": null + }, + { + "command": "rename-window", + "evidence": [ + "src/LibTmux/Pane.Topology.cs:203" + ], + "scope": null + } + ], + "LibTmux.Pane.CaptureAsync": [ + { + "command": "capture-pane", + "evidence": [ + "src/LibTmux/Pane.Capture.cs:20", + "src/LibTmux/Pane.Capture.cs:18", + "src/LibTmux/Pane.Capture.cs:144" + ], + "scope": null + } + ], + "LibTmux.Pane.CaptureToBufferAsync": [ + { + "command": "capture-pane", + "evidence": [ + "src/LibTmux/Pane.Capture.cs:96", + "src/LibTmux/Pane.Capture.cs:97", + "src/LibTmux/Pane.Capture.cs:144" + ], + "scope": null + } + ], + "LibTmux.Pane.ChooseBufferAsync": [ + { + "command": "choose-buffer", + "evidence": [ + "src/LibTmux/Pane.Display.cs:335" + ], + "scope": null + } + ], + "LibTmux.Pane.ChooseClientAsync": [ + { + "command": "choose-client", + "evidence": [ + "src/LibTmux/Pane.Display.cs:341" + ], + "scope": null + } + ], + "LibTmux.Pane.ChooseTreeAsync": [ + { + "command": "choose-tree", + "evidence": [ + "src/LibTmux/Pane.Display.cs:353", + "src/LibTmux/Pane.Display.cs:352", + "src/LibTmux/Pane.Display.cs:60" + ], + "scope": null + } + ], + "LibTmux.Pane.ClearHistoryAsync": [ + { + "command": "clear-history", + "evidence": [ + "src/LibTmux/Pane.Input.cs:198" + ], + "scope": null + } + ], + "LibTmux.Pane.CreatePaneAsync": [ + { + "command": "new-pane", + "evidence": [ + "src/LibTmux/Pane.Topology.cs:251", + "src/LibTmux/Pane.Topology.cs:249", + "src/LibTmux/Pane.Topology.cs:48" + ], + "scope": null + } + ], + "LibTmux.Pane.DisplayMessageAsync": [ + { + "command": "display-message", + "evidence": [ + "src/LibTmux/Pane.Display.cs:274" + ], + "scope": null + } + ], + "LibTmux.Pane.DisplayPaneNumbersAsync": [ + { + "command": "display-panes", + "evidence": [ + "src/LibTmux/Pane.Display.cs:210" + ], + "scope": null + } + ], + "LibTmux.Pane.DisplayPopupAsync": [ + { + "command": "display-popup", + "evidence": [ + "src/LibTmux/Pane.Display.cs:181", + "src/LibTmux/Pane.Display.cs:180", + "src/LibTmux/Pane.Display.cs:19" + ], + "scope": null + } + ], + "LibTmux.Pane.EnterAsync": [ + { + "command": "send-keys", + "evidence": [ + "src/LibTmux/Pane.Input.cs:145" + ], + "scope": null + } + ], + "LibTmux.Pane.EnterClockModeAsync": [ + { + "command": "clock-mode", + "evidence": [ + "src/LibTmux/Pane.Display.cs:322" + ], + "scope": null + } + ], + "LibTmux.Pane.EnterCopyModeAsync": [ + { + "command": "copy-mode", + "evidence": [ + "src/LibTmux/Pane.Display.cs:315", + "src/LibTmux/Pane.Display.cs:314", + "src/LibTmux/Pane.Display.cs:103" + ], + "scope": null + } + ], + "LibTmux.Pane.EnterCustomizeModeAsync": [ + { + "command": "customize-mode", + "evidence": [ + "src/LibTmux/Pane.Display.cs:328" + ], + "scope": null + } + ], + "LibTmux.Pane.FindWindowAsync": [ + { + "command": "find-window", + "evidence": [ + "src/LibTmux/Pane.Display.cs:366", + "src/LibTmux/Pane.Display.cs:365", + "src/LibTmux/Pane.Display.cs:135" + ], + "scope": null + } + ], + "LibTmux.Pane.JoinAsync": [ + { + "command": "join-pane", + "evidence": [ + "src/LibTmux/Pane.Topology.cs:262" + ], + "scope": null + } + ], + "LibTmux.Pane.KillAsync": [ + { + "command": "kill-pane", + "evidence": [ + "src/LibTmux/Pane.Topology.cs:300" + ], + "scope": null + } + ], + "LibTmux.Pane.MoveAsync": [ + { + "command": "move-pane", + "evidence": [ + "src/LibTmux/Pane.Topology.cs:271" + ], + "scope": null + } + ], + "LibTmux.Pane.PasteBufferAsync": [ + { + "command": "paste-buffer", + "evidence": [ + "src/LibTmux/Pane.Input.cs:245", + "src/LibTmux/Pane.Input.cs:244", + "src/LibTmux/Pane.Input.cs:209" + ], + "scope": null + } + ], + "LibTmux.Pane.PipeAsync": [ + { + "command": "pipe-pane", + "evidence": [ + "src/LibTmux/Pane.Capture.cs:112", + "src/LibTmux/Pane.Capture.cs:111", + "src/LibTmux/Pane.Capture.cs:117" + ], + "scope": null + } + ], + "LibTmux.Pane.ResetAsync": [ + { + "command": "clear-history", + "evidence": [ + "src/LibTmux/Pane.Input.cs:178" + ], + "scope": null + }, + { + "command": "send-keys", + "evidence": [ + "src/LibTmux/Pane.Input.cs:175" + ], + "scope": null + } + ], + "LibTmux.Pane.ResizeAsync": [ + { + "command": "resize-pane", + "evidence": [ + "src/LibTmux/Pane.Topology.cs:337", + "src/LibTmux/Pane.Topology.cs:334", + "src/LibTmux/Pane.Topology.cs:426" + ], + "scope": null + } + ], + "LibTmux.Pane.RespawnAsync": [ + { + "command": "respawn-pane", + "evidence": [ + "src/LibTmux/Pane.Topology.cs:317", + "src/LibTmux/Pane.Topology.cs:316", + "src/LibTmux/Pane.Topology.cs:11" + ], + "scope": null + } + ], + "LibTmux.Pane.SelectAsync": [ + { + "command": "select-pane", + "evidence": [ + "src/LibTmux/Pane.Topology.cs:395", + "src/LibTmux/Pane.Topology.cs:392", + "src/LibTmux/Pane.Topology.cs:461" + ], + "scope": null + } + ], + "LibTmux.Pane.SendKeysAndWaitAsync": [ + { + "command": "send-keys", + "evidence": [ + "src/LibTmux/Pane.Input.cs:24", + "src/LibTmux/Pane.Input.cs:71", + "src/LibTmux/Pane.Input.cs:94", + "src/LibTmux/Pane.Input.cs:100", + "src/LibTmux/Pane.Waiting.cs:169" + ], + "forwardable": true, + "reviewed": true, + "scope": null + } + ], + "LibTmux.Pane.SendKeysAsync": [ + { + "command": "send-keys", + "evidence": [ + "src/LibTmux/Pane.Input.cs:24", + "src/LibTmux/Pane.Input.cs:71", + "src/LibTmux/Pane.Input.cs:94", + "src/LibTmux/Pane.Input.cs:100" + ], + "forwardable": true, + "reviewed": true, + "scope": null + } + ], + "LibTmux.Pane.SendPrefixAsync": [ + { + "command": "send-prefix", + "evidence": [ + "src/LibTmux/Pane.Input.cs:135" + ], + "scope": null + } + ], + "LibTmux.Pane.SendTextAndWaitAsync": [ + { + "command": "send-keys", + "evidence": [ + "src/LibTmux/Pane.Input.cs:24", + "src/LibTmux/Pane.Input.cs:71", + "src/LibTmux/Pane.Input.cs:94", + "src/LibTmux/Pane.Input.cs:100", + "src/LibTmux/Pane.Waiting.cs:169", + "src/LibTmux/Pane.Waiting.cs:103" + ], + "forwardable": true, + "reviewed": true, + "scope": null + } + ], + "LibTmux.Pane.SendTextAsync": [ + { + "command": "send-keys", + "evidence": [ + "src/LibTmux/Pane.Input.cs:24", + "src/LibTmux/Pane.Input.cs:71", + "src/LibTmux/Pane.Input.cs:94", + "src/LibTmux/Pane.Input.cs:100", + "src/LibTmux/Pane.Input.cs:119" + ], + "forwardable": true, + "reviewed": true, + "scope": null + } + ], + "LibTmux.Pane.SetTitleAsync": [ + { + "command": "select-pane", + "evidence": [ + "src/LibTmux/Pane.Topology.cs:377" + ], + "scope": null + } + ], + "LibTmux.Pane.SplitAsync": [ + { + "command": "split-window", + "evidence": [ + "src/LibTmux/Pane.Topology.cs:576", + "src/LibTmux/Pane.Topology.cs:105", + "src/LibTmux/Pane.Topology.cs:232" + ], + "forwardable": true, + "reviewed": true, + "scope": null + } + ], + "LibTmux.Pane.SwapAsync": [ + { + "command": "swap-pane", + "evidence": [ + "src/LibTmux/Pane.Topology.cs:283", + "src/LibTmux/Pane.Topology.cs:282", + "src/LibTmux/Pane.Topology.cs:403" + ], + "scope": null + } + ], + "LibTmux.Server.AttachSessionAsync": [ + { + "command": "attach-session", + "evidence": [ + "src/LibTmux/Session.Lifecycle.cs:424", + "src/LibTmux/Server.Lifecycle.cs:358", + "src/LibTmux/Server.Lifecycle.cs:357" + ], + "forwardable": true, + "reviewed": true, + "scope": null + } + ], + "LibTmux.Server.CaptureSnapshotAsync": [ + { + "command": "list-panes", + "evidence": [ + "src/LibTmux/Snapshots/ServerSnapshot.cs:120", + "src/LibTmux/Snapshots/ServerSnapshot.cs:55", + "src/LibTmux/Server.Snapshots.cs:119", + "src/LibTmux/Server.Snapshots.cs:98", + "src/LibTmux/Server.Snapshots.cs:91" + ], + "reviewed": true, + "scope": "server" + }, + { + "command": "list-sessions", + "evidence": [ + "src/LibTmux/Snapshots/ServerSnapshot.cs:106", + "src/LibTmux/Snapshots/ServerSnapshot.cs:55", + "src/LibTmux/Server.Snapshots.cs:119", + "src/LibTmux/Server.Snapshots.cs:98", + "src/LibTmux/Server.Snapshots.cs:91" + ], + "reviewed": true, + "scope": null + }, + { + "command": "list-windows", + "evidence": [ + "src/LibTmux/Snapshots/ServerSnapshot.cs:115", + "src/LibTmux/Snapshots/ServerSnapshot.cs:115", + "src/LibTmux/Snapshots/ServerSnapshot.cs:55", + "src/LibTmux/Server.Snapshots.cs:119", + "src/LibTmux/Server.Snapshots.cs:98", + "src/LibTmux/Server.Snapshots.cs:91" + ], + "reviewed": true, + "scope": "server" + } + ], + "LibTmux.Server.ClearPromptHistoryAsync": [ + { + "command": "clear-prompt-history", + "evidence": [ + "src/LibTmux/Server.Interaction.cs:75" + ], + "scope": null + } + ], + "LibTmux.Server.ConfigureAccessAsync": [ + { + "command": "server-access", + "evidence": [ + "src/LibTmux/Server.Administration.cs:39", + "src/LibTmux/Server.Administration.cs:37", + "src/LibTmux/Server.Administration.cs:12" + ], + "scope": null + } + ], + "LibTmux.Server.ConfirmBeforeAsync": [ + { + "command": "confirm-before", + "evidence": [ + "src/LibTmux/Server.Interaction.cs:138", + "src/LibTmux/Server.Interaction.cs:137", + "src/LibTmux/Server.Interaction.cs:102" + ], + "scope": null + } + ], + "LibTmux.Server.CreateOwnedAsync": [ + { + "command": "list-sessions", + "evidence": [ + "src/LibTmux/Server.Lifecycle.cs:297", + "src/LibTmux/Server.Lifecycle.cs:262" + ], + "scope": null + } + ], + "LibTmux.Server.CreateOwnedSessionAsync": [ + { + "command": "new-session", + "evidence": [ + "src/LibTmux/Server.Lifecycle.cs:374", + "src/LibTmux/Server.Lifecycle.cs:179", + "src/LibTmux/Server.Lifecycle.cs:141", + "src/LibTmux/Server.Lifecycle.cs:334" + ], + "forwardable": true, + "reviewed": true, + "scope": null + } + ], + "LibTmux.Server.CreateSessionAsync": [ + { + "command": "new-session", + "evidence": [ + "src/LibTmux/Server.Lifecycle.cs:374", + "src/LibTmux/Server.Lifecycle.cs:179", + "src/LibTmux/Server.Lifecycle.cs:141" + ], + "forwardable": true, + "reviewed": true, + "scope": null + } + ], + "LibTmux.Server.CreateSessionWithReceiptAsync": [ + { + "command": "new-session", + "evidence": [ + "src/LibTmux/Server.Lifecycle.cs:179", + "src/LibTmux/Server.Lifecycle.cs:179", + "src/LibTmux/Server.Lifecycle.cs:374" + ], + "scope": null + } + ], + "LibTmux.Server.DetachAllClientsAsync": [ + { + "command": "detach-client", + "evidence": [ + "src/LibTmux/Server.Clients.cs:190", + "src/LibTmux/Server.Clients.cs:73" + ], + "scope": null + } + ], + "LibTmux.Server.DetachClientAsync": [ + { + "command": "detach-client", + "evidence": [ + "src/LibTmux/Server.Clients.cs:190", + "src/LibTmux/Server.Clients.cs:55" + ], + "scope": null + } + ], + "LibTmux.Server.DisplayMessageAsync": [ + { + "command": "display-message", + "evidence": [ + "src/LibTmux/Server.Display.cs:65", + "src/LibTmux/Server.Display.cs:62", + "src/LibTmux/Server.Display.cs:18" + ], + "scope": null + } + ], + "LibTmux.Server.EnterControlModeAsync": [ + { + "command": "refresh-client", + "evidence": [ + "src/LibTmux/Server.ControlMode.cs:84", + "src/LibTmux/Server.ControlMode.cs:32" + ], + "scope": null + } + ], + "LibTmux.Server.FindPaneAsync": [ + { + "command": "display-message", + "evidence": [ + "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:125", + "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:107", + "src/LibTmux/Materialization/RelationReader.cs:53", + "src/LibTmux/Server.Identity.cs:303" + ], + "reviewed": true, + "scope": null + } + ], + "LibTmux.Server.FindSessionAsync": [ + { + "command": "display-message", + "evidence": [ + "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:125", + "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:107", + "src/LibTmux/Materialization/RelationReader.cs:53", + "src/LibTmux/Server.Identity.cs:229" + ], + "reviewed": true, + "scope": null + } + ], + "LibTmux.Server.FindWindowAsync": [ + { + "command": "display-message", + "evidence": [ + "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:125", + "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:107", + "src/LibTmux/Materialization/RelationReader.cs:53", + "src/LibTmux/Server.Identity.cs:266" + ], + "reviewed": true, + "scope": null + } + ], + "LibTmux.Server.GetAttachedSessionsAsync": [ + { + "command": "list-sessions", + "evidence": [ + "src/LibTmux/Server.Collections.cs:36" + ], + "scope": null + } + ], + "LibTmux.Server.GetClientsAsync": [ + { + "command": "list-clients", + "evidence": [ + "src/LibTmux/Server.Clients.cs:41", + "src/LibTmux/Server.Clients.cs:27" + ], + "scope": null + } + ], + "LibTmux.Server.GetCommandsAsync": [ + { + "command": "list-commands", + "evidence": [ + "src/LibTmux/Server.Administration.cs:111" + ], + "scope": null + } + ], + "LibTmux.Server.GetMessagesAsync": [ + { + "command": "show-messages", + "evidence": [ + "src/LibTmux/Server.Administration.cs:92" + ], + "scope": null + } + ], + "LibTmux.Server.GetPaneAsync": [ + { + "command": "display-message", + "evidence": [ + "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:125", + "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:107", + "src/LibTmux/Materialization/RelationReader.cs:53", + "src/LibTmux/Server.Identity.cs:303", + "src/LibTmux/Server.Identity.cs:288" + ], + "reviewed": true, + "scope": null + } + ], + "LibTmux.Server.GetPanesAsync": [ + { + "command": "list-panes", + "evidence": [ + "src/LibTmux/Server.Collections.cs:74" + ], + "scope": "server" + } + ], + "LibTmux.Server.GetPromptHistoryAsync": [ + { + "command": "show-prompt-history", + "evidence": [ + "src/LibTmux/Server.Interaction.cs:92" + ], + "scope": null + } + ], + "LibTmux.Server.GetSessionAsync": [ + { + "command": "display-message", + "evidence": [ + "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:125", + "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:107", + "src/LibTmux/Materialization/RelationReader.cs:53", + "src/LibTmux/Server.Identity.cs:229", + "src/LibTmux/Server.Identity.cs:214" + ], + "reviewed": true, + "scope": null + } + ], + "LibTmux.Server.GetSessionsAsync": [ + { + "command": "list-sessions", + "evidence": [ + "src/LibTmux/Server.Collections.cs:17" + ], + "scope": null + } + ], + "LibTmux.Server.GetWindowAsync": [ + { + "command": "display-message", + "evidence": [ + "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:125", + "src/LibTmux/Materialization/TmuxMaterializationQuery.cs:107", + "src/LibTmux/Materialization/RelationReader.cs:53", + "src/LibTmux/Server.Identity.cs:266", + "src/LibTmux/Server.Identity.cs:251" + ], + "reviewed": true, + "scope": null + } + ], + "LibTmux.Server.GetWindowsAsync": [ + { + "command": "list-windows", + "evidence": [ + "src/LibTmux/Server.Collections.cs:60" + ], + "scope": "server" + } + ], + "LibTmux.Server.HasSessionAsync": [ + { + "command": "has-session", + "evidence": [ + "src/LibTmux/Server.Lifecycle.cs:119" + ], + "scope": null + } + ], + "LibTmux.Server.IfShellAsync": [ + { + "command": "if-shell", + "evidence": [ + "src/LibTmux/Server.Execution.cs:99", + "src/LibTmux/Server.Execution.cs:99", + "src/LibTmux/Server.Execution.cs:104" + ], + "scope": null + } + ], + "LibTmux.Server.InspectAsync": [ + { + "command": "display-message", + "evidence": [ + "src/LibTmux/Server.Identity.cs:121" + ], + "scope": null + } + ], + "LibTmux.Server.IsAliveAsync": [ + { + "command": "list-sessions", + "evidence": [ + "src/LibTmux/Server.Lifecycle.cs:44" + ], + "scope": null + } + ], + "LibTmux.Server.KillAsync": [ + { + "command": "kill-server", + "evidence": [ + "src/LibTmux/Server.Lifecycle.cs:75" + ], + "scope": null + } + ], + "LibTmux.Server.KillSessionAsync": [ + { + "command": "kill-session", + "evidence": [ + "src/LibTmux/Server.Lifecycle.cs:95" + ], + "scope": null + } + ], + "LibTmux.Server.LockAsync": [ + { + "command": "lock-server", + "evidence": [ + "src/LibTmux/Server.Administration.cs:72" + ], + "scope": null + } + ], + "LibTmux.Server.LockClientAsync": [ + { + "command": "lock-client", + "evidence": [ + "src/LibTmux/Server.Clients.cs:82" + ], + "scope": null + } + ], + "LibTmux.Server.RefreshClientAsync": [ + { + "command": "refresh-client", + "evidence": [ + "src/LibTmux/Server.Clients.cs:114" + ], + "scope": null + } + ], + "LibTmux.Server.RunShellAsync": [ + { + "command": "run-shell", + "evidence": [ + "src/LibTmux/Server.Execution.cs:83", + "src/LibTmux/Server.Execution.cs:80", + "src/LibTmux/Server.Execution.cs:17" + ], + "scope": null + } + ], + "LibTmux.Server.SearchClientsAsync": [ + { + "command": "list-clients", + "evidence": [ + "src/LibTmux/Server.Clients.cs:41", + "src/LibTmux/Server.Queries.cs:41", + "src/LibTmux/Query/NativeFilterSearch.cs:68" + ], + "forwardable": true, + "reviewed": true, + "scope": null + } + ], + "LibTmux.Server.SearchPanesAsync": [ + { + "command": "list-panes", + "evidence": [ + "src/LibTmux/Query/NativeFilterSearch.cs:50" + ], + "scope": "server" + } + ], + "LibTmux.Server.SearchSessionsAsync": [ + { + "command": "list-sessions", + "evidence": [ + "src/LibTmux/Query/NativeFilterSearch.cs:20" + ], + "scope": null + } + ], + "LibTmux.Server.SearchWindowsAsync": [ + { + "command": "list-windows", + "evidence": [ + "src/LibTmux/Query/NativeFilterSearch.cs:35" + ], + "scope": "server" + } + ], + "LibTmux.Server.ShowCommandPromptAsync": [ + { + "command": "command-prompt", + "evidence": [ + "src/LibTmux/Server.Interaction.cs:59", + "src/LibTmux/Server.Interaction.cs:58", + "src/LibTmux/Server.Interaction.cs:11" + ], + "scope": null + } + ], + "LibTmux.Server.ShowMenuAsync": [ + { + "command": "display-menu", + "evidence": [ + "src/LibTmux/Server.Interaction.cs:199", + "src/LibTmux/Server.Interaction.cs:198", + "src/LibTmux/Server.Interaction.cs:148" + ], + "scope": null + } + ], + "LibTmux.Server.SourceFileAsync": [ + { + "command": "source-file", + "evidence": [ + "src/LibTmux/Server.Administration.cs:65" + ], + "scope": null + } + ], + "LibTmux.Server.StartServerAsync": [ + { + "command": "start-server", + "evidence": [ + "src/LibTmux/Server.Lifecycle.cs:26" + ], + "scope": null + } + ], + "LibTmux.Server.SuspendClientAsync": [ + { + "command": "suspend-client", + "evidence": [ + "src/LibTmux/Server.Clients.cs:91" + ], + "scope": null + } + ], + "LibTmux.Server.SwitchClientAsync": [ + { + "command": "switch-client", + "evidence": [ + "src/LibTmux/Server.Clients.cs:126" + ], + "scope": null + } + ], + "LibTmux.Server.ThrowIfDeadAsync": [ + { + "command": "list-sessions", + "evidence": [ + "src/LibTmux/Server.Lifecycle.cs:61" + ], + "scope": null + } + ], + "LibTmux.Server.WaitForAsync": [ + { + "command": "wait-for", + "evidence": [ + "src/LibTmux/Server.Execution.cs:147", + "src/LibTmux/Server.Execution.cs:147", + "src/LibTmux/Server.Execution.cs:233" + ], + "scope": null + } + ], + "LibTmux.Session.AttachAsync": [ + { + "command": "attach-session", + "evidence": [ + "src/LibTmux/Session.Lifecycle.cs:278", + "src/LibTmux/Session.Lifecycle.cs:279", + "src/LibTmux/Session.Lifecycle.cs:424" + ], + "scope": null + } + ], + "LibTmux.Session.CreateOwnedWindowAsync": [ + { + "command": "new-window", + "evidence": [ + "src/LibTmux/Session.Lifecycle.cs:470", + "src/LibTmux/Session.Lifecycle.cs:343", + "src/LibTmux/Session.Lifecycle.cs:342", + "src/LibTmux/Session.Lifecycle.cs:295", + "src/LibTmux/Session.WindowNavigation.cs:32" + ], + "forwardable": true, + "reviewed": true, + "scope": null + } + ], + "LibTmux.Session.CreateWindowAsync": [ + { + "command": "new-window", + "evidence": [ + "src/LibTmux/Session.Lifecycle.cs:470", + "src/LibTmux/Session.Lifecycle.cs:343", + "src/LibTmux/Session.Lifecycle.cs:342", + "src/LibTmux/Session.Lifecycle.cs:295" + ], + "forwardable": true, + "reviewed": true, + "scope": null + } + ], + "LibTmux.Session.CreateWindowWithReceiptAsync": [ + { + "command": "new-window", + "evidence": [ + "src/LibTmux/Session.Lifecycle.cs:470", + "src/LibTmux/Session.Lifecycle.cs:343", + "src/LibTmux/Session.Lifecycle.cs:342", + "src/LibTmux/Session.Lifecycle.cs:321" + ], + "forwardable": true, + "reviewed": true, + "scope": null + } + ], + "LibTmux.Session.DetachClientAsync": [ + { + "command": "detach-client", + "evidence": [ + "src/LibTmux/Session.Lifecycle.cs:140" + ], + "scope": null + } + ], + "LibTmux.Session.FindWindowAsync": [ + { + "command": "list-windows", + "evidence": [ + "src/LibTmux/Session.Relations.cs:98" + ], + "scope": "session" + } + ], + "LibTmux.Session.GetActivePaneAsync": [ + { + "command": "list-panes", + "evidence": [ + "src/LibTmux/Session.Relations.cs:182" + ], + "scope": "session" + } + ], + "LibTmux.Session.GetPanesAsync": [ + { + "command": "list-panes", + "evidence": [ + "src/LibTmux/Session.Relations.cs:167" + ], + "scope": "session" + } + ], + "LibTmux.Session.GetWindowAsync": [ + { + "command": "list-windows", + "evidence": [ + "src/LibTmux/Session.Relations.cs:100", + "src/LibTmux/Session.Relations.cs:101", + "src/LibTmux/Session.Relations.cs:63" + ], + "reviewed": true, + "scope": "session" + } + ], + "LibTmux.Session.GetWindowsAsync": [ + { + "command": "list-windows", + "evidence": [ + "src/LibTmux/Session.Relations.cs:153" + ], + "scope": "session" + } + ], + "LibTmux.Session.KillAsync": [ + { + "command": "kill-session", + "evidence": [ + "src/LibTmux/Session.Lifecycle.cs:119" + ], + "scope": null + } + ], + "LibTmux.Session.KillWindowAsync": [ + { + "command": "kill-window", + "evidence": [ + "src/LibTmux/Session.Lifecycle.cs:194" + ], + "scope": null + } + ], + "LibTmux.Session.LockAsync": [ + { + "command": "lock-session", + "evidence": [ + "src/LibTmux/Session.Lifecycle.cs:126" + ], + "scope": null + } + ], + "LibTmux.Session.RenameAsync": [ + { + "command": "rename-session", + "evidence": [ + "src/LibTmux/Session.Lifecycle.cs:79" + ], + "scope": null + } + ], + "LibTmux.Session.SearchPanesAsync": [ + { + "command": "list-panes", + "evidence": [ + "src/LibTmux/Session.Lifecycle.cs:243" + ], + "scope": "session" + } + ], + "LibTmux.Session.SearchWindowsAsync": [ + { + "command": "list-windows", + "evidence": [ + "src/LibTmux/Session.Lifecycle.cs:222" + ], + "scope": "session" + } + ], + "LibTmux.Session.SelectLastWindowAsync": [ + { + "command": "last-window", + "evidence": [ + "src/LibTmux/Session.WindowNavigation.cs:16" + ], + "scope": null + } + ], + "LibTmux.Session.SelectNextWindowAsync": [ + { + "command": "next-window", + "evidence": [ + "src/LibTmux/Session.Lifecycle.cs:169" + ], + "scope": null + } + ], + "LibTmux.Session.SelectPreviousWindowAsync": [ + { + "command": "previous-window", + "evidence": [ + "src/LibTmux/Session.Lifecycle.cs:182" + ], + "scope": null + } + ], + "LibTmux.Session.SelectWindowAsync": [ + { + "command": "select-window", + "evidence": [ + "src/LibTmux/Session.Lifecycle.cs:157" + ], + "scope": null + } + ], + "LibTmux.Session.SwitchClientAsync": [ + { + "command": "switch-client", + "evidence": [ + "src/LibTmux/Session.Lifecycle.cs:205" + ], + "scope": null + } + ], + "LibTmux.TmuxBuffers.DeleteAsync": [ + { + "command": "delete-buffer", + "evidence": [ + "src/LibTmux/Server.Buffers.cs:71", + "src/LibTmux/Server.Buffers.cs:73", + "src/LibTmux/Buffers/TmuxBuffers.cs:78" + ], + "forwardable": true, + "reviewed": true, + "scope": null + } + ], + "LibTmux.TmuxBuffers.GetAllAsync": [ + { + "command": "list-buffers", + "evidence": [ + "src/LibTmux/Server.Buffers.cs:89", + "src/LibTmux/Buffers/TmuxBuffers.cs:85" + ], + "scope": null + } + ], + "LibTmux.TmuxBuffers.GetAsync": [ + { + "command": "show-buffer", + "evidence": [ + "src/LibTmux/Server.Buffers.cs:61", + "src/LibTmux/Buffers/TmuxBuffers.cs:69" + ], + "scope": null + } + ], + "LibTmux.TmuxBuffers.GetLinesAsync": [ + { + "command": "list-buffers", + "evidence": [ + "src/LibTmux/Server.Buffers.cs:78", + "src/LibTmux/Server.Buffers.cs:96", + "src/LibTmux/Server.Buffers.cs:97", + "src/LibTmux/Buffers/TmuxBuffers.cs:94" + ], + "reviewed": true, + "scope": null + } + ], + "LibTmux.TmuxBuffers.LoadAsync": [ + { + "command": "load-buffer", + "evidence": [ + "src/LibTmux/Server.Buffers.cs:35", + "src/LibTmux/Buffers/TmuxBuffers.cs:46" + ], + "scope": null + } + ], + "LibTmux.TmuxBuffers.SaveAsync": [ + { + "command": "save-buffer", + "evidence": [ + "src/LibTmux/Server.Buffers.cs:51", + "src/LibTmux/Buffers/TmuxBuffers.cs:60" + ], + "scope": null + } + ], + "LibTmux.TmuxBuffers.SetAsync": [ + { + "command": "set-buffer", + "evidence": [ + "src/LibTmux/Server.Buffers.cs:21", + "src/LibTmux/Buffers/TmuxBuffers.cs:34" + ], + "scope": null + } + ], + "LibTmux.TmuxEnvironment.GetAllAsync": [ + { + "command": "show-environment", + "evidence": [ + "src/LibTmux/Environment/TmuxEnvironmentOperations.cs:67" + ], + "scope": null + } + ], + "LibTmux.TmuxEnvironment.GetAsync": [ + { + "command": "show-environment", + "evidence": [ + "src/LibTmux/Environment/TmuxEnvironmentOperations.cs:94" + ], + "scope": null + } + ], + "LibTmux.TmuxEnvironment.RemoveAsync": [ + { + "command": "set-environment", + "evidence": [ + "src/LibTmux/Environment/TmuxEnvironmentOperations.cs:174" + ], + "scope": null + } + ], + "LibTmux.TmuxEnvironment.SetAsync": [ + { + "command": "set-environment", + "evidence": [ + "src/LibTmux/Environment/TmuxEnvironmentOperations.cs:143" + ], + "scope": null + } + ], + "LibTmux.TmuxEnvironment.UnsetAsync": [ + { + "command": "set-environment", + "evidence": [ + "src/LibTmux/Environment/TmuxEnvironmentOperations.cs:189" + ], + "scope": null + } + ], + "LibTmux.TmuxHooks.GetAllAsync": [ + { + "command": "show-hooks", + "evidence": [ + "src/LibTmux/Hooks/TmuxHooks.cs:449", + "src/LibTmux/Hooks/TmuxHooks.cs:118" + ], + "scope": null + } + ], + "LibTmux.TmuxHooks.GetAsync": [ + { + "command": "show-hooks", + "evidence": [ + "src/LibTmux/Hooks/TmuxHooks.cs:449", + "src/LibTmux/Hooks/TmuxHooks.cs:99" + ], + "scope": null + } + ], + "LibTmux.TmuxHooks.RunAsync": [ + { + "command": "set-hook", + "evidence": [ + "src/LibTmux/Hooks/TmuxHooks.cs:313", + "src/LibTmux/Hooks/TmuxHooks.cs:313", + "src/LibTmux/Hooks/TmuxHooks.cs:130" + ], + "scope": null + } + ], + "LibTmux.TmuxHooks.SetAsync": [ + { + "command": "set-hook", + "evidence": [ + "src/LibTmux/Hooks/TmuxHooks.cs:214", + "src/LibTmux/Hooks/TmuxHooks.cs:244", + "src/LibTmux/Hooks/TmuxHooks.cs:247" + ], + "reviewed": true, + "scope": null + } + ], + "LibTmux.TmuxHooks.UnsetAsync": [ + { + "command": "set-hook", + "evidence": [ + "src/LibTmux/Hooks/TmuxHooks.cs:330" + ], + "scope": null + } + ], + "LibTmux.TmuxKeys.BindAsync": [ + { + "command": "bind-key", + "evidence": [ + "src/LibTmux/Server.Keys.cs:17", + "src/LibTmux/Server.Keys.cs:12", + "src/LibTmux/Keys/TmuxKeys.cs:29" + ], + "forwardable": true, + "reviewed": true, + "scope": null + } + ], + "LibTmux.TmuxKeys.GetAllAsync": [ + { + "command": "list-keys", + "evidence": [ + "src/LibTmux/Server.Keys.cs:69", + "src/LibTmux/Keys/TmuxKeys.cs:56" + ], + "scope": null + } + ], + "LibTmux.TmuxKeys.UnbindAsync": [ + { + "command": "unbind-key", + "evidence": [ + "src/LibTmux/Server.Keys.cs:39", + "src/LibTmux/Server.Keys.cs:33", + "src/LibTmux/Keys/TmuxKeys.cs:44" + ], + "forwardable": true, + "reviewed": true, + "scope": null + } + ], + "LibTmux.TmuxOptions.GetAllAsync": [ + { + "command": "show-options", + "evidence": [ + "src/LibTmux/Options/TmuxOptions.cs:155", + "src/LibTmux/Options/TmuxOptions.cs:154", + "src/LibTmux/Options/TmuxOptions.cs:94" + ], + "scope": null + } + ], + "LibTmux.TmuxOptions.GetAsync": [ + { + "command": "show-options", + "evidence": [ + "src/LibTmux/Options/TmuxOptions.cs:83", + "src/LibTmux/Options/TmuxOptions.cs:82", + "src/LibTmux/Options/TmuxOptions.cs:55" + ], + "scope": null + } + ], + "LibTmux.TmuxOptions.SetAsync": [ + { + "command": "set-option", + "evidence": [ + "src/LibTmux/Options/TmuxOptions.cs:204", + "src/LibTmux/Options/TmuxOptions.cs:200", + "src/LibTmux/Options/TmuxOptions.cs:170" + ], + "scope": null + } + ], + "LibTmux.TmuxOptions.UnsetAsync": [ + { + "command": "set-option", + "evidence": [ + "src/LibTmux/Options/TmuxOptions.cs:253", + "src/LibTmux/Options/TmuxOptions.cs:250", + "src/LibTmux/Options/TmuxOptions.cs:226" + ], + "scope": null + } + ], + "LibTmux.Window.CreatePaneAsync": [ + { + "command": "new-pane", + "evidence": [ + "src/LibTmux/Window.Panes.cs:263" + ], + "scope": null + } + ], + "LibTmux.Window.CreateWindowAsync": [ + { + "command": "new-window", + "evidence": [ + "src/LibTmux/Window.Lifecycle.cs:164" + ], + "scope": null + } + ], + "LibTmux.Window.DisplayMessageAsync": [ + { + "command": "display-message", + "evidence": [ + "src/LibTmux/Window.Display.cs:79" + ], + "scope": null + } + ], + "LibTmux.Window.FindPaneAsync": [ + { + "command": "list-panes", + "evidence": [ + "src/LibTmux/Window.Relations.cs:123", + "src/LibTmux/Window.Panes.cs:112" + ], + "forwardable": true, + "reviewed": true, + "scope": "window" + } + ], + "LibTmux.Window.GetActivePaneAsync": [ + { + "command": "list-panes", + "evidence": [ + "src/LibTmux/Window.Relations.cs:141" + ], + "scope": "window" + } + ], + "LibTmux.Window.GetLinkedSessionsAsync": [ + { + "command": "list-sessions", + "evidence": [ + "src/LibTmux/Window.Relations.cs:172" + ], + "scope": null + }, + { + "command": "list-windows", + "evidence": [ + "src/LibTmux/Window.Relations.cs:161" + ], + "scope": "server" + } + ], + "LibTmux.Window.GetPaneAsync": [ + { + "command": "list-panes", + "evidence": [ + "src/LibTmux/Window.Relations.cs:123", + "src/LibTmux/Window.Panes.cs:112", + "src/LibTmux/Window.Panes.cs:98" + ], + "reviewed": true, + "scope": "window" + } + ], + "LibTmux.Window.GetPanesAsync": [ + { + "command": "list-panes", + "evidence": [ + "src/LibTmux/Window.Relations.cs:121" + ], + "scope": "window" + } + ], + "LibTmux.Window.KillAsync": [ + { + "command": "kill-window", + "evidence": [ + "src/LibTmux/Window.Lifecycle.cs:64" + ], + "scope": null + } + ], + "LibTmux.Window.LinkAsync": [ + { + "command": "link-window", + "evidence": [ + "src/LibTmux/Window.Links.cs:54", + "src/LibTmux/Window.Links.cs:53", + "src/LibTmux/Window.Links.cs:17" + ], + "scope": null + } + ], + "LibTmux.Window.MoveAsync": [ + { + "command": "display-message", + "evidence": [ + "src/LibTmux/Window.Move.cs:142", + "src/LibTmux/Window.Move.cs:53" + ], + "scope": null + }, + { + "command": "list-windows", + "evidence": [ + "src/LibTmux/Window.Move.cs:103", + "src/LibTmux/Window.Move.cs:31" + ], + "scope": "session" + }, + { + "command": "move-window", + "evidence": [ + "src/LibTmux/Window.Move.cs:55", + "src/LibTmux/Window.Move.cs:29", + "src/LibTmux/Window.Links.cs:122" + ], + "scope": null + } + ], + "LibTmux.Window.RenameAsync": [ + { + "command": "rename-window", + "evidence": [ + "src/LibTmux/Window.Lifecycle.cs:33" + ], + "scope": null + } + ], + "LibTmux.Window.ResizeAsync": [ + { + "command": "resize-window", + "evidence": [ + "src/LibTmux/Window.Layout.cs:27", + "src/LibTmux/Window.Layout.cs:24", + "src/LibTmux/Window.Layout.cs:34" + ], + "scope": null + } + ], + "LibTmux.Window.RespawnAsync": [ + { + "command": "respawn-window", + "evidence": [ + "src/LibTmux/Window.Lifecycle.cs:122" + ], + "scope": null + } + ], + "LibTmux.Window.RotateAsync": [ + { + "command": "rotate-window", + "evidence": [ + "src/LibTmux/Window.Lifecycle.cs:90" + ], + "scope": null + } + ], + "LibTmux.Window.SearchPanesAsync": [ + { + "command": "list-panes", + "evidence": [ + "src/LibTmux/Window.Panes.cs:296" + ], + "scope": "window" + } + ], + "LibTmux.Window.SelectAsync": [ + { + "command": "select-window", + "evidence": [ + "src/LibTmux/Window.Lifecycle.cs:45" + ], + "scope": null + } + ], + "LibTmux.Window.SelectLastPaneAsync": [ + { + "command": "last-pane", + "evidence": [ + "src/LibTmux/Window.Panes.cs:52" + ], + "scope": null + } + ], + "LibTmux.Window.SelectLayoutAsync": [ + { + "command": "select-layout", + "evidence": [ + "src/LibTmux/Window.Layout.cs:109", + "src/LibTmux/Window.Layout.cs:102", + "src/LibTmux/Window.Layout.cs:60" + ], + "scope": null + } + ], + "LibTmux.Window.SelectNextLayoutAsync": [ + { + "command": "next-layout", + "evidence": [ + "src/LibTmux/Window.Layout.cs:122" + ], + "scope": null + } + ], + "LibTmux.Window.SelectPaneAsync": [ + { + "command": "select-pane", + "evidence": [ + "src/LibTmux/Window.Panes.cs:78" + ], + "scope": null + } + ], + "LibTmux.Window.SelectPreviousLayoutAsync": [ + { + "command": "previous-layout", + "evidence": [ + "src/LibTmux/Window.Layout.cs:135" + ], + "scope": null + } + ], + "LibTmux.Window.SplitPaneAsync": [ + { + "command": "split-window", + "evidence": [ + "src/LibTmux/Window.Panes.cs:171" + ], + "scope": null + } + ], + "LibTmux.Window.SwapAsync": [ + { + "command": "swap-window", + "evidence": [ + "src/LibTmux/Window.Links.cs:167" + ], + "scope": null + } + ], + "LibTmux.Window.UnlinkAsync": [ + { + "command": "unlink-window", + "evidence": [ + "src/LibTmux/Window.Links.cs:69", + "src/LibTmux/Window.Links.cs:69", + "src/LibTmux/Window.Links.cs:187" + ], + "scope": null + } + ] + } +} diff --git a/site/src/data/tmux-usage/cxx.json b/site/src/data/tmux-usage/cxx.json new file mode 100644 index 000000000..49c46df0a --- /dev/null +++ b/site/src/data/tmux-usage/cxx.json @@ -0,0 +1,1103 @@ +{ + "commands": [ + "attach-session", + "bind-key", + "break-pane", + "capture-pane", + "choose-buffer", + "choose-client", + "choose-tree", + "clear-history", + "clear-prompt-history", + "clock-mode", + "command-prompt", + "confirm-before", + "copy-mode", + "customize-mode", + "delete-buffer", + "detach-client", + "display-menu", + "display-message", + "display-panes", + "display-popup", + "find-window", + "has-session", + "if-shell", + "join-pane", + "kill-pane", + "kill-server", + "kill-session", + "kill-window", + "last-pane", + "last-window", + "link-window", + "list-buffers", + "list-clients", + "list-commands", + "list-keys", + "list-panes", + "list-sessions", + "list-windows", + "load-buffer", + "lock-client", + "lock-server", + "lock-session", + "move-pane", + "move-window", + "new-pane", + "new-session", + "new-window", + "next-layout", + "next-window", + "paste-buffer", + "pipe-pane", + "previous-layout", + "previous-window", + "refresh-client", + "rename-session", + "rename-window", + "resize-pane", + "resize-window", + "respawn-pane", + "respawn-window", + "rotate-window", + "run-shell", + "save-buffer", + "select-layout", + "select-pane", + "select-window", + "send-keys", + "send-prefix", + "server-access", + "set-buffer", + "set-environment", + "set-hook", + "set-option", + "set-window-option", + "show-buffer", + "show-environment", + "show-hooks", + "show-messages", + "show-options", + "show-prompt-history", + "show-window-options", + "source-file", + "split-window", + "start-server", + "suspend-client", + "swap-pane", + "swap-window", + "switch-client", + "unbind-key", + "unlink-window", + "wait-for" + ], + "port": "cxx", + "repo": "libtmux/libtmux-cxx", + "revision": "3f93b021cb51e8349bfb9cecc6fd4091f6e79a0f", + "schemaVersion": 1, + "symbols": { + "libtmux::Buffer::contents": [ + { + "command": "show-buffer", + "evidence": [ + "src/entities.cpp:1648" + ], + "scope": null + } + ], + "libtmux::Buffer::remove": [ + { + "command": "delete-buffer", + "evidence": [ + "src/entities.cpp:1656" + ], + "scope": null + } + ], + "libtmux::Client::detach": [ + { + "command": "detach-client", + "evidence": [ + "src/entities.cpp:1688" + ], + "scope": null + } + ], + "libtmux::Client::refresh": [ + { + "command": "refresh-client", + "evidence": [ + "src/entities.cpp:1696" + ], + "scope": null + } + ], + "libtmux::Client::session": [ + { + "command": "display-message", + "evidence": [ + "src/entities.cpp:1666" + ], + "scope": null + } + ], + "libtmux::Client::switch_to": [ + { + "command": "switch-client", + "evidence": [ + "src/entities.cpp:1680" + ], + "scope": null + } + ], + "libtmux::Connection::connect": [ + { + "command": "attach-session", + "evidence": [ + "src/connection.cpp:360", + "src/connection.cpp:369", + "src/connection.cpp:1043" + ], + "reviewed": true, + "scope": null + }, + { + "command": "refresh-client", + "evidence": [ + "src/connection.cpp:1089", + "src/connection.cpp:1093" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux::Connection::set_pane_output": [ + { + "command": "refresh-client", + "evidence": [ + "src/connection.cpp:1256", + "src/connection.cpp:1249" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux::Pane::break_out": [ + { + "command": "break-pane", + "evidence": [ + "src/entities.cpp:1289", + "src/entities.cpp:1287", + "src/entities.cpp:1279", + "src/entities.cpp:1451" + ], + "reviewed": true, + "scope": null, + "when": "the window has several panes" + }, + { + "command": "display-message", + "evidence": [ + "src/entities.cpp:1289", + "src/entities.cpp:1287", + "src/entities.cpp:1281", + "src/entities.cpp:1451" + ], + "reviewed": true, + "scope": null, + "when": "the window has one pane" + }, + { + "command": "if-shell", + "evidence": [ + "src/entities.cpp:1287", + "src/entities.cpp:1289", + "src/entities.cpp:1451" + ], + "reviewed": true, + "scope": null + }, + { + "command": "rename-window", + "evidence": [ + "src/entities.cpp:1373", + "src/entities.cpp:1371", + "src/entities.cpp:1366", + "src/entities.cpp:1452" + ], + "reviewed": true, + "scope": null, + "when": "named, and the window has one pane" + } + ], + "libtmux::Pane::capture": [ + { + "command": "capture-pane", + "evidence": [ + "src/entities.cpp:1189" + ], + "scope": null + } + ], + "libtmux::Pane::clear_history": [ + { + "command": "clear-history", + "evidence": [ + "src/entities.cpp:1549" + ], + "scope": null + } + ], + "libtmux::Pane::enter_copy_mode": [ + { + "command": "copy-mode", + "evidence": [ + "src/entities.cpp:1472" + ], + "scope": null + } + ], + "libtmux::Pane::join": [ + { + "command": "join-pane", + "evidence": [ + "src/entities.cpp:1463" + ], + "scope": null + } + ], + "libtmux::Pane::kill": [ + { + "command": "kill-pane", + "evidence": [ + "src/entities.cpp:1580" + ], + "scope": null + } + ], + "libtmux::Pane::leave_mode": [ + { + "command": "send-keys", + "evidence": [ + "src/entities.cpp:1482" + ], + "scope": null + } + ], + "libtmux::Pane::option": [ + { + "command": "show-options", + "evidence": [ + "src/entities.cpp:1602" + ], + "scope": null + } + ], + "libtmux::Pane::options": [ + { + "command": "show-options", + "evidence": [ + "src/entities.cpp:1593" + ], + "scope": null + } + ], + "libtmux::Pane::paste": [ + { + "command": "paste-buffer", + "evidence": [ + "src/entities.cpp:1640" + ], + "scope": null + } + ], + "libtmux::Pane::pipe_to": [ + { + "command": "pipe-pane", + "evidence": [ + "src/entities.cpp:1499" + ], + "scope": null + } + ], + "libtmux::Pane::respawn": [ + { + "command": "respawn-pane", + "evidence": [ + "src/entities.cpp:1541" + ], + "scope": null + } + ], + "libtmux::Pane::select": [ + { + "command": "select-pane", + "evidence": [ + "src/entities.cpp:1557" + ], + "scope": null + } + ], + "libtmux::Pane::send_key": [ + { + "command": "send-keys", + "evidence": [ + "src/entities.cpp:1115" + ], + "scope": null + } + ], + "libtmux::Pane::send_line": [ + { + "command": "send-keys", + "evidence": [ + "src/entities.cpp:1101" + ], + "scope": null + } + ], + "libtmux::Pane::send_text": [ + { + "command": "send-keys", + "evidence": [ + "src/entities.cpp:1083" + ], + "scope": null + } + ], + "libtmux::Pane::set_height": [ + { + "command": "resize-pane", + "evidence": [ + "src/entities.cpp:1218" + ], + "scope": null + } + ], + "libtmux::Pane::set_option": [ + { + "command": "set-option", + "evidence": [ + "src/entities.cpp:1613" + ], + "scope": null + } + ], + "libtmux::Pane::set_title": [ + { + "command": "select-pane", + "evidence": [ + "src/entities.cpp:1521" + ], + "scope": null + } + ], + "libtmux::Pane::set_width": [ + { + "command": "resize-pane", + "evidence": [ + "src/entities.cpp:1206" + ], + "scope": null + } + ], + "libtmux::Pane::show_message": [ + { + "command": "display-message", + "evidence": [ + "src/entities.cpp:1567" + ], + "scope": null + } + ], + "libtmux::Pane::split": [ + { + "command": "split-window", + "evidence": [ + "src/entities.cpp:1154" + ], + "scope": null + } + ], + "libtmux::Pane::stop_piping": [ + { + "command": "pipe-pane", + "evidence": [ + "src/entities.cpp:1507" + ], + "scope": null + } + ], + "libtmux::Pane::swap_with": [ + { + "command": "swap-pane", + "evidence": [ + "src/entities.cpp:1238" + ], + "scope": null + } + ], + "libtmux::Pane::toggle_zoom": [ + { + "command": "resize-pane", + "evidence": [ + "src/entities.cpp:1226" + ], + "scope": null + } + ], + "libtmux::Pane::unset_option": [ + { + "command": "set-option", + "evidence": [ + "src/entities.cpp:1622" + ], + "scope": null + } + ], + "libtmux::Server::bind_key": [ + { + "command": "bind-key", + "evidence": [ + "src/server.cpp:1025" + ], + "scope": null + } + ], + "libtmux::Server::buffers": [ + { + "command": "list-buffers", + "evidence": [ + "src/server.cpp:940" + ], + "scope": null + } + ], + "libtmux::Server::check_alive": [ + { + "command": "list-sessions", + "evidence": [ + "src/server.cpp:711" + ], + "scope": null + } + ], + "libtmux::Server::check_file": [ + { + "command": "source-file", + "evidence": [ + "src/server.cpp:1080" + ], + "scope": null + } + ], + "libtmux::Server::clients": [ + { + "command": "list-clients", + "evidence": [ + "src/server.cpp:881" + ], + "scope": null + } + ], + "libtmux::Server::commands": [ + { + "command": "list-commands", + "evidence": [ + "src/server.cpp:933" + ], + "scope": null + } + ], + "libtmux::Server::environment": [ + { + "command": "show-environment", + "evidence": [ + "src/server.cpp:1310" + ], + "scope": null + } + ], + "libtmux::Server::expand": [ + { + "command": "display-message", + "evidence": [ + "src/server.cpp:1089" + ], + "scope": null + } + ], + "libtmux::Server::global_hooks": [ + { + "command": "show-hooks", + "evidence": [ + "src/server.cpp:1296" + ], + "scope": null + } + ], + "libtmux::Server::global_options": [ + { + "command": "show-options", + "evidence": [ + "src/server.cpp:1271" + ], + "scope": null + } + ], + "libtmux::Server::hooks": [ + { + "command": "show-hooks", + "evidence": [ + "src/server.cpp:1289" + ], + "scope": null + } + ], + "libtmux::Server::kill": [ + { + "command": "kill-server", + "evidence": [ + "src/server.cpp:810" + ], + "scope": null + } + ], + "libtmux::Server::load_buffer": [ + { + "command": "load-buffer", + "evidence": [ + "src/server.cpp:954" + ], + "scope": null + } + ], + "libtmux::Server::new_session": [ + { + "command": "new-session", + "evidence": [ + "src/server.cpp:1237" + ], + "scope": null + } + ], + "libtmux::Server::options": [ + { + "command": "show-options", + "evidence": [ + "src/server.cpp:1247" + ], + "scope": null + } + ], + "libtmux::Server::panes": [ + { + "command": "list-panes", + "evidence": [ + "src/server.cpp:873" + ], + "scope": "server" + } + ], + "libtmux::Server::remove_environment": [ + { + "command": "set-environment", + "evidence": [ + "src/server.cpp:1356" + ], + "scope": null + } + ], + "libtmux::Server::run_shell": [ + { + "command": "run-shell", + "evidence": [ + "src/server.cpp:1059" + ], + "scope": null + } + ], + "libtmux::Server::save_buffer": [ + { + "command": "save-buffer", + "evidence": [ + "src/server.cpp:969" + ], + "scope": null + } + ], + "libtmux::Server::server_options": [ + { + "command": "show-options", + "evidence": [ + "src/server.cpp:1254" + ], + "scope": null + } + ], + "libtmux::Server::sessions": [ + { + "command": "list-sessions", + "evidence": [ + "src/server.cpp:819" + ], + "scope": null + } + ], + "libtmux::Server::set_buffer": [ + { + "command": "set-buffer", + "evidence": [ + "src/server.cpp:1118" + ], + "scope": null + } + ], + "libtmux::Server::set_environment": [ + { + "command": "set-environment", + "evidence": [ + "src/server.cpp:1348" + ], + "scope": null + } + ], + "libtmux::Server::set_global_hook": [ + { + "command": "set-hook", + "evidence": [ + "src/server.cpp:1306" + ], + "scope": null + } + ], + "libtmux::Server::set_global_option": [ + { + "command": "set-option", + "evidence": [ + "src/server.cpp:1281" + ], + "scope": null + } + ], + "libtmux::Server::set_server_option": [ + { + "command": "set-option", + "evidence": [ + "src/server.cpp:1264" + ], + "scope": null + } + ], + "libtmux::Server::show_message": [ + { + "command": "display-message", + "evidence": [ + "src/server.cpp:1102" + ], + "scope": null + } + ], + "libtmux::Server::signal": [ + { + "command": "wait-for", + "evidence": [ + "src/server.cpp:926" + ], + "scope": null + } + ], + "libtmux::Server::source_file": [ + { + "command": "source-file", + "evidence": [ + "src/server.cpp:1067" + ], + "scope": null + } + ], + "libtmux::Server::unbind_key": [ + { + "command": "unbind-key", + "evidence": [ + "src/server.cpp:1039" + ], + "scope": null + } + ], + "libtmux::Server::unset_environment": [ + { + "command": "set-environment", + "evidence": [ + "src/server.cpp:1352" + ], + "scope": null + } + ], + "libtmux::Server::validate_layouts": [ + { + "command": "display-message", + "evidence": [ + "src/layout.cpp:390", + "src/layout.cpp:386", + "src/server.cpp:687" + ], + "reviewed": true, + "scope": null, + "when": "layouts that depend on the tmux version" + } + ], + "libtmux::Server::wait_for": [ + { + "command": "wait-for", + "evidence": [ + "src/server.cpp:900" + ], + "scope": null + } + ], + "libtmux::Server::wait_for_text": [ + { + "command": "display-message", + "evidence": [ + "src/wait.cpp:520" + ], + "scope": null + } + ], + "libtmux::Server::windows": [ + { + "command": "list-windows", + "evidence": [ + "src/server.cpp:846" + ], + "scope": "server" + } + ], + "libtmux::Session::detach_clients": [ + { + "command": "detach-client", + "evidence": [ + "src/entities.cpp:467" + ], + "scope": null + } + ], + "libtmux::Session::hooks": [ + { + "command": "show-hooks", + "evidence": [ + "src/entities.cpp:475" + ], + "scope": null + } + ], + "libtmux::Session::kill": [ + { + "command": "kill-session", + "evidence": [ + "src/entities.cpp:388" + ], + "scope": null + } + ], + "libtmux::Session::new_window": [ + { + "command": "new-window", + "evidence": [ + "src/entities.cpp:361" + ], + "scope": null + } + ], + "libtmux::Session::option": [ + { + "command": "show-options", + "evidence": [ + "src/entities.cpp:410" + ], + "scope": null + } + ], + "libtmux::Session::options": [ + { + "command": "show-options", + "evidence": [ + "src/entities.cpp:401" + ], + "scope": null + } + ], + "libtmux::Session::panes": [ + { + "command": "list-panes", + "evidence": [ + "src/entities.cpp:268" + ], + "scope": "session" + } + ], + "libtmux::Session::rename": [ + { + "command": "rename-session", + "evidence": [ + "src/entities.cpp:379" + ], + "scope": null + } + ], + "libtmux::Session::select_last_window": [ + { + "command": "last-window", + "evidence": [ + "src/entities.cpp:319" + ], + "scope": null + } + ], + "libtmux::Session::select_next_window": [ + { + "command": "next-window", + "evidence": [ + "src/entities.cpp:303" + ], + "scope": null + } + ], + "libtmux::Session::select_previous_window": [ + { + "command": "previous-window", + "evidence": [ + "src/entities.cpp:311" + ], + "scope": null + } + ], + "libtmux::Session::set_hook": [ + { + "command": "set-hook", + "evidence": [ + "src/entities.cpp:488" + ], + "scope": null + } + ], + "libtmux::Session::set_option": [ + { + "command": "set-option", + "evidence": [ + "src/entities.cpp:422" + ], + "scope": null + } + ], + "libtmux::Session::show_message": [ + { + "command": "display-message", + "evidence": [ + "src/entities.cpp:446" + ], + "scope": null + } + ], + "libtmux::Session::unset_option": [ + { + "command": "set-option", + "evidence": [ + "src/entities.cpp:431" + ], + "scope": null + } + ], + "libtmux::Session::windows": [ + { + "command": "list-windows", + "evidence": [ + "src/entities.cpp:263" + ], + "scope": "session" + } + ], + "libtmux::Window::kill": [ + { + "command": "kill-window", + "evidence": [ + "src/entities.cpp:685" + ], + "scope": null + } + ], + "libtmux::Window::link_to": [ + { + "command": "link-window", + "evidence": [ + "src/entities.cpp:759" + ], + "scope": null + } + ], + "libtmux::Window::move_to": [ + { + "command": "move-window", + "evidence": [ + "src/entities.cpp:803" + ], + "scope": null + } + ], + "libtmux::Window::next_layout": [ + { + "command": "next-layout", + "evidence": [ + "src/entities.cpp:719" + ], + "scope": null + } + ], + "libtmux::Window::option": [ + { + "command": "show-options", + "evidence": [ + "src/entities.cpp:825" + ], + "scope": null + } + ], + "libtmux::Window::options": [ + { + "command": "show-options", + "evidence": [ + "src/entities.cpp:817" + ], + "scope": null + } + ], + "libtmux::Window::panes": [ + { + "command": "list-panes", + "evidence": [ + "src/entities.cpp:560" + ], + "scope": "window" + } + ], + "libtmux::Window::previous_layout": [ + { + "command": "previous-layout", + "evidence": [ + "src/entities.cpp:727" + ], + "scope": null + } + ], + "libtmux::Window::rename": [ + { + "command": "rename-window", + "evidence": [ + "src/entities.cpp:646" + ], + "scope": null + } + ], + "libtmux::Window::resize": [ + { + "command": "resize-window", + "evidence": [ + "src/entities.cpp:710" + ], + "scope": null + } + ], + "libtmux::Window::rotate": [ + { + "command": "rotate-window", + "evidence": [ + "src/entities.cpp:735" + ], + "scope": null + } + ], + "libtmux::Window::select": [ + { + "command": "select-window", + "evidence": [ + "src/entities.cpp:654" + ], + "scope": null + } + ], + "libtmux::Window::select_last_pane": [ + { + "command": "select-pane", + "evidence": [ + "src/entities.cpp:743" + ], + "scope": null + } + ], + "libtmux::Window::select_layout": [ + { + "command": "select-layout", + "evidence": [ + "src/entities.cpp:698" + ], + "scope": null + } + ], + "libtmux::Window::set_option": [ + { + "command": "set-option", + "evidence": [ + "src/entities.cpp:839" + ], + "scope": null + } + ], + "libtmux::Window::show_message": [ + { + "command": "display-message", + "evidence": [ + "src/entities.cpp:672" + ], + "scope": null + } + ], + "libtmux::Window::split": [ + { + "command": "split-window", + "evidence": [ + "src/entities.cpp:631" + ], + "scope": null + } + ], + "libtmux::Window::swap_with": [ + { + "command": "swap-window", + "evidence": [ + "src/entities.cpp:780" + ], + "scope": null + } + ], + "libtmux::Window::unlink": [ + { + "command": "unlink-window", + "evidence": [ + "src/entities.cpp:769" + ], + "scope": null + } + ], + "libtmux::Window::unset_option": [ + { + "command": "set-option", + "evidence": [ + "src/entities.cpp:847" + ], + "scope": null + } + ] + } +} diff --git a/site/src/data/tmux-usage/elixir.json b/site/src/data/tmux-usage/elixir.json new file mode 100644 index 000000000..ccf29d8d1 --- /dev/null +++ b/site/src/data/tmux-usage/elixir.json @@ -0,0 +1,416 @@ +{ + "commands": [ + "attach-session", + "bind-key", + "break-pane", + "capture-pane", + "choose-buffer", + "choose-client", + "choose-tree", + "clear-history", + "clear-prompt-history", + "clock-mode", + "command-prompt", + "confirm-before", + "copy-mode", + "customize-mode", + "delete-buffer", + "detach-client", + "display-menu", + "display-message", + "display-panes", + "display-popup", + "find-window", + "has-session", + "if-shell", + "join-pane", + "kill-pane", + "kill-server", + "kill-session", + "kill-window", + "last-pane", + "last-window", + "link-window", + "list-buffers", + "list-clients", + "list-commands", + "list-keys", + "list-panes", + "list-sessions", + "list-windows", + "load-buffer", + "lock-client", + "lock-server", + "lock-session", + "move-pane", + "move-window", + "new-pane", + "new-session", + "new-window", + "next-layout", + "next-window", + "paste-buffer", + "pipe-pane", + "previous-layout", + "previous-window", + "refresh-client", + "rename-session", + "rename-window", + "resize-pane", + "resize-window", + "respawn-pane", + "respawn-window", + "rotate-window", + "run-shell", + "save-buffer", + "select-layout", + "select-pane", + "select-window", + "send-keys", + "send-prefix", + "server-access", + "set-buffer", + "set-environment", + "set-hook", + "set-option", + "set-window-option", + "show-buffer", + "show-environment", + "show-hooks", + "show-messages", + "show-options", + "show-prompt-history", + "show-window-options", + "source-file", + "split-window", + "start-server", + "suspend-client", + "swap-pane", + "swap-window", + "switch-client", + "unbind-key", + "unlink-window", + "wait-for" + ], + "port": "elixir", + "repo": "libtmux/libtmux-elixir", + "revision": "6e6e88e886bdd9267fcd8be66f561dc5d5462476", + "schemaVersion": 1, + "symbols": { + "LibTmux.Capture.fetch/2": [ + { + "command": "display-message", + "evidence": [ + "lib/libtmux/capture.ex:293", + "lib/libtmux/capture.ex:95", + "lib/libtmux/capture.ex:89" + ], + "reviewed": true, + "scope": null + }, + { + "command": "list-clients", + "evidence": [ + "lib/libtmux/capture.ex:178", + "lib/libtmux/capture.ex:96", + "lib/libtmux/capture.ex:89" + ], + "reviewed": true, + "scope": null + }, + { + "command": "list-panes", + "evidence": [ + "lib/libtmux/capture.ex:177", + "lib/libtmux/capture.ex:96", + "lib/libtmux/capture.ex:89" + ], + "reviewed": true, + "scope": "server" + }, + { + "command": "list-sessions", + "evidence": [ + "lib/libtmux/capture.ex:158", + "lib/libtmux/capture.ex:96", + "lib/libtmux/capture.ex:89" + ], + "reviewed": true, + "scope": null + }, + { + "command": "list-windows", + "evidence": [ + "lib/libtmux/capture.ex:164", + "lib/libtmux/capture.ex:96", + "lib/libtmux/capture.ex:89" + ], + "reviewed": true, + "scope": "server" + } + ], + "LibTmux.Control.reconnect!/2": [ + { + "command": "attach-session", + "evidence": [ + "lib/libtmux/control/bootstrap.ex:17", + "lib/libtmux/control/start.ex:62", + "lib/libtmux/control/guardian.ex:95", + "lib/libtmux/control/manager.ex:244", + "lib/libtmux/control/manager.ex:613", + "lib/libtmux/control/manager.ex:614", + "lib/libtmux/control/manager.ex:573", + "lib/libtmux/control.ex:290", + "lib/libtmux/control.ex:299" + ], + "reviewed": true, + "scope": null, + "when": "the connection is closed" + }, + { + "command": "display-message", + "evidence": [ + "lib/libtmux/control/bootstrap.ex:24", + "lib/libtmux/control/start.ex:62", + "lib/libtmux/control/guardian.ex:95", + "lib/libtmux/control/manager.ex:244", + "lib/libtmux/control/manager.ex:613", + "lib/libtmux/control/manager.ex:614", + "lib/libtmux/control/manager.ex:573", + "lib/libtmux/control.ex:290", + "lib/libtmux/control.ex:299" + ], + "reviewed": true, + "scope": null, + "when": "the connection is closed" + } + ], + "LibTmux.Control.reconnect/2": [ + { + "command": "attach-session", + "evidence": [ + "lib/libtmux/control/bootstrap.ex:17", + "lib/libtmux/control/start.ex:62", + "lib/libtmux/control/guardian.ex:95", + "lib/libtmux/control/manager.ex:244", + "lib/libtmux/control/manager.ex:613", + "lib/libtmux/control/manager.ex:614", + "lib/libtmux/control/manager.ex:573", + "lib/libtmux/control.ex:290" + ], + "reviewed": true, + "scope": null, + "when": "the connection is closed" + }, + { + "command": "display-message", + "evidence": [ + "lib/libtmux/control/bootstrap.ex:24", + "lib/libtmux/control/start.ex:62", + "lib/libtmux/control/guardian.ex:95", + "lib/libtmux/control/manager.ex:244", + "lib/libtmux/control/manager.ex:613", + "lib/libtmux/control/manager.ex:614", + "lib/libtmux/control/manager.ex:573", + "lib/libtmux/control.ex:290" + ], + "reviewed": true, + "scope": null, + "when": "the connection is closed" + } + ], + "LibTmux.Control.start_link/1": [ + { + "command": "attach-session", + "evidence": [ + "lib/libtmux/control/bootstrap.ex:17", + "lib/libtmux/control/start.ex:62", + "lib/libtmux/control/start.ex:23", + "lib/libtmux/control.ex:74" + ], + "reviewed": true, + "scope": null + }, + { + "command": "display-message", + "evidence": [ + "lib/libtmux/control/bootstrap.ex:24", + "lib/libtmux/control/start.ex:62", + "lib/libtmux/control/start.ex:23", + "lib/libtmux/control.ex:74" + ], + "reviewed": true, + "scope": null + } + ], + "LibTmux.Control.submit!/3": [ + { + "command": "display-message", + "evidence": [ + "lib/libtmux/control/request.ex:51", + "lib/libtmux/control/request.ex:36", + "lib/libtmux/control.ex:152", + "lib/libtmux/control.ex:173" + ], + "reviewed": true, + "scope": null, + "when": "the request reads a field" + }, + { + "command": "set-option", + "evidence": [ + "lib/libtmux/control/request.ex:61", + "lib/libtmux/control/request.ex:36", + "lib/libtmux/control.ex:152", + "lib/libtmux/control.ex:173" + ], + "reviewed": true, + "scope": null, + "when": "the request sets a user option" + } + ], + "LibTmux.Control.submit/3": [ + { + "command": "display-message", + "evidence": [ + "lib/libtmux/control/request.ex:51", + "lib/libtmux/control/request.ex:36", + "lib/libtmux/control.ex:152" + ], + "reviewed": true, + "scope": null, + "when": "the request reads a field" + }, + { + "command": "set-option", + "evidence": [ + "lib/libtmux/control/request.ex:61", + "lib/libtmux/control/request.ex:36", + "lib/libtmux/control.ex:152" + ], + "reviewed": true, + "scope": null, + "when": "the request sets a user option" + } + ], + "LibTmux.Server.snapshot!/2": [ + { + "command": "display-message", + "evidence": [ + "lib/libtmux/capture.ex:293", + "lib/libtmux/capture.ex:95", + "lib/libtmux/capture.ex:89", + "lib/libtmux/server.ex:78", + "lib/libtmux/server.ex:83" + ], + "reviewed": true, + "scope": null + }, + { + "command": "list-clients", + "evidence": [ + "lib/libtmux/capture.ex:178", + "lib/libtmux/capture.ex:96", + "lib/libtmux/capture.ex:89", + "lib/libtmux/server.ex:78", + "lib/libtmux/server.ex:83" + ], + "reviewed": true, + "scope": null + }, + { + "command": "list-panes", + "evidence": [ + "lib/libtmux/capture.ex:177", + "lib/libtmux/capture.ex:96", + "lib/libtmux/capture.ex:89", + "lib/libtmux/server.ex:78", + "lib/libtmux/server.ex:83" + ], + "reviewed": true, + "scope": "server" + }, + { + "command": "list-sessions", + "evidence": [ + "lib/libtmux/capture.ex:158", + "lib/libtmux/capture.ex:96", + "lib/libtmux/capture.ex:89", + "lib/libtmux/server.ex:78", + "lib/libtmux/server.ex:83" + ], + "reviewed": true, + "scope": null + }, + { + "command": "list-windows", + "evidence": [ + "lib/libtmux/capture.ex:164", + "lib/libtmux/capture.ex:96", + "lib/libtmux/capture.ex:89", + "lib/libtmux/server.ex:78", + "lib/libtmux/server.ex:83" + ], + "reviewed": true, + "scope": "server" + } + ], + "LibTmux.Server.snapshot/2": [ + { + "command": "display-message", + "evidence": [ + "lib/libtmux/capture.ex:293", + "lib/libtmux/capture.ex:95", + "lib/libtmux/capture.ex:89", + "lib/libtmux/server.ex:78" + ], + "reviewed": true, + "scope": null + }, + { + "command": "list-clients", + "evidence": [ + "lib/libtmux/capture.ex:178", + "lib/libtmux/capture.ex:96", + "lib/libtmux/capture.ex:89", + "lib/libtmux/server.ex:78" + ], + "reviewed": true, + "scope": null + }, + { + "command": "list-panes", + "evidence": [ + "lib/libtmux/capture.ex:177", + "lib/libtmux/capture.ex:96", + "lib/libtmux/capture.ex:89", + "lib/libtmux/server.ex:78" + ], + "reviewed": true, + "scope": "server" + }, + { + "command": "list-sessions", + "evidence": [ + "lib/libtmux/capture.ex:158", + "lib/libtmux/capture.ex:96", + "lib/libtmux/capture.ex:89", + "lib/libtmux/server.ex:78" + ], + "reviewed": true, + "scope": null + }, + { + "command": "list-windows", + "evidence": [ + "lib/libtmux/capture.ex:164", + "lib/libtmux/capture.ex:96", + "lib/libtmux/capture.ex:89", + "lib/libtmux/server.ex:78" + ], + "reviewed": true, + "scope": "server" + } + ] + } +} diff --git a/site/src/data/tmux-usage/fsharp.json b/site/src/data/tmux-usage/fsharp.json new file mode 100644 index 000000000..17fbb908d --- /dev/null +++ b/site/src/data/tmux-usage/fsharp.json @@ -0,0 +1,404 @@ +{ + "commands": [ + "attach-session", + "bind-key", + "break-pane", + "capture-pane", + "choose-buffer", + "choose-client", + "choose-tree", + "clear-history", + "clear-prompt-history", + "clock-mode", + "command-prompt", + "confirm-before", + "copy-mode", + "customize-mode", + "delete-buffer", + "detach-client", + "display-menu", + "display-message", + "display-panes", + "display-popup", + "find-window", + "has-session", + "if-shell", + "join-pane", + "kill-pane", + "kill-server", + "kill-session", + "kill-window", + "last-pane", + "last-window", + "link-window", + "list-buffers", + "list-clients", + "list-commands", + "list-keys", + "list-panes", + "list-sessions", + "list-windows", + "load-buffer", + "lock-client", + "lock-server", + "lock-session", + "move-pane", + "move-window", + "new-pane", + "new-session", + "new-window", + "next-layout", + "next-window", + "paste-buffer", + "pipe-pane", + "previous-layout", + "previous-window", + "refresh-client", + "rename-session", + "rename-window", + "resize-pane", + "resize-window", + "respawn-pane", + "respawn-window", + "rotate-window", + "run-shell", + "save-buffer", + "select-layout", + "select-pane", + "select-window", + "send-keys", + "send-prefix", + "server-access", + "set-buffer", + "set-environment", + "set-hook", + "set-option", + "set-window-option", + "show-buffer", + "show-environment", + "show-hooks", + "show-messages", + "show-options", + "show-prompt-history", + "show-window-options", + "source-file", + "split-window", + "start-server", + "suspend-client", + "swap-pane", + "swap-window", + "switch-client", + "unbind-key", + "unlink-window", + "wait-for" + ], + "port": "fsharp", + "repo": "libtmux/libtmux-dotnet", + "revision": "4f1b997b2e4aeb604c4184707e49dcd4dea44fef", + "schemaVersion": 1, + "symbols": { + "LibTmux.FSharp.Control.enter": [ + { + "command": "refresh-client", + "evidence": [ + "src/LibTmux.FSharp/Control.fs:54" + ], + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Server.ControlMode.cs:69" + ], + "port": "csharp", + "revision": "4f1b997b2e4aeb604c4184707e49dcd4dea44fef", + "symbol": "LibTmux.Server.EnterControlModeAsync" + } + } + ], + "LibTmux.FSharp.Control.enterSession": [ + { + "command": "refresh-client", + "evidence": [ + "src/LibTmux.FSharp/Control.fs:57" + ], + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Server.ControlMode.cs:69" + ], + "port": "csharp", + "revision": "4f1b997b2e4aeb604c4184707e49dcd4dea44fef", + "symbol": "LibTmux.Server.EnterControlModeAsync" + } + } + ], + "LibTmux.FSharp.Mirror.start": [ + { + "command": "refresh-client", + "evidence": [ + "src/LibTmux.FSharp/Control.fs:142" + ], + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Snapshots/ServerMirror.cs:278", + "src/LibTmux/Snapshots/ServerMirror.cs:145" + ], + "port": "csharp", + "revision": "4f1b997b2e4aeb604c4184707e49dcd4dea44fef", + "symbol": "LibTmux.ServerMirror.OpenAsync" + } + } + ], + "LibTmux.FSharp.Mirror.startRefreshing": [ + { + "command": "refresh-client", + "evidence": [ + "src/LibTmux.FSharp/Control.fs:145" + ], + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Snapshots/ServerMirror.cs:278", + "src/LibTmux/Snapshots/ServerMirror.cs:145" + ], + "port": "csharp", + "revision": "4f1b997b2e4aeb604c4184707e49dcd4dea44fef", + "symbol": "LibTmux.ServerMirror.OpenAsync" + } + } + ], + "LibTmux.FSharp.Options.get": [ + { + "command": "show-options", + "evidence": [ + "src/LibTmux.FSharp/Hierarchy.fs:215" + ], + "reviewed": true, + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Options/TmuxOptions.cs:83", + "src/LibTmux/Options/TmuxOptions.cs:82", + "src/LibTmux/Options/TmuxOptions.cs:55" + ], + "port": "csharp", + "revision": "4f1b997b2e4aeb604c4184707e49dcd4dea44fef", + "symbol": "LibTmux.TmuxOptions.GetAsync" + } + } + ], + "LibTmux.FSharp.Options.set": [ + { + "command": "set-option", + "evidence": [ + "src/LibTmux.FSharp/Hierarchy.fs:218" + ], + "reviewed": true, + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Options/TmuxOptions.cs:201", + "src/LibTmux/Options/TmuxOptions.cs:197", + "src/LibTmux/Options/TmuxOptions.cs:167" + ], + "port": "csharp", + "revision": "4f1b997b2e4aeb604c4184707e49dcd4dea44fef", + "symbol": "LibTmux.TmuxOptions.SetAsync" + } + } + ], + "LibTmux.FSharp.Pane.capture": [ + { + "command": "capture-pane", + "evidence": [ + "src/LibTmux.FSharp/Hierarchy.fs:164" + ], + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Pane.Capture.cs:20", + "src/LibTmux/Pane.Capture.cs:18", + "src/LibTmux/Pane.Capture.cs:87" + ], + "port": "csharp", + "revision": "4f1b997b2e4aeb604c4184707e49dcd4dea44fef", + "symbol": "LibTmux.Pane.CaptureAsync" + } + } + ], + "LibTmux.FSharp.Pane.sendAndWait": [ + { + "command": "send-keys", + "evidence": [ + "src/LibTmux.FSharp/Hierarchy.fs:185" + ], + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Pane.Input.cs:24", + "src/LibTmux/Pane.Input.cs:71", + "src/LibTmux/Pane.Input.cs:94", + "src/LibTmux/Pane.Input.cs:100", + "src/LibTmux/Pane.Waiting.cs:196", + "src/LibTmux/Pane.Waiting.cs:130" + ], + "port": "csharp", + "reviewed": true, + "revision": "4f1b997b2e4aeb604c4184707e49dcd4dea44fef", + "symbol": "LibTmux.Pane.SendTextAndWaitAsync" + } + } + ], + "LibTmux.FSharp.Pane.sendAndWaitFor": [ + { + "command": "send-keys", + "evidence": [ + "src/LibTmux.FSharp/Hierarchy.fs:193" + ], + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Pane.Input.cs:24", + "src/LibTmux/Pane.Input.cs:71", + "src/LibTmux/Pane.Input.cs:94", + "src/LibTmux/Pane.Input.cs:100", + "src/LibTmux/Pane.Waiting.cs:196" + ], + "port": "csharp", + "reviewed": true, + "revision": "4f1b997b2e4aeb604c4184707e49dcd4dea44fef", + "symbol": "LibTmux.Pane.SendKeysAndWaitAsync" + } + } + ], + "LibTmux.FSharp.Pane.sendKeys": [ + { + "command": "send-keys", + "evidence": [ + "src/LibTmux.FSharp/Hierarchy.fs:207" + ], + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Pane.Input.cs:24", + "src/LibTmux/Pane.Input.cs:71", + "src/LibTmux/Pane.Input.cs:94", + "src/LibTmux/Pane.Input.cs:100" + ], + "port": "csharp", + "reviewed": true, + "revision": "4f1b997b2e4aeb604c4184707e49dcd4dea44fef", + "symbol": "LibTmux.Pane.SendKeysAsync" + } + } + ], + "LibTmux.FSharp.Pane.split": [ + { + "command": "split-window", + "evidence": [ + "src/LibTmux.FSharp/Hierarchy.fs:210" + ], + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Pane.Topology.cs:231", + "src/LibTmux/Pane.Topology.cs:229", + "src/LibTmux/Pane.Topology.cs:105" + ], + "port": "csharp", + "revision": "4f1b997b2e4aeb604c4184707e49dcd4dea44fef", + "symbol": "LibTmux.Pane.SplitAsync" + } + } + ], + "LibTmux.FSharp.Server.newSession": [ + { + "command": "list-panes", + "evidence": [ + "src/LibTmux.FSharp/Hierarchy.fs:87" + ], + "scope": "session", + "via": { + "evidence": [ + "src/LibTmux/Session.Relations.cs:167" + ], + "port": "csharp", + "revision": "4f1b997b2e4aeb604c4184707e49dcd4dea44fef", + "symbol": "LibTmux.Session.GetPanesAsync" + }, + "when": "the spec names a first window" + }, + { + "command": "list-panes", + "evidence": [ + "src/LibTmux.FSharp/Hierarchy.fs:109" + ], + "reviewed": true, + "scope": "window", + "via": { + "evidence": [ + "src/LibTmux/Window.Relations.cs:121" + ], + "port": "csharp", + "revision": "4f1b997b2e4aeb604c4184707e49dcd4dea44fef", + "symbol": "LibTmux.Window.GetPanesAsync" + }, + "when": "the spec has more than one window" + }, + { + "command": "new-session", + "evidence": [ + "src/LibTmux.FSharp/Hierarchy.fs:74" + ], + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Server.Lifecycle.cs:269", + "src/LibTmux/Server.Lifecycle.cs:147" + ], + "port": "csharp", + "reviewed": true, + "revision": "4f1b997b2e4aeb604c4184707e49dcd4dea44fef", + "symbol": "LibTmux.Server.CreateSessionAsync" + } + }, + { + "command": "new-window", + "evidence": [ + "src/LibTmux.FSharp/Hierarchy.fs:99" + ], + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Session.Lifecycle.cs:396", + "src/LibTmux/Session.Lifecycle.cs:289", + "src/LibTmux/Session.Lifecycle.cs:288" + ], + "port": "csharp", + "reviewed": true, + "revision": "4f1b997b2e4aeb604c4184707e49dcd4dea44fef", + "symbol": "LibTmux.Session.CreateWindowAsync" + }, + "when": "the spec has more than one window" + } + ], + "LibTmux.FSharp.Server.tryFindClient": [ + { + "command": "list-clients", + "evidence": [ + "src/LibTmux.FSharp/Hierarchy.fs:139" + ], + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Server.Clients.cs:36", + "src/LibTmux/Server.Clients.cs:22" + ], + "port": "csharp", + "revision": "4f1b997b2e4aeb604c4184707e49dcd4dea44fef", + "symbol": "LibTmux.Server.GetClientsAsync" + } + } + ] + } +} diff --git a/site/src/data/tmux-usage/go.json b/site/src/data/tmux-usage/go.json new file mode 100644 index 000000000..63b5cf466 --- /dev/null +++ b/site/src/data/tmux-usage/go.json @@ -0,0 +1,2829 @@ +{ + "commands": [ + "attach-session", + "bind-key", + "break-pane", + "capture-pane", + "choose-buffer", + "choose-client", + "choose-tree", + "clear-history", + "clear-prompt-history", + "clock-mode", + "command-prompt", + "confirm-before", + "copy-mode", + "customize-mode", + "delete-buffer", + "detach-client", + "display-menu", + "display-message", + "display-panes", + "display-popup", + "find-window", + "has-session", + "if-shell", + "join-pane", + "kill-pane", + "kill-server", + "kill-session", + "kill-window", + "last-pane", + "last-window", + "link-window", + "list-buffers", + "list-clients", + "list-commands", + "list-keys", + "list-panes", + "list-sessions", + "list-windows", + "load-buffer", + "lock-client", + "lock-server", + "lock-session", + "move-pane", + "move-window", + "new-pane", + "new-session", + "new-window", + "next-layout", + "next-window", + "paste-buffer", + "pipe-pane", + "previous-layout", + "previous-window", + "refresh-client", + "rename-session", + "rename-window", + "resize-pane", + "resize-window", + "respawn-pane", + "respawn-window", + "rotate-window", + "run-shell", + "save-buffer", + "select-layout", + "select-pane", + "select-window", + "send-keys", + "send-prefix", + "server-access", + "set-buffer", + "set-environment", + "set-hook", + "set-option", + "set-window-option", + "show-buffer", + "show-environment", + "show-hooks", + "show-messages", + "show-options", + "show-prompt-history", + "show-window-options", + "source-file", + "split-window", + "start-server", + "suspend-client", + "swap-pane", + "swap-window", + "switch-client", + "unbind-key", + "unlink-window", + "wait-for" + ], + "port": "go", + "repo": "libtmux/libtmux-go", + "revision": "2de249b600d65218ee8b8fdc07c6b2b919242151", + "schemaVersion": 1, + "symbols": { + "tmux.Client.Refresh": [ + { + "command": "list-clients", + "evidence": [ + "tmux/lookup.go:128" + ], + "scope": null, + "via": { + "evidence": [ + "tmux/lookup.go:94" + ], + "port": "go", + "revision": "2de249b600d65218ee8b8fdc07c6b2b919242151", + "symbol": "tmux.Server.Client" + } + }, + { + "command": "run-shell", + "evidence": [ + "tmux/lookup.go:128" + ], + "scope": null, + "via": { + "evidence": [ + "tmux/identity.go:226", + "tmux/identity.go:227", + "tmux/identity.go:339", + "tmux/identity.go:220", + "tmux/identity.go:216", + "tmux/lookup.go:179", + "tmux/lookup.go:139", + "tmux/lookup.go:94" + ], + "incidental": true, + "port": "go", + "reviewed": true, + "revision": "2de249b600d65218ee8b8fdc07c6b2b919242151", + "symbol": "tmux.Server.Client" + }, + "when": "the Server has no daemon identity" + } + ], + "tmux.Client.ResolveAttachment": [ + { + "command": "list-clients", + "evidence": [ + "tmux/client_attachment.go:47" + ], + "scope": null, + "via": { + "evidence": [ + "tmux/snapshot_capture.go:42", + "tmux/snapshot_capture.go:45" + ], + "port": "go", + "reviewed": true, + "revision": "2de249b600d65218ee8b8fdc07c6b2b919242151", + "symbol": "tmux.Server.Snapshot" + } + }, + { + "command": "list-panes", + "evidence": [ + "tmux/client_attachment.go:47" + ], + "scope": "server", + "via": { + "evidence": [ + "tmux/snapshot_capture.go:41", + "tmux/snapshot_capture.go:45" + ], + "port": "go", + "reviewed": true, + "revision": "2de249b600d65218ee8b8fdc07c6b2b919242151", + "symbol": "tmux.Server.Snapshot" + } + }, + { + "command": "list-sessions", + "evidence": [ + "tmux/client_attachment.go:47" + ], + "scope": null, + "via": { + "evidence": [ + "tmux/snapshot_capture.go:39", + "tmux/snapshot_capture.go:45" + ], + "port": "go", + "reviewed": true, + "revision": "2de249b600d65218ee8b8fdc07c6b2b919242151", + "symbol": "tmux.Server.Snapshot" + } + }, + { + "command": "list-windows", + "evidence": [ + "tmux/client_attachment.go:47" + ], + "scope": "server", + "via": { + "evidence": [ + "tmux/snapshot_capture.go:40", + "tmux/snapshot_capture.go:45" + ], + "port": "go", + "reviewed": true, + "revision": "2de249b600d65218ee8b8fdc07c6b2b919242151", + "symbol": "tmux.Server.Snapshot" + } + }, + { + "command": "run-shell", + "evidence": [ + "tmux/client_attachment.go:47" + ], + "scope": null, + "via": { + "evidence": [ + "tmux/identity.go:226", + "tmux/identity.go:227", + "tmux/identity.go:339", + "tmux/identity.go:220", + "tmux/identity.go:216", + "tmux/snapshot_capture.go:24" + ], + "incidental": true, + "port": "go", + "reviewed": true, + "revision": "2de249b600d65218ee8b8fdc07c6b2b919242151", + "symbol": "tmux.Server.Snapshot" + }, + "when": "the Server has no daemon identity" + } + ], + "tmux.GlobalSessionScope.AppendHook": [ + { + "command": "set-hook", + "evidence": [ + "tmux/hook_runtime.go:538", + "tmux/hook_runtime.go:547", + "tmux/option_mutation.go:472", + "tmux/hook_runtime.go:526", + "tmux/hook_runtime.go:242" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.GlobalSessionScope.AppendOption": [ + { + "command": "set-option", + "evidence": [ + "tmux/option_mutation.go:406", + "tmux/option_mutation.go:421", + "tmux/option_mutation.go:472", + "tmux/option_mutation.go:171" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.GlobalSessionScope.SetHook": [ + { + "command": "set-hook", + "evidence": [ + "tmux/hook_runtime.go:538", + "tmux/hook_runtime.go:547", + "tmux/option_mutation.go:472", + "tmux/hook_runtime.go:526", + "tmux/hook_runtime.go:187" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.GlobalSessionScope.SetHooks": [ + { + "command": "set-hook", + "evidence": [ + "tmux/hook_runtime.go:538", + "tmux/hook_runtime.go:547", + "tmux/option_mutation.go:472", + "tmux/hook_runtime.go:602", + "tmux/hook_runtime.go:419" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.GlobalSessionScope.SetOption": [ + { + "command": "set-option", + "evidence": [ + "tmux/option_mutation.go:406", + "tmux/option_mutation.go:421", + "tmux/option_mutation.go:472", + "tmux/option_mutation.go:56" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.GlobalSessionScope.UnsetHook": [ + { + "command": "set-hook", + "evidence": [ + "tmux/hook_runtime.go:538", + "tmux/hook_runtime.go:547", + "tmux/option_mutation.go:472", + "tmux/hook_runtime.go:526", + "tmux/hook_runtime.go:297" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.GlobalSessionScope.UnsetOption": [ + { + "command": "set-option", + "evidence": [ + "tmux/option_mutation.go:451", + "tmux/option_mutation.go:462", + "tmux/option_mutation.go:472", + "tmux/option_mutation.go:281" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.GlobalWindowScope.AppendHook": [ + { + "command": "set-hook", + "evidence": [ + "tmux/hook_runtime.go:538", + "tmux/hook_runtime.go:547", + "tmux/option_mutation.go:472", + "tmux/hook_runtime.go:526", + "tmux/hook_runtime.go:249" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.GlobalWindowScope.AppendOption": [ + { + "command": "set-option", + "evidence": [ + "tmux/option_mutation.go:406", + "tmux/option_mutation.go:421", + "tmux/option_mutation.go:472", + "tmux/option_mutation.go:192" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.GlobalWindowScope.SetHook": [ + { + "command": "set-hook", + "evidence": [ + "tmux/hook_runtime.go:538", + "tmux/hook_runtime.go:547", + "tmux/option_mutation.go:472", + "tmux/hook_runtime.go:526", + "tmux/hook_runtime.go:194" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.GlobalWindowScope.SetHooks": [ + { + "command": "set-hook", + "evidence": [ + "tmux/hook_runtime.go:538", + "tmux/hook_runtime.go:547", + "tmux/option_mutation.go:472", + "tmux/hook_runtime.go:602", + "tmux/hook_runtime.go:432" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.GlobalWindowScope.SetOption": [ + { + "command": "set-option", + "evidence": [ + "tmux/option_mutation.go:406", + "tmux/option_mutation.go:421", + "tmux/option_mutation.go:472", + "tmux/option_mutation.go:77" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.GlobalWindowScope.UnsetHook": [ + { + "command": "set-hook", + "evidence": [ + "tmux/hook_runtime.go:538", + "tmux/hook_runtime.go:547", + "tmux/option_mutation.go:472", + "tmux/hook_runtime.go:526", + "tmux/hook_runtime.go:304" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.GlobalWindowScope.UnsetOption": [ + { + "command": "set-option", + "evidence": [ + "tmux/option_mutation.go:451", + "tmux/option_mutation.go:462", + "tmux/option_mutation.go:472", + "tmux/option_mutation.go:303" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.NotificationStream.ContinuePane": [ + { + "command": "refresh-client", + "evidence": [ + "tmux/notification_stream.go:152" + ], + "scope": null + } + ], + "tmux.NotificationStream.Subscribe": [ + { + "command": "refresh-client", + "evidence": [ + "tmux/notification_stream.go:235" + ], + "scope": null + } + ], + "tmux.NotificationStream.Unsubscribe": [ + { + "command": "refresh-client", + "evidence": [ + "tmux/notification_stream.go:255" + ], + "scope": null + } + ], + "tmux.Pane.AppendHook": [ + { + "command": "set-hook", + "evidence": [ + "tmux/hook_runtime.go:538", + "tmux/hook_runtime.go:547", + "tmux/option_mutation.go:472", + "tmux/hook_runtime.go:526", + "tmux/hook_runtime.go:290" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.Pane.AppendOption": [ + { + "command": "set-option", + "evidence": [ + "tmux/option_mutation.go:406", + "tmux/option_mutation.go:421", + "tmux/option_mutation.go:472", + "tmux/option_mutation.go:253" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.Pane.BreakPane": [ + { + "command": "break-pane", + "evidence": [ + "tmux/pane_relocate.go:142" + ], + "scope": null + } + ], + "tmux.Pane.Capture": [ + { + "command": "capture-pane", + "evidence": [ + "tmux/pane_capture.go:282", + "tmux/pane_capture.go:222", + "tmux/pane_capture.go:232", + "tmux/pane_capture.go:127" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.Pane.CaptureBytes": [ + { + "command": "capture-pane", + "evidence": [ + "tmux/pane_capture.go:282", + "tmux/pane_capture.go:222", + "tmux/pane_capture.go:232", + "tmux/pane_capture.go:141" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.Pane.CaptureTo": [ + { + "command": "capture-pane", + "evidence": [ + "tmux/pane_capture.go:400", + "tmux/pane_capture.go:396", + "tmux/pane_capture.go:282" + ], + "scope": null + } + ], + "tmux.Pane.CaptureToBuffer": [ + { + "command": "capture-pane", + "evidence": [ + "tmux/pane_capture.go:282", + "tmux/pane_capture.go:222", + "tmux/pane_capture.go:232", + "tmux/pane_capture.go:157" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.Pane.CaptureToFile": [ + { + "command": "capture-pane", + "evidence": [ + "tmux/pane_capture.go:282", + "tmux/pane_capture.go:232", + "tmux/pane_capture.go:222", + "tmux/pane_capture.go:157", + "tmux/pane_capture.go:194" + ], + "reviewed": true, + "scope": null + }, + { + "command": "delete-buffer", + "evidence": [ + "tmux/pane_capture.go:200" + ], + "scope": null, + "via": { + "evidence": [ + "tmux/server_buffers.go:165" + ], + "port": "go", + "revision": "2de249b600d65218ee8b8fdc07c6b2b919242151", + "symbol": "tmux.Server.DeleteBuffer" + } + }, + { + "command": "save-buffer", + "evidence": [ + "tmux/pane_capture.go:201" + ], + "scope": null, + "via": { + "evidence": [ + "tmux/server_buffers.go:190" + ], + "port": "go", + "revision": "2de249b600d65218ee8b8fdc07c6b2b919242151", + "symbol": "tmux.Server.SaveBuffer" + } + } + ], + "tmux.Pane.ChooseBuffer": [ + { + "command": "choose-buffer", + "evidence": [ + "tmux/pane_modes.go:178" + ], + "scope": null + } + ], + "tmux.Pane.ChooseClient": [ + { + "command": "choose-client", + "evidence": [ + "tmux/pane_modes.go:184" + ], + "scope": null + } + ], + "tmux.Pane.ChooseTree": [ + { + "command": "choose-tree", + "evidence": [ + "tmux/pane_modes.go:247" + ], + "scope": null + } + ], + "tmux.Pane.ClearHistory": [ + { + "command": "clear-history", + "evidence": [ + "tmux/pane_input.go:426", + "tmux/pane_input.go:419", + "tmux/pane_input.go:436" + ], + "scope": null + } + ], + "tmux.Pane.ClockMode": [ + { + "command": "clock-mode", + "evidence": [ + "tmux/pane_modes.go:172" + ], + "scope": null + } + ], + "tmux.Pane.CopyMode": [ + { + "command": "copy-mode", + "evidence": [ + "tmux/pane_modes.go:167" + ], + "scope": null + } + ], + "tmux.Pane.CustomizeMode": [ + { + "command": "customize-mode", + "evidence": [ + "tmux/pane_modes.go:190" + ], + "scope": null + } + ], + "tmux.Pane.DisplayMessage": [ + { + "command": "display-message", + "evidence": [ + "tmux/display_message.go:254", + "tmux/display_message.go:126" + ], + "scope": null + } + ], + "tmux.Pane.DisplayPanes": [ + { + "command": "display-panes", + "evidence": [ + "tmux/pane_modes.go:305" + ], + "scope": null + } + ], + "tmux.Pane.DisplayPopup": [ + { + "command": "display-popup", + "evidence": [ + "tmux/pane_popup.go:204" + ], + "scope": null + } + ], + "tmux.Pane.Enter": [ + { + "command": "send-keys", + "evidence": [ + "tmux/pane_input.go:323" + ], + "scope": null + } + ], + "tmux.Pane.FindWindow": [ + { + "command": "find-window", + "evidence": [ + "tmux/pane_modes.go:281" + ], + "scope": null + } + ], + "tmux.Pane.Join": [ + { + "command": "join-pane", + "evidence": [ + "tmux/pane_relocate.go:95" + ], + "scope": null + } + ], + "tmux.Pane.Kill": [ + { + "command": "kill-pane", + "evidence": [ + "tmux/lifecycle_kill.go:257" + ], + "scope": null + } + ], + "tmux.Pane.KillOthers": [ + { + "command": "kill-pane", + "evidence": [ + "tmux/lifecycle_kill.go:267" + ], + "scope": null + } + ], + "tmux.Pane.Move": [ + { + "command": "move-pane", + "evidence": [ + "tmux/pane_relocate.go:81" + ], + "scope": null + } + ], + "tmux.Pane.NewPane": [ + { + "command": "new-pane", + "evidence": [ + "tmux/pane_create.go:217", + "tmux/pane_create.go:142" + ], + "scope": null + } + ], + "tmux.Pane.OpenObservation": [ + { + "command": "capture-pane", + "evidence": [ + "tmux/control_observation.go:350", + "tmux/control_observation.go:305" + ], + "scope": null + }, + { + "command": "delete-buffer", + "evidence": [ + "tmux/control_observation.go:350", + "tmux/control_observation.go:305" + ], + "scope": null + }, + { + "command": "list-windows", + "evidence": [ + "tmux/control_observation.go:350", + "tmux/control_observation.go:305" + ], + "forwardable": true, + "reviewed": true, + "scope": "session" + }, + { + "command": "refresh-client", + "evidence": [ + "tmux/control_observation.go:350", + "tmux/control_observation.go:305" + ], + "scope": null + }, + { + "command": "save-buffer", + "evidence": [ + "tmux/control_observation.go:350", + "tmux/control_observation.go:305" + ], + "scope": null + } + ], + "tmux.Pane.PasteBuffer": [ + { + "command": "paste-buffer", + "evidence": [ + "tmux/pane_process.go:186" + ], + "scope": null + } + ], + "tmux.Pane.Pipe": [ + { + "command": "pipe-pane", + "evidence": [ + "tmux/pane_process.go:216", + "tmux/pane_process.go:212", + "tmux/pane_process.go:89" + ], + "scope": null + } + ], + "tmux.Pane.Refresh": [ + { + "command": "list-panes", + "evidence": [ + "tmux/lookup.go:123" + ], + "scope": "window", + "via": { + "evidence": [ + "tmux/lookup.go:198", + "tmux/lookup.go:196", + "tmux/lookup.go:139", + "tmux/lookup.go:79" + ], + "port": "go", + "reviewed": true, + "revision": "2de249b600d65218ee8b8fdc07c6b2b919242151", + "symbol": "tmux.Server.Pane" + } + }, + { + "command": "run-shell", + "evidence": [ + "tmux/lookup.go:123" + ], + "scope": null, + "via": { + "evidence": [ + "tmux/identity.go:226", + "tmux/identity.go:227", + "tmux/identity.go:339", + "tmux/identity.go:220", + "tmux/identity.go:216", + "tmux/lookup.go:179", + "tmux/lookup.go:139", + "tmux/lookup.go:79" + ], + "incidental": true, + "port": "go", + "reviewed": true, + "revision": "2de249b600d65218ee8b8fdc07c6b2b919242151", + "symbol": "tmux.Server.Pane" + }, + "when": "the Server has no daemon identity" + } + ], + "tmux.Pane.Reset": [ + { + "command": "clear-history", + "evidence": [ + "tmux/pane_input.go:473" + ], + "scope": null + }, + { + "command": "send-keys", + "evidence": [ + "tmux/pane_input.go:473" + ], + "scope": null + } + ], + "tmux.Pane.Resize": [ + { + "command": "resize-pane", + "evidence": [ + "tmux/pane_geometry.go:101", + "tmux/pane_geometry.go:96", + "tmux/pane_geometry.go:126" + ], + "scope": null + } + ], + "tmux.Pane.Respawn": [ + { + "command": "respawn-pane", + "evidence": [ + "tmux/pane_process.go:66" + ], + "scope": null + } + ], + "tmux.Pane.Select": [ + { + "command": "list-panes", + "evidence": [ + "tmux/lookup.go:369", + "tmux/window_pane_topology.go:199" + ], + "scope": "window" + }, + { + "command": "select-pane", + "evidence": [ + "tmux/window_pane_topology.go:195", + "tmux/window_pane_topology.go:191", + "tmux/window_pane_topology.go:293" + ], + "scope": null + } + ], + "tmux.Pane.SendKeys": [ + { + "command": "send-keys", + "evidence": [ + "tmux/pane_input.go:164", + "tmux/pane_input.go:157", + "tmux/pane_input.go:203" + ], + "scope": null + } + ], + "tmux.Pane.SendKeySequence": [ + { + "command": "send-keys", + "evidence": [ + "tmux/pane_input.go:81", + "tmux/pane_input.go:77", + "tmux/pane_input.go:94" + ], + "scope": null + } + ], + "tmux.Pane.SendPrefix": [ + { + "command": "send-prefix", + "evidence": [ + "tmux/pane_input.go:385", + "tmux/pane_input.go:381", + "tmux/pane_input.go:339" + ], + "scope": null + } + ], + "tmux.Pane.SetHook": [ + { + "command": "set-hook", + "evidence": [ + "tmux/hook_runtime.go:538", + "tmux/hook_runtime.go:547", + "tmux/option_mutation.go:472", + "tmux/hook_runtime.go:526", + "tmux/hook_runtime.go:235" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.Pane.SetHooks": [ + { + "command": "set-hook", + "evidence": [ + "tmux/hook_runtime.go:538", + "tmux/hook_runtime.go:547", + "tmux/option_mutation.go:472", + "tmux/hook_runtime.go:602", + "tmux/hook_runtime.go:492" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.Pane.SetOption": [ + { + "command": "set-option", + "evidence": [ + "tmux/option_mutation.go:406", + "tmux/option_mutation.go:421", + "tmux/option_mutation.go:472", + "tmux/option_mutation.go:138" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.Pane.SetTitle": [ + { + "command": "select-pane", + "evidence": [ + "tmux/pane_geometry.go:174" + ], + "scope": null + } + ], + "tmux.Pane.Split": [ + { + "command": "split-window", + "evidence": [ + "tmux/pane_create.go:425", + "tmux/pane_create.go:358", + "tmux/pane_create.go:331" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.Pane.Swap": [ + { + "command": "swap-pane", + "evidence": [ + "tmux/window_pane_swap.go:174" + ], + "scope": null + } + ], + "tmux.Pane.UnsetHook": [ + { + "command": "set-hook", + "evidence": [ + "tmux/hook_runtime.go:538", + "tmux/hook_runtime.go:547", + "tmux/option_mutation.go:472", + "tmux/hook_runtime.go:526", + "tmux/hook_runtime.go:345" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.Pane.UnsetOption": [ + { + "command": "set-option", + "evidence": [ + "tmux/option_mutation.go:451", + "tmux/option_mutation.go:462", + "tmux/option_mutation.go:472", + "tmux/option_mutation.go:370" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.Running.Kill": [ + { + "command": "run-shell", + "evidence": [ + "tmux/session_run.go:663" + ], + "scope": null, + "via": { + "evidence": [ + "tmux/server_exec.go:253" + ], + "port": "go", + "revision": "2de249b600d65218ee8b8fdc07c6b2b919242151", + "symbol": "tmux.Server.RunShell" + } + } + ], + "tmux.Running.StreamTo": [ + { + "command": "capture-pane", + "evidence": [ + "tmux/session_run.go:619" + ], + "scope": null, + "via": { + "evidence": [ + "tmux/control_observation.go:350", + "tmux/control_observation.go:305" + ], + "port": "go", + "revision": "2de249b600d65218ee8b8fdc07c6b2b919242151", + "symbol": "tmux.Pane.OpenObservation" + } + }, + { + "command": "delete-buffer", + "evidence": [ + "tmux/session_run.go:619" + ], + "scope": null, + "via": { + "evidence": [ + "tmux/control_observation.go:350", + "tmux/control_observation.go:305" + ], + "port": "go", + "revision": "2de249b600d65218ee8b8fdc07c6b2b919242151", + "symbol": "tmux.Pane.OpenObservation" + } + }, + { + "command": "list-windows", + "evidence": [ + "tmux/session_run.go:619" + ], + "scope": "session", + "via": { + "evidence": [ + "tmux/control_observation.go:350", + "tmux/control_observation.go:305" + ], + "port": "go", + "reviewed": true, + "revision": "2de249b600d65218ee8b8fdc07c6b2b919242151", + "symbol": "tmux.Pane.OpenObservation" + } + }, + { + "command": "refresh-client", + "evidence": [ + "tmux/session_run.go:619" + ], + "scope": null, + "via": { + "evidence": [ + "tmux/control_observation.go:350", + "tmux/control_observation.go:305" + ], + "port": "go", + "revision": "2de249b600d65218ee8b8fdc07c6b2b919242151", + "symbol": "tmux.Pane.OpenObservation" + } + }, + { + "command": "save-buffer", + "evidence": [ + "tmux/session_run.go:619" + ], + "scope": null, + "via": { + "evidence": [ + "tmux/control_observation.go:350", + "tmux/control_observation.go:305" + ], + "port": "go", + "revision": "2de249b600d65218ee8b8fdc07c6b2b919242151", + "symbol": "tmux.Pane.OpenObservation" + } + } + ], + "tmux.Server.AppendOption": [ + { + "command": "set-option", + "evidence": [ + "tmux/option_mutation.go:406", + "tmux/option_mutation.go:421", + "tmux/option_mutation.go:472", + "tmux/option_mutation.go:150" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.Server.AttachSession": [ + { + "command": "attach-session", + "evidence": [ + "tmux/server_attach.go:139", + "tmux/server_attach.go:93" + ], + "scope": null + } + ], + "tmux.Server.BindKey": [ + { + "command": "bind-key", + "evidence": [ + "tmux/server_keys.go:97" + ], + "scope": null + } + ], + "tmux.Server.CheckAlive": [ + { + "command": "list-sessions", + "evidence": [ + "tmux/server.go:375" + ], + "scope": null + } + ], + "tmux.Server.ClearPromptHistory": [ + { + "command": "clear-prompt-history", + "evidence": [ + "tmux/prompt_history.go:66" + ], + "scope": null + } + ], + "tmux.Server.Client": [ + { + "command": "list-clients", + "evidence": [ + "tmux/lookup.go:94" + ], + "scope": null + }, + { + "command": "run-shell", + "evidence": [ + "tmux/identity.go:226", + "tmux/identity.go:227", + "tmux/identity.go:339", + "tmux/identity.go:220", + "tmux/identity.go:216", + "tmux/lookup.go:179", + "tmux/lookup.go:139", + "tmux/lookup.go:94" + ], + "forwardable": true, + "incidental": true, + "reviewed": true, + "scope": null, + "when": "the Server has no daemon identity" + } + ], + "tmux.Server.CommandPrompt": [ + { + "command": "command-prompt", + "evidence": [ + "tmux/server_interactive.go:294" + ], + "scope": null + } + ], + "tmux.Server.ConfirmBefore": [ + { + "command": "confirm-before", + "evidence": [ + "tmux/server_interactive.go:219" + ], + "scope": null + } + ], + "tmux.Server.DeleteBuffer": [ + { + "command": "delete-buffer", + "evidence": [ + "tmux/server_buffers.go:165" + ], + "scope": null + } + ], + "tmux.Server.DetachAllClients": [ + { + "command": "detach-client", + "evidence": [ + "tmux/server_clients.go:257" + ], + "scope": null + } + ], + "tmux.Server.DetachClient": [ + { + "command": "detach-client", + "evidence": [ + "tmux/server_clients.go:229" + ], + "scope": null + } + ], + "tmux.Server.DisplayMenu": [ + { + "command": "display-menu", + "evidence": [ + "tmux/server_interactive.go:401" + ], + "scope": null + } + ], + "tmux.Server.DisplayMessage": [ + { + "command": "display-message", + "evidence": [ + "tmux/display_message.go:254", + "tmux/display_message.go:85" + ], + "scope": null + } + ], + "tmux.Server.GetEnvironment": [ + { + "command": "show-environment", + "evidence": [ + "tmux/environment.go:282", + "tmux/environment.go:118" + ], + "scope": null + } + ], + "tmux.Server.HasSession": [ + { + "command": "has-session", + "evidence": [ + "tmux/session_lifecycle.go:143", + "tmux/session_lifecycle.go:139" + ], + "reviewed": true, + "scope": null, + "when": "the request sets Pattern" + }, + { + "command": "list-sessions", + "evidence": [ + "tmux/session_lifecycle.go:157", + "tmux/session_lifecycle.go:140" + ], + "scope": null, + "when": "the request does not set Pattern" + } + ], + "tmux.Server.IfShell": [ + { + "command": "if-shell", + "evidence": [ + "tmux/server_exec.go:413" + ], + "scope": null + } + ], + "tmux.Server.IsAlive": [ + { + "command": "list-sessions", + "evidence": [ + "tmux/server.go:356" + ], + "scope": null + } + ], + "tmux.Server.Kill": [ + { + "command": "kill-server", + "evidence": [ + "tmux/lifecycle_kill.go:52" + ], + "scope": null + } + ], + "tmux.Server.KillSession": [ + { + "command": "kill-session", + "evidence": [ + "tmux/lifecycle_kill.go:101" + ], + "scope": null + } + ], + "tmux.Server.ListBuffers": [ + { + "command": "list-buffers", + "evidence": [ + "tmux/server_buffers.go:308" + ], + "scope": null + } + ], + "tmux.Server.ListClients": [ + { + "command": "list-clients", + "evidence": [ + "tmux/server_keys.go:212" + ], + "scope": null + } + ], + "tmux.Server.ListCommands": [ + { + "command": "list-commands", + "evidence": [ + "tmux/server_keys.go:204" + ], + "scope": null + } + ], + "tmux.Server.ListKeys": [ + { + "command": "list-keys", + "evidence": [ + "tmux/server_keys.go:183" + ], + "scope": null + } + ], + "tmux.Server.LoadBuffer": [ + { + "command": "load-buffer", + "evidence": [ + "tmux/server_buffers.go:212" + ], + "scope": null + } + ], + "tmux.Server.LoadBufferFrom": [ + { + "command": "load-buffer", + "evidence": [ + "tmux/server_buffers.go:243" + ], + "scope": null + } + ], + "tmux.Server.LockClient": [ + { + "command": "lock-client", + "evidence": [ + "tmux/server_clients.go:189" + ], + "scope": null + } + ], + "tmux.Server.LockServer": [ + { + "command": "lock-server", + "evidence": [ + "tmux/server_clients.go:141" + ], + "scope": null + } + ], + "tmux.Server.NewSession": [ + { + "command": "kill-session", + "evidence": [ + "tmux/session_lifecycle.go:225", + "tmux/session_lifecycle.go:221" + ], + "reviewed": true, + "scope": null, + "when": "KillExisting is set, session exists" + }, + { + "command": "list-sessions", + "evidence": [ + "tmux/session_lifecycle.go:157", + "tmux/session_lifecycle.go:210", + "tmux/session_lifecycle.go:217" + ], + "incidental": true, + "reviewed": true, + "scope": null, + "when": "a name is given" + }, + { + "command": "new-session", + "evidence": [ + "tmux/session_lifecycle.go:93", + "tmux/session_lifecycle.go:64", + "tmux/session_lifecycle.go:232", + "tmux/session_lifecycle.go:236" + ], + "forwardable": true, + "reviewed": true, + "scope": null + } + ], + "tmux.Server.NewSessionConnection": [ + { + "command": "list-sessions", + "evidence": [ + "tmux/session_lifecycle.go:157", + "tmux/connection.go:184", + "tmux/connection.go:185" + ], + "incidental": true, + "reviewed": true, + "scope": null, + "when": "a name is given" + }, + { + "command": "new-session", + "evidence": [ + "tmux/session_lifecycle.go:93", + "tmux/connection.go:193", + "tmux/connection.go:307", + "tmux/connection.go:177" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.Server.OpenControl": [ + { + "command": "attach-session", + "evidence": [ + "tmux/control_startup.go:155", + "tmux/control_startup.go:107", + "tmux/control_startup.go:96", + "tmux/identity.go:137", + "tmux/control_startup.go:50", + "tmux/control_startup.go:42" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.Server.OpenNotifications": [ + { + "command": "attach-session", + "evidence": [ + "tmux/control_startup.go:155", + "tmux/control_startup.go:107", + "tmux/control_startup.go:96", + "tmux/identity.go:137", + "tmux/notification_stream.go:116" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.Server.Pane": [ + { + "command": "list-panes", + "evidence": [ + "tmux/lookup.go:198", + "tmux/lookup.go:196", + "tmux/lookup.go:139", + "tmux/lookup.go:79" + ], + "forwardable": true, + "reviewed": true, + "scope": "window" + }, + { + "command": "run-shell", + "evidence": [ + "tmux/identity.go:226", + "tmux/identity.go:227", + "tmux/identity.go:339", + "tmux/identity.go:220", + "tmux/identity.go:216", + "tmux/lookup.go:179", + "tmux/lookup.go:139", + "tmux/lookup.go:79" + ], + "forwardable": true, + "incidental": true, + "reviewed": true, + "scope": null, + "when": "the Server has no daemon identity" + } + ], + "tmux.Server.RefreshClient": [ + { + "command": "refresh-client", + "evidence": [ + "tmux/server_clients.go:175" + ], + "scope": null + } + ], + "tmux.Server.RemoveEnvironment": [ + { + "command": "set-environment", + "evidence": [ + "tmux/environment.go:237", + "tmux/environment.go:100" + ], + "scope": null + } + ], + "tmux.Server.RunShell": [ + { + "command": "run-shell", + "evidence": [ + "tmux/server_exec.go:253" + ], + "scope": null + } + ], + "tmux.Server.SaveBuffer": [ + { + "command": "save-buffer", + "evidence": [ + "tmux/server_buffers.go:190" + ], + "scope": null + } + ], + "tmux.Server.SaveBufferTo": [ + { + "command": "save-buffer", + "evidence": [ + "tmux/server_buffers.go:275" + ], + "scope": null + } + ], + "tmux.Server.SearchClients": [ + { + "command": "list-clients", + "evidence": [ + "tmux/search.go:46" + ], + "scope": null + }, + { + "command": "run-shell", + "evidence": [ + "tmux/identity.go:226", + "tmux/identity.go:227", + "tmux/identity.go:339", + "tmux/identity.go:220", + "tmux/identity.go:216", + "tmux/search.go:195", + "tmux/search.go:175", + "tmux/search.go:46" + ], + "forwardable": true, + "incidental": true, + "reviewed": true, + "scope": null, + "when": "the Server has no daemon identity" + } + ], + "tmux.Server.SearchPanes": [ + { + "command": "list-panes", + "evidence": [ + "tmux/search.go:78" + ], + "scope": "server" + }, + { + "command": "run-shell", + "evidence": [ + "tmux/identity.go:226", + "tmux/identity.go:227", + "tmux/identity.go:339", + "tmux/identity.go:220", + "tmux/identity.go:216", + "tmux/search.go:195", + "tmux/search.go:175", + "tmux/search.go:78" + ], + "forwardable": true, + "incidental": true, + "reviewed": true, + "scope": null, + "when": "the Server has no daemon identity" + } + ], + "tmux.Server.SearchSessions": [ + { + "command": "list-sessions", + "evidence": [ + "tmux/search.go:28" + ], + "scope": null + }, + { + "command": "run-shell", + "evidence": [ + "tmux/identity.go:226", + "tmux/identity.go:227", + "tmux/identity.go:339", + "tmux/identity.go:220", + "tmux/identity.go:216", + "tmux/search.go:195", + "tmux/search.go:175", + "tmux/search.go:28" + ], + "forwardable": true, + "incidental": true, + "reviewed": true, + "scope": null, + "when": "the Server has no daemon identity" + } + ], + "tmux.Server.SearchWindows": [ + { + "command": "list-windows", + "evidence": [ + "tmux/search.go:62" + ], + "scope": "server" + }, + { + "command": "run-shell", + "evidence": [ + "tmux/identity.go:226", + "tmux/identity.go:227", + "tmux/identity.go:339", + "tmux/identity.go:220", + "tmux/identity.go:216", + "tmux/search.go:195", + "tmux/search.go:175", + "tmux/search.go:62" + ], + "forwardable": true, + "incidental": true, + "reviewed": true, + "scope": null, + "when": "the Server has no daemon identity" + } + ], + "tmux.Server.ServerAccess": [ + { + "command": "server-access", + "evidence": [ + "tmux/server_clients.go:133" + ], + "scope": null + } + ], + "tmux.Server.Session": [ + { + "command": "list-sessions", + "evidence": [ + "tmux/lookup.go:11" + ], + "scope": null + }, + { + "command": "run-shell", + "evidence": [ + "tmux/identity.go:226", + "tmux/identity.go:227", + "tmux/identity.go:339", + "tmux/identity.go:220", + "tmux/identity.go:216", + "tmux/lookup.go:179", + "tmux/lookup.go:139", + "tmux/lookup.go:11" + ], + "forwardable": true, + "incidental": true, + "reviewed": true, + "scope": null, + "when": "the Server has no daemon identity" + } + ], + "tmux.Server.SessionByName": [ + { + "command": "list-sessions", + "evidence": [ + "tmux/lookup.go:36" + ], + "scope": null + }, + { + "command": "run-shell", + "evidence": [ + "tmux/identity.go:226", + "tmux/identity.go:227", + "tmux/identity.go:339", + "tmux/identity.go:220", + "tmux/identity.go:216", + "tmux/search.go:195", + "tmux/search.go:175", + "tmux/lookup.go:36" + ], + "forwardable": true, + "incidental": true, + "reviewed": true, + "scope": null, + "when": "the Server has no daemon identity" + } + ], + "tmux.Server.SetBuffer": [ + { + "command": "set-buffer", + "evidence": [ + "tmux/server_buffers.go:105" + ], + "scope": null + } + ], + "tmux.Server.SetEnvironment": [ + { + "command": "set-environment", + "evidence": [ + "tmux/environment.go:220", + "tmux/environment.go:89" + ], + "scope": null + } + ], + "tmux.Server.SetOption": [ + { + "command": "set-option", + "evidence": [ + "tmux/option_mutation.go:406", + "tmux/option_mutation.go:421", + "tmux/option_mutation.go:472", + "tmux/option_mutation.go:35" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.Server.ShowBuffer": [ + { + "command": "show-buffer", + "evidence": [ + "tmux/server_buffers.go:148", + "tmux/server_buffers.go:119" + ], + "scope": null + } + ], + "tmux.Server.ShowBufferBytes": [ + { + "command": "show-buffer", + "evidence": [ + "tmux/server_buffers.go:148", + "tmux/server_buffers.go:131" + ], + "scope": null + } + ], + "tmux.Server.ShowEnvironment": [ + { + "command": "show-environment", + "evidence": [ + "tmux/environment.go:259", + "tmux/environment.go:109" + ], + "scope": null + } + ], + "tmux.Server.ShowMessages": [ + { + "command": "show-messages", + "evidence": [ + "tmux/server_keys.go:247" + ], + "scope": null + } + ], + "tmux.Server.ShowPromptHistory": [ + { + "command": "show-prompt-history", + "evidence": [ + "tmux/prompt_history.go:48" + ], + "scope": null + } + ], + "tmux.Server.Snapshot": [ + { + "command": "list-clients", + "evidence": [ + "tmux/snapshot_capture.go:42", + "tmux/snapshot_capture.go:45" + ], + "forwardable": true, + "reviewed": true, + "scope": null + }, + { + "command": "list-panes", + "evidence": [ + "tmux/snapshot_capture.go:41", + "tmux/snapshot_capture.go:45" + ], + "forwardable": true, + "reviewed": true, + "scope": "server" + }, + { + "command": "list-sessions", + "evidence": [ + "tmux/snapshot_capture.go:39", + "tmux/snapshot_capture.go:45" + ], + "forwardable": true, + "reviewed": true, + "scope": null + }, + { + "command": "list-windows", + "evidence": [ + "tmux/snapshot_capture.go:40", + "tmux/snapshot_capture.go:45" + ], + "forwardable": true, + "reviewed": true, + "scope": "server" + }, + { + "command": "run-shell", + "evidence": [ + "tmux/identity.go:226", + "tmux/identity.go:227", + "tmux/identity.go:339", + "tmux/identity.go:220", + "tmux/identity.go:216", + "tmux/snapshot_capture.go:24" + ], + "forwardable": true, + "incidental": true, + "reviewed": true, + "scope": null, + "when": "the Server has no daemon identity" + } + ], + "tmux.Server.SourceFile": [ + { + "command": "source-file", + "evidence": [ + "tmux/server_exec.go:451", + "tmux/server_exec.go:447", + "tmux/server_exec.go:475" + ], + "scope": null + } + ], + "tmux.Server.Start": [ + { + "command": "start-server", + "evidence": [ + "tmux/server_attach.go:71" + ], + "scope": null + } + ], + "tmux.Server.SuspendClient": [ + { + "command": "suspend-client", + "evidence": [ + "tmux/server_clients.go:203" + ], + "scope": null + } + ], + "tmux.Server.SwitchClient": [ + { + "command": "switch-client", + "evidence": [ + "tmux/server_clients.go:274" + ], + "scope": null + } + ], + "tmux.Server.UnbindKey": [ + { + "command": "unbind-key", + "evidence": [ + "tmux/server_keys.go:138" + ], + "scope": null + } + ], + "tmux.Server.UnsetEnvironment": [ + { + "command": "set-environment", + "evidence": [ + "tmux/environment.go:237", + "tmux/environment.go:95" + ], + "scope": null + } + ], + "tmux.Server.UnsetOption": [ + { + "command": "set-option", + "evidence": [ + "tmux/option_mutation.go:451", + "tmux/option_mutation.go:462", + "tmux/option_mutation.go:472", + "tmux/option_mutation.go:267" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.Server.WaitFor": [ + { + "command": "wait-for", + "evidence": [ + "tmux/server_exec.go:318" + ], + "scope": null + } + ], + "tmux.Server.Window": [ + { + "command": "list-windows", + "evidence": [ + "tmux/lookup.go:198", + "tmux/lookup.go:196", + "tmux/lookup.go:139", + "tmux/lookup.go:62" + ], + "forwardable": true, + "reviewed": true, + "scope": "session" + }, + { + "command": "run-shell", + "evidence": [ + "tmux/identity.go:226", + "tmux/identity.go:227", + "tmux/identity.go:339", + "tmux/identity.go:220", + "tmux/identity.go:216", + "tmux/lookup.go:179", + "tmux/lookup.go:139", + "tmux/lookup.go:62" + ], + "forwardable": true, + "incidental": true, + "reviewed": true, + "scope": null, + "when": "the Server has no daemon identity" + } + ], + "tmux.Session.AppendHook": [ + { + "command": "set-hook", + "evidence": [ + "tmux/hook_runtime.go:538", + "tmux/hook_runtime.go:547", + "tmux/option_mutation.go:472", + "tmux/hook_runtime.go:526", + "tmux/hook_runtime.go:268" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.Session.AppendOption": [ + { + "command": "set-option", + "evidence": [ + "tmux/option_mutation.go:406", + "tmux/option_mutation.go:421", + "tmux/option_mutation.go:472", + "tmux/option_mutation.go:217" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.Session.Attach": [ + { + "command": "attach-session", + "evidence": [ + "tmux/server_attach.go:139", + "tmux/server_attach.go:113" + ], + "scope": null + } + ], + "tmux.Session.DetachClients": [ + { + "command": "detach-client", + "evidence": [ + "tmux/server_clients.go:329" + ], + "scope": null + } + ], + "tmux.Session.GetEnvironment": [ + { + "command": "show-environment", + "evidence": [ + "tmux/environment.go:282", + "tmux/environment.go:180" + ], + "scope": null + } + ], + "tmux.Session.Kill": [ + { + "command": "kill-session", + "evidence": [ + "tmux/lifecycle_kill.go:151", + "tmux/lifecycle_kill.go:172", + "tmux/lifecycle_kill.go:114" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.Session.KillWindow": [ + { + "command": "kill-window", + "evidence": [ + "tmux/lifecycle_kill.go:213" + ], + "scope": null + } + ], + "tmux.Session.KillWith": [ + { + "command": "kill-session", + "evidence": [ + "tmux/lifecycle_kill.go:172" + ], + "scope": null + } + ], + "tmux.Session.LastWindow": [ + { + "command": "last-window", + "evidence": [ + "tmux/session_navigation.go:29" + ], + "scope": null + } + ], + "tmux.Session.Lock": [ + { + "command": "lock-session", + "evidence": [ + "tmux/server_clients.go:295" + ], + "scope": null + } + ], + "tmux.Session.NewWindow": [ + { + "command": "new-window", + "evidence": [ + "tmux/window_lifecycle.go:159", + "tmux/window_lifecycle.go:215", + "tmux/window_lifecycle.go:226", + "tmux/window_lifecycle.go:90" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.Session.NextWindow": [ + { + "command": "next-window", + "evidence": [ + "tmux/session_navigation.go:38" + ], + "scope": null + } + ], + "tmux.Session.PreviousWindow": [ + { + "command": "previous-window", + "evidence": [ + "tmux/session_navigation.go:48" + ], + "scope": null + } + ], + "tmux.Session.Refresh": [ + { + "command": "list-sessions", + "evidence": [ + "tmux/lookup.go:109" + ], + "scope": null, + "via": { + "evidence": [ + "tmux/lookup.go:11" + ], + "port": "go", + "revision": "2de249b600d65218ee8b8fdc07c6b2b919242151", + "symbol": "tmux.Server.Session" + } + }, + { + "command": "run-shell", + "evidence": [ + "tmux/lookup.go:109" + ], + "scope": null, + "via": { + "evidence": [ + "tmux/identity.go:226", + "tmux/identity.go:227", + "tmux/identity.go:339", + "tmux/identity.go:220", + "tmux/identity.go:216", + "tmux/lookup.go:179", + "tmux/lookup.go:139", + "tmux/lookup.go:11" + ], + "incidental": true, + "port": "go", + "reviewed": true, + "revision": "2de249b600d65218ee8b8fdc07c6b2b919242151", + "symbol": "tmux.Server.Session" + }, + "when": "the Server has no daemon identity" + } + ], + "tmux.Session.RemoveEnvironment": [ + { + "command": "set-environment", + "evidence": [ + "tmux/environment.go:237", + "tmux/environment.go:153" + ], + "scope": null + } + ], + "tmux.Session.Rename": [ + { + "command": "rename-session", + "evidence": [ + "tmux/session_lifecycle.go:274" + ], + "scope": null + } + ], + "tmux.Session.SearchPanes": [ + { + "command": "list-panes", + "evidence": [ + "tmux/search.go:127" + ], + "scope": "session" + }, + { + "command": "run-shell", + "evidence": [ + "tmux/identity.go:226", + "tmux/identity.go:227", + "tmux/identity.go:339", + "tmux/identity.go:220", + "tmux/identity.go:216", + "tmux/search.go:195", + "tmux/search.go:175", + "tmux/search.go:127" + ], + "forwardable": true, + "incidental": true, + "reviewed": true, + "scope": null, + "when": "the Server has no daemon identity" + } + ], + "tmux.Session.SearchWindows": [ + { + "command": "list-windows", + "evidence": [ + "tmux/search.go:100" + ], + "scope": "session" + }, + { + "command": "run-shell", + "evidence": [ + "tmux/identity.go:226", + "tmux/identity.go:227", + "tmux/identity.go:339", + "tmux/identity.go:220", + "tmux/identity.go:216", + "tmux/search.go:195", + "tmux/search.go:175", + "tmux/search.go:100" + ], + "forwardable": true, + "incidental": true, + "reviewed": true, + "scope": null, + "when": "the Server has no daemon identity" + } + ], + "tmux.Session.SelectWindow": [ + { + "command": "select-window", + "evidence": [ + "tmux/session_navigation.go:99" + ], + "scope": null + } + ], + "tmux.Session.SetEnvironment": [ + { + "command": "set-environment", + "evidence": [ + "tmux/environment.go:220", + "tmux/environment.go:133" + ], + "scope": null + } + ], + "tmux.Session.SetHook": [ + { + "command": "set-hook", + "evidence": [ + "tmux/hook_runtime.go:538", + "tmux/hook_runtime.go:547", + "tmux/option_mutation.go:472", + "tmux/hook_runtime.go:526", + "tmux/hook_runtime.go:213" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.Session.SetHooks": [ + { + "command": "set-hook", + "evidence": [ + "tmux/hook_runtime.go:538", + "tmux/hook_runtime.go:547", + "tmux/option_mutation.go:472", + "tmux/hook_runtime.go:602", + "tmux/hook_runtime.go:458" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.Session.SetOption": [ + { + "command": "set-option", + "evidence": [ + "tmux/option_mutation.go:406", + "tmux/option_mutation.go:421", + "tmux/option_mutation.go:472", + "tmux/option_mutation.go:102" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.Session.ShowEnvironment": [ + { + "command": "show-environment", + "evidence": [ + "tmux/environment.go:259", + "tmux/environment.go:166" + ], + "scope": null + } + ], + "tmux.Session.Start": [ + { + "command": "respawn-pane", + "evidence": [ + "tmux/session_run.go:213" + ], + "scope": null, + "via": { + "evidence": [ + "tmux/pane_process.go:66" + ], + "port": "go", + "revision": "2de249b600d65218ee8b8fdc07c6b2b919242151", + "symbol": "tmux.Pane.Respawn" + } + } + ], + "tmux.Session.SwitchClient": [ + { + "command": "switch-client", + "evidence": [ + "tmux/server_clients.go:345" + ], + "scope": null + } + ], + "tmux.Session.UnsetEnvironment": [ + { + "command": "set-environment", + "evidence": [ + "tmux/environment.go:237", + "tmux/environment.go:143" + ], + "scope": null + } + ], + "tmux.Session.UnsetHook": [ + { + "command": "set-hook", + "evidence": [ + "tmux/hook_runtime.go:538", + "tmux/hook_runtime.go:547", + "tmux/option_mutation.go:472", + "tmux/hook_runtime.go:526", + "tmux/hook_runtime.go:323" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.Session.UnsetOption": [ + { + "command": "set-option", + "evidence": [ + "tmux/option_mutation.go:451", + "tmux/option_mutation.go:462", + "tmux/option_mutation.go:472", + "tmux/option_mutation.go:329" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.Window.AppendHook": [ + { + "command": "set-hook", + "evidence": [ + "tmux/hook_runtime.go:538", + "tmux/hook_runtime.go:547", + "tmux/option_mutation.go:472", + "tmux/hook_runtime.go:526", + "tmux/hook_runtime.go:279" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.Window.AppendOption": [ + { + "command": "set-option", + "evidence": [ + "tmux/option_mutation.go:406", + "tmux/option_mutation.go:421", + "tmux/option_mutation.go:472", + "tmux/option_mutation.go:237" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.Window.DisplayMessage": [ + { + "command": "display-message", + "evidence": [ + "tmux/display_message.go:254", + "tmux/display_message.go:105" + ], + "scope": null + } + ], + "tmux.Window.Kill": [ + { + "command": "kill-window", + "evidence": [ + "tmux/lifecycle_kill.go:225" + ], + "scope": null + } + ], + "tmux.Window.KillOthers": [ + { + "command": "kill-window", + "evidence": [ + "tmux/lifecycle_kill.go:244" + ], + "scope": null + } + ], + "tmux.Window.LastPane": [ + { + "command": "last-pane", + "evidence": [ + "tmux/window_pane_topology.go:235" + ], + "scope": null + } + ], + "tmux.Window.Link": [ + { + "command": "link-window", + "evidence": [ + "tmux/window_link_move.go:101", + "tmux/window_link_move.go:96", + "tmux/window_link_move.go:124" + ], + "scope": null + } + ], + "tmux.Window.Move": [ + { + "command": "move-window", + "evidence": [ + "tmux/window_link_move.go:214", + "tmux/window_link_move.go:209", + "tmux/window_link_move.go:257" + ], + "scope": null + } + ], + "tmux.Window.NewPane": [ + { + "command": "new-pane", + "evidence": [ + "tmux/pane_create.go:217", + "tmux/pane_create.go:125" + ], + "scope": null + } + ], + "tmux.Window.NewWindow": [ + { + "command": "new-window", + "evidence": [ + "tmux/window_lifecycle.go:159", + "tmux/window_lifecycle.go:215", + "tmux/window_lifecycle.go:226", + "tmux/window_lifecycle.go:119" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.Window.NextLayout": [ + { + "command": "next-layout", + "evidence": [ + "tmux/window_layout.go:329" + ], + "scope": null + } + ], + "tmux.Window.PreviousLayout": [ + { + "command": "previous-layout", + "evidence": [ + "tmux/window_layout.go:346" + ], + "scope": null + } + ], + "tmux.Window.Refresh": [ + { + "command": "list-windows", + "evidence": [ + "tmux/lookup.go:116" + ], + "scope": "session", + "via": { + "evidence": [ + "tmux/lookup.go:198", + "tmux/lookup.go:196", + "tmux/lookup.go:139", + "tmux/lookup.go:62" + ], + "port": "go", + "reviewed": true, + "revision": "2de249b600d65218ee8b8fdc07c6b2b919242151", + "symbol": "tmux.Server.Window" + } + }, + { + "command": "run-shell", + "evidence": [ + "tmux/lookup.go:116" + ], + "scope": null, + "via": { + "evidence": [ + "tmux/identity.go:226", + "tmux/identity.go:227", + "tmux/identity.go:339", + "tmux/identity.go:220", + "tmux/identity.go:216", + "tmux/lookup.go:179", + "tmux/lookup.go:139", + "tmux/lookup.go:62" + ], + "incidental": true, + "port": "go", + "reviewed": true, + "revision": "2de249b600d65218ee8b8fdc07c6b2b919242151", + "symbol": "tmux.Server.Window" + }, + "when": "the Server has no daemon identity" + } + ], + "tmux.Window.Rename": [ + { + "command": "rename-window", + "evidence": [ + "tmux/window_lifecycle.go:362" + ], + "scope": null + } + ], + "tmux.Window.Resize": [ + { + "command": "resize-window", + "evidence": [ + "tmux/window_resize.go:65", + "tmux/window_resize.go:60", + "tmux/window_resize.go:85" + ], + "scope": null + } + ], + "tmux.Window.Respawn": [ + { + "command": "respawn-window", + "evidence": [ + "tmux/window_respawn.go:51" + ], + "scope": null + } + ], + "tmux.Window.Rotate": [ + { + "command": "rotate-window", + "evidence": [ + "tmux/window_pane_topology.go:256", + "tmux/window_pane_topology.go:252", + "tmux/window_pane_topology.go:329" + ], + "scope": null + } + ], + "tmux.Window.SearchPanes": [ + { + "command": "list-panes", + "evidence": [ + "tmux/search.go:152" + ], + "scope": "window" + }, + { + "command": "run-shell", + "evidence": [ + "tmux/identity.go:226", + "tmux/identity.go:227", + "tmux/identity.go:339", + "tmux/identity.go:220", + "tmux/identity.go:216", + "tmux/search.go:195", + "tmux/search.go:175", + "tmux/search.go:152" + ], + "forwardable": true, + "incidental": true, + "reviewed": true, + "scope": null, + "when": "the Server has no daemon identity" + } + ], + "tmux.Window.Select": [ + { + "command": "select-window", + "evidence": [ + "tmux/window_lifecycle.go:384" + ], + "scope": null + } + ], + "tmux.Window.SelectLayout": [ + { + "command": "select-layout", + "evidence": [ + "tmux/window_layout.go:98", + "tmux/window_layout.go:94", + "tmux/window_layout.go:306" + ], + "scope": null + } + ], + "tmux.Window.SelectPane": [ + { + "command": "select-pane", + "evidence": [ + "tmux/window_pane_topology.go:170" + ], + "scope": null + } + ], + "tmux.Window.SetHook": [ + { + "command": "set-hook", + "evidence": [ + "tmux/hook_runtime.go:538", + "tmux/hook_runtime.go:547", + "tmux/option_mutation.go:472", + "tmux/hook_runtime.go:526", + "tmux/hook_runtime.go:224" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.Window.SetHooks": [ + { + "command": "set-hook", + "evidence": [ + "tmux/hook_runtime.go:538", + "tmux/hook_runtime.go:547", + "tmux/option_mutation.go:472", + "tmux/hook_runtime.go:602", + "tmux/hook_runtime.go:475" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.Window.SetOption": [ + { + "command": "set-option", + "evidence": [ + "tmux/option_mutation.go:406", + "tmux/option_mutation.go:421", + "tmux/option_mutation.go:472", + "tmux/option_mutation.go:122" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.Window.SplitPane": [ + { + "command": "split-window", + "evidence": [ + "tmux/pane_create.go:425", + "tmux/pane_create.go:358", + "tmux/pane_create.go:312" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.Window.Swap": [ + { + "command": "swap-window", + "evidence": [ + "tmux/window_pane_swap.go:96" + ], + "scope": null + } + ], + "tmux.Window.Unlink": [ + { + "command": "unlink-window", + "evidence": [ + "tmux/window_link_move.go:160" + ], + "scope": null + } + ], + "tmux.Window.UnsetHook": [ + { + "command": "set-hook", + "evidence": [ + "tmux/hook_runtime.go:538", + "tmux/hook_runtime.go:547", + "tmux/option_mutation.go:472", + "tmux/hook_runtime.go:526", + "tmux/hook_runtime.go:334" + ], + "reviewed": true, + "scope": null + } + ], + "tmux.Window.UnsetOption": [ + { + "command": "set-option", + "evidence": [ + "tmux/option_mutation.go:451", + "tmux/option_mutation.go:462", + "tmux/option_mutation.go:472", + "tmux/option_mutation.go:344" + ], + "reviewed": true, + "scope": null + } + ], + "tmuxtest.NewControlMode": [ + { + "command": "attach-session", + "evidence": [ + "tmux/tmuxtest/control.go:183", + "tmux/tmuxtest/control.go:185", + "tmux/tmuxtest/control.go:209", + "tmux/tmuxtest/control.go:58" + ], + "reviewed": true, + "scope": null + } + ], + "tmuxtest.NewServerWithOptions": [ + { + "command": "display-message", + "evidence": [ + "tmux/tmuxtest/harness.go:444", + "tmux/tmuxtest/harness.go:329" + ], + "scope": null + } + ], + "tmuxtest.NewSession": [ + { + "command": "kill-session", + "evidence": [ + "tmux/tmuxtest/resources.go:135", + "tmux/tmuxtest/harness.go:549", + "tmux/tmuxtest/harness.go:539", + "tmux/tmuxtest/resources.go:56" + ], + "reviewed": true, + "scope": null, + "when": "the test ends, in t.Cleanup" + }, + { + "command": "new-session", + "evidence": [ + "tmux/session_lifecycle.go:236", + "tmux/session_lifecycle.go:232", + "tmux/tmuxtest/resources.go:49" + ], + "reviewed": true, + "scope": null + } + ], + "tmuxtest.Type": [ + { + "command": "send-keys", + "evidence": [ + "tmux/tmuxtest/screen.go:124" + ], + "scope": null, + "via": { + "evidence": [ + "tmux/pane_input.go:164", + "tmux/pane_input.go:157", + "tmux/pane_input.go:203" + ], + "port": "go", + "revision": "2de249b600d65218ee8b8fdc07c6b2b919242151", + "symbol": "tmux.Pane.SendKeys" + } + } + ], + "workspace.Pane.Enter": [ + { + "command": "send-keys", + "evidence": [ + "tmux/pane_input.go:323" + ], + "scope": null + } + ] + } +} diff --git a/site/src/data/tmux-usage/java.json b/site/src/data/tmux-usage/java.json new file mode 100644 index 000000000..4216348c7 --- /dev/null +++ b/site/src/data/tmux-usage/java.json @@ -0,0 +1,1352 @@ +{ + "commands": [ + "attach-session", + "bind-key", + "break-pane", + "capture-pane", + "choose-buffer", + "choose-client", + "choose-tree", + "clear-history", + "clear-prompt-history", + "clock-mode", + "command-prompt", + "confirm-before", + "copy-mode", + "customize-mode", + "delete-buffer", + "detach-client", + "display-menu", + "display-message", + "display-panes", + "display-popup", + "find-window", + "has-session", + "if-shell", + "join-pane", + "kill-pane", + "kill-server", + "kill-session", + "kill-window", + "last-pane", + "last-window", + "link-window", + "list-buffers", + "list-clients", + "list-commands", + "list-keys", + "list-panes", + "list-sessions", + "list-windows", + "load-buffer", + "lock-client", + "lock-server", + "lock-session", + "move-pane", + "move-window", + "new-pane", + "new-session", + "new-window", + "next-layout", + "next-window", + "paste-buffer", + "pipe-pane", + "previous-layout", + "previous-window", + "refresh-client", + "rename-session", + "rename-window", + "resize-pane", + "resize-window", + "respawn-pane", + "respawn-window", + "rotate-window", + "run-shell", + "save-buffer", + "select-layout", + "select-pane", + "select-window", + "send-keys", + "send-prefix", + "server-access", + "set-buffer", + "set-environment", + "set-hook", + "set-option", + "set-window-option", + "show-buffer", + "show-environment", + "show-hooks", + "show-messages", + "show-options", + "show-prompt-history", + "show-window-options", + "source-file", + "split-window", + "start-server", + "suspend-client", + "swap-pane", + "swap-window", + "switch-client", + "unbind-key", + "unlink-window", + "wait-for" + ], + "port": "java", + "repo": "libtmux/libtmux-java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "schemaVersion": 1, + "symbols": { + "io.github.libtmux.batch.Batch.Batch.run": [ + { + "command": "display-message", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/batch/Batch.java:94", + "libtmux/src/main/java/io/github/libtmux/batch/Batch.java:85", + "libtmux/src/main/java/io/github/libtmux/batch/Batch.java:82" + ], + "forwardable": true, + "incidental": true, + "reviewed": true, + "scope": null, + "when": "the batch is not empty" + } + ], + "io.github.libtmux.Buffers.Buffers.delete": [ + { + "command": "delete-buffer", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Buffers.java:111" + ], + "scope": null, + "when": "except before tmux 3.4" + } + ], + "io.github.libtmux.Buffers.Buffers.list": [ + { + "command": "list-buffers", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Buffers.java:54" + ], + "scope": null + } + ], + "io.github.libtmux.Buffers.Buffers.load": [ + { + "command": "load-buffer", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Buffers.java:129" + ], + "scope": null + } + ], + "io.github.libtmux.Buffers.Buffers.save": [ + { + "command": "save-buffer", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Buffers.java:123" + ], + "scope": null + } + ], + "io.github.libtmux.Buffers.Buffers.set": [ + { + "command": "set-buffer", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Buffers.java:71" + ], + "scope": null + } + ], + "io.github.libtmux.Buffers.Buffers.show": [ + { + "command": "show-buffer", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Buffers.java:87" + ], + "scope": null + } + ], + "io.github.libtmux.Channel.Channel.await": [ + { + "command": "wait-for", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:573", + "libtmux/src/main/java/io/github/libtmux/Channel.java:62" + ], + "scope": null + } + ], + "io.github.libtmux.Channel.Channel.awaitReservingCapacity": [ + { + "command": "wait-for", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:573", + "libtmux/src/main/java/io/github/libtmux/Channel.java:78" + ], + "scope": null + } + ], + "io.github.libtmux.Channel.Channel.signal": [ + { + "command": "wait-for", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Channel.java:49" + ], + "scope": null + } + ], + "io.github.libtmux.Client.Client.detach": [ + { + "command": "detach-client", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Client.java:48" + ], + "scope": null + } + ], + "io.github.libtmux.Client.Client.detachOthers": [ + { + "command": "detach-client", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Client.java:54" + ], + "scope": null + } + ], + "io.github.libtmux.Client.Client.redraw": [ + { + "command": "refresh-client", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Client.java:80" + ], + "scope": null + } + ], + "io.github.libtmux.Client.Client.switchTo": [ + { + "command": "switch-client", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Client.java:67" + ], + "scope": null + } + ], + "io.github.libtmux.Commands.Commands.list": [ + { + "command": "list-commands", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Commands.java:21" + ], + "scope": null + } + ], + "io.github.libtmux.control.ControlClient.ControlClient.attach": [ + { + "command": "attach-session", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/control/ControlClient.java:217", + "libtmux/src/main/java/io/github/libtmux/control/ControlClient.java:224", + "libtmux/src/main/java/io/github/libtmux/control/ControlClient.java:196" + ], + "forwardable": true, + "reviewed": true, + "scope": null + }, + { + "command": "display-message", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/control/ControlClient.java:256", + "libtmux/src/main/java/io/github/libtmux/control/ControlClient.java:198" + ], + "scope": null + } + ], + "io.github.libtmux.control.ControlClient.ControlClient.attachUnfenced": [ + { + "command": "attach-session", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/control/ControlClient.java:217", + "libtmux/src/main/java/io/github/libtmux/control/ControlClient.java:224", + "libtmux/src/main/java/io/github/libtmux/control/ControlClient.java:156" + ], + "forwardable": true, + "reviewed": true, + "scope": null + } + ], + "io.github.libtmux.control.ControlClient.ControlClient.unwatch": [ + { + "command": "refresh-client", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/control/ControlClient.java:473" + ], + "scope": null + } + ], + "io.github.libtmux.control.ControlClient.ControlClient.watch": [ + { + "command": "refresh-client", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/control/ControlClient.java:454" + ], + "scope": null + } + ], + "io.github.libtmux.Environment.Environment.all": [ + { + "command": "show-environment", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Environment.java:205", + "libtmux/src/main/java/io/github/libtmux/Environment.java:205", + "libtmux/src/main/java/io/github/libtmux/Environment.java:357", + "libtmux/src/main/java/io/github/libtmux/Environment.java:104" + ], + "scope": null + } + ], + "io.github.libtmux.Environment.Environment.get": [ + { + "command": "show-environment", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Environment.java:357", + "libtmux/src/main/java/io/github/libtmux/Environment.java:192", + "libtmux/src/main/java/io/github/libtmux/Environment.java:194", + "libtmux/src/main/java/io/github/libtmux/Environment.java:85" + ], + "forwardable": true, + "reviewed": true, + "scope": null + } + ], + "io.github.libtmux.Environment.Environment.isRemoved": [ + { + "command": "show-environment", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Environment.java:357", + "libtmux/src/main/java/io/github/libtmux/Environment.java:192", + "libtmux/src/main/java/io/github/libtmux/Environment.java:194", + "libtmux/src/main/java/io/github/libtmux/Environment.java:96" + ], + "forwardable": true, + "reviewed": true, + "scope": null + } + ], + "io.github.libtmux.Environment.Environment.remove": [ + { + "command": "set-environment", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Environment.java:179", + "libtmux/src/main/java/io/github/libtmux/Environment.java:179", + "libtmux/src/main/java/io/github/libtmux/Environment.java:353" + ], + "scope": null + } + ], + "io.github.libtmux.Environment.Environment.removed": [ + { + "command": "show-environment", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Environment.java:205", + "libtmux/src/main/java/io/github/libtmux/Environment.java:205", + "libtmux/src/main/java/io/github/libtmux/Environment.java:357", + "libtmux/src/main/java/io/github/libtmux/Environment.java:140" + ], + "scope": null + } + ], + "io.github.libtmux.Environment.Environment.set": [ + { + "command": "set-environment", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Environment.java:156", + "libtmux/src/main/java/io/github/libtmux/Environment.java:156", + "libtmux/src/main/java/io/github/libtmux/Environment.java:353" + ], + "scope": null + } + ], + "io.github.libtmux.Environment.Environment.setExpanded": [ + { + "command": "set-environment", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Environment.java:162", + "libtmux/src/main/java/io/github/libtmux/Environment.java:162", + "libtmux/src/main/java/io/github/libtmux/Environment.java:353" + ], + "scope": null + } + ], + "io.github.libtmux.Environment.Environment.unset": [ + { + "command": "set-environment", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Environment.java:168", + "libtmux/src/main/java/io/github/libtmux/Environment.java:168", + "libtmux/src/main/java/io/github/libtmux/Environment.java:353" + ], + "scope": null + } + ], + "io.github.libtmux.Hooks.Hooks.all": [ + { + "command": "show-hooks", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Hooks.java:128" + ], + "scope": null + } + ], + "io.github.libtmux.Hooks.Hooks.append": [ + { + "command": "set-hook", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Hooks.java:97" + ], + "scope": null + } + ], + "io.github.libtmux.Hooks.Hooks.run": [ + { + "command": "set-hook", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Hooks.java:114" + ], + "scope": null + } + ], + "io.github.libtmux.Hooks.Hooks.set": [ + { + "command": "set-hook", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Hooks.java:66" + ], + "scope": null + } + ], + "io.github.libtmux.Hooks.Hooks.unset": [ + { + "command": "set-hook", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Hooks.java:103" + ], + "scope": null + } + ], + "io.github.libtmux.junit5.NamedServerFixture.NamedServerFixture.close": [ + { + "command": "kill-server", + "evidence": [ + "libtmux-junit5/src/main/java/io/github/libtmux/junit5/NamedServerFixture.java:150", + "libtmux-junit5/src/main/java/io/github/libtmux/junit5/NamedServerFixture.java:129" + ], + "scope": null + } + ], + "io.github.libtmux.junit5.NamedServerFixture.NamedServerFixture.own": [ + { + "command": "display-message", + "evidence": [ + "libtmux-junit5/src/main/java/io/github/libtmux/junit5/NamedServerFixture.java:86", + "libtmux-junit5/src/main/java/io/github/libtmux/junit5/NamedServerFixture.java:53" + ], + "scope": null + } + ], + "io.github.libtmux.Keys.Keys.bind": [ + { + "command": "bind-key", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Keys.java:62" + ], + "scope": null + } + ], + "io.github.libtmux.Keys.Keys.list": [ + { + "command": "list-keys", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Keys.java:90" + ], + "scope": null + } + ], + "io.github.libtmux.Keys.Keys.unbind": [ + { + "command": "unbind-key", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Keys.java:73" + ], + "scope": null + } + ], + "io.github.libtmux.mcp.Main.Main.main": [ + { + "command": "display-message", + "evidence": [ + "libtmux-mcp/src/main/java/io/github/libtmux/mcp/LaunchConfiguration.java:111", + "libtmux-mcp/src/main/java/io/github/libtmux/mcp/LaunchConfiguration.java:88", + "libtmux-mcp/src/main/java/io/github/libtmux/mcp/Main.java:52" + ], + "reviewed": true, + "scope": null + }, + { + "command": "start-server", + "evidence": [ + "libtmux-mcp/src/main/java/io/github/libtmux/mcp/LaunchConfiguration.java:106", + "libtmux-mcp/src/main/java/io/github/libtmux/mcp/LaunchConfiguration.java:88", + "libtmux-mcp/src/main/java/io/github/libtmux/mcp/Main.java:52" + ], + "reviewed": true, + "scope": null, + "when": "the launch chooses no socket" + } + ], + "io.github.libtmux.MessageLog.MessageLog.lines": [ + { + "command": "show-messages", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/MessageLog.java:32" + ], + "scope": null + } + ], + "io.github.libtmux.Options.Options.all": [ + { + "command": "display-message", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Options.java:196", + "libtmux/src/main/java/io/github/libtmux/Options.java:198", + "libtmux/src/main/java/io/github/libtmux/Options.java:153", + "libtmux/src/main/java/io/github/libtmux/Options.java:140" + ], + "forwardable": true, + "reviewed": true, + "scope": null + }, + { + "command": "show-options", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Options.java:153", + "libtmux/src/main/java/io/github/libtmux/Options.java:140" + ], + "scope": null + } + ], + "io.github.libtmux.Options.Options.append": [ + { + "command": "set-option", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Options.java:349" + ], + "scope": null + } + ], + "io.github.libtmux.Options.Options.effective": [ + { + "command": "display-message", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Options.java:196", + "libtmux/src/main/java/io/github/libtmux/Options.java:198", + "libtmux/src/main/java/io/github/libtmux/Options.java:153", + "libtmux/src/main/java/io/github/libtmux/Options.java:319" + ], + "forwardable": true, + "reviewed": true, + "scope": null + }, + { + "command": "show-options", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Options.java:153", + "libtmux/src/main/java/io/github/libtmux/Options.java:319" + ], + "scope": null + } + ], + "io.github.libtmux.Options.Options.get": [ + { + "command": "display-message", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Options.java:198", + "libtmux/src/main/java/io/github/libtmux/Options.java:92" + ], + "scope": null + }, + { + "command": "show-options", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Options.java:92" + ], + "scope": null + } + ], + "io.github.libtmux.Options.Options.set": [ + { + "command": "set-option", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Options.java:325" + ], + "scope": null + } + ], + "io.github.libtmux.Options.Options.setExpanded": [ + { + "command": "set-option", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Options.java:364" + ], + "scope": null + } + ], + "io.github.libtmux.Options.Options.setIfAbsent": [ + { + "command": "set-option", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Options.java:338" + ], + "scope": null + } + ], + "io.github.libtmux.Options.Options.unset": [ + { + "command": "set-option", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Options.java:370" + ], + "scope": null + } + ], + "io.github.libtmux.Pane.Pane.breakOut": [ + { + "command": "break-pane", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:834", + "libtmux/src/main/java/io/github/libtmux/Pane.java:708" + ], + "scope": null + } + ], + "io.github.libtmux.Pane.Pane.capture": [ + { + "command": "capture-pane", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/CaptureSpec.java:85", + "libtmux/src/main/java/io/github/libtmux/CaptureSpec.java:78", + "libtmux/src/main/java/io/github/libtmux/Pane.java:533" + ], + "forwardable": true, + "reviewed": true, + "scope": null + } + ], + "io.github.libtmux.Pane.Pane.clearHistory": [ + { + "command": "clear-history", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:1052" + ], + "scope": null + } + ], + "io.github.libtmux.Pane.Pane.copyMode": [ + { + "command": "copy-mode", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:227" + ], + "scope": null + } + ], + "io.github.libtmux.Pane.Pane.exitMode": [ + { + "command": "copy-mode", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:254" + ], + "scope": null + } + ], + "io.github.libtmux.Pane.Pane.expand": [ + { + "command": "display-message", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:735" + ], + "scope": null + } + ], + "io.github.libtmux.Pane.Pane.joinTo": [ + { + "command": "join-pane", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:1070" + ], + "scope": null + } + ], + "io.github.libtmux.Pane.Pane.kill": [ + { + "command": "kill-pane", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:1078" + ], + "scope": null + } + ], + "io.github.libtmux.Pane.Pane.paste": [ + { + "command": "load-buffer", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:971" + ], + "scope": null, + "when": "except before tmux 3.4" + }, + { + "command": "paste-buffer", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:971" + ], + "scope": null, + "when": "except before tmux 3.4" + } + ], + "io.github.libtmux.Pane.Pane.pasteBuffer": [ + { + "command": "paste-buffer", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:928" + ], + "scope": null + } + ], + "io.github.libtmux.Pane.Pane.pipeTo": [ + { + "command": "pipe-pane", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:810" + ], + "scope": null + } + ], + "io.github.libtmux.Pane.Pane.resize": [ + { + "command": "resize-pane", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:214" + ], + "scope": null + } + ], + "io.github.libtmux.Pane.Pane.resizeTo": [ + { + "command": "resize-pane", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:282" + ], + "scope": null + } + ], + "io.github.libtmux.Pane.Pane.respawn": [ + { + "command": "respawn-pane", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:757" + ], + "scope": null + } + ], + "io.github.libtmux.Pane.Pane.respawnIn": [ + { + "command": "respawn-pane", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:772", + "libtmux/src/main/java/io/github/libtmux/Pane.java:770", + "libtmux/src/main/java/io/github/libtmux/Pane.java:767" + ], + "forwardable": true, + "reviewed": true, + "scope": null + } + ], + "io.github.libtmux.Pane.Pane.retitle": [ + { + "command": "select-pane", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:275" + ], + "scope": null + } + ], + "io.github.libtmux.Pane.Pane.select": [ + { + "command": "select-pane", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:260" + ], + "scope": null + } + ], + "io.github.libtmux.Pane.Pane.send": [ + { + "command": "send-keys", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:639", + "libtmux/src/main/java/io/github/libtmux/Pane.java:576", + "libtmux/src/main/java/io/github/libtmux/Pane.java:583", + "libtmux/src/main/java/io/github/libtmux/Pane.java:560", + "libtmux/src/main/java/io/github/libtmux/Pane.java:548" + ], + "forwardable": true, + "reviewed": true, + "scope": null + } + ], + "io.github.libtmux.Pane.Pane.sendKeys": [ + { + "command": "display-message", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:735", + "libtmux/src/main/java/io/github/libtmux/Pane.java:737", + "libtmux/src/main/java/io/github/libtmux/Pane.java:656", + "libtmux/src/main/java/io/github/libtmux/Pane.java:577" + ], + "forwardable": true, + "incidental": true, + "reviewed": true, + "scope": null + }, + { + "command": "list-panes", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:667", + "libtmux/src/main/java/io/github/libtmux/Pane.java:577" + ], + "scope": "window", + "when": "the pane is synchronized" + }, + { + "command": "send-keys", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:583", + "libtmux/src/main/java/io/github/libtmux/Pane.java:576", + "libtmux/src/main/java/io/github/libtmux/Pane.java:639" + ], + "scope": null + } + ], + "io.github.libtmux.Pane.Pane.sendLine": [ + { + "command": "send-keys", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:639", + "libtmux/src/main/java/io/github/libtmux/Pane.java:617", + "libtmux/src/main/java/io/github/libtmux/Pane.java:625", + "libtmux/src/main/java/io/github/libtmux/Pane.java:601", + "libtmux/src/main/java/io/github/libtmux/Pane.java:652" + ], + "forwardable": true, + "reviewed": true, + "scope": null + } + ], + "io.github.libtmux.Pane.Pane.sendLiteral": [ + { + "command": "display-message", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:735", + "libtmux/src/main/java/io/github/libtmux/Pane.java:737", + "libtmux/src/main/java/io/github/libtmux/Pane.java:656", + "libtmux/src/main/java/io/github/libtmux/Pane.java:619" + ], + "forwardable": true, + "incidental": true, + "reviewed": true, + "scope": null + }, + { + "command": "list-panes", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:667", + "libtmux/src/main/java/io/github/libtmux/Pane.java:619" + ], + "scope": "window", + "when": "the pane is synchronized" + }, + { + "command": "send-keys", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:625", + "libtmux/src/main/java/io/github/libtmux/Pane.java:617", + "libtmux/src/main/java/io/github/libtmux/Pane.java:639" + ], + "scope": null + } + ], + "io.github.libtmux.Pane.Pane.split": [ + { + "command": "split-window", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/SplitSpec.java:165", + "libtmux/src/main/java/io/github/libtmux/SplitSpec.java:162", + "libtmux/src/main/java/io/github/libtmux/Pane.java:904", + "libtmux/src/main/java/io/github/libtmux/Pane.java:893" + ], + "forwardable": true, + "reviewed": true, + "scope": null + } + ], + "io.github.libtmux.Pane.Pane.stopPiping": [ + { + "command": "pipe-pane", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:816" + ], + "scope": null + } + ], + "io.github.libtmux.Pane.Pane.swapWith": [ + { + "command": "swap-pane", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:1060" + ], + "scope": null + } + ], + "io.github.libtmux.Prompt.Prompt.clear": [ + { + "command": "clear-prompt-history", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Prompt.java:45" + ], + "scope": null + } + ], + "io.github.libtmux.Prompt.Prompt.history": [ + { + "command": "show-prompt-history", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Prompt.java:34" + ], + "scope": null + } + ], + "io.github.libtmux.Server.Server.expand": [ + { + "command": "display-message", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:415" + ], + "scope": null + } + ], + "io.github.libtmux.Server.Server.hasSession": [ + { + "command": "list-sessions", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/SessionLookup.java:21", + "libtmux/src/main/java/io/github/libtmux/Server.java:176" + ], + "scope": null + } + ], + "io.github.libtmux.Server.Server.isAlive": [ + { + "command": "display-message", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:216" + ], + "scope": null + } + ], + "io.github.libtmux.Server.Server.killServer": [ + { + "command": "display-message", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:313" + ], + "scope": null + }, + { + "command": "kill-server", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:313" + ], + "scope": null + } + ], + "io.github.libtmux.Server.Server.killSession": [ + { + "command": "kill-session", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:192" + ], + "scope": null + }, + { + "command": "list-sessions", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/SessionLookup.java:21", + "libtmux/src/main/java/io/github/libtmux/Server.java:191" + ], + "scope": null + } + ], + "io.github.libtmux.Server.Server.lock": [ + { + "command": "lock-server", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:447" + ], + "scope": null + } + ], + "io.github.libtmux.Server.Server.newSession": [ + { + "command": "new-session", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/SessionSpec.java:145", + "libtmux/src/main/java/io/github/libtmux/SessionSpec.java:137", + "libtmux/src/main/java/io/github/libtmux/Server.java:156" + ], + "forwardable": true, + "reviewed": true, + "scope": null + } + ], + "io.github.libtmux.Server.Server.paneFields": [ + { + "command": "list-panes", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:538" + ], + "scope": "server" + } + ], + "io.github.libtmux.Server.Server.panes": [ + { + "command": "list-panes", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:998" + ], + "scope": "server" + } + ], + "io.github.libtmux.Server.Server.requireAlive": [ + { + "command": "display-message", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:228" + ], + "scope": null + } + ], + "io.github.libtmux.Server.Server.sessions": [ + { + "command": "list-sessions", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:905" + ], + "scope": null + } + ], + "io.github.libtmux.Server.Server.snapshot": [ + { + "command": "list-panes", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:183", + "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:103", + "libtmux/src/main/java/io/github/libtmux/Server.java:878" + ], + "forwardable": true, + "reviewed": true, + "scope": "server" + } + ], + "io.github.libtmux.Server.Server.sourceFile": [ + { + "command": "source-file", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:626" + ], + "scope": null + } + ], + "io.github.libtmux.Server.Server.windows": [ + { + "command": "list-windows", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:960" + ], + "scope": "server" + } + ], + "io.github.libtmux.Session.Session.detachClients": [ + { + "command": "detach-client", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Session.java:135" + ], + "scope": null + } + ], + "io.github.libtmux.Session.Session.expand": [ + { + "command": "display-message", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Session.java:250" + ], + "scope": null + } + ], + "io.github.libtmux.Session.Session.kill": [ + { + "command": "kill-session", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Session.java:271" + ], + "scope": null + } + ], + "io.github.libtmux.Session.Session.lastWindow": [ + { + "command": "last-window", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Session.java:129" + ], + "scope": null + } + ], + "io.github.libtmux.Session.Session.newWindow": [ + { + "command": "new-window", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/WindowSpec.java:117", + "libtmux/src/main/java/io/github/libtmux/WindowSpec.java:115", + "libtmux/src/main/java/io/github/libtmux/Session.java:215" + ], + "forwardable": true, + "reviewed": true, + "scope": null + } + ], + "io.github.libtmux.Session.Session.nextWindow": [ + { + "command": "next-window", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Session.java:112" + ], + "scope": null + } + ], + "io.github.libtmux.Session.Session.previousWindow": [ + { + "command": "previous-window", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Session.java:118" + ], + "scope": null + } + ], + "io.github.libtmux.Session.Session.rename": [ + { + "command": "rename-session", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Session.java:264" + ], + "scope": null + } + ], + "io.github.libtmux.Session.Session.selectWindow": [ + { + "command": "select-window", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Session.java:100" + ], + "scope": null + } + ], + "io.github.libtmux.Shell.Shell.capturing": [ + { + "command": "run-shell", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Shell.java:55" + ], + "scope": null, + "when": "except from tmux 3.3 until 3.5" + } + ], + "io.github.libtmux.Shell.Shell.choose": [ + { + "command": "if-shell", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Shell.java:68" + ], + "scope": null + } + ], + "io.github.libtmux.Shell.Shell.run": [ + { + "command": "run-shell", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Shell.java:36" + ], + "scope": null + } + ], + "io.github.libtmux.Window.Window.applyLayout": [ + { + "command": "select-layout", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:374" + ], + "scope": null + } + ], + "io.github.libtmux.Window.Window.displayPopup": [ + { + "command": "display-popup", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:397" + ], + "scope": null + } + ], + "io.github.libtmux.Window.Window.expand": [ + { + "command": "display-message", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:206" + ], + "scope": null + } + ], + "io.github.libtmux.Window.Window.kill": [ + { + "command": "kill-window", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:403" + ], + "scope": null + } + ], + "io.github.libtmux.Window.Window.linkTo": [ + { + "command": "link-window", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:234" + ], + "scope": null + } + ], + "io.github.libtmux.Window.Window.moveTo": [ + { + "command": "move-window", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:254" + ], + "scope": null + } + ], + "io.github.libtmux.Window.Window.nextLayout": [ + { + "command": "next-layout", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:329" + ], + "scope": null + } + ], + "io.github.libtmux.Window.Window.previousLayout": [ + { + "command": "previous-layout", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:335" + ], + "scope": null + } + ], + "io.github.libtmux.Window.Window.rename": [ + { + "command": "rename-window", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:225" + ], + "scope": null + } + ], + "io.github.libtmux.Window.Window.resizeTo": [ + { + "command": "resize-window", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:278" + ], + "scope": null + } + ], + "io.github.libtmux.Window.Window.respawn": [ + { + "command": "respawn-window", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:382" + ], + "scope": null + } + ], + "io.github.libtmux.Window.Window.rotate": [ + { + "command": "rotate-window", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:311" + ], + "scope": null + } + ], + "io.github.libtmux.Window.Window.select": [ + { + "command": "select-window", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:116" + ], + "scope": null + } + ], + "io.github.libtmux.Window.Window.selectLayout": [ + { + "command": "select-layout", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:323" + ], + "scope": null + } + ], + "io.github.libtmux.Window.Window.split": [ + { + "command": "split-window", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/SplitSpec.java:165", + "libtmux/src/main/java/io/github/libtmux/SplitSpec.java:162", + "libtmux/src/main/java/io/github/libtmux/Pane.java:904", + "libtmux/src/main/java/io/github/libtmux/Window.java:191" + ], + "forwardable": true, + "reviewed": true, + "scope": null + } + ], + "io.github.libtmux.Window.Window.unlink": [ + { + "command": "unlink-window", + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:246" + ], + "scope": null + } + ] + } +} diff --git a/site/src/data/tmux-usage/julia.json b/site/src/data/tmux-usage/julia.json new file mode 100644 index 000000000..59866eddc --- /dev/null +++ b/site/src/data/tmux-usage/julia.json @@ -0,0 +1,820 @@ +{ + "commands": [ + "attach-session", + "bind-key", + "break-pane", + "capture-pane", + "choose-buffer", + "choose-client", + "choose-tree", + "clear-history", + "clear-prompt-history", + "clock-mode", + "command-prompt", + "confirm-before", + "copy-mode", + "customize-mode", + "delete-buffer", + "detach-client", + "display-menu", + "display-message", + "display-panes", + "display-popup", + "find-window", + "has-session", + "if-shell", + "join-pane", + "kill-pane", + "kill-server", + "kill-session", + "kill-window", + "last-pane", + "last-window", + "link-window", + "list-buffers", + "list-clients", + "list-commands", + "list-keys", + "list-panes", + "list-sessions", + "list-windows", + "load-buffer", + "lock-client", + "lock-server", + "lock-session", + "move-pane", + "move-window", + "new-pane", + "new-session", + "new-window", + "next-layout", + "next-window", + "paste-buffer", + "pipe-pane", + "previous-layout", + "previous-window", + "refresh-client", + "rename-session", + "rename-window", + "resize-pane", + "resize-window", + "respawn-pane", + "respawn-window", + "rotate-window", + "run-shell", + "save-buffer", + "select-layout", + "select-pane", + "select-window", + "send-keys", + "send-prefix", + "server-access", + "set-buffer", + "set-environment", + "set-hook", + "set-option", + "set-window-option", + "show-buffer", + "show-environment", + "show-hooks", + "show-messages", + "show-options", + "show-prompt-history", + "show-window-options", + "source-file", + "split-window", + "start-server", + "suspend-client", + "swap-pane", + "swap-window", + "switch-client", + "unbind-key", + "unlink-window", + "wait-for" + ], + "port": "julia", + "repo": "libtmux/libtmux-julia", + "revision": "f3da513be1225d36d5854cd8db5972c01857578e", + "schemaVersion": 1, + "symbols": { + "LibTmux.Base.wait": [ + { + "command": "wait-for", + "evidence": [ + "src/control.jl:867" + ], + "scope": null + } + ], + "LibTmux.capture_bytes": [ + { + "command": "capture-pane", + "evidence": [ + "src/control_io.jl:124" + ], + "scope": null + }, + { + "command": "delete-buffer", + "evidence": [ + "src/control_io.jl:60", + "src/control_io.jl:150" + ], + "scope": null, + "when": "on a ControlConnection" + }, + { + "command": "list-buffers", + "evidence": [ + "src/control_io.jl:36", + "src/control_io.jl:112" + ], + "scope": null, + "when": "on a ControlConnection" + }, + { + "command": "save-buffer", + "evidence": [ + "src/control_io.jl:129" + ], + "scope": null, + "when": "on a ControlConnection" + } + ], + "LibTmux.capture_pane": [ + { + "command": "capture-pane", + "evidence": [ + "src/control_io.jl:101", + "src/control_io.jl:173", + "src/pane_io.jl:77", + "src/pane_io.jl:94" + ], + "reviewed": true, + "scope": null + } + ], + "LibTmux.delete_buffer": [ + { + "command": "delete-buffer", + "evidence": [ + "src/control_buffers.jl:122" + ], + "scope": null + } + ], + "LibTmux.detach_client": [ + { + "command": "detach-client", + "evidence": [ + "src/control_clients.jl:75" + ], + "scope": null + }, + { + "command": "list-clients", + "evidence": [ + "src/control_clients.jl:9", + "src/control_clients.jl:74" + ], + "scope": null + } + ], + "LibTmux.format_hints": [ + { + "command": "display-message", + "evidence": [ + "src/formats.jl:210" + ], + "scope": null + }, + { + "command": "list-panes", + "evidence": [ + "src/formats.jl:67", + "src/formats.jl:208" + ], + "scope": "window" + } + ], + "LibTmux.get_environment": [ + { + "command": "show-environment", + "evidence": [ + "src/configuration.jl:299", + "src/configuration.jl:353" + ], + "scope": null, + "when": "on a Server" + } + ], + "LibTmux.get_hook": [ + { + "command": "show-options", + "evidence": [ + "src/configuration.jl:159", + "src/configuration.jl:160", + "src/configuration.jl:176", + "src/configuration.jl:403", + "src/configuration.jl:439" + ], + "reviewed": true, + "scope": null + } + ], + "LibTmux.get_option": [ + { + "command": "show-options", + "evidence": [ + "src/configuration.jl:228", + "src/configuration.jl:257" + ], + "scope": null + } + ], + "LibTmux.kill_pane": [ + { + "command": "kill-pane", + "evidence": [ + "src/control_topology.jl:66" + ], + "scope": null + } + ], + "LibTmux.kill_session": [ + { + "command": "kill-session", + "evidence": [ + "src/control_topology.jl:66" + ], + "scope": null + } + ], + "LibTmux.kill_window": [ + { + "command": "kill-window", + "evidence": [ + "src/control_topology.jl:66" + ], + "scope": null + } + ], + "LibTmux.link_window": [ + { + "command": "link-window", + "evidence": [ + "src/control_topology.jl:285" + ], + "scope": null + } + ], + "LibTmux.load_buffer": [ + { + "command": "display-message", + "evidence": [ + "src/acquisition.jl:50", + "src/pane_io.jl:185" + ], + "scope": null, + "when": "on a Server" + }, + { + "command": "list-buffers", + "evidence": [ + "src/pane_io.jl:128", + "src/pane_io.jl:187" + ], + "scope": null + }, + { + "command": "load-buffer", + "evidence": [ + "src/control_buffers.jl:37", + "src/control_buffers.jl:71" + ], + "scope": null + } + ], + "LibTmux.move_pane": [ + { + "command": "move-pane", + "evidence": [ + "src/control_topology.jl:199" + ], + "scope": null + } + ], + "LibTmux.move_window": [ + { + "command": "move-window", + "evidence": [ + "src/control_topology.jl:285" + ], + "scope": null + } + ], + "LibTmux.new_session": [ + { + "command": "new-session", + "evidence": [ + "src/control_topology.jl:56" + ], + "scope": null + } + ], + "LibTmux.new_window": [ + { + "command": "new-window", + "evidence": [ + "src/control_operations.jl:114" + ], + "scope": null + } + ], + "LibTmux.observe_output": [ + { + "command": "display-message", + "evidence": [ + "src/observation.jl:489", + "src/observation.jl:535" + ], + "scope": null + }, + { + "command": "list-windows", + "evidence": [ + "src/observation.jl:503", + "src/observation.jl:535" + ], + "reviewed": true, + "scope": "session" + }, + { + "command": "refresh-client", + "evidence": [ + "src/observation.jl:541" + ], + "scope": null, + "when": "output is not yet enabled" + } + ], + "LibTmux.open_control": [ + { + "command": "attach-session", + "evidence": [ + "src/control.jl:642", + "src/control.jl:628", + "src/control.jl:1095" + ], + "reviewed": true, + "scope": null + }, + { + "command": "display-message", + "evidence": [ + "src/control.jl:742", + "src/control.jl:1095" + ], + "scope": null + } + ], + "LibTmux.open_server": [ + { + "command": "display-message", + "evidence": [ + "src/lifecycle.jl:269", + "src/lifecycle.jl:416" + ], + "scope": null + } + ], + "LibTmux.paste_bytes": [ + { + "command": "delete-buffer", + "evidence": [ + "src/control_io.jl:60", + "src/control_buffers.jl:189" + ], + "scope": null + }, + { + "command": "list-buffers", + "evidence": [ + "src/pane_io.jl:128", + "src/pane_io.jl:274" + ], + "scope": null + }, + { + "command": "list-commands", + "evidence": [ + "src/control_buffers.jl:132", + "src/control_buffers.jl:174" + ], + "scope": null + }, + { + "command": "load-buffer", + "evidence": [ + "src/control_buffers.jl:37", + "src/control_buffers.jl:175" + ], + "scope": null + }, + { + "command": "paste-buffer", + "evidence": [ + "src/pane_io.jl:243", + "src/pane_io.jl:236", + "src/pane_io.jl:273", + "src/pane_io.jl:278", + "src/control_buffers.jl:178", + "src/control_buffers.jl:180", + "src/control_buffers.jl:150", + "src/control_buffers.jl:174" + ], + "reviewed": true, + "scope": null + } + ], + "LibTmux.read_formats": [ + { + "command": "list-panes", + "evidence": [ + "src/control_formats.jl:19", + "src/control_formats.jl:56" + ], + "scope": "window" + } + ], + "LibTmux.remove_environment": [ + { + "command": "set-environment", + "evidence": [ + "src/control_configuration.jl:73", + "src/control_configuration.jl:66" + ], + "scope": null + } + ], + "LibTmux.rename_session": [ + { + "command": "rename-session", + "evidence": [ + "src/control_topology.jl:160" + ], + "scope": null + } + ], + "LibTmux.rename_window": [ + { + "command": "rename-window", + "evidence": [ + "src/control_topology.jl:160" + ], + "scope": null + } + ], + "LibTmux.render_format": [ + { + "command": "list-panes", + "evidence": [ + "src/formats.jl:67", + "src/formats.jl:177" + ], + "scope": "window" + } + ], + "LibTmux.resize_pane": [ + { + "command": "resize-pane", + "evidence": [ + "src/control_topology.jl:92", + "src/control_topology.jl:102" + ], + "reviewed": true, + "scope": null + } + ], + "LibTmux.resize_window": [ + { + "command": "resize-window", + "evidence": [ + "src/control_topology.jl:92", + "src/control_topology.jl:102" + ], + "reviewed": true, + "scope": null + } + ], + "LibTmux.respawn_pane": [ + { + "command": "respawn-pane", + "evidence": [ + "src/control_topology.jl:236" + ], + "scope": null + } + ], + "LibTmux.respawn_window": [ + { + "command": "respawn-window", + "evidence": [ + "src/control_topology.jl:236" + ], + "scope": null + } + ], + "LibTmux.save_buffer": [ + { + "command": "list-buffers", + "evidence": [ + "src/control_io.jl:36", + "src/control_buffers.jl:96" + ], + "scope": null, + "when": "on a ControlConnection" + }, + { + "command": "save-buffer", + "evidence": [ + "src/control_buffers.jl:100" + ], + "scope": null + } + ], + "LibTmux.select_layout": [ + { + "command": "select-layout", + "evidence": [ + "src/control_topology.jl:141" + ], + "scope": null + } + ], + "LibTmux.select_pane": [ + { + "command": "select-pane", + "evidence": [ + "src/control_topology.jl:88" + ], + "scope": null + } + ], + "LibTmux.select_window": [ + { + "command": "select-window", + "evidence": [ + "src/control_topology.jl:362" + ], + "scope": null + } + ], + "LibTmux.send_keys": [ + { + "command": "send-keys", + "evidence": [ + "src/control_operations.jl:196" + ], + "scope": null + } + ], + "LibTmux.set_environment": [ + { + "command": "set-environment", + "evidence": [ + "src/configuration.jl:375" + ], + "scope": null + } + ], + "LibTmux.set_hook": [ + { + "command": "set-hook", + "evidence": [ + "src/configuration.jl:478" + ], + "scope": null + }, + { + "command": "show-options", + "evidence": [ + "src/configuration.jl:159", + "src/configuration.jl:160", + "src/configuration.jl:176", + "src/configuration.jl:403", + "src/configuration.jl:477" + ], + "incidental": true, + "reviewed": true, + "scope": null, + "when": "on a Server" + } + ], + "LibTmux.set_option": [ + { + "command": "set-option", + "evidence": [ + "src/configuration.jl:280" + ], + "scope": null + }, + { + "command": "show-options", + "evidence": [ + "src/configuration.jl:159", + "src/configuration.jl:160", + "src/configuration.jl:176", + "src/configuration.jl:279" + ], + "incidental": true, + "reviewed": true, + "scope": null, + "when": "on a Server" + } + ], + "LibTmux.snapshot": [ + { + "command": "display-message", + "evidence": [ + "src/acquisition.jl:50", + "src/acquisition.jl:227" + ], + "scope": null, + "when": "on a Server" + }, + { + "command": "list-clients", + "evidence": [ + "src/acquisition.jl:129", + "src/acquisition.jl:231" + ], + "scope": null, + "when": "a session exists" + }, + { + "command": "list-panes", + "evidence": [ + "src/acquisition.jl:120", + "src/acquisition.jl:125", + "src/acquisition.jl:117", + "src/acquisition.jl:231", + "src/control_io.jl:224", + "src/control.jl:538", + "src/control_io.jl:249" + ], + "reviewed": true, + "scope": "server", + "when": "a session exists" + }, + { + "command": "list-sessions", + "evidence": [ + "src/acquisition.jl:104", + "src/acquisition.jl:231" + ], + "scope": null + }, + { + "command": "list-windows", + "evidence": [ + "src/acquisition.jl:109", + "src/acquisition.jl:114", + "src/acquisition.jl:106", + "src/acquisition.jl:231", + "src/control_io.jl:223", + "src/control.jl:538", + "src/control_io.jl:249" + ], + "reviewed": true, + "scope": "server", + "when": "a session exists" + } + ], + "LibTmux.split_window": [ + { + "command": "split-window", + "evidence": [ + "src/control_operations.jl:166" + ], + "scope": null + } + ], + "LibTmux.subscribe_format": [ + { + "command": "display-message", + "evidence": [ + "src/observation.jl:489", + "src/observation.jl:590" + ], + "scope": null + }, + { + "command": "refresh-client", + "evidence": [ + "src/observation.jl:608" + ], + "scope": null + } + ], + "LibTmux.swap_pane": [ + { + "command": "swap-pane", + "evidence": [ + "src/control_topology.jl:213" + ], + "scope": null + } + ], + "LibTmux.swap_window": [ + { + "command": "swap-window", + "evidence": [ + "src/control_topology.jl:348" + ], + "scope": null + } + ], + "LibTmux.switch_client": [ + { + "command": "list-clients", + "evidence": [ + "src/control_clients.jl:9", + "src/control_clients.jl:51" + ], + "scope": null + }, + { + "command": "switch-client", + "evidence": [ + "src/control_clients.jl:54" + ], + "scope": null + } + ], + "LibTmux.unlink_window": [ + { + "command": "unlink-window", + "evidence": [ + "src/control_topology.jl:319" + ], + "scope": null + } + ], + "LibTmux.unset_environment": [ + { + "command": "set-environment", + "evidence": [ + "src/control_configuration.jl:73", + "src/control_configuration.jl:50" + ], + "scope": null + } + ], + "LibTmux.unset_hook": [ + { + "command": "set-hook", + "evidence": [ + "src/configuration.jl:486" + ], + "scope": null + }, + { + "command": "show-options", + "evidence": [ + "src/configuration.jl:159", + "src/configuration.jl:160", + "src/configuration.jl:176", + "src/configuration.jl:403", + "src/configuration.jl:485" + ], + "incidental": true, + "reviewed": true, + "scope": null, + "when": "on a Server" + } + ], + "LibTmux.unset_option": [ + { + "command": "set-option", + "evidence": [ + "src/configuration.jl:293" + ], + "scope": null + }, + { + "command": "show-options", + "evidence": [ + "src/configuration.jl:159", + "src/configuration.jl:160", + "src/configuration.jl:176", + "src/configuration.jl:292" + ], + "incidental": true, + "reviewed": true, + "scope": null, + "when": "on a Server" + } + ] + } +} diff --git a/site/src/data/tmux-usage/kotlin.json b/site/src/data/tmux-usage/kotlin.json new file mode 100644 index 000000000..65ab18820 --- /dev/null +++ b/site/src/data/tmux-usage/kotlin.json @@ -0,0 +1,2266 @@ +{ + "commands": [ + "attach-session", + "bind-key", + "break-pane", + "capture-pane", + "choose-buffer", + "choose-client", + "choose-tree", + "clear-history", + "clear-prompt-history", + "clock-mode", + "command-prompt", + "confirm-before", + "copy-mode", + "customize-mode", + "delete-buffer", + "detach-client", + "display-menu", + "display-message", + "display-panes", + "display-popup", + "find-window", + "has-session", + "if-shell", + "join-pane", + "kill-pane", + "kill-server", + "kill-session", + "kill-window", + "last-pane", + "last-window", + "link-window", + "list-buffers", + "list-clients", + "list-commands", + "list-keys", + "list-panes", + "list-sessions", + "list-windows", + "load-buffer", + "lock-client", + "lock-server", + "lock-session", + "move-pane", + "move-window", + "new-pane", + "new-session", + "new-window", + "next-layout", + "next-window", + "paste-buffer", + "pipe-pane", + "previous-layout", + "previous-window", + "refresh-client", + "rename-session", + "rename-window", + "resize-pane", + "resize-window", + "respawn-pane", + "respawn-window", + "rotate-window", + "run-shell", + "save-buffer", + "select-layout", + "select-pane", + "select-window", + "send-keys", + "send-prefix", + "server-access", + "set-buffer", + "set-environment", + "set-hook", + "set-option", + "set-window-option", + "show-buffer", + "show-environment", + "show-hooks", + "show-messages", + "show-options", + "show-prompt-history", + "show-window-options", + "source-file", + "split-window", + "start-server", + "suspend-client", + "swap-pane", + "swap-window", + "switch-client", + "unbind-key", + "unlink-window", + "wait-for" + ], + "port": "kotlin", + "repo": "libtmux/libtmux-java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "schemaVersion": 1, + "symbols": { + "io.github.libtmux.kotlin.Batch.run": [ + { + "command": "display-message", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/batch/Batch.java:80" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/batch/Batch.java:94", + "libtmux/src/main/java/io/github/libtmux/batch/Batch.java:85", + "libtmux/src/main/java/io/github/libtmux/batch/Batch.java:82" + ], + "incidental": true, + "port": "java", + "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.batch.Batch.Batch.run" + }, + "when": "the batch is not empty" + } + ], + "io.github.libtmux.kotlin.Buffers.`set`": [ + { + "command": "set-buffer", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Buffers.java:69" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Buffers.java:71" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Buffers.Buffers.set" + } + } + ], + "io.github.libtmux.kotlin.Buffers.delete": [ + { + "command": "delete-buffer", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Buffers.java:105" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Buffers.java:111" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Buffers.Buffers.delete" + }, + "when": "except before tmux 3.4" + } + ], + "io.github.libtmux.kotlin.Buffers.list": [ + { + "command": "list-buffers", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Buffers.java:51" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Buffers.java:54" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Buffers.Buffers.list" + } + } + ], + "io.github.libtmux.kotlin.Buffers.load": [ + { + "command": "load-buffer", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Buffers.java:127" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Buffers.java:129" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Buffers.Buffers.load" + } + } + ], + "io.github.libtmux.kotlin.Buffers.save": [ + { + "command": "save-buffer", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Buffers.java:121" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Buffers.java:123" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Buffers.Buffers.save" + } + } + ], + "io.github.libtmux.kotlin.Buffers.show": [ + { + "command": "show-buffer", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Buffers.java:85" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Buffers.java:87" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Buffers.Buffers.show" + } + } + ], + "io.github.libtmux.kotlin.Client.detach": [ + { + "command": "detach-client", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Client.java:46" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Client.java:48" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Client.Client.detach" + } + } + ], + "io.github.libtmux.kotlin.Client.detachOthers": [ + { + "command": "detach-client", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Client.java:52" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Client.java:54" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Client.Client.detachOthers" + } + } + ], + "io.github.libtmux.kotlin.Client.redraw": [ + { + "command": "refresh-client", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Client.java:78" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Client.java:80" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Client.Client.redraw" + } + } + ], + "io.github.libtmux.kotlin.Client.switchTo": [ + { + "command": "switch-client", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Client.java:63" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Client.java:67" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Client.Client.switchTo" + } + } + ], + "io.github.libtmux.kotlin.Commands.list": [ + { + "command": "list-commands", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Commands.java:19" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Commands.java:21" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Commands.Commands.list" + } + } + ], + "io.github.libtmux.kotlin.ControlClient.unwatch": [ + { + "command": "refresh-client", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/control/ControlClient.java:471" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/control/ControlClient.java:473" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.control.ControlClient.ControlClient.unwatch" + } + } + ], + "io.github.libtmux.kotlin.ControlClient.watch": [ + { + "command": "refresh-client", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/control/ControlClient.java:452" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/control/ControlClient.java:454" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.control.ControlClient.ControlClient.watch" + } + } + ], + "io.github.libtmux.kotlin.Environment.`get`": [ + { + "command": "show-environment", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Environment.java:83" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Environment.java:357", + "libtmux/src/main/java/io/github/libtmux/Environment.java:192", + "libtmux/src/main/java/io/github/libtmux/Environment.java:194", + "libtmux/src/main/java/io/github/libtmux/Environment.java:85" + ], + "port": "java", + "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Environment.Environment.get" + } + } + ], + "io.github.libtmux.kotlin.Environment.`set`": [ + { + "command": "set-environment", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Environment.java:154" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Environment.java:156", + "libtmux/src/main/java/io/github/libtmux/Environment.java:156", + "libtmux/src/main/java/io/github/libtmux/Environment.java:353" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Environment.Environment.set" + } + } + ], + "io.github.libtmux.kotlin.Environment.all": [ + { + "command": "show-environment", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Environment.java:101" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Environment.java:205", + "libtmux/src/main/java/io/github/libtmux/Environment.java:205", + "libtmux/src/main/java/io/github/libtmux/Environment.java:357", + "libtmux/src/main/java/io/github/libtmux/Environment.java:104" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Environment.Environment.all" + } + } + ], + "io.github.libtmux.kotlin.Environment.isRemoved": [ + { + "command": "show-environment", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Environment.java:94" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Environment.java:357", + "libtmux/src/main/java/io/github/libtmux/Environment.java:192", + "libtmux/src/main/java/io/github/libtmux/Environment.java:194", + "libtmux/src/main/java/io/github/libtmux/Environment.java:96" + ], + "port": "java", + "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Environment.Environment.isRemoved" + } + } + ], + "io.github.libtmux.kotlin.Environment.remove": [ + { + "command": "set-environment", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Environment.java:177" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Environment.java:179", + "libtmux/src/main/java/io/github/libtmux/Environment.java:179", + "libtmux/src/main/java/io/github/libtmux/Environment.java:353" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Environment.Environment.remove" + } + } + ], + "io.github.libtmux.kotlin.Environment.removed": [ + { + "command": "show-environment", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Environment.java:137" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Environment.java:205", + "libtmux/src/main/java/io/github/libtmux/Environment.java:205", + "libtmux/src/main/java/io/github/libtmux/Environment.java:357", + "libtmux/src/main/java/io/github/libtmux/Environment.java:140" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Environment.Environment.removed" + } + } + ], + "io.github.libtmux.kotlin.Environment.setExpanded": [ + { + "command": "set-environment", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Environment.java:160" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Environment.java:162", + "libtmux/src/main/java/io/github/libtmux/Environment.java:162", + "libtmux/src/main/java/io/github/libtmux/Environment.java:353" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Environment.Environment.setExpanded" + } + } + ], + "io.github.libtmux.kotlin.Environment.unset": [ + { + "command": "set-environment", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Environment.java:166" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Environment.java:168", + "libtmux/src/main/java/io/github/libtmux/Environment.java:168", + "libtmux/src/main/java/io/github/libtmux/Environment.java:353" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Environment.Environment.unset" + } + } + ], + "io.github.libtmux.kotlin.Hooks.`set`": [ + { + "command": "set-hook", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Hooks.java:64" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Hooks.java:66" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Hooks.Hooks.set" + } + } + ], + "io.github.libtmux.kotlin.Hooks.all": [ + { + "command": "show-hooks", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Hooks.java:125" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Hooks.java:128" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Hooks.Hooks.all" + } + } + ], + "io.github.libtmux.kotlin.Hooks.append": [ + { + "command": "set-hook", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Hooks.java:82" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Hooks.java:97" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Hooks.Hooks.append" + } + } + ], + "io.github.libtmux.kotlin.Hooks.run": [ + { + "command": "set-hook", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Hooks.java:112" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Hooks.java:114" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Hooks.Hooks.run" + } + } + ], + "io.github.libtmux.kotlin.Hooks.unset": [ + { + "command": "set-hook", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Hooks.java:101" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Hooks.java:103" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Hooks.Hooks.unset" + } + } + ], + "io.github.libtmux.kotlin.Keys.bind": [ + { + "command": "bind-key", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Keys.java:51" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Keys.java:62" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Keys.Keys.bind" + } + } + ], + "io.github.libtmux.kotlin.Keys.list": [ + { + "command": "list-keys", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Keys.java:86" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Keys.java:90" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Keys.Keys.list" + } + } + ], + "io.github.libtmux.kotlin.Keys.unbind": [ + { + "command": "unbind-key", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Keys.java:66" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Keys.java:73" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Keys.Keys.unbind" + } + } + ], + "io.github.libtmux.kotlin.MessageLog.lines": [ + { + "command": "show-messages", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/MessageLog.java:30" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/MessageLog.java:32" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.MessageLog.MessageLog.lines" + } + } + ], + "io.github.libtmux.kotlin.Options.all": [ + { + "command": "display-message", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Options.java:138" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Options.java:196", + "libtmux/src/main/java/io/github/libtmux/Options.java:198", + "libtmux/src/main/java/io/github/libtmux/Options.java:153", + "libtmux/src/main/java/io/github/libtmux/Options.java:140" + ], + "port": "java", + "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Options.Options.all" + } + }, + { + "command": "show-options", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Options.java:138" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Options.java:153", + "libtmux/src/main/java/io/github/libtmux/Options.java:140" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Options.Options.all" + } + } + ], + "io.github.libtmux.kotlin.Options.append": [ + { + "command": "set-option", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Options.java:347" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Options.java:349" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Options.Options.append" + } + } + ], + "io.github.libtmux.kotlin.Options.effective": [ + { + "command": "display-message", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Options.java:317" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Options.java:196", + "libtmux/src/main/java/io/github/libtmux/Options.java:198", + "libtmux/src/main/java/io/github/libtmux/Options.java:153", + "libtmux/src/main/java/io/github/libtmux/Options.java:319" + ], + "port": "java", + "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Options.Options.effective" + } + }, + { + "command": "show-options", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Options.java:317" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Options.java:153", + "libtmux/src/main/java/io/github/libtmux/Options.java:319" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Options.Options.effective" + } + } + ], + "io.github.libtmux.kotlin.Options.get": [ + { + "command": "show-options", + "evidence": [ + "libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Options.kt:27" + ], + "reviewed": true, + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Options.java:92" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Options.Options.get" + } + } + ], + "io.github.libtmux.kotlin.Options.set": [ + { + "command": "set-option", + "evidence": [ + "libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Options.kt:35" + ], + "reviewed": true, + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Options.java:325" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Options.Options.set" + } + } + ], + "io.github.libtmux.kotlin.Options.setExpanded": [ + { + "command": "set-option", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Options.java:362" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Options.java:364" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Options.Options.setExpanded" + } + } + ], + "io.github.libtmux.kotlin.Options.setIfAbsent": [ + { + "command": "set-option", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Options.java:336" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Options.java:338" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Options.Options.setIfAbsent" + } + } + ], + "io.github.libtmux.kotlin.Options.unset": [ + { + "command": "set-option", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Options.java:368" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Options.java:370" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Options.Options.unset" + } + } + ], + "io.github.libtmux.kotlin.Pane.breakOut": [ + { + "command": "break-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Pane.java:703" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:834", + "libtmux/src/main/java/io/github/libtmux/Pane.java:708" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.breakOut" + } + } + ], + "io.github.libtmux.kotlin.Pane.capture": [ + { + "command": "capture-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Pane.java:333" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/CaptureSpec.java:85", + "libtmux/src/main/java/io/github/libtmux/CaptureSpec.java:78", + "libtmux/src/main/java/io/github/libtmux/Pane.java:533" + ], + "port": "java", + "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.capture" + } + } + ], + "io.github.libtmux.kotlin.Pane.clearHistory": [ + { + "command": "clear-history", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Pane.java:1050" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:1052" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.clearHistory" + } + } + ], + "io.github.libtmux.kotlin.Pane.copyMode": [ + { + "command": "copy-mode", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Pane.java:225" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:227" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.copyMode" + } + } + ], + "io.github.libtmux.kotlin.Pane.exitMode": [ + { + "command": "copy-mode", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Pane.java:252" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:254" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.exitMode" + } + } + ], + "io.github.libtmux.kotlin.Pane.expand": [ + { + "command": "display-message", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Pane.java:732" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:735" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.expand" + } + } + ], + "io.github.libtmux.kotlin.Pane.joinTo": [ + { + "command": "join-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Pane.java:1066" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:1070" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.joinTo" + } + } + ], + "io.github.libtmux.kotlin.Pane.kill": [ + { + "command": "kill-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Pane.java:1076" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:1078" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.kill" + } + } + ], + "io.github.libtmux.kotlin.Pane.paste": [ + { + "command": "load-buffer", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Pane.java:953" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:971" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.paste" + }, + "when": "except before tmux 3.4" + }, + { + "command": "paste-buffer", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Pane.java:953" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:971" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.paste" + }, + "when": "except before tmux 3.4" + } + ], + "io.github.libtmux.kotlin.Pane.pasteBuffer": [ + { + "command": "paste-buffer", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Pane.java:923" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:928" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.pasteBuffer" + } + } + ], + "io.github.libtmux.kotlin.Pane.pipeTo": [ + { + "command": "pipe-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Pane.java:807" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:810" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.pipeTo" + } + } + ], + "io.github.libtmux.kotlin.Pane.resize": [ + { + "command": "resize-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Pane.java:209" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:214" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.resize" + } + } + ], + "io.github.libtmux.kotlin.Pane.resizeTo": [ + { + "command": "resize-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Pane.java:280" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:282" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.resizeTo" + } + } + ], + "io.github.libtmux.kotlin.Pane.respawn": [ + { + "command": "respawn-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Pane.java:755" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:757" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.respawn" + } + } + ], + "io.github.libtmux.kotlin.Pane.respawnIn": [ + { + "command": "respawn-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Pane.java:764" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:772", + "libtmux/src/main/java/io/github/libtmux/Pane.java:770", + "libtmux/src/main/java/io/github/libtmux/Pane.java:767" + ], + "port": "java", + "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.respawnIn" + } + } + ], + "io.github.libtmux.kotlin.Pane.retitle": [ + { + "command": "select-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Pane.java:272" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:275" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.retitle" + } + } + ], + "io.github.libtmux.kotlin.Pane.select": [ + { + "command": "select-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Pane.java:258" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:260" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.select" + } + } + ], + "io.github.libtmux.kotlin.Pane.send": [ + { + "command": "send-keys", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Pane.java:546" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:639", + "libtmux/src/main/java/io/github/libtmux/Pane.java:576", + "libtmux/src/main/java/io/github/libtmux/Pane.java:583", + "libtmux/src/main/java/io/github/libtmux/Pane.java:560", + "libtmux/src/main/java/io/github/libtmux/Pane.java:548" + ], + "port": "java", + "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.send" + } + } + ], + "io.github.libtmux.kotlin.Pane.sendKeys": [ + { + "command": "display-message", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Pane.java:558" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:735", + "libtmux/src/main/java/io/github/libtmux/Pane.java:737", + "libtmux/src/main/java/io/github/libtmux/Pane.java:656", + "libtmux/src/main/java/io/github/libtmux/Pane.java:577" + ], + "incidental": true, + "port": "java", + "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.sendKeys" + } + }, + { + "command": "list-panes", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Pane.java:558" + ], + "scope": "window", + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:667", + "libtmux/src/main/java/io/github/libtmux/Pane.java:577" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.sendKeys" + }, + "when": "the pane is synchronized" + }, + { + "command": "send-keys", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Pane.java:558" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:583", + "libtmux/src/main/java/io/github/libtmux/Pane.java:576", + "libtmux/src/main/java/io/github/libtmux/Pane.java:639" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.sendKeys" + } + } + ], + "io.github.libtmux.kotlin.Pane.sendLine": [ + { + "command": "send-keys", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Pane.java:649" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:639", + "libtmux/src/main/java/io/github/libtmux/Pane.java:617", + "libtmux/src/main/java/io/github/libtmux/Pane.java:625", + "libtmux/src/main/java/io/github/libtmux/Pane.java:601", + "libtmux/src/main/java/io/github/libtmux/Pane.java:652" + ], + "port": "java", + "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.sendLine" + } + } + ], + "io.github.libtmux.kotlin.Pane.sendLiteral": [ + { + "command": "display-message", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Pane.java:599" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:735", + "libtmux/src/main/java/io/github/libtmux/Pane.java:737", + "libtmux/src/main/java/io/github/libtmux/Pane.java:656", + "libtmux/src/main/java/io/github/libtmux/Pane.java:619" + ], + "incidental": true, + "port": "java", + "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.sendLiteral" + } + }, + { + "command": "list-panes", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Pane.java:599" + ], + "scope": "window", + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:667", + "libtmux/src/main/java/io/github/libtmux/Pane.java:619" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.sendLiteral" + }, + "when": "the pane is synchronized" + }, + { + "command": "send-keys", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Pane.java:599" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:625", + "libtmux/src/main/java/io/github/libtmux/Pane.java:617", + "libtmux/src/main/java/io/github/libtmux/Pane.java:639" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.sendLiteral" + } + } + ], + "io.github.libtmux.kotlin.Pane.split": [ + { + "command": "split-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Pane.java:855" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/SplitSpec.java:165", + "libtmux/src/main/java/io/github/libtmux/SplitSpec.java:162", + "libtmux/src/main/java/io/github/libtmux/Pane.java:904", + "libtmux/src/main/java/io/github/libtmux/Pane.java:893" + ], + "port": "java", + "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.split" + } + } + ], + "io.github.libtmux.kotlin.Pane.stopPiping": [ + { + "command": "pipe-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Pane.java:814" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:816" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.stopPiping" + } + } + ], + "io.github.libtmux.kotlin.Pane.swapWith": [ + { + "command": "swap-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Pane.java:1056" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:1060" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.swapWith" + } + } + ], + "io.github.libtmux.kotlin.Prompt.clear": [ + { + "command": "clear-prompt-history", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Prompt.java:42" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Prompt.java:45" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Prompt.Prompt.clear" + } + } + ], + "io.github.libtmux.kotlin.Prompt.history": [ + { + "command": "show-prompt-history", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Prompt.java:31" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Prompt.java:34" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Prompt.Prompt.history" + } + } + ], + "io.github.libtmux.kotlin.Server.expand": [ + { + "command": "display-message", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Server.java:412" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:415" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Server.Server.expand" + } + } + ], + "io.github.libtmux.kotlin.Server.hasSession": [ + { + "command": "list-sessions", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Server.java:173" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/SessionLookup.java:21", + "libtmux/src/main/java/io/github/libtmux/Server.java:176" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Server.Server.hasSession" + } + } + ], + "io.github.libtmux.kotlin.Server.isAlive": [ + { + "command": "display-message", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Server.java:200" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:216" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Server.Server.isAlive" + } + } + ], + "io.github.libtmux.kotlin.Server.killServer": [ + { + "command": "display-message", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Server.java:298" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:313" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Server.Server.killServer" + } + }, + { + "command": "kill-server", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Server.java:298" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:313" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Server.Server.killServer" + } + } + ], + "io.github.libtmux.kotlin.Server.killSession": [ + { + "command": "kill-session", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Server.java:187" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:192" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Server.Server.killSession" + } + }, + { + "command": "list-sessions", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Server.java:187" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/SessionLookup.java:21", + "libtmux/src/main/java/io/github/libtmux/Server.java:191" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Server.Server.killSession" + } + } + ], + "io.github.libtmux.kotlin.Server.lock": [ + { + "command": "lock-server", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Server.java:445" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:447" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Server.Server.lock" + } + } + ], + "io.github.libtmux.kotlin.Server.newSession": [ + { + "command": "new-session", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Server.java:127" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/SessionSpec.java:145", + "libtmux/src/main/java/io/github/libtmux/SessionSpec.java:137", + "libtmux/src/main/java/io/github/libtmux/Server.java:156" + ], + "port": "java", + "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Server.Server.newSession" + } + } + ], + "io.github.libtmux.kotlin.Server.paneFields": [ + { + "command": "list-panes", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Server.java:531" + ], + "scope": "server", + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:538" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Server.Server.paneFields" + } + } + ], + "io.github.libtmux.kotlin.Server.panes": [ + { + "command": "list-panes", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Server.java:975" + ], + "scope": "server", + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:998" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Server.Server.panes" + } + } + ], + "io.github.libtmux.kotlin.Server.requireAlive": [ + { + "command": "display-message", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Server.java:226" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:228" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Server.Server.requireAlive" + } + } + ], + "io.github.libtmux.kotlin.Server.sessions": [ + { + "command": "list-sessions", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Server.java:902" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:905" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Server.Server.sessions" + } + } + ], + "io.github.libtmux.kotlin.Server.snapshot": [ + { + "command": "list-panes", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Server.java:875" + ], + "scope": "server", + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:183", + "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:103", + "libtmux/src/main/java/io/github/libtmux/Server.java:878" + ], + "port": "java", + "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Server.Server.snapshot" + } + } + ], + "io.github.libtmux.kotlin.Server.sourceFile": [ + { + "command": "source-file", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Server.java:624" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:626" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Server.Server.sourceFile" + } + } + ], + "io.github.libtmux.kotlin.Server.windows": [ + { + "command": "list-windows", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Server.java:937" + ], + "scope": "server", + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:960" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Server.Server.windows" + } + } + ], + "io.github.libtmux.kotlin.Session.detachClients": [ + { + "command": "detach-client", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Session.java:133" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Session.java:135" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Session.Session.detachClients" + } + } + ], + "io.github.libtmux.kotlin.Session.expand": [ + { + "command": "display-message", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Session.java:247" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Session.java:250" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Session.Session.expand" + } + } + ], + "io.github.libtmux.kotlin.Session.kill": [ + { + "command": "kill-session", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Session.java:269" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Session.java:271" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Session.Session.kill" + } + } + ], + "io.github.libtmux.kotlin.Session.lastWindow": [ + { + "command": "last-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Session.java:127" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Session.java:129" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Session.Session.lastWindow" + } + } + ], + "io.github.libtmux.kotlin.Session.newWindow": [ + { + "command": "new-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Session.java:186" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/WindowSpec.java:117", + "libtmux/src/main/java/io/github/libtmux/WindowSpec.java:115", + "libtmux/src/main/java/io/github/libtmux/Session.java:215" + ], + "port": "java", + "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Session.Session.newWindow" + } + } + ], + "io.github.libtmux.kotlin.Session.nextWindow": [ + { + "command": "next-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Session.java:110" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Session.java:112" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Session.Session.nextWindow" + } + } + ], + "io.github.libtmux.kotlin.Session.previousWindow": [ + { + "command": "previous-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Session.java:116" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Session.java:118" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Session.Session.previousWindow" + } + } + ], + "io.github.libtmux.kotlin.Session.rename": [ + { + "command": "rename-session", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Session.java:262" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Session.java:264" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Session.Session.rename" + } + } + ], + "io.github.libtmux.kotlin.Session.selectWindow": [ + { + "command": "select-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Session.java:93" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Session.java:100" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Session.Session.selectWindow" + } + } + ], + "io.github.libtmux.kotlin.Shell.capturing": [ + { + "command": "run-shell", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Shell.java:46" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Shell.java:55" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Shell.Shell.capturing" + }, + "when": "except from tmux 3.3 until 3.5" + } + ], + "io.github.libtmux.kotlin.Shell.choose": [ + { + "command": "if-shell", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Shell.java:64" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Shell.java:68" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Shell.Shell.choose" + } + } + ], + "io.github.libtmux.kotlin.Shell.run": [ + { + "command": "run-shell", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Shell.java:33" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Shell.java:36" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Shell.Shell.run" + } + } + ], + "io.github.libtmux.kotlin.Window.applyLayout": [ + { + "command": "select-layout", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Window.java:358" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:374" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Window.Window.applyLayout" + } + } + ], + "io.github.libtmux.kotlin.Window.displayPopup": [ + { + "command": "display-popup", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Window.java:395" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:397" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Window.Window.displayPopup" + } + } + ], + "io.github.libtmux.kotlin.Window.expand": [ + { + "command": "display-message", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Window.java:203" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:206" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Window.Window.expand" + } + } + ], + "io.github.libtmux.kotlin.Window.kill": [ + { + "command": "kill-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Window.java:401" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:403" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Window.Window.kill" + } + } + ], + "io.github.libtmux.kotlin.Window.linkTo": [ + { + "command": "link-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Window.java:230" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:234" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Window.Window.linkTo" + } + } + ], + "io.github.libtmux.kotlin.Window.moveTo": [ + { + "command": "move-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Window.java:250" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:254" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Window.Window.moveTo" + } + } + ], + "io.github.libtmux.kotlin.Window.nextLayout": [ + { + "command": "next-layout", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Window.java:327" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:329" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Window.Window.nextLayout" + } + } + ], + "io.github.libtmux.kotlin.Window.previousLayout": [ + { + "command": "previous-layout", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Window.java:333" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:335" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Window.Window.previousLayout" + } + } + ], + "io.github.libtmux.kotlin.Window.rename": [ + { + "command": "rename-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Window.java:223" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:225" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Window.Window.rename" + } + } + ], + "io.github.libtmux.kotlin.Window.resizeTo": [ + { + "command": "resize-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Window.java:275" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:278" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Window.Window.resizeTo" + } + } + ], + "io.github.libtmux.kotlin.Window.respawn": [ + { + "command": "respawn-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Window.java:380" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:382" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Window.Window.respawn" + } + } + ], + "io.github.libtmux.kotlin.Window.rotate": [ + { + "command": "rotate-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Window.java:309" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:311" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Window.Window.rotate" + } + } + ], + "io.github.libtmux.kotlin.Window.select": [ + { + "command": "select-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Window.java:114" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:116" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Window.Window.select" + } + } + ], + "io.github.libtmux.kotlin.Window.selectLayout": [ + { + "command": "select-layout", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Window.java:319" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:323" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Window.Window.selectLayout" + } + } + ], + "io.github.libtmux.kotlin.Window.split": [ + { + "command": "split-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Window.java:164" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/SplitSpec.java:165", + "libtmux/src/main/java/io/github/libtmux/SplitSpec.java:162", + "libtmux/src/main/java/io/github/libtmux/Pane.java:904", + "libtmux/src/main/java/io/github/libtmux/Window.java:191" + ], + "port": "java", + "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Window.Window.split" + } + } + ], + "io.github.libtmux.kotlin.Window.unlink": [ + { + "command": "unlink-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/kotlin/OperationGenerator.kt:183", + "libtmux/src/main/java/io/github/libtmux/Window.java:244" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:246" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Window.Window.unlink" + } + } + ] + } +} diff --git a/site/src/data/tmux-usage/lua.json b/site/src/data/tmux-usage/lua.json new file mode 100644 index 000000000..e9ab254ce --- /dev/null +++ b/site/src/data/tmux-usage/lua.json @@ -0,0 +1,1172 @@ +{ + "commands": [ + "attach-session", + "bind-key", + "break-pane", + "capture-pane", + "choose-buffer", + "choose-client", + "choose-tree", + "clear-history", + "clear-prompt-history", + "clock-mode", + "command-prompt", + "confirm-before", + "copy-mode", + "customize-mode", + "delete-buffer", + "detach-client", + "display-menu", + "display-message", + "display-panes", + "display-popup", + "find-window", + "has-session", + "if-shell", + "join-pane", + "kill-pane", + "kill-server", + "kill-session", + "kill-window", + "last-pane", + "last-window", + "link-window", + "list-buffers", + "list-clients", + "list-commands", + "list-keys", + "list-panes", + "list-sessions", + "list-windows", + "load-buffer", + "lock-client", + "lock-server", + "lock-session", + "move-pane", + "move-window", + "new-pane", + "new-session", + "new-window", + "next-layout", + "next-window", + "paste-buffer", + "pipe-pane", + "previous-layout", + "previous-window", + "refresh-client", + "rename-session", + "rename-window", + "resize-pane", + "resize-window", + "respawn-pane", + "respawn-window", + "rotate-window", + "run-shell", + "save-buffer", + "select-layout", + "select-pane", + "select-window", + "send-keys", + "send-prefix", + "server-access", + "set-buffer", + "set-environment", + "set-hook", + "set-option", + "set-window-option", + "show-buffer", + "show-environment", + "show-hooks", + "show-messages", + "show-options", + "show-prompt-history", + "show-window-options", + "source-file", + "split-window", + "start-server", + "suspend-client", + "swap-pane", + "swap-window", + "switch-client", + "unbind-key", + "unlink-window", + "wait-for" + ], + "port": "lua", + "repo": "libtmux/libtmux-lua", + "revision": "0395620d362ef75c74cd488f9577afda68922586", + "schemaVersion": 1, + "symbols": { + "libtmux.Pane:break_out": [ + { + "command": "break-pane", + "evidence": [ + "lua/libtmux/_internal/topology.lua:201", + "lua/libtmux/_internal/entity.lua:288" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Pane:capture": [ + { + "command": "capture-pane", + "evidence": [ + "lua/libtmux/_internal/pane.lua:10", + "lua/libtmux/_internal/pane.lua:226", + "lua/libtmux/_internal/entity.lua:180" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Pane:capture_to_buffer": [ + { + "command": "capture-pane", + "evidence": [ + "lua/libtmux/_internal/pane.lua:11", + "lua/libtmux/_internal/pane.lua:226", + "lua/libtmux/_internal/entity.lua:190" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Pane:clear_history": [ + { + "command": "clear-history", + "evidence": [ + "lua/libtmux/_internal/pane.lua:12", + "lua/libtmux/_internal/pane.lua:226", + "lua/libtmux/_internal/entity.lua:185" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Pane:copy_command": [ + { + "command": "send-keys", + "evidence": [ + "lua/libtmux/_internal/pane.lua:16", + "lua/libtmux/_internal/pane.lua:226", + "lua/libtmux/_internal/entity.lua:213" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Pane:copy_mode": [ + { + "command": "copy-mode", + "evidence": [ + "lua/libtmux/_internal/pane.lua:15", + "lua/libtmux/_internal/pane.lua:226", + "lua/libtmux/_internal/entity.lua:205" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Pane:get_hook": [ + { + "command": "show-options", + "evidence": [ + "lua/libtmux/_internal/settings.lua:177", + "lua/libtmux/_internal/entity.lua:98" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Pane:get_option": [ + { + "command": "show-options", + "evidence": [ + "lua/libtmux/_internal/settings.lua:177", + "lua/libtmux/_internal/entity.lua:78" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Pane:kill": [ + { + "command": "kill-pane", + "evidence": [ + "lua/libtmux/_internal/pane.lua:18", + "lua/libtmux/_internal/pane.lua:226", + "lua/libtmux/_internal/entity.lua:227", + "lua/libtmux/_internal/entity.lua:228" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Pane:list_hooks": [ + { + "command": "show-options", + "evidence": [ + "lua/libtmux/_internal/settings.lua:177", + "lua/libtmux/_internal/entity.lua:103" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Pane:list_options": [ + { + "command": "show-options", + "evidence": [ + "lua/libtmux/_internal/settings.lua:177", + "lua/libtmux/_internal/entity.lua:83" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Pane:move_to": [ + { + "command": "join-pane", + "evidence": [ + "lua/libtmux/_internal/topology.lua:395", + "lua/libtmux/_internal/entity.lua:280" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Pane:paste_buffer": [ + { + "command": "paste-buffer", + "evidence": [ + "lua/libtmux/_internal/buffer.lua:9", + "lua/libtmux/_internal/buffer.lua:140", + "lua/libtmux/_internal/entity.lua:302" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Pane:resize": [ + { + "command": "resize-pane", + "evidence": [ + "lua/libtmux/_internal/pane.lua:17", + "lua/libtmux/_internal/pane.lua:226", + "lua/libtmux/_internal/entity.lua:221", + "lua/libtmux/_internal/entity.lua:222" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Pane:respawn": [ + { + "command": "respawn-pane", + "evidence": [ + "lua/libtmux/_internal/pane.lua:19", + "lua/libtmux/_internal/pane.lua:226", + "lua/libtmux/_internal/entity.lua:253", + "lua/libtmux/_internal/entity.lua:254" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Pane:run_hook": [ + { + "command": "set-hook", + "evidence": [ + "lua/libtmux/_internal/settings.lua:190", + "lua/libtmux/_internal/entity.lua:118" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Pane:select": [ + { + "command": "select-pane", + "evidence": [ + "lua/libtmux/_internal/pane.lua:20", + "lua/libtmux/_internal/pane.lua:226", + "lua/libtmux/_internal/entity.lua:259", + "lua/libtmux/_internal/entity.lua:260" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Pane:send_keys": [ + { + "command": "send-keys", + "evidence": [ + "lua/libtmux/_internal/pane.lua:14", + "lua/libtmux/_internal/pane.lua:226", + "lua/libtmux/_internal/entity.lua:200" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Pane:send_text": [ + { + "command": "send-keys", + "evidence": [ + "lua/libtmux/_internal/pane.lua:13", + "lua/libtmux/_internal/pane.lua:226", + "lua/libtmux/_internal/entity.lua:195" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Pane:set_hook": [ + { + "command": "set-hook", + "evidence": [ + "lua/libtmux/_internal/settings.lua:175", + "lua/libtmux/_internal/settings.lua:261", + "lua/libtmux/_internal/entity.lua:108" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Pane:set_option": [ + { + "command": "set-option", + "evidence": [ + "lua/libtmux/_internal/settings.lua:175", + "lua/libtmux/_internal/settings.lua:261", + "lua/libtmux/_internal/entity.lua:88" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Pane:set_title": [ + { + "command": "select-pane", + "evidence": [ + "lua/libtmux/_internal/pane.lua:21", + "lua/libtmux/_internal/pane.lua:226", + "lua/libtmux/_internal/entity.lua:297" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Pane:split": [ + { + "command": "split-window", + "evidence": [ + "lua/libtmux/_internal/domain.lua:7", + "lua/libtmux/_internal/domain.lua:174", + "lua/libtmux/_internal/entity.lua:318" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Pane:swap": [ + { + "command": "swap-pane", + "evidence": [ + "lua/libtmux/_internal/pane.lua:22", + "lua/libtmux/_internal/pane.lua:226", + "lua/libtmux/_internal/entity.lua:307", + "lua/libtmux/_internal/entity.lua:308" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Pane:unset_hook": [ + { + "command": "set-hook", + "evidence": [ + "lua/libtmux/_internal/settings.lua:175", + "lua/libtmux/_internal/settings.lua:185", + "lua/libtmux/_internal/entity.lua:113" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Pane:unset_option": [ + { + "command": "set-option", + "evidence": [ + "lua/libtmux/_internal/settings.lua:175", + "lua/libtmux/_internal/settings.lua:185", + "lua/libtmux/_internal/entity.lua:93" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Server:delete_buffer": [ + { + "command": "delete-buffer", + "evidence": [ + "lua/libtmux/_internal/buffer.lua:9", + "lua/libtmux/_internal/buffer.lua:140", + "lua/libtmux/_internal/server.lua:448", + "lua/libtmux/_internal/buffer.lua:125" + ], + "reviewed": true, + "scope": null, + "when": "except before tmux 3.4" + } + ], + "libtmux.Server:detach_client": [ + { + "command": "detach-client", + "evidence": [ + "lua/libtmux/_internal/client.lua:103", + "lua/libtmux/_internal/server.lua:452" + ], + "reviewed": true, + "scope": null + }, + { + "command": "list-clients", + "evidence": [ + "lua/libtmux/_internal/client.lua:129", + "lua/libtmux/_internal/server.lua:452" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Server:get_environment": [ + { + "command": "show-environment", + "evidence": [ + "lua/libtmux/_internal/environment.lua:31", + "lua/libtmux/_internal/server.lua:412" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Server:get_hook": [ + { + "command": "show-options", + "evidence": [ + "lua/libtmux/_internal/settings.lua:177", + "lua/libtmux/_internal/server.lua:396" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Server:get_option": [ + { + "command": "show-options", + "evidence": [ + "lua/libtmux/_internal/settings.lua:177", + "lua/libtmux/_internal/server.lua:380" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Server:list_environment": [ + { + "command": "show-environment", + "evidence": [ + "lua/libtmux/_internal/environment.lua:31", + "lua/libtmux/_internal/server.lua:416" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Server:list_hooks": [ + { + "command": "show-options", + "evidence": [ + "lua/libtmux/_internal/settings.lua:177", + "lua/libtmux/_internal/server.lua:400" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Server:list_options": [ + { + "command": "show-options", + "evidence": [ + "lua/libtmux/_internal/settings.lua:177", + "lua/libtmux/_internal/server.lua:384" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Server:new_session": [ + { + "command": "new-session", + "evidence": [ + "lua/libtmux/_internal/domain.lua:7", + "lua/libtmux/_internal/domain.lua:174", + "lua/libtmux/_internal/server.lua:460" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Server:remove_environment": [ + { + "command": "set-environment", + "evidence": [ + "lua/libtmux/_internal/environment.lua:31", + "lua/libtmux/_internal/server.lua:428" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Server:set_buffer": [ + { + "command": "load-buffer", + "evidence": [ + "lua/libtmux/_internal/buffer.lua:9", + "lua/libtmux/_internal/buffer.lua:140", + "lua/libtmux/_internal/server.lua:440" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Server:set_environment": [ + { + "command": "set-environment", + "evidence": [ + "lua/libtmux/_internal/environment.lua:31", + "lua/libtmux/_internal/server.lua:420" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Server:set_hook": [ + { + "command": "set-hook", + "evidence": [ + "lua/libtmux/_internal/settings.lua:175", + "lua/libtmux/_internal/settings.lua:261", + "lua/libtmux/_internal/server.lua:404" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Server:set_option": [ + { + "command": "set-option", + "evidence": [ + "lua/libtmux/_internal/settings.lua:175", + "lua/libtmux/_internal/settings.lua:261", + "lua/libtmux/_internal/server.lua:388" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Server:show_buffer": [ + { + "command": "show-buffer", + "evidence": [ + "lua/libtmux/_internal/buffer.lua:9", + "lua/libtmux/_internal/buffer.lua:140", + "lua/libtmux/_internal/server.lua:444" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Server:snapshot": [ + { + "command": "list-buffers", + "evidence": [ + "lua/libtmux/_internal/server.lua:25", + "lua/libtmux/_internal/server.lua:96", + "lua/libtmux/_internal/server.lua:309", + "lua/libtmux/_internal/server.lua:432" + ], + "reviewed": true, + "scope": null + }, + { + "command": "list-clients", + "evidence": [ + "lua/libtmux/_internal/server.lua:24", + "lua/libtmux/_internal/server.lua:96", + "lua/libtmux/_internal/server.lua:309", + "lua/libtmux/_internal/server.lua:432" + ], + "reviewed": true, + "scope": null + }, + { + "command": "list-panes", + "evidence": [ + "lua/libtmux/_internal/server.lua:22", + "lua/libtmux/_internal/server.lua:177", + "lua/libtmux/_internal/server.lua:309", + "lua/libtmux/_internal/server.lua:432" + ], + "reviewed": true, + "scope": "server" + }, + { + "command": "list-sessions", + "evidence": [ + "lua/libtmux/_internal/server.lua:20", + "lua/libtmux/_internal/server.lua:96", + "lua/libtmux/_internal/server.lua:309", + "lua/libtmux/_internal/server.lua:432" + ], + "reviewed": true, + "scope": null + }, + { + "command": "list-windows", + "evidence": [ + "lua/libtmux/_internal/server.lua:21", + "lua/libtmux/_internal/server.lua:96", + "lua/libtmux/_internal/server.lua:309", + "lua/libtmux/_internal/server.lua:432" + ], + "reviewed": true, + "scope": "server" + } + ], + "libtmux.Server:switch_client": [ + { + "command": "list-clients", + "evidence": [ + "lua/libtmux/_internal/client.lua:129", + "lua/libtmux/_internal/server.lua:456" + ], + "reviewed": true, + "scope": null + }, + { + "command": "switch-client", + "evidence": [ + "lua/libtmux/_internal/client.lua:93", + "lua/libtmux/_internal/server.lua:456" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Server:unset_environment": [ + { + "command": "set-environment", + "evidence": [ + "lua/libtmux/_internal/environment.lua:31", + "lua/libtmux/_internal/server.lua:424" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Server:unset_hook": [ + { + "command": "set-hook", + "evidence": [ + "lua/libtmux/_internal/settings.lua:175", + "lua/libtmux/_internal/settings.lua:185", + "lua/libtmux/_internal/server.lua:408" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Server:unset_option": [ + { + "command": "set-option", + "evidence": [ + "lua/libtmux/_internal/settings.lua:175", + "lua/libtmux/_internal/settings.lua:185", + "lua/libtmux/_internal/server.lua:392" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Session:get_environment": [ + { + "command": "show-environment", + "evidence": [ + "lua/libtmux/_internal/environment.lua:31", + "lua/libtmux/_internal/entity.lua:123" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Session:get_hook": [ + { + "command": "show-options", + "evidence": [ + "lua/libtmux/_internal/settings.lua:177", + "lua/libtmux/_internal/entity.lua:98" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Session:get_option": [ + { + "command": "show-options", + "evidence": [ + "lua/libtmux/_internal/settings.lua:177", + "lua/libtmux/_internal/entity.lua:78" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Session:kill": [ + { + "command": "kill-session", + "evidence": [ + "lua/libtmux/_internal/topology.lua:65", + "lua/libtmux/_internal/topology.lua:339", + "lua/libtmux/_internal/entity.lua:227", + "lua/libtmux/_internal/entity.lua:228" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Session:list_environment": [ + { + "command": "show-environment", + "evidence": [ + "lua/libtmux/_internal/environment.lua:31", + "lua/libtmux/_internal/entity.lua:128" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Session:list_hooks": [ + { + "command": "show-options", + "evidence": [ + "lua/libtmux/_internal/settings.lua:177", + "lua/libtmux/_internal/entity.lua:103" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Session:list_options": [ + { + "command": "show-options", + "evidence": [ + "lua/libtmux/_internal/settings.lua:177", + "lua/libtmux/_internal/entity.lua:83" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Session:navigate_window": [ + { + "command": "last-window", + "evidence": [ + "lua/libtmux/_internal/topology.lua:466", + "lua/libtmux/_internal/entity.lua:238" + ], + "reviewed": true, + "scope": null, + "when": "the direction is \"last\"" + }, + { + "command": "next-window", + "evidence": [ + "lua/libtmux/_internal/topology.lua:466", + "lua/libtmux/_internal/entity.lua:238" + ], + "reviewed": true, + "scope": null, + "when": "the direction is \"next\"" + }, + { + "command": "previous-window", + "evidence": [ + "lua/libtmux/_internal/topology.lua:466", + "lua/libtmux/_internal/entity.lua:238" + ], + "reviewed": true, + "scope": null, + "when": "the direction is \"previous\"" + } + ], + "libtmux.Session:new_window": [ + { + "command": "new-window", + "evidence": [ + "lua/libtmux/_internal/domain.lua:7", + "lua/libtmux/_internal/domain.lua:174", + "lua/libtmux/_internal/entity.lua:313" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Session:remove_environment": [ + { + "command": "set-environment", + "evidence": [ + "lua/libtmux/_internal/environment.lua:31", + "lua/libtmux/_internal/entity.lua:143" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Session:rename": [ + { + "command": "rename-session", + "evidence": [ + "lua/libtmux/_internal/topology.lua:64", + "lua/libtmux/_internal/topology.lua:339", + "lua/libtmux/_internal/entity.lua:233" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Session:renumber_windows": [ + { + "command": "move-window", + "evidence": [ + "lua/libtmux/_internal/topology.lua:66", + "lua/libtmux/_internal/topology.lua:339", + "lua/libtmux/_internal/entity.lua:243" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Session:run_hook": [ + { + "command": "set-hook", + "evidence": [ + "lua/libtmux/_internal/settings.lua:190", + "lua/libtmux/_internal/entity.lua:118" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Session:set_environment": [ + { + "command": "set-environment", + "evidence": [ + "lua/libtmux/_internal/environment.lua:31", + "lua/libtmux/_internal/entity.lua:133" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Session:set_hook": [ + { + "command": "set-hook", + "evidence": [ + "lua/libtmux/_internal/settings.lua:175", + "lua/libtmux/_internal/settings.lua:261", + "lua/libtmux/_internal/entity.lua:108" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Session:set_option": [ + { + "command": "set-option", + "evidence": [ + "lua/libtmux/_internal/settings.lua:175", + "lua/libtmux/_internal/settings.lua:261", + "lua/libtmux/_internal/entity.lua:88" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Session:unset_environment": [ + { + "command": "set-environment", + "evidence": [ + "lua/libtmux/_internal/environment.lua:31", + "lua/libtmux/_internal/entity.lua:138" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Session:unset_hook": [ + { + "command": "set-hook", + "evidence": [ + "lua/libtmux/_internal/settings.lua:175", + "lua/libtmux/_internal/settings.lua:185", + "lua/libtmux/_internal/entity.lua:113" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Session:unset_option": [ + { + "command": "set-option", + "evidence": [ + "lua/libtmux/_internal/settings.lua:175", + "lua/libtmux/_internal/settings.lua:185", + "lua/libtmux/_internal/entity.lua:93" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Window:get_hook": [ + { + "command": "show-options", + "evidence": [ + "lua/libtmux/_internal/settings.lua:177", + "lua/libtmux/_internal/entity.lua:98" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Window:get_option": [ + { + "command": "show-options", + "evidence": [ + "lua/libtmux/_internal/settings.lua:177", + "lua/libtmux/_internal/entity.lua:78" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Window:kill": [ + { + "command": "kill-window", + "evidence": [ + "lua/libtmux/_internal/topology.lua:71", + "lua/libtmux/_internal/topology.lua:339", + "lua/libtmux/_internal/entity.lua:227", + "lua/libtmux/_internal/entity.lua:228" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Window:layout": [ + { + "command": "select-layout", + "evidence": [ + "lua/libtmux/_internal/topology.lua:73", + "lua/libtmux/_internal/topology.lua:339", + "lua/libtmux/_internal/entity.lua:248" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Window:list_hooks": [ + { + "command": "show-options", + "evidence": [ + "lua/libtmux/_internal/settings.lua:177", + "lua/libtmux/_internal/entity.lua:103" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Window:list_options": [ + { + "command": "show-options", + "evidence": [ + "lua/libtmux/_internal/settings.lua:177", + "lua/libtmux/_internal/entity.lua:83" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Window:rename": [ + { + "command": "rename-window", + "evidence": [ + "lua/libtmux/_internal/topology.lua:70", + "lua/libtmux/_internal/topology.lua:339", + "lua/libtmux/_internal/entity.lua:233" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Window:resize": [ + { + "command": "resize-window", + "evidence": [ + "lua/libtmux/_internal/topology.lua:72", + "lua/libtmux/_internal/topology.lua:339", + "lua/libtmux/_internal/entity.lua:221", + "lua/libtmux/_internal/entity.lua:222" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Window:respawn": [ + { + "command": "respawn-window", + "evidence": [ + "lua/libtmux/_internal/topology.lua:74", + "lua/libtmux/_internal/topology.lua:339", + "lua/libtmux/_internal/entity.lua:253", + "lua/libtmux/_internal/entity.lua:254" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Window:run_hook": [ + { + "command": "set-hook", + "evidence": [ + "lua/libtmux/_internal/settings.lua:190", + "lua/libtmux/_internal/entity.lua:118" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Window:set_hook": [ + { + "command": "set-hook", + "evidence": [ + "lua/libtmux/_internal/settings.lua:175", + "lua/libtmux/_internal/settings.lua:261", + "lua/libtmux/_internal/entity.lua:108" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Window:set_option": [ + { + "command": "set-option", + "evidence": [ + "lua/libtmux/_internal/settings.lua:175", + "lua/libtmux/_internal/settings.lua:261", + "lua/libtmux/_internal/entity.lua:88" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Window:unset_hook": [ + { + "command": "set-hook", + "evidence": [ + "lua/libtmux/_internal/settings.lua:175", + "lua/libtmux/_internal/settings.lua:185", + "lua/libtmux/_internal/entity.lua:113" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Window:unset_option": [ + { + "command": "set-option", + "evidence": [ + "lua/libtmux/_internal/settings.lua:175", + "lua/libtmux/_internal/settings.lua:185", + "lua/libtmux/_internal/entity.lua:93" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.WindowLink:link": [ + { + "command": "link-window", + "evidence": [ + "lua/libtmux/_internal/topology.lua:78", + "lua/libtmux/_internal/topology.lua:201", + "lua/libtmux/_internal/entity.lua:265" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.WindowLink:move": [ + { + "command": "move-window", + "evidence": [ + "lua/libtmux/_internal/topology.lua:79", + "lua/libtmux/_internal/topology.lua:201", + "lua/libtmux/_internal/entity.lua:270" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.WindowLink:select": [ + { + "command": "select-window", + "evidence": [ + "lua/libtmux/_internal/topology.lua:77", + "lua/libtmux/_internal/topology.lua:201", + "lua/libtmux/_internal/entity.lua:259", + "lua/libtmux/_internal/entity.lua:260" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.WindowLink:swap": [ + { + "command": "swap-window", + "evidence": [ + "lua/libtmux/_internal/topology.lua:80", + "lua/libtmux/_internal/topology.lua:201", + "lua/libtmux/_internal/entity.lua:307", + "lua/libtmux/_internal/entity.lua:308" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.WindowLink:unlink": [ + { + "command": "unlink-window", + "evidence": [ + "lua/libtmux/_internal/topology.lua:81", + "lua/libtmux/_internal/topology.lua:201", + "lua/libtmux/_internal/entity.lua:275" + ], + "reviewed": true, + "scope": null + } + ] + } +} diff --git a/site/src/data/tmux-usage/powershell.json b/site/src/data/tmux-usage/powershell.json new file mode 100644 index 000000000..6b303cf29 --- /dev/null +++ b/site/src/data/tmux-usage/powershell.json @@ -0,0 +1,735 @@ +{ + "commands": [ + "attach-session", + "bind-key", + "break-pane", + "capture-pane", + "choose-buffer", + "choose-client", + "choose-tree", + "clear-history", + "clear-prompt-history", + "clock-mode", + "command-prompt", + "confirm-before", + "copy-mode", + "customize-mode", + "delete-buffer", + "detach-client", + "display-menu", + "display-message", + "display-panes", + "display-popup", + "find-window", + "has-session", + "if-shell", + "join-pane", + "kill-pane", + "kill-server", + "kill-session", + "kill-window", + "last-pane", + "last-window", + "link-window", + "list-buffers", + "list-clients", + "list-commands", + "list-keys", + "list-panes", + "list-sessions", + "list-windows", + "load-buffer", + "lock-client", + "lock-server", + "lock-session", + "move-pane", + "move-window", + "new-pane", + "new-session", + "new-window", + "next-layout", + "next-window", + "paste-buffer", + "pipe-pane", + "previous-layout", + "previous-window", + "refresh-client", + "rename-session", + "rename-window", + "resize-pane", + "resize-window", + "respawn-pane", + "respawn-window", + "rotate-window", + "run-shell", + "save-buffer", + "select-layout", + "select-pane", + "select-window", + "send-keys", + "send-prefix", + "server-access", + "set-buffer", + "set-environment", + "set-hook", + "set-option", + "set-window-option", + "show-buffer", + "show-environment", + "show-hooks", + "show-messages", + "show-options", + "show-prompt-history", + "show-window-options", + "source-file", + "split-window", + "start-server", + "suspend-client", + "swap-pane", + "swap-window", + "switch-client", + "unbind-key", + "unlink-window", + "wait-for" + ], + "port": "powershell", + "repo": "libtmux/libtmux-powershell", + "revision": "48d770503a01e36426839b94951109dea6ce4562", + "schemaVersion": 1, + "symbols": { + "LibTmux\\Connect-TmuxControl": [ + { + "command": "refresh-client", + "evidence": [ + "src/LibTmux.PowerShell/ConnectTmuxControlCommand.cs:33" + ], + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Server.ControlMode.cs:84", + "src/LibTmux/Server.ControlMode.cs:32" + ], + "port": "csharp", + "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", + "symbol": "LibTmux.Server.EnterControlModeAsync" + } + } + ], + "LibTmux\\Enter-TmuxSession": [ + { + "command": "attach-session", + "evidence": [ + "src/LibTmux.PowerShell/EnterTmuxSessionCommand.cs:49" + ], + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Session.Lifecycle.cs:278", + "src/LibTmux/Session.Lifecycle.cs:279", + "src/LibTmux/Session.Lifecycle.cs:424" + ], + "port": "csharp", + "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", + "symbol": "LibTmux.Session.AttachAsync" + } + } + ], + "LibTmux\\Get-TmuxClient": [ + { + "command": "list-clients", + "evidence": [ + "src/LibTmux.PowerShell/GetTmuxClientCommand.cs:28" + ], + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Server.Clients.cs:41", + "src/LibTmux/Server.Clients.cs:27" + ], + "port": "csharp", + "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", + "symbol": "LibTmux.Server.GetClientsAsync" + } + } + ], + "LibTmux\\Get-TmuxClientAttachment": [ + { + "command": "list-clients", + "evidence": [ + "src/LibTmux.PowerShell/GetTmuxClientAttachmentCommand.cs:23" + ], + "reviewed": true, + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Server.Clients.cs:41", + "src/LibTmux/Server.Clients.cs:27", + "src/LibTmux/Client.Administration.cs:114" + ], + "port": "csharp", + "reviewed": true, + "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", + "symbol": "LibTmux.Client.ResolveAttachmentAsync" + } + } + ], + "LibTmux\\Get-TmuxEnvironment": [ + { + "command": "show-environment", + "evidence": [ + "src/LibTmux.PowerShell/GetTmuxEnvironmentCommand.cs:39" + ], + "reviewed": true, + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Environment/TmuxEnvironmentOperations.cs:67" + ], + "port": "csharp", + "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", + "symbol": "LibTmux.TmuxEnvironment.GetAllAsync" + } + } + ], + "LibTmux\\Get-TmuxHook": [ + { + "command": "show-hooks", + "evidence": [ + "src/LibTmux.PowerShell/GetTmuxHookCommand.cs:69" + ], + "reviewed": true, + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Hooks/TmuxHooks.cs:449", + "src/LibTmux/Hooks/TmuxHooks.cs:118" + ], + "port": "csharp", + "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", + "symbol": "LibTmux.TmuxHooks.GetAllAsync" + } + } + ], + "LibTmux\\Get-TmuxOption": [ + { + "command": "show-options", + "evidence": [ + "src/LibTmux.PowerShell/GetTmuxOptionCommand.cs:67" + ], + "reviewed": true, + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Options/TmuxOptions.cs:155", + "src/LibTmux/Options/TmuxOptions.cs:154", + "src/LibTmux/Options/TmuxOptions.cs:94" + ], + "port": "csharp", + "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", + "symbol": "LibTmux.TmuxOptions.GetAllAsync" + } + } + ], + "LibTmux\\Get-TmuxPane": [ + { + "command": "list-panes", + "evidence": [ + "src/LibTmux.PowerShell/GetTmuxPaneCommand.cs:49" + ], + "reviewed": true, + "scope": "server", + "via": { + "evidence": [ + "src/LibTmux/Snapshots/ServerSnapshot.cs:120", + "src/LibTmux/Snapshots/ServerSnapshot.cs:55", + "src/LibTmux/Server.Snapshots.cs:119", + "src/LibTmux/Server.Snapshots.cs:98", + "src/LibTmux/Server.Snapshots.cs:91" + ], + "port": "csharp", + "reviewed": true, + "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", + "symbol": "LibTmux.Server.CaptureSnapshotAsync" + } + }, + { + "command": "list-panes", + "evidence": [ + "src/LibTmux.PowerShell/GetTmuxPaneCommand.cs:43" + ], + "scope": "session", + "via": { + "evidence": [ + "src/LibTmux/Session.Relations.cs:167" + ], + "port": "csharp", + "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", + "symbol": "LibTmux.Session.GetPanesAsync" + } + }, + { + "command": "list-panes", + "evidence": [ + "src/LibTmux.PowerShell/GetTmuxPaneCommand.cs:43" + ], + "scope": "window", + "via": { + "evidence": [ + "src/LibTmux/Window.Relations.cs:121" + ], + "port": "csharp", + "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", + "symbol": "LibTmux.Window.GetPanesAsync" + } + } + ], + "LibTmux\\Get-TmuxPaneContent": [ + { + "command": "capture-pane", + "evidence": [ + "src/LibTmux.PowerShell/GetTmuxPaneContentCommand.cs:119" + ], + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Pane.Capture.cs:20", + "src/LibTmux/Pane.Capture.cs:18", + "src/LibTmux/Pane.Capture.cs:144" + ], + "port": "csharp", + "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", + "symbol": "LibTmux.Pane.CaptureAsync" + } + } + ], + "LibTmux\\Get-TmuxServer": [ + { + "command": "display-message", + "evidence": [ + "src/LibTmux.PowerShell/GetTmuxServerCommand.cs:21" + ], + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Server.Identity.cs:121" + ], + "port": "csharp", + "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", + "symbol": "LibTmux.Server.InspectAsync" + } + } + ], + "LibTmux\\Get-TmuxSession": [ + { + "command": "list-sessions", + "evidence": [ + "src/LibTmux.PowerShell/GetTmuxSessionCommand.cs:35" + ], + "reviewed": true, + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Snapshots/ServerSnapshot.cs:106", + "src/LibTmux/Snapshots/ServerSnapshot.cs:55", + "src/LibTmux/Server.Snapshots.cs:119", + "src/LibTmux/Server.Snapshots.cs:98", + "src/LibTmux/Server.Snapshots.cs:91" + ], + "port": "csharp", + "reviewed": true, + "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", + "symbol": "LibTmux.Server.CaptureSnapshotAsync" + } + } + ], + "LibTmux\\Get-TmuxWindow": [ + { + "command": "list-windows", + "evidence": [ + "src/LibTmux.PowerShell/GetTmuxWindowCommand.cs:43" + ], + "scope": "session", + "via": { + "evidence": [ + "src/LibTmux/Session.Relations.cs:153" + ], + "port": "csharp", + "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", + "symbol": "LibTmux.Session.GetWindowsAsync" + } + } + ], + "LibTmux\\Move-TmuxWindow": [ + { + "command": "display-message", + "evidence": [ + "src/LibTmux.PowerShell/MoveTmuxWindowCommand.cs:74" + ], + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Window.Move.cs:142", + "src/LibTmux/Window.Move.cs:53" + ], + "port": "csharp", + "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", + "symbol": "LibTmux.Window.MoveAsync" + } + }, + { + "command": "list-windows", + "evidence": [ + "src/LibTmux.PowerShell/MoveTmuxWindowCommand.cs:74" + ], + "scope": "session", + "via": { + "evidence": [ + "src/LibTmux/Window.Move.cs:103", + "src/LibTmux/Window.Move.cs:31" + ], + "port": "csharp", + "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", + "symbol": "LibTmux.Window.MoveAsync" + } + }, + { + "command": "move-window", + "evidence": [ + "src/LibTmux.PowerShell/MoveTmuxWindowCommand.cs:74" + ], + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Window.Move.cs:55", + "src/LibTmux/Window.Move.cs:29", + "src/LibTmux/Window.Links.cs:122" + ], + "port": "csharp", + "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", + "symbol": "LibTmux.Window.MoveAsync" + } + } + ], + "LibTmux\\New-TmuxSession": [ + { + "command": "new-session", + "evidence": [ + "src/LibTmux.PowerShell/NewTmuxSessionCommand.cs:84" + ], + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Server.Lifecycle.cs:374", + "src/LibTmux/Server.Lifecycle.cs:179", + "src/LibTmux/Server.Lifecycle.cs:141" + ], + "port": "csharp", + "reviewed": true, + "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", + "symbol": "LibTmux.Server.CreateSessionAsync" + } + } + ], + "LibTmux\\New-TmuxWindow": [ + { + "command": "new-window", + "evidence": [ + "src/LibTmux.PowerShell/NewTmuxWindowCommand.cs:77" + ], + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Session.Lifecycle.cs:470", + "src/LibTmux/Session.Lifecycle.cs:343", + "src/LibTmux/Session.Lifecycle.cs:342", + "src/LibTmux/Session.Lifecycle.cs:295" + ], + "port": "csharp", + "reviewed": true, + "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", + "symbol": "LibTmux.Session.CreateWindowAsync" + } + } + ], + "LibTmux\\New-TmuxWindowLink": [ + { + "command": "link-window", + "evidence": [ + "src/LibTmux.PowerShell/NewTmuxWindowLinkCommand.cs:65" + ], + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Window.Links.cs:54", + "src/LibTmux/Window.Links.cs:53", + "src/LibTmux/Window.Links.cs:17" + ], + "port": "csharp", + "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", + "symbol": "LibTmux.Window.LinkAsync" + } + } + ], + "LibTmux\\Remove-TmuxPane": [ + { + "command": "kill-pane", + "evidence": [ + "src/LibTmux.PowerShell/RemoveTmuxPaneCommand.cs:24" + ], + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Pane.Topology.cs:300" + ], + "port": "csharp", + "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", + "symbol": "LibTmux.Pane.KillAsync" + } + } + ], + "LibTmux\\Remove-TmuxSession": [ + { + "command": "kill-session", + "evidence": [ + "src/LibTmux.PowerShell/RemoveTmuxSessionCommand.cs:24" + ], + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Session.Lifecycle.cs:119" + ], + "port": "csharp", + "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", + "symbol": "LibTmux.Session.KillAsync" + } + } + ], + "LibTmux\\Remove-TmuxWindow": [ + { + "command": "kill-window", + "evidence": [ + "src/LibTmux.PowerShell/RemoveTmuxWindowCommand.cs:24" + ], + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Window.Lifecycle.cs:64" + ], + "port": "csharp", + "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", + "symbol": "LibTmux.Window.KillAsync" + } + } + ], + "LibTmux\\Remove-TmuxWindowLink": [ + { + "command": "unlink-window", + "evidence": [ + "src/LibTmux.PowerShell/RemoveTmuxWindowLinkCommand.cs:28" + ], + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Window.Links.cs:69", + "src/LibTmux/Window.Links.cs:69", + "src/LibTmux/Window.Links.cs:187" + ], + "port": "csharp", + "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", + "symbol": "LibTmux.Window.UnlinkAsync" + } + } + ], + "LibTmux\\Send-TmuxKey": [ + { + "command": "send-keys", + "evidence": [ + "src/LibTmux.PowerShell/SendTmuxKeyCommand.cs:35", + "src/LibTmux.PowerShell/SendTmuxKeyCommand.cs:46", + "src/LibTmux.PowerShell/SendTmuxKeyCommand.cs:45", + "src/LibTmux.PowerShell/SendTmuxKeyCommand.cs:47" + ], + "reviewed": true, + "scope": null + } + ], + "LibTmux\\Send-TmuxText": [ + { + "command": "send-keys", + "evidence": [ + "src/LibTmux.PowerShell/SendTmuxTextCommand.cs:50" + ], + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Pane.Input.cs:24", + "src/LibTmux/Pane.Input.cs:71", + "src/LibTmux/Pane.Input.cs:94", + "src/LibTmux/Pane.Input.cs:100" + ], + "port": "csharp", + "reviewed": true, + "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", + "symbol": "LibTmux.Pane.SendKeysAsync" + } + } + ], + "LibTmux\\Set-TmuxEnvironment": [ + { + "command": "set-environment", + "evidence": [ + "src/LibTmux.PowerShell/SetTmuxEnvironmentCommand.cs:59", + "src/LibTmux.PowerShell/SetTmuxEnvironmentCommand.cs:66" + ], + "reviewed": true, + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Environment/TmuxEnvironmentOperations.cs:143" + ], + "port": "csharp", + "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", + "symbol": "LibTmux.TmuxEnvironment.SetAsync" + } + } + ], + "LibTmux\\Set-TmuxHook": [ + { + "command": "set-hook", + "evidence": [ + "src/LibTmux.PowerShell/SetTmuxHookCommand.cs:74", + "src/LibTmux.PowerShell/SetTmuxHookCommand.cs:82" + ], + "reviewed": true, + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Hooks/TmuxHooks.cs:214", + "src/LibTmux/Hooks/TmuxHooks.cs:244", + "src/LibTmux/Hooks/TmuxHooks.cs:247" + ], + "port": "csharp", + "reviewed": true, + "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", + "symbol": "LibTmux.TmuxHooks.SetAsync" + } + } + ], + "LibTmux\\Set-TmuxLayout": [ + { + "command": "select-layout", + "evidence": [ + "src/LibTmux.PowerShell/SetTmuxLayoutCommand.cs:44" + ], + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Window.Layout.cs:109", + "src/LibTmux/Window.Layout.cs:102", + "src/LibTmux/Window.Layout.cs:60" + ], + "port": "csharp", + "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", + "symbol": "LibTmux.Window.SelectLayoutAsync" + } + } + ], + "LibTmux\\Set-TmuxOption": [ + { + "command": "set-option", + "evidence": [ + "src/LibTmux.PowerShell/SetTmuxOptionCommand.cs:86", + "src/LibTmux.PowerShell/SetTmuxOptionCommand.cs:102" + ], + "reviewed": true, + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Options/TmuxOptions.cs:204", + "src/LibTmux/Options/TmuxOptions.cs:200", + "src/LibTmux/Options/TmuxOptions.cs:170" + ], + "port": "csharp", + "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", + "symbol": "LibTmux.TmuxOptions.SetAsync" + } + } + ], + "LibTmux\\Set-TmuxPaneSize": [ + { + "command": "resize-pane", + "evidence": [ + "src/LibTmux.PowerShell/SetTmuxPaneSizeCommand.cs:74" + ], + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Pane.Topology.cs:337", + "src/LibTmux/Pane.Topology.cs:334", + "src/LibTmux/Pane.Topology.cs:426" + ], + "port": "csharp", + "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", + "symbol": "LibTmux.Pane.ResizeAsync" + } + } + ], + "LibTmux\\Set-TmuxWindowSize": [ + { + "command": "resize-window", + "evidence": [ + "src/LibTmux.PowerShell/SetTmuxWindowSizeCommand.cs:72" + ], + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Window.Layout.cs:27", + "src/LibTmux/Window.Layout.cs:24", + "src/LibTmux/Window.Layout.cs:34" + ], + "port": "csharp", + "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", + "symbol": "LibTmux.Window.ResizeAsync" + } + } + ], + "LibTmux\\Split-TmuxPane": [ + { + "command": "split-window", + "evidence": [ + "src/LibTmux.PowerShell/SplitTmuxPaneCommand.cs:99" + ], + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Pane.Topology.cs:576", + "src/LibTmux/Pane.Topology.cs:105", + "src/LibTmux/Pane.Topology.cs:232" + ], + "port": "csharp", + "reviewed": true, + "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", + "symbol": "LibTmux.Pane.SplitAsync" + } + } + ], + "LibTmux\\Watch-TmuxEvent": [ + { + "command": "refresh-client", + "evidence": [ + "src/LibTmux.PowerShell/WatchTmuxEventCommand.cs:60" + ], + "scope": null, + "via": { + "evidence": [ + "src/LibTmux/Server.ControlMode.cs:84", + "src/LibTmux/Server.ControlMode.cs:32" + ], + "port": "csharp", + "revision": "5b486ea9f3df6a882f3fedb36b9373a8161f4d0f", + "symbol": "LibTmux.Server.EnterControlModeAsync" + } + } + ] + } +} diff --git a/site/src/data/tmux-usage/py.json b/site/src/data/tmux-usage/py.json new file mode 100644 index 000000000..198e6ba85 --- /dev/null +++ b/site/src/data/tmux-usage/py.json @@ -0,0 +1,1880 @@ +{ + "commands": [ + "attach-session", + "bind-key", + "break-pane", + "capture-pane", + "choose-buffer", + "choose-client", + "choose-tree", + "clear-history", + "clear-prompt-history", + "clock-mode", + "command-prompt", + "confirm-before", + "copy-mode", + "customize-mode", + "delete-buffer", + "detach-client", + "display-menu", + "display-message", + "display-panes", + "display-popup", + "find-window", + "has-session", + "if-shell", + "join-pane", + "kill-pane", + "kill-server", + "kill-session", + "kill-window", + "last-pane", + "last-window", + "link-window", + "list-buffers", + "list-clients", + "list-commands", + "list-keys", + "list-panes", + "list-sessions", + "list-windows", + "load-buffer", + "lock-client", + "lock-server", + "lock-session", + "move-pane", + "move-window", + "new-pane", + "new-session", + "new-window", + "next-layout", + "next-window", + "paste-buffer", + "pipe-pane", + "previous-layout", + "previous-window", + "refresh-client", + "rename-session", + "rename-window", + "resize-pane", + "resize-window", + "respawn-pane", + "respawn-window", + "rotate-window", + "run-shell", + "save-buffer", + "select-layout", + "select-pane", + "select-window", + "send-keys", + "send-prefix", + "server-access", + "set-buffer", + "set-environment", + "set-hook", + "set-option", + "set-window-option", + "show-buffer", + "show-environment", + "show-hooks", + "show-messages", + "show-options", + "show-prompt-history", + "show-window-options", + "source-file", + "split-window", + "start-server", + "suspend-client", + "swap-pane", + "swap-window", + "switch-client", + "unbind-key", + "unlink-window", + "wait-for" + ], + "port": "py", + "repo": "tmux-python/libtmux", + "revision": "8e0ce38400618bd783e6276270dd7f5d8cb283ea", + "schemaVersion": 1, + "symbols": { + "libtmux.Client.from_client_name": [ + { + "command": "list-clients", + "evidence": [ + "src/libtmux/client.py:125" + ], + "scope": null + } + ], + "libtmux.Client.refresh": [ + { + "command": "list-clients", + "evidence": [ + "src/libtmux/client.py:116" + ], + "scope": null + } + ], + "libtmux.common.EnvironmentMixin.getenv": [ + { + "command": "show-environment", + "evidence": [ + "src/libtmux/common.py:230" + ], + "scope": null + } + ], + "libtmux.common.EnvironmentMixin.remove_environment": [ + { + "command": "set-environment", + "evidence": [ + "src/libtmux/common.py:164" + ], + "scope": null + } + ], + "libtmux.common.EnvironmentMixin.set_environment": [ + { + "command": "set-environment", + "evidence": [ + "src/libtmux/common.py:106" + ], + "scope": null + } + ], + "libtmux.common.EnvironmentMixin.show_environment": [ + { + "command": "show-environment", + "evidence": [ + "src/libtmux/common.py:193" + ], + "scope": null + } + ], + "libtmux.common.EnvironmentMixin.unset_environment": [ + { + "command": "set-environment", + "evidence": [ + "src/libtmux/common.py:135" + ], + "scope": null + } + ], + "libtmux.hooks.HooksMixin.run_hook": [ + { + "command": "set-hook", + "evidence": [ + "src/libtmux/hooks.py:107" + ], + "scope": null + } + ], + "libtmux.hooks.HooksMixin.set_hook": [ + { + "command": "set-hook", + "evidence": [ + "src/libtmux/hooks.py:186" + ], + "scope": null + } + ], + "libtmux.hooks.HooksMixin.set_hooks": [ + { + "command": "set-hook", + "evidence": [ + "src/libtmux/hooks.py:186", + "src/libtmux/hooks.py:525" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.hooks.HooksMixin.show_hook": [ + { + "command": "show-hooks", + "evidence": [ + "src/libtmux/hooks.py:364", + "src/libtmux/hooks.py:414" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.hooks.HooksMixin.show_hooks": [ + { + "command": "show-hooks", + "evidence": [ + "src/libtmux/hooks.py:304" + ], + "scope": null + } + ], + "libtmux.hooks.HooksMixin.unset_hook": [ + { + "command": "set-hook", + "evidence": [ + "src/libtmux/hooks.py:239" + ], + "scope": null + } + ], + "libtmux.options.OptionsMixin.set_option": [ + { + "command": "set-option", + "evidence": [ + "src/libtmux/options.py:704" + ], + "scope": null + } + ], + "libtmux.options.OptionsMixin.show_option": [ + { + "command": "show-options", + "evidence": [ + "src/libtmux/options.py:1134", + "src/libtmux/options.py:1185", + "src/libtmux/options.py:1296" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.options.OptionsMixin.show_options": [ + { + "command": "show-options", + "evidence": [ + "src/libtmux/options.py:886", + "src/libtmux/options.py:928", + "src/libtmux/options.py:977", + "src/libtmux/options.py:1037" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.options.OptionsMixin.unset_option": [ + { + "command": "set-option", + "evidence": [ + "src/libtmux/options.py:792" + ], + "scope": null + } + ], + "libtmux.Pane.break_pane": [ + { + "command": "break-pane", + "evidence": [ + "src/libtmux/pane.py:2493" + ], + "scope": null + } + ], + "libtmux.Pane.capture_pane": [ + { + "command": "capture-pane", + "evidence": [ + "src/libtmux/pane.py:695" + ], + "scope": null + } + ], + "libtmux.Pane.choose_buffer": [ + { + "command": "choose-buffer", + "evidence": [ + "src/libtmux/pane.py:2097" + ], + "scope": null + } + ], + "libtmux.Pane.choose_client": [ + { + "command": "choose-client", + "evidence": [ + "src/libtmux/pane.py:2106" + ], + "scope": null + } + ], + "libtmux.Pane.choose_tree": [ + { + "command": "choose-tree", + "evidence": [ + "src/libtmux/pane.py:2168" + ], + "scope": null + } + ], + "libtmux.Pane.clear_history": [ + { + "command": "clear-history", + "evidence": [ + "src/libtmux/pane.py:2607" + ], + "scope": null + } + ], + "libtmux.Pane.clock_mode": [ + { + "command": "clock-mode", + "evidence": [ + "src/libtmux/pane.py:2054" + ], + "scope": null + } + ], + "libtmux.Pane.copy_mode": [ + { + "command": "copy-mode", + "evidence": [ + "src/libtmux/pane.py:2045" + ], + "scope": null + } + ], + "libtmux.Pane.customize_mode": [ + { + "command": "customize-mode", + "evidence": [ + "src/libtmux/pane.py:2177" + ], + "scope": null + } + ], + "libtmux.Pane.display_message": [ + { + "command": "display-message", + "evidence": [ + "src/libtmux/pane.py:1012" + ], + "scope": null + } + ], + "libtmux.Pane.display_panes": [ + { + "command": "display-panes", + "evidence": [ + "src/libtmux/pane.py:2088" + ], + "scope": null + } + ], + "libtmux.Pane.display_popup": [ + { + "command": "display-popup", + "evidence": [ + "src/libtmux/pane.py:1866" + ], + "scope": null + } + ], + "libtmux.Pane.enter": [ + { + "command": "send-keys", + "evidence": [ + "src/libtmux/pane.py:1666" + ], + "scope": null + } + ], + "libtmux.Pane.find_window": [ + { + "command": "find-window", + "evidence": [ + "src/libtmux/pane.py:2233" + ], + "scope": null + } + ], + "libtmux.Pane.from_pane_id": [ + { + "command": "list-panes", + "evidence": [ + "src/libtmux/pane.py:223" + ], + "scope": "window" + } + ], + "libtmux.Pane.join": [ + { + "command": "join-pane", + "evidence": [ + "src/libtmux/pane.py:2443" + ], + "scope": null + } + ], + "libtmux.Pane.kill": [ + { + "command": "kill-pane", + "evidence": [ + "src/libtmux/pane.py:1072" + ], + "scope": null + } + ], + "libtmux.Pane.move": [ + { + "command": "move-pane", + "evidence": [ + "src/libtmux/pane.py:2372" + ], + "scope": null + } + ], + "libtmux.Pane.new_pane": [ + { + "command": "new-pane", + "evidence": [ + "src/libtmux/pane.py:1572" + ], + "scope": null + } + ], + "libtmux.Pane.paste_buffer": [ + { + "command": "paste-buffer", + "evidence": [ + "src/libtmux/pane.py:1933" + ], + "scope": null + } + ], + "libtmux.Pane.pipe": [ + { + "command": "pipe-pane", + "evidence": [ + "src/libtmux/pane.py:1980" + ], + "scope": null + } + ], + "libtmux.Pane.reset": [ + { + "command": "clear-history", + "evidence": [ + "src/libtmux/pane.py:2629" + ], + "scope": null + }, + { + "command": "send-keys", + "evidence": [ + "src/libtmux/pane.py:2629" + ], + "scope": null + } + ], + "libtmux.Pane.resize": [ + { + "command": "resize-pane", + "evidence": [ + "src/libtmux/pane.py:449" + ], + "scope": null + } + ], + "libtmux.Pane.respawn": [ + { + "command": "respawn-pane", + "evidence": [ + "src/libtmux/pane.py:2301" + ], + "scope": null + } + ], + "libtmux.Pane.run_hook": [ + { + "command": "set-hook", + "evidence": [ + "src/libtmux/hooks.py:107" + ], + "scope": null + } + ], + "libtmux.Pane.select": [ + { + "command": "select-pane", + "evidence": [ + "src/libtmux/pane.py:1189" + ], + "scope": null + } + ], + "libtmux.Pane.send_keys": [ + { + "command": "send-keys", + "evidence": [ + "src/libtmux/pane.py:839" + ], + "scope": null + } + ], + "libtmux.Pane.send_prefix": [ + { + "command": "send-prefix", + "evidence": [ + "src/libtmux/pane.py:2254" + ], + "scope": null + } + ], + "libtmux.Pane.set_hook": [ + { + "command": "set-hook", + "evidence": [ + "src/libtmux/hooks.py:186" + ], + "scope": null + } + ], + "libtmux.Pane.set_hooks": [ + { + "command": "set-hook", + "evidence": [ + "src/libtmux/hooks.py:186", + "src/libtmux/hooks.py:525" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Pane.set_option": [ + { + "command": "set-option", + "evidence": [ + "src/libtmux/options.py:704" + ], + "scope": null + } + ], + "libtmux.Pane.set_title": [ + { + "command": "select-pane", + "evidence": [ + "src/libtmux/pane.py:1656" + ], + "scope": null + } + ], + "libtmux.Pane.show_hook": [ + { + "command": "show-hooks", + "evidence": [ + "src/libtmux/hooks.py:364", + "src/libtmux/hooks.py:414" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Pane.show_hooks": [ + { + "command": "show-hooks", + "evidence": [ + "src/libtmux/hooks.py:304" + ], + "scope": null + } + ], + "libtmux.Pane.show_option": [ + { + "command": "show-options", + "evidence": [ + "src/libtmux/options.py:1134", + "src/libtmux/options.py:1185", + "src/libtmux/options.py:1296" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Pane.show_options": [ + { + "command": "show-options", + "evidence": [ + "src/libtmux/options.py:886", + "src/libtmux/options.py:928", + "src/libtmux/options.py:977", + "src/libtmux/options.py:1037" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Pane.split": [ + { + "command": "split-window", + "evidence": [ + "src/libtmux/pane.py:1404" + ], + "scope": null + } + ], + "libtmux.Pane.swap": [ + { + "command": "swap-pane", + "evidence": [ + "src/libtmux/pane.py:2578" + ], + "scope": null + } + ], + "libtmux.Pane.unset_hook": [ + { + "command": "set-hook", + "evidence": [ + "src/libtmux/hooks.py:239" + ], + "scope": null + } + ], + "libtmux.Pane.unset_option": [ + { + "command": "set-option", + "evidence": [ + "src/libtmux/options.py:792" + ], + "scope": null + } + ], + "libtmux.Server.attach_session": [ + { + "command": "attach-session", + "evidence": [ + "src/libtmux/server.py:2203" + ], + "scope": null + } + ], + "libtmux.Server.bind_key": [ + { + "command": "bind-key", + "evidence": [ + "src/libtmux/server.py:713" + ], + "scope": null + } + ], + "libtmux.Server.clear_prompt_history": [ + { + "command": "clear-prompt-history", + "evidence": [ + "src/libtmux/server.py:1811" + ], + "scope": null + } + ], + "libtmux.Server.clients": [ + { + "command": "list-clients", + "evidence": [ + "src/libtmux/server.py:2498" + ], + "scope": null + } + ], + "libtmux.Server.command_prompt": [ + { + "command": "command-prompt", + "evidence": [ + "src/libtmux/server.py:1340" + ], + "scope": null + } + ], + "libtmux.Server.confirm_before": [ + { + "command": "confirm-before", + "evidence": [ + "src/libtmux/server.py:1194" + ], + "scope": null + } + ], + "libtmux.Server.delete_buffer": [ + { + "command": "delete-buffer", + "evidence": [ + "src/libtmux/server.py:1902" + ], + "scope": null + } + ], + "libtmux.Server.detach_all_clients": [ + { + "command": "detach-client", + "evidence": [ + "src/libtmux/server.py:1108" + ], + "scope": null + } + ], + "libtmux.Server.detach_client": [ + { + "command": "detach-client", + "evidence": [ + "src/libtmux/server.py:1061" + ], + "scope": null + } + ], + "libtmux.Server.display_menu": [ + { + "command": "display-menu", + "evidence": [ + "src/libtmux/server.py:1492" + ], + "scope": null + } + ], + "libtmux.Server.display_message": [ + { + "command": "display-message", + "evidence": [ + "src/libtmux/server.py:1728" + ], + "scope": null + } + ], + "libtmux.Server.getenv": [ + { + "command": "show-environment", + "evidence": [ + "src/libtmux/common.py:230" + ], + "scope": null + } + ], + "libtmux.Server.has_session": [ + { + "command": "has-session", + "evidence": [ + "src/libtmux/server.py:460" + ], + "scope": null + } + ], + "libtmux.Server.if_shell": [ + { + "command": "if-shell", + "evidence": [ + "src/libtmux/server.py:2104" + ], + "scope": null + } + ], + "libtmux.Server.is_alive": [ + { + "command": "list-sessions", + "evidence": [ + "src/libtmux/server.py:304" + ], + "scope": null + } + ], + "libtmux.Server.kill": [ + { + "command": "kill-server", + "evidence": [ + "src/libtmux/server.py:482" + ], + "scope": null + } + ], + "libtmux.Server.kill_session": [ + { + "command": "kill-session", + "evidence": [ + "src/libtmux/server.py:507" + ], + "scope": null + } + ], + "libtmux.Server.list_buffers": [ + { + "command": "list-buffers", + "evidence": [ + "src/libtmux/server.py:2055" + ], + "scope": null + } + ], + "libtmux.Server.list_clients": [ + { + "command": "list-clients", + "evidence": [ + "src/libtmux/server.py:2166" + ], + "scope": null + } + ], + "libtmux.Server.list_commands": [ + { + "command": "list-commands", + "evidence": [ + "src/libtmux/server.py:832" + ], + "scope": null + } + ], + "libtmux.Server.list_keys": [ + { + "command": "list-keys", + "evidence": [ + "src/libtmux/server.py:802" + ], + "scope": null + } + ], + "libtmux.Server.load_buffer": [ + { + "command": "load-buffer", + "evidence": [ + "src/libtmux/server.py:1974" + ], + "scope": null + } + ], + "libtmux.Server.lock_client": [ + { + "command": "lock-client", + "evidence": [ + "src/libtmux/server.py:1012" + ], + "scope": null + } + ], + "libtmux.Server.lock_server": [ + { + "command": "lock-server", + "evidence": [ + "src/libtmux/server.py:846" + ], + "scope": null + } + ], + "libtmux.Server.new_session": [ + { + "command": "kill-session", + "evidence": [ + "src/libtmux/server.py:2312", + "src/libtmux/server.py:2311" + ], + "reviewed": true, + "scope": null, + "when": "kill_session is true, session exists" + }, + { + "command": "new-session", + "evidence": [ + "src/libtmux/server.py:2383" + ], + "scope": null + } + ], + "libtmux.Server.panes": [ + { + "command": "list-panes", + "evidence": [ + "src/libtmux/server.py:2461" + ], + "scope": "server" + } + ], + "libtmux.Server.raise_if_dead": [ + { + "command": "list-sessions", + "evidence": [ + "src/libtmux/server.py:340" + ], + "scope": null + } + ], + "libtmux.Server.refresh_client": [ + { + "command": "refresh-client", + "evidence": [ + "src/libtmux/server.py:964" + ], + "scope": null + } + ], + "libtmux.Server.remove_environment": [ + { + "command": "set-environment", + "evidence": [ + "src/libtmux/common.py:164" + ], + "scope": null + } + ], + "libtmux.Server.run_hook": [ + { + "command": "set-hook", + "evidence": [ + "src/libtmux/hooks.py:107" + ], + "scope": null + } + ], + "libtmux.Server.run_shell": [ + { + "command": "run-shell", + "evidence": [ + "src/libtmux/server.py:619" + ], + "scope": null + } + ], + "libtmux.Server.save_buffer": [ + { + "command": "save-buffer", + "evidence": [ + "src/libtmux/server.py:1941" + ], + "scope": null + } + ], + "libtmux.Server.search_panes": [ + { + "command": "list-panes", + "evidence": [ + "src/libtmux/server.py:2669" + ], + "scope": "server" + } + ], + "libtmux.Server.search_sessions": [ + { + "command": "list-sessions", + "evidence": [ + "src/libtmux/server.py:2554" + ], + "scope": null + } + ], + "libtmux.Server.search_windows": [ + { + "command": "list-windows", + "evidence": [ + "src/libtmux/server.py:2609" + ], + "scope": "server" + } + ], + "libtmux.Server.server_access": [ + { + "command": "server-access", + "evidence": [ + "src/libtmux/server.py:917" + ], + "scope": null + } + ], + "libtmux.Server.sessions": [ + { + "command": "list-sessions", + "evidence": [ + "src/libtmux/server.py:2426" + ], + "scope": null + } + ], + "libtmux.Server.set_buffer": [ + { + "command": "set-buffer", + "evidence": [ + "src/libtmux/server.py:1849" + ], + "scope": null + } + ], + "libtmux.Server.set_environment": [ + { + "command": "set-environment", + "evidence": [ + "src/libtmux/common.py:106" + ], + "scope": null + } + ], + "libtmux.Server.set_hook": [ + { + "command": "set-hook", + "evidence": [ + "src/libtmux/hooks.py:186" + ], + "scope": null + } + ], + "libtmux.Server.set_hooks": [ + { + "command": "set-hook", + "evidence": [ + "src/libtmux/hooks.py:186", + "src/libtmux/hooks.py:525" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Server.set_option": [ + { + "command": "set-option", + "evidence": [ + "src/libtmux/options.py:704" + ], + "scope": null + } + ], + "libtmux.Server.show_buffer": [ + { + "command": "show-buffer", + "evidence": [ + "src/libtmux/server.py:1877" + ], + "scope": null + } + ], + "libtmux.Server.show_environment": [ + { + "command": "show-environment", + "evidence": [ + "src/libtmux/common.py:193" + ], + "scope": null + } + ], + "libtmux.Server.show_hook": [ + { + "command": "show-hooks", + "evidence": [ + "src/libtmux/hooks.py:364", + "src/libtmux/hooks.py:414" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Server.show_hooks": [ + { + "command": "show-hooks", + "evidence": [ + "src/libtmux/hooks.py:304" + ], + "scope": null + } + ], + "libtmux.Server.show_messages": [ + { + "command": "show-messages", + "evidence": [ + "src/libtmux/server.py:1559" + ], + "scope": null + } + ], + "libtmux.Server.show_option": [ + { + "command": "show-options", + "evidence": [ + "src/libtmux/options.py:1134", + "src/libtmux/options.py:1185", + "src/libtmux/options.py:1296" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Server.show_options": [ + { + "command": "show-options", + "evidence": [ + "src/libtmux/options.py:886", + "src/libtmux/options.py:928", + "src/libtmux/options.py:977", + "src/libtmux/options.py:1037" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Server.show_prompt_history": [ + { + "command": "show-prompt-history", + "evidence": [ + "src/libtmux/server.py:1777" + ], + "scope": null + } + ], + "libtmux.Server.source_file": [ + { + "command": "source-file", + "evidence": [ + "src/libtmux/server.py:2149" + ], + "scope": null + } + ], + "libtmux.Server.start_server": [ + { + "command": "start-server", + "evidence": [ + "src/libtmux/server.py:1504" + ], + "scope": null + } + ], + "libtmux.Server.suspend_client": [ + { + "command": "suspend-client", + "evidence": [ + "src/libtmux/server.py:988" + ], + "scope": null + } + ], + "libtmux.Server.switch_client": [ + { + "command": "switch-client", + "evidence": [ + "src/libtmux/server.py:2186" + ], + "scope": null + } + ], + "libtmux.Server.unbind_key": [ + { + "command": "unbind-key", + "evidence": [ + "src/libtmux/server.py:757" + ], + "scope": null + } + ], + "libtmux.Server.unset_environment": [ + { + "command": "set-environment", + "evidence": [ + "src/libtmux/common.py:135" + ], + "scope": null + } + ], + "libtmux.Server.unset_hook": [ + { + "command": "set-hook", + "evidence": [ + "src/libtmux/hooks.py:239" + ], + "scope": null + } + ], + "libtmux.Server.unset_option": [ + { + "command": "set-option", + "evidence": [ + "src/libtmux/options.py:792" + ], + "scope": null + } + ], + "libtmux.Server.wait_for": [ + { + "command": "wait-for", + "evidence": [ + "src/libtmux/server.py:667" + ], + "scope": null + } + ], + "libtmux.Server.windows": [ + { + "command": "list-windows", + "evidence": [ + "src/libtmux/server.py:2442" + ], + "scope": "server" + } + ], + "libtmux.Session.attach": [ + { + "command": "attach-session", + "evidence": [ + "src/libtmux/session.py:664" + ], + "scope": null + } + ], + "libtmux.Session.detach_client": [ + { + "command": "detach-client", + "evidence": [ + "src/libtmux/session.py:518" + ], + "scope": null + } + ], + "libtmux.Session.from_session_id": [ + { + "command": "list-sessions", + "evidence": [ + "src/libtmux/session.py:203" + ], + "scope": null + } + ], + "libtmux.Session.getenv": [ + { + "command": "show-environment", + "evidence": [ + "src/libtmux/common.py:230" + ], + "scope": null + } + ], + "libtmux.Session.kill": [ + { + "command": "kill-session", + "evidence": [ + "src/libtmux/session.py:743" + ], + "scope": null + } + ], + "libtmux.Session.kill_window": [ + { + "command": "kill-window", + "evidence": [ + "src/libtmux/session.py:991" + ], + "scope": null + } + ], + "libtmux.Session.last_window": [ + { + "command": "last-window", + "evidence": [ + "src/libtmux/session.py:539" + ], + "scope": null + } + ], + "libtmux.Session.lock_session": [ + { + "command": "lock-session", + "evidence": [ + "src/libtmux/session.py:479" + ], + "scope": null + } + ], + "libtmux.Session.new_window": [ + { + "command": "new-window", + "evidence": [ + "src/libtmux/session.py:939" + ], + "scope": null + } + ], + "libtmux.Session.next_window": [ + { + "command": "next-window", + "evidence": [ + "src/libtmux/session.py:561" + ], + "scope": null + } + ], + "libtmux.Session.panes": [ + { + "command": "list-panes", + "evidence": [ + "src/libtmux/session.py:301" + ], + "scope": "session" + } + ], + "libtmux.Session.previous_window": [ + { + "command": "previous-window", + "evidence": [ + "src/libtmux/session.py:583" + ], + "scope": null + } + ], + "libtmux.Session.refresh": [ + { + "command": "list-sessions", + "evidence": [ + "src/libtmux/session.py:170" + ], + "scope": null + } + ], + "libtmux.Session.remove_environment": [ + { + "command": "set-environment", + "evidence": [ + "src/libtmux/common.py:164" + ], + "scope": null + } + ], + "libtmux.Session.rename_session": [ + { + "command": "rename-session", + "evidence": [ + "src/libtmux/session.py:787" + ], + "scope": null + } + ], + "libtmux.Session.run_hook": [ + { + "command": "set-hook", + "evidence": [ + "src/libtmux/hooks.py:107" + ], + "scope": null + } + ], + "libtmux.Session.search_panes": [ + { + "command": "list-panes", + "evidence": [ + "src/libtmux/session.py:411" + ], + "scope": "session" + } + ], + "libtmux.Session.search_windows": [ + { + "command": "list-windows", + "evidence": [ + "src/libtmux/session.py:355" + ], + "scope": "session" + } + ], + "libtmux.Session.select_window": [ + { + "command": "select-window", + "evidence": [ + "src/libtmux/session.py:613" + ], + "scope": null + } + ], + "libtmux.Session.set_environment": [ + { + "command": "set-environment", + "evidence": [ + "src/libtmux/common.py:106" + ], + "scope": null + } + ], + "libtmux.Session.set_hook": [ + { + "command": "set-hook", + "evidence": [ + "src/libtmux/hooks.py:186" + ], + "scope": null + } + ], + "libtmux.Session.set_hooks": [ + { + "command": "set-hook", + "evidence": [ + "src/libtmux/hooks.py:186", + "src/libtmux/hooks.py:525" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Session.set_option": [ + { + "command": "set-option", + "evidence": [ + "src/libtmux/options.py:704" + ], + "scope": null + } + ], + "libtmux.Session.show_environment": [ + { + "command": "show-environment", + "evidence": [ + "src/libtmux/common.py:193" + ], + "scope": null + } + ], + "libtmux.Session.show_hook": [ + { + "command": "show-hooks", + "evidence": [ + "src/libtmux/hooks.py:364", + "src/libtmux/hooks.py:414" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Session.show_hooks": [ + { + "command": "show-hooks", + "evidence": [ + "src/libtmux/hooks.py:304" + ], + "scope": null + } + ], + "libtmux.Session.show_option": [ + { + "command": "show-options", + "evidence": [ + "src/libtmux/options.py:1134", + "src/libtmux/options.py:1185", + "src/libtmux/options.py:1296" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Session.show_options": [ + { + "command": "show-options", + "evidence": [ + "src/libtmux/options.py:886", + "src/libtmux/options.py:928", + "src/libtmux/options.py:977", + "src/libtmux/options.py:1037" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Session.switch_client": [ + { + "command": "switch-client", + "evidence": [ + "src/libtmux/session.py:767" + ], + "scope": null + } + ], + "libtmux.Session.unset_environment": [ + { + "command": "set-environment", + "evidence": [ + "src/libtmux/common.py:135" + ], + "scope": null + } + ], + "libtmux.Session.unset_hook": [ + { + "command": "set-hook", + "evidence": [ + "src/libtmux/hooks.py:239" + ], + "scope": null + } + ], + "libtmux.Session.unset_option": [ + { + "command": "set-option", + "evidence": [ + "src/libtmux/options.py:792" + ], + "scope": null + } + ], + "libtmux.Session.windows": [ + { + "command": "list-windows", + "evidence": [ + "src/libtmux/session.py:281" + ], + "scope": "session" + } + ], + "libtmux.Window.display_message": [ + { + "command": "display-message", + "evidence": [ + "src/libtmux/window.py:1357" + ], + "scope": null + } + ], + "libtmux.Window.from_window_id": [ + { + "command": "list-windows", + "evidence": [ + "src/libtmux/window.py:241" + ], + "scope": "session" + } + ], + "libtmux.Window.kill": [ + { + "command": "kill-window", + "evidence": [ + "src/libtmux/window.py:1453" + ], + "scope": null + } + ], + "libtmux.Window.last_pane": [ + { + "command": "last-pane", + "evidence": [ + "src/libtmux/window.py:851" + ], + "scope": null + } + ], + "libtmux.Window.link": [ + { + "command": "link-window", + "evidence": [ + "src/libtmux/window.py:1034" + ], + "scope": null + } + ], + "libtmux.Window.linked_sessions": [ + { + "command": "list-sessions", + "evidence": [ + "src/libtmux/window.py:371" + ], + "scope": null + }, + { + "command": "list-windows", + "evidence": [ + "src/libtmux/window.py:361" + ], + "scope": "server" + } + ], + "libtmux.Window.move_window": [ + { + "command": "move-window", + "evidence": [ + "src/libtmux/window.py:1542" + ], + "scope": null + } + ], + "libtmux.Window.new_pane": [ + { + "command": "new-pane", + "evidence": [ + "src/libtmux/pane.py:1572", + "src/libtmux/window.py:707" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Window.new_window": [ + { + "command": "new-window", + "evidence": [ + "src/libtmux/session.py:939", + "src/libtmux/window.py:1599" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Window.next_layout": [ + { + "command": "next-layout", + "evidence": [ + "src/libtmux/window.py:953" + ], + "scope": null + } + ], + "libtmux.Window.panes": [ + { + "command": "list-panes", + "evidence": [ + "src/libtmux/window.py:400" + ], + "scope": "window" + } + ], + "libtmux.Window.previous_layout": [ + { + "command": "previous-layout", + "evidence": [ + "src/libtmux/window.py:967" + ], + "scope": null + } + ], + "libtmux.Window.refresh": [ + { + "command": "list-windows", + "evidence": [ + "src/libtmux/window.py:201" + ], + "scope": "session" + } + ], + "libtmux.Window.rename_window": [ + { + "command": "rename-window", + "evidence": [ + "src/libtmux/window.py:1391" + ], + "scope": null + } + ], + "libtmux.Window.resize": [ + { + "command": "resize-window", + "evidence": [ + "src/libtmux/window.py:796" + ], + "scope": null + } + ], + "libtmux.Window.respawn": [ + { + "command": "respawn-window", + "evidence": [ + "src/libtmux/window.py:1153" + ], + "scope": null + } + ], + "libtmux.Window.rotate": [ + { + "command": "rotate-window", + "evidence": [ + "src/libtmux/window.py:1104" + ], + "scope": null + } + ], + "libtmux.Window.run_hook": [ + { + "command": "set-hook", + "evidence": [ + "src/libtmux/hooks.py:107" + ], + "scope": null + } + ], + "libtmux.Window.search_panes": [ + { + "command": "list-panes", + "evidence": [ + "src/libtmux/window.py:455" + ], + "scope": "window" + } + ], + "libtmux.Window.select": [ + { + "command": "select-window", + "evidence": [ + "src/libtmux/window.py:1636" + ], + "scope": null + } + ], + "libtmux.Window.select_layout": [ + { + "command": "select-layout", + "evidence": [ + "src/libtmux/window.py:939" + ], + "scope": null + } + ], + "libtmux.Window.select_pane": [ + { + "command": "select-pane", + "evidence": [ + "src/libtmux/window.py:527" + ], + "scope": null + } + ], + "libtmux.Window.set_hook": [ + { + "command": "set-hook", + "evidence": [ + "src/libtmux/hooks.py:186" + ], + "scope": null + } + ], + "libtmux.Window.set_hooks": [ + { + "command": "set-hook", + "evidence": [ + "src/libtmux/hooks.py:186", + "src/libtmux/hooks.py:525" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Window.set_option": [ + { + "command": "set-option", + "evidence": [ + "src/libtmux/options.py:704" + ], + "scope": null + } + ], + "libtmux.Window.set_window_option": [ + { + "command": "set-option", + "evidence": [ + "src/libtmux/options.py:705", + "src/libtmux/window.py:1833" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Window.show_hook": [ + { + "command": "show-hooks", + "evidence": [ + "src/libtmux/hooks.py:364", + "src/libtmux/hooks.py:414" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Window.show_hooks": [ + { + "command": "show-hooks", + "evidence": [ + "src/libtmux/hooks.py:304" + ], + "scope": null + } + ], + "libtmux.Window.show_option": [ + { + "command": "show-options", + "evidence": [ + "src/libtmux/options.py:1134", + "src/libtmux/options.py:1185", + "src/libtmux/options.py:1296" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Window.show_options": [ + { + "command": "show-options", + "evidence": [ + "src/libtmux/options.py:886", + "src/libtmux/options.py:928", + "src/libtmux/options.py:977", + "src/libtmux/options.py:1037" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Window.show_window_option": [ + { + "command": "show-options", + "evidence": [ + "src/libtmux/options.py:1134", + "src/libtmux/options.py:1185", + "src/libtmux/options.py:1296", + "src/libtmux/window.py:1872" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Window.show_window_options": [ + { + "command": "show-options", + "evidence": [ + "src/libtmux/options.py:886", + "src/libtmux/options.py:928", + "src/libtmux/options.py:977", + "src/libtmux/options.py:1037", + "src/libtmux/window.py:1849" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Window.split": [ + { + "command": "split-window", + "evidence": [ + "src/libtmux/pane.py:1404", + "src/libtmux/window.py:609" + ], + "reviewed": true, + "scope": null + } + ], + "libtmux.Window.swap": [ + { + "command": "swap-window", + "evidence": [ + "src/libtmux/window.py:1192" + ], + "scope": null + } + ], + "libtmux.Window.unlink": [ + { + "command": "unlink-window", + "evidence": [ + "src/libtmux/window.py:1059" + ], + "scope": null + } + ], + "libtmux.Window.unset_hook": [ + { + "command": "set-hook", + "evidence": [ + "src/libtmux/hooks.py:239" + ], + "scope": null + } + ], + "libtmux.Window.unset_option": [ + { + "command": "set-option", + "evidence": [ + "src/libtmux/options.py:792" + ], + "scope": null + } + ] + } +} diff --git a/site/src/data/tmux-usage/rs.json b/site/src/data/tmux-usage/rs.json new file mode 100644 index 000000000..9443998b4 --- /dev/null +++ b/site/src/data/tmux-usage/rs.json @@ -0,0 +1,1967 @@ +{ + "commands": [ + "attach-session", + "bind-key", + "break-pane", + "capture-pane", + "choose-buffer", + "choose-client", + "choose-tree", + "clear-history", + "clear-prompt-history", + "clock-mode", + "command-prompt", + "confirm-before", + "copy-mode", + "customize-mode", + "delete-buffer", + "detach-client", + "display-menu", + "display-message", + "display-panes", + "display-popup", + "find-window", + "has-session", + "if-shell", + "join-pane", + "kill-pane", + "kill-server", + "kill-session", + "kill-window", + "last-pane", + "last-window", + "link-window", + "list-buffers", + "list-clients", + "list-commands", + "list-keys", + "list-panes", + "list-sessions", + "list-windows", + "load-buffer", + "lock-client", + "lock-server", + "lock-session", + "move-pane", + "move-window", + "new-pane", + "new-session", + "new-window", + "next-layout", + "next-window", + "paste-buffer", + "pipe-pane", + "previous-layout", + "previous-window", + "refresh-client", + "rename-session", + "rename-window", + "resize-pane", + "resize-window", + "respawn-pane", + "respawn-window", + "rotate-window", + "run-shell", + "save-buffer", + "select-layout", + "select-pane", + "select-window", + "send-keys", + "send-prefix", + "server-access", + "set-buffer", + "set-environment", + "set-hook", + "set-option", + "set-window-option", + "show-buffer", + "show-environment", + "show-hooks", + "show-messages", + "show-options", + "show-prompt-history", + "show-window-options", + "source-file", + "split-window", + "start-server", + "suspend-client", + "swap-pane", + "swap-window", + "switch-client", + "unbind-key", + "unlink-window", + "wait-for" + ], + "port": "rs", + "repo": "libtmux/libtmux-rs", + "revision": "a6fc2a65674177b92b17fa380757155d2ba150fd", + "schemaVersion": 1, + "symbols": { + "client.Client.detach": [ + { + "command": "detach-client", + "evidence": [ + "crates/libtmux/src/client.rs:376" + ], + "scope": null + } + ], + "client.Client.lock": [ + { + "command": "lock-client", + "evidence": [ + "crates/libtmux/src/client.rs:431" + ], + "scope": null + } + ], + "client.Client.redraw": [ + { + "command": "refresh-client", + "evidence": [ + "crates/libtmux/src/client.rs:451" + ], + "scope": null + } + ], + "client.Client.refresh": [ + { + "command": "display-message", + "evidence": [ + "crates/libtmux/src/client.rs:202", + "crates/libtmux/src/client.rs:171" + ], + "scope": null + } + ], + "client.Client.suspend": [ + { + "command": "suspend-client", + "evidence": [ + "crates/libtmux/src/client.rs:403" + ], + "scope": null + } + ], + "client.Client.switch_to": [ + { + "command": "switch-client", + "evidence": [ + "crates/libtmux/src/client.rs:470" + ], + "scope": null + } + ], + "control.ControlMode.attach_with_limits": [ + { + "command": "refresh-client", + "evidence": [ + "crates/libtmux/src/control.rs:543" + ], + "scope": null + } + ], + "control.ControlSender.mute_pane": [ + { + "command": "refresh-client", + "evidence": [ + "crates/libtmux/src/control.rs:1134", + "crates/libtmux/src/control.rs:866" + ], + "scope": null + } + ], + "control.ControlSender.pause_after": [ + { + "command": "refresh-client", + "evidence": [ + "crates/libtmux/src/control.rs:1037" + ], + "scope": null + } + ], + "control.ControlSender.resume_pane": [ + { + "command": "refresh-client", + "evidence": [ + "crates/libtmux/src/control.rs:927", + "crates/libtmux/src/control.rs:916" + ], + "scope": null + } + ], + "control.ControlSender.subscribe": [ + { + "command": "refresh-client", + "evidence": [ + "crates/libtmux/src/control.rs:996" + ], + "scope": null + } + ], + "control.ControlSender.unmute_pane": [ + { + "command": "refresh-client", + "evidence": [ + "crates/libtmux/src/control.rs:927", + "crates/libtmux/src/control.rs:899" + ], + "scope": null + } + ], + "control.ControlSender.unsubscribe": [ + { + "command": "refresh-client", + "evidence": [ + "crates/libtmux/src/control.rs:1018" + ], + "scope": null + } + ], + "control.ControlSender.watch_only": [ + { + "command": "list-panes", + "evidence": [ + "crates/libtmux/src/control.rs:1076" + ], + "scope": "session" + } + ], + "control.PaneOutput.snapshot": [ + { + "command": "capture-pane", + "evidence": [ + "crates/libtmux/src/control.rs:1473" + ], + "scope": null + } + ], + "pane.Pane.append_option": [ + { + "command": "set-option", + "evidence": [ + "crates/libtmux/src/internal/options.rs:172", + "crates/libtmux/src/pane/settings.rs:147" + ], + "reviewed": true, + "scope": null + } + ], + "pane.Pane.break_out": [ + { + "command": "break-pane", + "evidence": [ + "crates/libtmux/src/pane.rs:1079" + ], + "scope": null + } + ], + "pane.Pane.capture": [ + { + "command": "capture-pane", + "evidence": [ + "crates/libtmux/src/pane/observe.rs:171", + "crates/libtmux/src/pane.rs:1618", + "crates/libtmux/src/pane.rs:1613", + "crates/libtmux/src/pane/observe.rs:169", + "crates/libtmux/src/pane/observe.rs:121" + ], + "reviewed": true, + "scope": null + } + ], + "pane.Pane.capture_lines": [ + { + "command": "capture-pane", + "evidence": [ + "crates/libtmux/src/pane/observe.rs:171", + "crates/libtmux/src/pane.rs:1618", + "crates/libtmux/src/pane.rs:1613", + "crates/libtmux/src/pane/observe.rs:169", + "crates/libtmux/src/pane/observe.rs:237" + ], + "reviewed": true, + "scope": null + } + ], + "pane.Pane.capture_with": [ + { + "command": "capture-pane", + "evidence": [ + "crates/libtmux/src/pane/observe.rs:171", + "crates/libtmux/src/pane.rs:1618", + "crates/libtmux/src/pane.rs:1613", + "crates/libtmux/src/pane/observe.rs:169" + ], + "reviewed": true, + "scope": null + } + ], + "pane.Pane.clear_history": [ + { + "command": "clear-history", + "evidence": [ + "crates/libtmux/src/pane.rs:922" + ], + "scope": null + } + ], + "pane.Pane.clock_mode": [ + { + "command": "clock-mode", + "evidence": [ + "crates/libtmux/src/pane.rs:1204" + ], + "scope": null + } + ], + "pane.Pane.copy_mode": [ + { + "command": "copy-mode", + "evidence": [ + "crates/libtmux/src/pane.rs:1162" + ], + "scope": null + } + ], + "pane.Pane.display": [ + { + "command": "display-message", + "evidence": [ + "crates/libtmux/src/pane.rs:876" + ], + "scope": null + } + ], + "pane.Pane.exit_mode": [ + { + "command": "copy-mode", + "evidence": [ + "crates/libtmux/src/pane.rs:1187" + ], + "scope": null + } + ], + "pane.Pane.format": [ + { + "command": "display-message", + "evidence": [ + "crates/libtmux/src/pane.rs:840" + ], + "scope": null + } + ], + "pane.Pane.join_into": [ + { + "command": "join-pane", + "evidence": [ + "crates/libtmux/src/pane.rs:1149" + ], + "scope": null + } + ], + "pane.Pane.kill": [ + { + "command": "kill-pane", + "evidence": [ + "crates/libtmux/src/pane.rs:754" + ], + "scope": null + } + ], + "pane.Pane.option_names": [ + { + "command": "show-options", + "evidence": [ + "crates/libtmux/src/internal/options.rs:141", + "crates/libtmux/src/pane/settings.rs:29" + ], + "scope": null + } + ], + "pane.Pane.paste_buffer": [ + { + "command": "paste-buffer", + "evidence": [ + "crates/libtmux/src/pane.rs:947" + ], + "scope": null + } + ], + "pane.Pane.pipe": [ + { + "command": "pipe-pane", + "evidence": [ + "crates/libtmux/src/pane.rs:972" + ], + "scope": null + } + ], + "pane.Pane.resize": [ + { + "command": "resize-pane", + "evidence": [ + "crates/libtmux/src/pane.rs:726" + ], + "scope": null + } + ], + "pane.Pane.resize_by": [ + { + "command": "resize-pane", + "evidence": [ + "crates/libtmux/src/pane.rs:561" + ], + "scope": null + } + ], + "pane.Pane.respawn": [ + { + "command": "respawn-pane", + "evidence": [ + "crates/libtmux/src/pane.rs:998" + ], + "scope": null + } + ], + "pane.Pane.select": [ + { + "command": "select-pane", + "evidence": [ + "crates/libtmux/src/pane.rs:705" + ], + "scope": null + } + ], + "pane.Pane.send_key_names": [ + { + "command": "send-keys", + "evidence": [ + "crates/libtmux/src/pane.rs:696" + ], + "scope": null + } + ], + "pane.Pane.send_keys": [ + { + "command": "send-keys", + "evidence": [ + "crates/libtmux/src/pane.rs:643" + ], + "scope": null + } + ], + "pane.Pane.send_line": [ + { + "command": "send-keys", + "evidence": [ + "crates/libtmux/src/pane.rs:670", + "crates/libtmux/src/pane.rs:673", + "crates/libtmux/src/pane.rs:68" + ], + "scope": null + } + ], + "pane.Pane.send_prefix": [ + { + "command": "send-prefix", + "evidence": [ + "crates/libtmux/src/pane.rs:1220" + ], + "scope": null + } + ], + "pane.Pane.set_hook": [ + { + "command": "set-hook", + "evidence": [ + "crates/libtmux/src/internal/options.rs:261", + "crates/libtmux/src/pane/settings.rs:177" + ], + "reviewed": true, + "scope": null + } + ], + "pane.Pane.set_option": [ + { + "command": "set-option", + "evidence": [ + "crates/libtmux/src/internal/options.rs:172", + "crates/libtmux/src/pane/settings.rs:87" + ], + "reviewed": true, + "scope": null + } + ], + "pane.Pane.set_title": [ + { + "command": "select-pane", + "evidence": [ + "crates/libtmux/src/pane.rs:899" + ], + "scope": null + } + ], + "pane.Pane.set_typed_option": [ + { + "command": "set-option", + "evidence": [ + "crates/libtmux/src/internal/options.rs:172", + "crates/libtmux/src/internal/options.rs:206", + "crates/libtmux/src/pane/settings.rs:128" + ], + "reviewed": true, + "scope": null + } + ], + "pane.Pane.split": [ + { + "command": "split-window", + "evidence": [ + "crates/libtmux/src/internal/listing.rs:362", + "crates/libtmux/src/window.rs:1948", + "crates/libtmux/src/internal/listing.rs:444", + "crates/libtmux/src/pane.rs:515" + ], + "reviewed": true, + "scope": null + } + ], + "pane.Pane.swap_with": [ + { + "command": "swap-pane", + "evidence": [ + "crates/libtmux/src/pane.rs:1014" + ], + "scope": null + } + ], + "pane.Pane.toggle_zoom": [ + { + "command": "resize-pane", + "evidence": [ + "crates/libtmux/src/pane.rs:614" + ], + "scope": null + } + ], + "pane.Pane.unset_hook": [ + { + "command": "set-hook", + "evidence": [ + "crates/libtmux/src/internal/options.rs:278", + "crates/libtmux/src/pane/settings.rs:190" + ], + "reviewed": true, + "scope": null + } + ], + "pane.Pane.unset_option": [ + { + "command": "set-option", + "evidence": [ + "crates/libtmux/src/internal/options.rs:220", + "crates/libtmux/src/pane/settings.rs:160" + ], + "reviewed": true, + "scope": null + } + ], + "pane.Pane.wait_for_quiet": [ + { + "command": "display-message", + "evidence": [ + "crates/libtmux/src/pane/observe.rs:488", + "crates/libtmux/src/pane/observe.rs:367" + ], + "scope": null + } + ], + "pane.Pane.wait_for_text": [ + { + "command": "display-message", + "evidence": [ + "crates/libtmux/src/pane/observe.rs:488", + "crates/libtmux/src/pane/observe.rs:315" + ], + "scope": null + } + ], + "pane.Pane.wait_until": [ + { + "command": "display-message", + "evidence": [ + "crates/libtmux/src/pane/observe.rs:488", + "crates/libtmux/src/pane/observe.rs:446" + ], + "scope": null + } + ], + "plan.Plan.run": [ + { + "command": "capture-pane", + "evidence": [ + "crates/libtmux/src/plan/run.rs:461", + "crates/libtmux/src/plan/ops/panes.rs:531", + "crates/libtmux/src/plan/run.rs:550", + "crates/libtmux/src/plan/run.rs:449", + "crates/libtmux/src/plan/run.rs:377" + ], + "reviewed": true, + "scope": null, + "when": "the plan has a capture-pane step" + }, + { + "command": "kill-pane", + "evidence": [ + "crates/libtmux/src/plan/run.rs:461", + "crates/libtmux/src/plan/ops/panes.rs:580", + "crates/libtmux/src/plan/run.rs:550", + "crates/libtmux/src/plan/run.rs:449", + "crates/libtmux/src/plan/run.rs:377" + ], + "reviewed": true, + "scope": null, + "when": "the plan has a kill-pane step" + }, + { + "command": "kill-window", + "evidence": [ + "crates/libtmux/src/plan/run.rs:461", + "crates/libtmux/src/plan/ops/windows.rs:317", + "crates/libtmux/src/plan/run.rs:550", + "crates/libtmux/src/plan/run.rs:449", + "crates/libtmux/src/plan/run.rs:377" + ], + "reviewed": true, + "scope": null, + "when": "the plan has a kill-window step" + }, + { + "command": "new-session", + "evidence": [ + "crates/libtmux/src/plan/run.rs:461", + "crates/libtmux/src/plan/ops/sessions.rs:92", + "crates/libtmux/src/plan/run.rs:550", + "crates/libtmux/src/plan/run.rs:449", + "crates/libtmux/src/plan/run.rs:377" + ], + "reviewed": true, + "scope": null, + "when": "the plan has a new-session step" + }, + { + "command": "new-window", + "evidence": [ + "crates/libtmux/src/plan/run.rs:461", + "crates/libtmux/src/plan/ops/windows.rs:151", + "crates/libtmux/src/plan/run.rs:550", + "crates/libtmux/src/plan/run.rs:449", + "crates/libtmux/src/plan/run.rs:377" + ], + "reviewed": true, + "scope": null, + "when": "the plan has a new-window step" + }, + { + "command": "rename-window", + "evidence": [ + "crates/libtmux/src/plan/run.rs:461", + "crates/libtmux/src/plan/ops/windows.rs:271", + "crates/libtmux/src/plan/run.rs:550", + "crates/libtmux/src/plan/run.rs:449", + "crates/libtmux/src/plan/run.rs:377" + ], + "reviewed": true, + "scope": null, + "when": "the plan has a rename-window step" + }, + { + "command": "run-shell", + "evidence": [ + "crates/libtmux/src/plan/run.rs:461", + "crates/libtmux/src/plan/ops/timing.rs:81", + "crates/libtmux/src/plan/run.rs:550", + "crates/libtmux/src/plan/run.rs:449", + "crates/libtmux/src/plan/run.rs:377" + ], + "reviewed": true, + "scope": null, + "when": "the plan has a run-shell step" + }, + { + "command": "select-layout", + "evidence": [ + "crates/libtmux/src/plan/run.rs:461", + "crates/libtmux/src/plan/ops/windows.rs:370", + "crates/libtmux/src/plan/run.rs:550", + "crates/libtmux/src/plan/run.rs:449", + "crates/libtmux/src/plan/run.rs:377" + ], + "reviewed": true, + "scope": null, + "when": "the plan has a select-layout step" + }, + { + "command": "select-pane", + "evidence": [ + "crates/libtmux/src/plan/run.rs:461", + "crates/libtmux/src/plan/ops/panes.rs:481", + "crates/libtmux/src/plan/run.rs:550", + "crates/libtmux/src/plan/run.rs:449", + "crates/libtmux/src/plan/run.rs:377" + ], + "reviewed": true, + "scope": null, + "when": "the plan has a select-pane step" + }, + { + "command": "select-window", + "evidence": [ + "crates/libtmux/src/plan/run.rs:461", + "crates/libtmux/src/plan/ops/windows.rs:223", + "crates/libtmux/src/plan/run.rs:550", + "crates/libtmux/src/plan/run.rs:449", + "crates/libtmux/src/plan/run.rs:377" + ], + "reviewed": true, + "scope": null, + "when": "the plan has a select-window step" + }, + { + "command": "send-keys", + "evidence": [ + "crates/libtmux/src/plan/run.rs:461", + "crates/libtmux/src/plan/ops/panes.rs:412", + "crates/libtmux/src/plan/run.rs:550", + "crates/libtmux/src/plan/run.rs:449", + "crates/libtmux/src/plan/run.rs:377" + ], + "reviewed": true, + "scope": null, + "when": "the plan has a send-keys step" + }, + { + "command": "set-environment", + "evidence": [ + "crates/libtmux/src/plan/run.rs:461", + "crates/libtmux/src/plan/ops/options.rs:210", + "crates/libtmux/src/plan/run.rs:550", + "crates/libtmux/src/plan/run.rs:449", + "crates/libtmux/src/plan/run.rs:377" + ], + "reviewed": true, + "scope": null, + "when": "the plan has a set-environment step" + }, + { + "command": "set-option", + "evidence": [ + "crates/libtmux/src/plan/run.rs:461", + "crates/libtmux/src/plan/ops/options.rs:123", + "crates/libtmux/src/plan/run.rs:550", + "crates/libtmux/src/plan/run.rs:449", + "crates/libtmux/src/plan/run.rs:377" + ], + "reviewed": true, + "scope": null, + "when": "the plan has a set-option step" + }, + { + "command": "split-window", + "evidence": [ + "crates/libtmux/src/plan/run.rs:461", + "crates/libtmux/src/plan/ops/panes.rs:257", + "crates/libtmux/src/plan/run.rs:550", + "crates/libtmux/src/plan/run.rs:449", + "crates/libtmux/src/plan/run.rs:377" + ], + "reviewed": true, + "scope": null, + "when": "the plan has a split-window step" + } + ], + "plan.Plan.run_over_control_mode": [ + { + "command": "capture-pane", + "evidence": [ + "crates/libtmux/src/plan/run.rs:869", + "crates/libtmux/src/plan/ops/panes.rs:531", + "crates/libtmux/src/plan/run.rs:856" + ], + "reviewed": true, + "scope": null, + "when": "the plan has a capture-pane step" + }, + { + "command": "kill-pane", + "evidence": [ + "crates/libtmux/src/plan/run.rs:869", + "crates/libtmux/src/plan/ops/panes.rs:580", + "crates/libtmux/src/plan/run.rs:856" + ], + "reviewed": true, + "scope": null, + "when": "the plan has a kill-pane step" + }, + { + "command": "kill-window", + "evidence": [ + "crates/libtmux/src/plan/run.rs:869", + "crates/libtmux/src/plan/ops/windows.rs:317", + "crates/libtmux/src/plan/run.rs:856" + ], + "reviewed": true, + "scope": null, + "when": "the plan has a kill-window step" + }, + { + "command": "new-session", + "evidence": [ + "crates/libtmux/src/plan/run.rs:869", + "crates/libtmux/src/plan/ops/sessions.rs:92", + "crates/libtmux/src/plan/run.rs:856" + ], + "reviewed": true, + "scope": null, + "when": "the plan has a new-session step" + }, + { + "command": "new-window", + "evidence": [ + "crates/libtmux/src/plan/run.rs:869", + "crates/libtmux/src/plan/ops/windows.rs:151", + "crates/libtmux/src/plan/run.rs:856" + ], + "reviewed": true, + "scope": null, + "when": "the plan has a new-window step" + }, + { + "command": "rename-window", + "evidence": [ + "crates/libtmux/src/plan/run.rs:869", + "crates/libtmux/src/plan/ops/windows.rs:271", + "crates/libtmux/src/plan/run.rs:856" + ], + "reviewed": true, + "scope": null, + "when": "the plan has a rename-window step" + }, + { + "command": "select-layout", + "evidence": [ + "crates/libtmux/src/plan/run.rs:869", + "crates/libtmux/src/plan/ops/windows.rs:370", + "crates/libtmux/src/plan/run.rs:856" + ], + "reviewed": true, + "scope": null, + "when": "the plan has a select-layout step" + }, + { + "command": "select-pane", + "evidence": [ + "crates/libtmux/src/plan/run.rs:869", + "crates/libtmux/src/plan/ops/panes.rs:481", + "crates/libtmux/src/plan/run.rs:856" + ], + "reviewed": true, + "scope": null, + "when": "the plan has a select-pane step" + }, + { + "command": "select-window", + "evidence": [ + "crates/libtmux/src/plan/run.rs:869", + "crates/libtmux/src/plan/ops/windows.rs:223", + "crates/libtmux/src/plan/run.rs:856" + ], + "reviewed": true, + "scope": null, + "when": "the plan has a select-window step" + }, + { + "command": "send-keys", + "evidence": [ + "crates/libtmux/src/plan/run.rs:869", + "crates/libtmux/src/plan/ops/panes.rs:412", + "crates/libtmux/src/plan/run.rs:856" + ], + "reviewed": true, + "scope": null, + "when": "the plan has a send-keys step" + }, + { + "command": "set-environment", + "evidence": [ + "crates/libtmux/src/plan/run.rs:869", + "crates/libtmux/src/plan/ops/options.rs:210", + "crates/libtmux/src/plan/run.rs:856" + ], + "reviewed": true, + "scope": null, + "when": "the plan has a set-environment step" + }, + { + "command": "set-option", + "evidence": [ + "crates/libtmux/src/plan/run.rs:869", + "crates/libtmux/src/plan/ops/options.rs:123", + "crates/libtmux/src/plan/run.rs:856" + ], + "reviewed": true, + "scope": null, + "when": "the plan has a set-option step" + }, + { + "command": "split-window", + "evidence": [ + "crates/libtmux/src/plan/run.rs:869", + "crates/libtmux/src/plan/ops/panes.rs:257", + "crates/libtmux/src/plan/run.rs:856" + ], + "reviewed": true, + "scope": null, + "when": "the plan has a split-window step" + } + ], + "server.Server.access_rules": [ + { + "command": "server-access", + "evidence": [ + "crates/libtmux/src/server.rs:1406" + ], + "scope": null + } + ], + "server.Server.append_array_option": [ + { + "command": "set-option", + "evidence": [ + "crates/libtmux/src/internal/options.rs:172", + "crates/libtmux/src/server/settings.rs:400" + ], + "reviewed": true, + "scope": null + } + ], + "server.Server.bind_key": [ + { + "command": "bind-key", + "evidence": [ + "crates/libtmux/src/server.rs:1125" + ], + "scope": null + } + ], + "server.Server.buffer": [ + { + "command": "show-buffer", + "evidence": [ + "crates/libtmux/src/server.rs:1039" + ], + "scope": null + } + ], + "server.Server.buffer_names": [ + { + "command": "list-buffers", + "evidence": [ + "crates/libtmux/src/server.rs:1069" + ], + "scope": null + } + ], + "server.Server.check_alive": [ + { + "command": "list-sessions", + "evidence": [ + "crates/libtmux/src/server.rs:1688" + ], + "scope": null + } + ], + "server.Server.clear_prompt_history": [ + { + "command": "clear-prompt-history", + "evidence": [ + "crates/libtmux/src/server.rs:1362" + ], + "scope": null + } + ], + "server.Server.command_prompt": [ + { + "command": "command-prompt", + "evidence": [ + "crates/libtmux/src/server/interactive.rs:117" + ], + "scope": null + } + ], + "server.Server.delete_buffer": [ + { + "command": "delete-buffer", + "evidence": [ + "crates/libtmux/src/server.rs:1104" + ], + "scope": null + } + ], + "server.Server.display_menu": [ + { + "command": "display-menu", + "evidence": [ + "crates/libtmux/src/server/interactive.rs:75" + ], + "scope": null + } + ], + "server.Server.display_panes": [ + { + "command": "display-panes", + "evidence": [ + "crates/libtmux/src/server/interactive.rs:197" + ], + "scope": null + } + ], + "server.Server.display_popup": [ + { + "command": "display-popup", + "evidence": [ + "crates/libtmux/src/server/interactive.rs:39" + ], + "scope": null + } + ], + "server.Server.find_window": [ + { + "command": "find-window", + "evidence": [ + "crates/libtmux/src/server/interactive.rs:173" + ], + "scope": null + } + ], + "server.Server.format": [ + { + "command": "display-message", + "evidence": [ + "crates/libtmux/src/server.rs:1233" + ], + "scope": null + } + ], + "server.Server.grant_access": [ + { + "command": "server-access", + "evidence": [ + "crates/libtmux/src/server.rs:1428" + ], + "scope": null + } + ], + "server.Server.hide_environment": [ + { + "command": "set-environment", + "evidence": [ + "crates/libtmux/src/internal/environment.rs:60", + "crates/libtmux/src/server/settings.rs:306" + ], + "scope": null + } + ], + "server.Server.key_bindings": [ + { + "command": "list-keys", + "evidence": [ + "crates/libtmux/src/server.rs:1176" + ], + "scope": null + } + ], + "server.Server.kill": [ + { + "command": "kill-server", + "evidence": [ + "crates/libtmux/src/server.rs:924" + ], + "scope": null + } + ], + "server.Server.load_buffer": [ + { + "command": "load-buffer", + "evidence": [ + "crates/libtmux/src/server.rs:987" + ], + "scope": null + } + ], + "server.Server.lock_all": [ + { + "command": "lock-server", + "evidence": [ + "crates/libtmux/src/server.rs:914" + ], + "scope": null + } + ], + "server.Server.new_session": [ + { + "command": "new-session", + "evidence": [ + "crates/libtmux/src/internal/listing.rs:362", + "crates/libtmux/src/server.rs:2286", + "crates/libtmux/src/internal/listing.rs:411", + "crates/libtmux/src/server.rs:898" + ], + "reviewed": true, + "scope": null + } + ], + "server.Server.option_names": [ + { + "command": "show-options", + "evidence": [ + "crates/libtmux/src/internal/options.rs:141", + "crates/libtmux/src/server/settings.rs:48" + ], + "scope": null + } + ], + "server.Server.panes": [ + { + "command": "list-panes", + "evidence": [ + "crates/libtmux/src/internal/listing.rs:208", + "crates/libtmux/src/internal/listing.rs:204", + "crates/libtmux/src/internal/listing.rs:58", + "crates/libtmux/src/server/discovery.rs:41" + ], + "reviewed": true, + "scope": "server" + } + ], + "server.Server.prompt_history": [ + { + "command": "show-prompt-history", + "evidence": [ + "crates/libtmux/src/server.rs:1326" + ], + "scope": null + } + ], + "server.Server.revoke_access": [ + { + "command": "server-access", + "evidence": [ + "crates/libtmux/src/server.rs:1453" + ], + "scope": null + } + ], + "server.Server.run_shell": [ + { + "command": "run-shell", + "evidence": [ + "crates/libtmux/src/server.rs:1545" + ], + "scope": null + } + ], + "server.Server.save_buffer": [ + { + "command": "save-buffer", + "evidence": [ + "crates/libtmux/src/server.rs:1018" + ], + "scope": null + } + ], + "server.Server.set_array_option": [ + { + "command": "set-option", + "evidence": [ + "crates/libtmux/src/internal/options.rs:172", + "crates/libtmux/src/server/settings.rs:376" + ], + "reviewed": true, + "scope": null + } + ], + "server.Server.set_buffer": [ + { + "command": "set-buffer", + "evidence": [ + "crates/libtmux/src/server.rs:960" + ], + "scope": null + } + ], + "server.Server.set_environment": [ + { + "command": "set-environment", + "evidence": [ + "crates/libtmux/src/internal/environment.rs:45", + "crates/libtmux/src/server/settings.rs:258" + ], + "reviewed": true, + "scope": null + } + ], + "server.Server.set_global_option": [ + { + "command": "set-option", + "evidence": [ + "crates/libtmux/src/internal/options.rs:172", + "crates/libtmux/src/server/settings.rs:155" + ], + "reviewed": true, + "scope": null + } + ], + "server.Server.set_global_window_option": [ + { + "command": "set-option", + "evidence": [ + "crates/libtmux/src/internal/options.rs:172", + "crates/libtmux/src/server/settings.rs:431" + ], + "reviewed": true, + "scope": null + } + ], + "server.Server.set_hook": [ + { + "command": "set-hook", + "evidence": [ + "crates/libtmux/src/internal/options.rs:261", + "crates/libtmux/src/server/settings.rs:473" + ], + "reviewed": true, + "scope": null + } + ], + "server.Server.set_hooks": [ + { + "command": "set-hook", + "evidence": [ + "crates/libtmux/src/internal/options.rs:607", + "crates/libtmux/src/server/settings.rs:545" + ], + "reviewed": true, + "scope": null + } + ], + "server.Server.set_option": [ + { + "command": "set-option", + "evidence": [ + "crates/libtmux/src/internal/options.rs:172", + "crates/libtmux/src/server/settings.rs:102" + ], + "reviewed": true, + "scope": null + } + ], + "server.Server.set_typed_global_option": [ + { + "command": "set-option", + "evidence": [ + "crates/libtmux/src/internal/options.rs:172", + "crates/libtmux/src/internal/options.rs:206", + "crates/libtmux/src/server/settings.rs:194" + ], + "reviewed": true, + "scope": null + } + ], + "server.Server.set_typed_global_window_option": [ + { + "command": "set-option", + "evidence": [ + "crates/libtmux/src/internal/options.rs:172", + "crates/libtmux/src/internal/options.rs:206", + "crates/libtmux/src/server/settings.rs:461" + ], + "reviewed": true, + "scope": null + } + ], + "server.Server.set_typed_option": [ + { + "command": "set-option", + "evidence": [ + "crates/libtmux/src/internal/options.rs:172", + "crates/libtmux/src/internal/options.rs:206", + "crates/libtmux/src/server/settings.rs:130" + ], + "reviewed": true, + "scope": null + } + ], + "server.Server.source_file": [ + { + "command": "source-file", + "evidence": [ + "crates/libtmux/src/server.rs:1471" + ], + "scope": null + } + ], + "server.Server.spawn_shell": [ + { + "command": "run-shell", + "evidence": [ + "crates/libtmux/src/server.rs:1576" + ], + "scope": null + } + ], + "server.Server.start": [ + { + "command": "start-server", + "evidence": [ + "crates/libtmux/src/server.rs:1593" + ], + "scope": null + } + ], + "server.Server.typed_key_bindings": [ + { + "command": "list-keys", + "evidence": [ + "crates/libtmux/src/server/keys.rs:160" + ], + "scope": null + } + ], + "server.Server.unbind_key": [ + { + "command": "unbind-key", + "evidence": [ + "crates/libtmux/src/server.rs:1144" + ], + "scope": null + } + ], + "server.Server.unlock_channel": [ + { + "command": "wait-for", + "evidence": [ + "crates/libtmux/src/internal/wait_for.rs:341", + "crates/libtmux/src/internal/wait_for.rs:341", + "crates/libtmux/src/internal/wait_for.rs:363", + "crates/libtmux/src/server/channels.rs:131" + ], + "scope": null + } + ], + "server.Server.unset_array_option": [ + { + "command": "set-option", + "evidence": [ + "crates/libtmux/src/internal/options.rs:220", + "crates/libtmux/src/server/settings.rs:416" + ], + "reviewed": true, + "scope": null + } + ], + "server.Server.unset_environment": [ + { + "command": "set-environment", + "evidence": [ + "crates/libtmux/src/internal/environment.rs:74", + "crates/libtmux/src/server/settings.rs:315" + ], + "reviewed": true, + "scope": null + } + ], + "server.Server.unset_hook": [ + { + "command": "set-hook", + "evidence": [ + "crates/libtmux/src/internal/options.rs:278", + "crates/libtmux/src/server/settings.rs:482" + ], + "reviewed": true, + "scope": null + } + ], + "server.Server.unset_option": [ + { + "command": "set-option", + "evidence": [ + "crates/libtmux/src/internal/options.rs:220", + "crates/libtmux/src/server/settings.rs:139" + ], + "reviewed": true, + "scope": null + } + ], + "server.Server.wait_for_channel": [ + { + "command": "wait-for", + "evidence": [ + "crates/libtmux/src/internal/wait_for.rs:248", + "crates/libtmux/src/internal/wait_for.rs:363", + "crates/libtmux/src/internal/wait_for.rs:221", + "crates/libtmux/src/server/channels.rs:225" + ], + "reviewed": true, + "scope": null + } + ], + "session.Session.append_option": [ + { + "command": "set-option", + "evidence": [ + "crates/libtmux/src/internal/options.rs:172", + "crates/libtmux/src/session/settings.rs:170" + ], + "reviewed": true, + "scope": null + } + ], + "session.Session.detach_clients": [ + { + "command": "detach-client", + "evidence": [ + "crates/libtmux/src/session.rs:744" + ], + "scope": null + } + ], + "session.Session.display": [ + { + "command": "display-message", + "evidence": [ + "crates/libtmux/src/session.rs:654" + ], + "scope": null + } + ], + "session.Session.format": [ + { + "command": "display-message", + "evidence": [ + "crates/libtmux/src/session.rs:618" + ], + "scope": null + } + ], + "session.Session.hide_environment": [ + { + "command": "set-environment", + "evidence": [ + "crates/libtmux/src/internal/environment.rs:60", + "crates/libtmux/src/session/settings.rs:524" + ], + "scope": null + } + ], + "session.Session.kill": [ + { + "command": "kill-session", + "evidence": [ + "crates/libtmux/src/session.rs:537" + ], + "scope": null + } + ], + "session.Session.last_window": [ + { + "command": "last-window", + "evidence": [ + "crates/libtmux/src/session.rs:384" + ], + "scope": null + } + ], + "session.Session.lock": [ + { + "command": "lock-session", + "evidence": [ + "crates/libtmux/src/session.rs:699" + ], + "scope": null + } + ], + "session.Session.new_window": [ + { + "command": "new-window", + "evidence": [ + "crates/libtmux/src/internal/listing.rs:362", + "crates/libtmux/src/session.rs:1139", + "crates/libtmux/src/internal/listing.rs:427", + "crates/libtmux/src/session.rs:495" + ], + "reviewed": true, + "scope": null + } + ], + "session.Session.next_window": [ + { + "command": "next-window", + "evidence": [ + "crates/libtmux/src/session.rs:361" + ], + "scope": null + } + ], + "session.Session.option_names": [ + { + "command": "show-options", + "evidence": [ + "crates/libtmux/src/internal/options.rs:141", + "crates/libtmux/src/session/settings.rs:30" + ], + "scope": null + } + ], + "session.Session.panes": [ + { + "command": "list-panes", + "evidence": [ + "crates/libtmux/src/internal/listing.rs:208", + "crates/libtmux/src/internal/listing.rs:204", + "crates/libtmux/src/internal/listing.rs:60", + "crates/libtmux/src/session.rs:440" + ], + "reviewed": true, + "scope": "session" + } + ], + "session.Session.previous_window": [ + { + "command": "previous-window", + "evidence": [ + "crates/libtmux/src/session.rs:372" + ], + "scope": null + } + ], + "session.Session.rename": [ + { + "command": "rename-session", + "evidence": [ + "crates/libtmux/src/session.rs:511" + ], + "scope": null + } + ], + "session.Session.search_windows": [ + { + "command": "list-windows", + "evidence": [ + "crates/libtmux/src/internal/listing.rs:160", + "crates/libtmux/src/internal/listing.rs:156", + "crates/libtmux/src/internal/listing.rs:59", + "crates/libtmux/src/session.rs:280", + "crates/libtmux/src/session.rs:324" + ], + "reviewed": true, + "scope": "session" + } + ], + "session.Session.set_environment": [ + { + "command": "set-environment", + "evidence": [ + "crates/libtmux/src/internal/environment.rs:45", + "crates/libtmux/src/session/settings.rs:373" + ], + "reviewed": true, + "scope": null + } + ], + "session.Session.set_hook": [ + { + "command": "set-hook", + "evidence": [ + "crates/libtmux/src/internal/options.rs:261", + "crates/libtmux/src/session/settings.rs:207" + ], + "reviewed": true, + "scope": null + } + ], + "session.Session.set_hooks": [ + { + "command": "set-hook", + "evidence": [ + "crates/libtmux/src/internal/options.rs:607", + "crates/libtmux/src/session/settings.rs:284" + ], + "reviewed": true, + "scope": null + } + ], + "session.Session.set_option": [ + { + "command": "set-option", + "evidence": [ + "crates/libtmux/src/internal/options.rs:172", + "crates/libtmux/src/session/settings.rs:90" + ], + "reviewed": true, + "scope": null + } + ], + "session.Session.set_typed_option": [ + { + "command": "set-option", + "evidence": [ + "crates/libtmux/src/internal/options.rs:172", + "crates/libtmux/src/internal/options.rs:206", + "crates/libtmux/src/session/settings.rs:151" + ], + "reviewed": true, + "scope": null + } + ], + "session.Session.unset_environment": [ + { + "command": "set-environment", + "evidence": [ + "crates/libtmux/src/internal/environment.rs:74", + "crates/libtmux/src/session/settings.rs:538" + ], + "reviewed": true, + "scope": null + } + ], + "session.Session.unset_hook": [ + { + "command": "set-hook", + "evidence": [ + "crates/libtmux/src/internal/options.rs:278", + "crates/libtmux/src/session/settings.rs:220" + ], + "reviewed": true, + "scope": null + } + ], + "session.Session.unset_option": [ + { + "command": "set-option", + "evidence": [ + "crates/libtmux/src/internal/options.rs:220", + "crates/libtmux/src/session/settings.rs:190" + ], + "reviewed": true, + "scope": null + } + ], + "session.Session.windows": [ + { + "command": "list-windows", + "evidence": [ + "crates/libtmux/src/internal/listing.rs:160", + "crates/libtmux/src/internal/listing.rs:156", + "crates/libtmux/src/internal/listing.rs:59", + "crates/libtmux/src/session.rs:280" + ], + "reviewed": true, + "scope": "session" + } + ], + "window.Window.append_option": [ + { + "command": "set-option", + "evidence": [ + "crates/libtmux/src/internal/options.rs:172", + "crates/libtmux/src/window/settings.rs:150" + ], + "reviewed": true, + "scope": null + } + ], + "window.Window.display": [ + { + "command": "display-message", + "evidence": [ + "crates/libtmux/src/window.rs:833" + ], + "scope": null + } + ], + "window.Window.focus_direction": [ + { + "command": "select-pane", + "evidence": [ + "crates/libtmux/src/window/navigation.rs:127" + ], + "scope": null + } + ], + "window.Window.format": [ + { + "command": "display-message", + "evidence": [ + "crates/libtmux/src/window.rs:797" + ], + "scope": null + } + ], + "window.Window.kill": [ + { + "command": "kill-window", + "evidence": [ + "crates/libtmux/src/window.rs:686" + ], + "scope": null + } + ], + "window.Window.last_pane": [ + { + "command": "last-pane", + "evidence": [ + "crates/libtmux/src/window/navigation.rs:188" + ], + "scope": null + } + ], + "window.Window.link_to": [ + { + "command": "link-window", + "evidence": [ + "crates/libtmux/src/window.rs:1058" + ], + "scope": null + } + ], + "window.Window.move_to": [ + { + "command": "move-window", + "evidence": [ + "crates/libtmux/src/window.rs:939" + ], + "scope": null + } + ], + "window.Window.next_layout": [ + { + "command": "select-layout", + "evidence": [ + "crates/libtmux/src/window.rs:611", + "crates/libtmux/src/window.rs:597" + ], + "scope": null + } + ], + "window.Window.option_names": [ + { + "command": "show-options", + "evidence": [ + "crates/libtmux/src/internal/options.rs:141", + "crates/libtmux/src/window/settings.rs:29" + ], + "scope": null + } + ], + "window.Window.panes": [ + { + "command": "list-panes", + "evidence": [ + "crates/libtmux/src/internal/listing.rs:208", + "crates/libtmux/src/internal/listing.rs:204", + "crates/libtmux/src/internal/listing.rs:59", + "crates/libtmux/src/window/navigation.rs:23" + ], + "reviewed": true, + "scope": "window" + } + ], + "window.Window.previous_layout": [ + { + "command": "select-layout", + "evidence": [ + "crates/libtmux/src/window.rs:611", + "crates/libtmux/src/window.rs:606" + ], + "scope": null + } + ], + "window.Window.rename": [ + { + "command": "rename-window", + "evidence": [ + "crates/libtmux/src/window.rs:385" + ], + "scope": null + } + ], + "window.Window.resize": [ + { + "command": "resize-window", + "evidence": [ + "crates/libtmux/src/window.rs:1100" + ], + "scope": null + } + ], + "window.Window.resize_by": [ + { + "command": "resize-window", + "evidence": [ + "crates/libtmux/src/window.rs:997" + ], + "scope": null + } + ], + "window.Window.respawn": [ + { + "command": "respawn-window", + "evidence": [ + "crates/libtmux/src/window.rs:580" + ], + "scope": null + } + ], + "window.Window.rotate": [ + { + "command": "rotate-window", + "evidence": [ + "crates/libtmux/src/window.rs:666" + ], + "scope": null + } + ], + "window.Window.search_panes": [ + { + "command": "list-panes", + "evidence": [ + "crates/libtmux/src/internal/listing.rs:208", + "crates/libtmux/src/internal/listing.rs:204", + "crates/libtmux/src/internal/listing.rs:59", + "crates/libtmux/src/window/navigation.rs:23", + "crates/libtmux/src/window/navigation.rs:67" + ], + "reviewed": true, + "scope": "window" + } + ], + "window.Window.select": [ + { + "command": "select-window", + "evidence": [ + "crates/libtmux/src/window.rs:417" + ], + "scope": null + } + ], + "window.Window.select_layout": [ + { + "command": "select-layout", + "evidence": [ + "crates/libtmux/src/window.rs:489" + ], + "scope": null + } + ], + "window.Window.set_hook": [ + { + "command": "set-hook", + "evidence": [ + "crates/libtmux/src/internal/options.rs:261", + "crates/libtmux/src/window/settings.rs:187" + ], + "reviewed": true, + "scope": null + } + ], + "window.Window.set_hooks": [ + { + "command": "set-hook", + "evidence": [ + "crates/libtmux/src/internal/options.rs:607", + "crates/libtmux/src/window/settings.rs:268" + ], + "reviewed": true, + "scope": null + } + ], + "window.Window.set_option": [ + { + "command": "set-option", + "evidence": [ + "crates/libtmux/src/internal/options.rs:172", + "crates/libtmux/src/window/settings.rs:90" + ], + "reviewed": true, + "scope": null + } + ], + "window.Window.set_typed_option": [ + { + "command": "set-option", + "evidence": [ + "crates/libtmux/src/internal/options.rs:172", + "crates/libtmux/src/internal/options.rs:206", + "crates/libtmux/src/window/settings.rs:131" + ], + "reviewed": true, + "scope": null + } + ], + "window.Window.split": [ + { + "command": "split-window", + "evidence": [ + "crates/libtmux/src/internal/listing.rs:362", + "crates/libtmux/src/window.rs:1948", + "crates/libtmux/src/internal/listing.rs:444", + "crates/libtmux/src/window.rs:367" + ], + "reviewed": true, + "scope": null + } + ], + "window.Window.swap_with": [ + { + "command": "swap-window", + "evidence": [ + "crates/libtmux/src/window.rs:893" + ], + "scope": null + } + ], + "window.Window.unlink": [ + { + "command": "unlink-window", + "evidence": [ + "crates/libtmux/src/window.rs:707" + ], + "scope": null + } + ], + "window.Window.unset_hook": [ + { + "command": "set-hook", + "evidence": [ + "crates/libtmux/src/internal/options.rs:278", + "crates/libtmux/src/window/settings.rs:200" + ], + "reviewed": true, + "scope": null + } + ], + "window.Window.unset_option": [ + { + "command": "set-option", + "evidence": [ + "crates/libtmux/src/internal/options.rs:220", + "crates/libtmux/src/window/settings.rs:170" + ], + "reviewed": true, + "scope": null + } + ] + } +} diff --git a/site/src/data/tmux-usage/ruby.json b/site/src/data/tmux-usage/ruby.json new file mode 100644 index 000000000..ae76886be --- /dev/null +++ b/site/src/data/tmux-usage/ruby.json @@ -0,0 +1,1300 @@ +{ + "commands": [ + "attach-session", + "bind-key", + "break-pane", + "capture-pane", + "choose-buffer", + "choose-client", + "choose-tree", + "clear-history", + "clear-prompt-history", + "clock-mode", + "command-prompt", + "confirm-before", + "copy-mode", + "customize-mode", + "delete-buffer", + "detach-client", + "display-menu", + "display-message", + "display-panes", + "display-popup", + "find-window", + "has-session", + "if-shell", + "join-pane", + "kill-pane", + "kill-server", + "kill-session", + "kill-window", + "last-pane", + "last-window", + "link-window", + "list-buffers", + "list-clients", + "list-commands", + "list-keys", + "list-panes", + "list-sessions", + "list-windows", + "load-buffer", + "lock-client", + "lock-server", + "lock-session", + "move-pane", + "move-window", + "new-pane", + "new-session", + "new-window", + "next-layout", + "next-window", + "paste-buffer", + "pipe-pane", + "previous-layout", + "previous-window", + "refresh-client", + "rename-session", + "rename-window", + "resize-pane", + "resize-window", + "respawn-pane", + "respawn-window", + "rotate-window", + "run-shell", + "save-buffer", + "select-layout", + "select-pane", + "select-window", + "send-keys", + "send-prefix", + "server-access", + "set-buffer", + "set-environment", + "set-hook", + "set-option", + "set-window-option", + "show-buffer", + "show-environment", + "show-hooks", + "show-messages", + "show-options", + "show-prompt-history", + "show-window-options", + "source-file", + "split-window", + "start-server", + "suspend-client", + "swap-pane", + "swap-window", + "switch-client", + "unbind-key", + "unlink-window", + "wait-for" + ], + "port": "ruby", + "repo": "libtmux/libtmux-ruby", + "revision": "9b1545562a112353c2c893a1d3e8c0d9b4b51f8d", + "schemaVersion": 1, + "symbols": { + "LibTmux::Async::ControlConnection#pause_output": [ + { + "command": "refresh-client", + "evidence": [ + "gems/libtmux/lib/libtmux/control.rb:620", + "gems/libtmux/lib/libtmux/control.rb:489" + ], + "scope": null + } + ], + "LibTmux::Async::ControlConnection#resume_output": [ + { + "command": "refresh-client", + "evidence": [ + "gems/libtmux/lib/libtmux/control.rb:620", + "gems/libtmux/lib/libtmux/control.rb:493" + ], + "scope": null + } + ], + "LibTmux::Async::Server#delete_buffer": [ + { + "command": "delete-buffer", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:63" + ], + "scope": null + } + ], + "LibTmux::Async::Server#display": [ + { + "command": "display-message", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:31" + ], + "scope": null + } + ], + "LibTmux::Async::Server#environment": [ + { + "command": "show-environment", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:228", + "gems/libtmux/lib/libtmux/operations.rb:86" + ], + "scope": null + } + ], + "LibTmux::Async::Server#kill": [ + { + "command": "kill-server", + "evidence": [ + "gems/libtmux/lib/libtmux/server.rb:137" + ], + "scope": null + } + ], + "LibTmux::Async::Server#list_buffers": [ + { + "command": "list-buffers", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:67" + ], + "scope": null + } + ], + "LibTmux::Async::Server#list_clients": [ + { + "command": "list-clients", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:95" + ], + "scope": null + } + ], + "LibTmux::Async::Server#list_panes": [ + { + "command": "list-panes", + "evidence": [ + "gems/libtmux/lib/libtmux/server.rb:470", + "gems/libtmux/lib/libtmux/server.rb:163" + ], + "reviewed": true, + "scope": "server" + } + ], + "LibTmux::Async::Server#list_sessions": [ + { + "command": "list-sessions", + "evidence": [ + "gems/libtmux/lib/libtmux/server.rb:470", + "gems/libtmux/lib/libtmux/server.rb:155" + ], + "reviewed": true, + "scope": null + } + ], + "LibTmux::Async::Server#list_window_links": [ + { + "command": "list-windows", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:207", + "gems/libtmux/lib/libtmux/operations.rb:74" + ], + "reviewed": true, + "scope": "server" + } + ], + "LibTmux::Async::Server#list_windows": [ + { + "command": "list-windows", + "evidence": [ + "gems/libtmux/lib/libtmux/server.rb:470", + "gems/libtmux/lib/libtmux/server.rb:159" + ], + "reviewed": true, + "scope": "server" + } + ], + "LibTmux::Async::Server#new_session": [ + { + "command": "new-session", + "evidence": [ + "gems/libtmux/lib/libtmux/server.rb:151" + ], + "scope": null + } + ], + "LibTmux::Async::Server#read_buffer": [ + { + "command": "save-buffer", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:59" + ], + "scope": null + } + ], + "LibTmux::Async::Server#search_panes": [ + { + "command": "list-panes", + "evidence": [ + "gems/libtmux/lib/libtmux/capture.rb:93", + "gems/libtmux/lib/libtmux/server.rb:228", + "gems/libtmux/lib/libtmux/source_query.rb:42", + "gems/libtmux/lib/libtmux/server.rb:232" + ], + "reviewed": true, + "scope": "server" + } + ], + "LibTmux::Async::Server#set_environment": [ + { + "command": "set-environment", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:223", + "gems/libtmux/lib/libtmux/operations.rb:82" + ], + "scope": null + } + ], + "LibTmux::Async::Server#snapshot": [ + { + "command": "list-clients", + "evidence": [ + "gems/libtmux/lib/libtmux/capture.rb:94", + "gems/libtmux/lib/libtmux/server.rb:228" + ], + "reviewed": true, + "scope": null + }, + { + "command": "list-panes", + "evidence": [ + "gems/libtmux/lib/libtmux/capture.rb:93", + "gems/libtmux/lib/libtmux/server.rb:228" + ], + "reviewed": true, + "scope": "server" + }, + { + "command": "list-sessions", + "evidence": [ + "gems/libtmux/lib/libtmux/capture.rb:72", + "gems/libtmux/lib/libtmux/server.rb:228" + ], + "reviewed": true, + "scope": null + }, + { + "command": "list-windows", + "evidence": [ + "gems/libtmux/lib/libtmux/capture.rb:84", + "gems/libtmux/lib/libtmux/server.rb:228" + ], + "reviewed": true, + "scope": "server" + } + ], + "LibTmux::Async::Server#source_file": [ + { + "command": "source-file", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:43" + ], + "scope": null + } + ], + "LibTmux::Async::Server#switch_client": [ + { + "command": "list-commands", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:137", + "gems/libtmux/lib/libtmux/terminal.rb:41" + ], + "incidental": true, + "reviewed": true, + "scope": null + }, + { + "command": "show-options", + "evidence": [ + "gems/libtmux/lib/libtmux/options.rb:65", + "gems/libtmux/lib/libtmux/options.rb:61", + "gems/libtmux/lib/libtmux/operations.rb:130", + "gems/libtmux/lib/libtmux/terminal.rb:41" + ], + "incidental": true, + "reviewed": true, + "scope": null + }, + { + "command": "switch-client", + "evidence": [ + "gems/libtmux/lib/libtmux/terminal.rb:41", + "gems/libtmux/lib/libtmux/terminal.rb:42" + ], + "reviewed": true, + "scope": null + } + ], + "LibTmux::Async::Server#unset_environment": [ + { + "command": "set-environment", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:90" + ], + "scope": null + } + ], + "LibTmux::Async::Server#wait_for": [ + { + "command": "wait-for", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:51" + ], + "scope": null + } + ], + "LibTmux::Async::Server#write_buffer": [ + { + "command": "load-buffer", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:55" + ], + "scope": null + } + ], + "LibTmux::ControlConnection#pause_output": [ + { + "command": "refresh-client", + "evidence": [ + "gems/libtmux/lib/libtmux/control.rb:620", + "gems/libtmux/lib/libtmux/control.rb:489" + ], + "scope": null + } + ], + "LibTmux::ControlConnection#resume_output": [ + { + "command": "refresh-client", + "evidence": [ + "gems/libtmux/lib/libtmux/control.rb:620", + "gems/libtmux/lib/libtmux/control.rb:493" + ], + "scope": null + } + ], + "LibTmux::Hooks#get": [ + { + "command": "show-hooks", + "evidence": [ + "gems/libtmux/lib/libtmux/options.rb:61", + "gems/libtmux/lib/libtmux/options.rb:65", + "gems/libtmux/lib/libtmux/options.rb:167" + ], + "reviewed": true, + "scope": null + } + ], + "LibTmux::Hooks#list": [ + { + "command": "show-hooks", + "evidence": [ + "gems/libtmux/lib/libtmux/options.rb:61", + "gems/libtmux/lib/libtmux/options.rb:65" + ], + "reviewed": true, + "scope": null + } + ], + "LibTmux::Hooks#run": [ + { + "command": "set-hook", + "evidence": [ + "gems/libtmux/lib/libtmux/options.rb:177" + ], + "scope": null + } + ], + "LibTmux::Hooks#set": [ + { + "command": "set-hook", + "evidence": [ + "gems/libtmux/lib/libtmux/options.rb:173" + ], + "scope": null + } + ], + "LibTmux::Hooks#unset": [ + { + "command": "set-hook", + "evidence": [ + "gems/libtmux/lib/libtmux/options.rb:107", + "gems/libtmux/lib/libtmux/options.rb:108" + ], + "reviewed": true, + "scope": null + } + ], + "LibTmux::Options#get": [ + { + "command": "show-options", + "evidence": [ + "gems/libtmux/lib/libtmux/options.rb:61", + "gems/libtmux/lib/libtmux/options.rb:65", + "gems/libtmux/lib/libtmux/options.rb:83" + ], + "reviewed": true, + "scope": null + } + ], + "LibTmux::Options#list": [ + { + "command": "show-options", + "evidence": [ + "gems/libtmux/lib/libtmux/options.rb:61", + "gems/libtmux/lib/libtmux/options.rb:65" + ], + "reviewed": true, + "scope": null + } + ], + "LibTmux::Options#set": [ + { + "command": "set-option", + "evidence": [ + "gems/libtmux/lib/libtmux/options.rb:103" + ], + "scope": null + } + ], + "LibTmux::Options#unset": [ + { + "command": "set-option", + "evidence": [ + "gems/libtmux/lib/libtmux/options.rb:107", + "gems/libtmux/lib/libtmux/options.rb:108" + ], + "reviewed": true, + "scope": null + } + ], + "LibTmux::Pane#break_out": [ + { + "command": "break-pane", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:350" + ], + "scope": null + } + ], + "LibTmux::Pane#capture": [ + { + "command": "capture-pane", + "evidence": [ + "gems/libtmux/lib/libtmux/entity.rb:190" + ], + "scope": null + } + ], + "LibTmux::Pane#copy_command": [ + { + "command": "send-keys", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:400" + ], + "scope": null + } + ], + "LibTmux::Pane#copy_mode": [ + { + "command": "copy-mode", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:396" + ], + "scope": null + } + ], + "LibTmux::Pane#join": [ + { + "command": "join-pane", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:341" + ], + "scope": null + } + ], + "LibTmux::Pane#kill": [ + { + "command": "kill-pane", + "evidence": [ + "gems/libtmux/lib/libtmux/entity.rb:88", + "gems/libtmux/lib/libtmux/server.rb:436", + "gems/libtmux/lib/libtmux/entity.rb:87" + ], + "reviewed": true, + "scope": null + } + ], + "LibTmux::Pane#move": [ + { + "command": "move-pane", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:345" + ], + "scope": null + } + ], + "LibTmux::Pane#paste": [ + { + "command": "paste-buffer", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:366" + ], + "scope": null + } + ], + "LibTmux::Pane#pipe": [ + { + "command": "pipe-pane", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:380" + ], + "scope": null + } + ], + "LibTmux::Pane#resize": [ + { + "command": "resize-pane", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:333" + ], + "scope": null + } + ], + "LibTmux::Pane#respawn": [ + { + "command": "respawn-pane", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:358" + ], + "scope": null + } + ], + "LibTmux::Pane#select": [ + { + "command": "select-pane", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:315" + ], + "scope": null + } + ], + "LibTmux::Pane#send_keys": [ + { + "command": "send-keys", + "evidence": [ + "gems/libtmux/lib/libtmux/entity.rb:202" + ], + "scope": null + } + ], + "LibTmux::Pane#send_text": [ + { + "command": "send-keys", + "evidence": [ + "gems/libtmux/lib/libtmux/entity.rb:196" + ], + "scope": null + } + ], + "LibTmux::Pane#split": [ + { + "command": "split-window", + "evidence": [ + "gems/libtmux/lib/libtmux/server.rb:528", + "gems/libtmux/lib/libtmux/entity.rb:165" + ], + "reviewed": true, + "scope": null + } + ], + "LibTmux::Pane#swap": [ + { + "command": "swap-pane", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:337" + ], + "scope": null + } + ], + "LibTmux::Server#attach": [ + { + "command": "attach-session", + "evidence": [ + "gems/libtmux/lib/libtmux/terminal.rb:60", + "gems/libtmux/lib/libtmux/terminal.rb:62", + "gems/libtmux/lib/libtmux/terminal.rb:88" + ], + "reviewed": true, + "scope": null + } + ], + "LibTmux::Server#delete_buffer": [ + { + "command": "delete-buffer", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:63" + ], + "scope": null + } + ], + "LibTmux::Server#display": [ + { + "command": "display-message", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:31" + ], + "scope": null + } + ], + "LibTmux::Server#environment": [ + { + "command": "show-environment", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:228", + "gems/libtmux/lib/libtmux/operations.rb:86" + ], + "scope": null + } + ], + "LibTmux::Server#kill": [ + { + "command": "kill-server", + "evidence": [ + "gems/libtmux/lib/libtmux/server.rb:137" + ], + "scope": null + } + ], + "LibTmux::Server#list_buffers": [ + { + "command": "list-buffers", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:67" + ], + "scope": null + } + ], + "LibTmux::Server#list_clients": [ + { + "command": "list-clients", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:95" + ], + "scope": null + } + ], + "LibTmux::Server#list_panes": [ + { + "command": "list-panes", + "evidence": [ + "gems/libtmux/lib/libtmux/server.rb:470", + "gems/libtmux/lib/libtmux/server.rb:163" + ], + "reviewed": true, + "scope": "server" + } + ], + "LibTmux::Server#list_sessions": [ + { + "command": "list-sessions", + "evidence": [ + "gems/libtmux/lib/libtmux/server.rb:470", + "gems/libtmux/lib/libtmux/server.rb:155" + ], + "reviewed": true, + "scope": null + } + ], + "LibTmux::Server#list_window_links": [ + { + "command": "list-windows", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:207", + "gems/libtmux/lib/libtmux/operations.rb:74" + ], + "reviewed": true, + "scope": "server" + } + ], + "LibTmux::Server#list_windows": [ + { + "command": "list-windows", + "evidence": [ + "gems/libtmux/lib/libtmux/server.rb:470", + "gems/libtmux/lib/libtmux/server.rb:159" + ], + "reviewed": true, + "scope": "server" + } + ], + "LibTmux::Server#new_session": [ + { + "command": "new-session", + "evidence": [ + "gems/libtmux/lib/libtmux/server.rb:151" + ], + "scope": null + } + ], + "LibTmux::Server#read_buffer": [ + { + "command": "save-buffer", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:59" + ], + "scope": null + } + ], + "LibTmux::Server#search_panes": [ + { + "command": "list-panes", + "evidence": [ + "gems/libtmux/lib/libtmux/capture.rb:93", + "gems/libtmux/lib/libtmux/server.rb:228", + "gems/libtmux/lib/libtmux/source_query.rb:42", + "gems/libtmux/lib/libtmux/server.rb:232" + ], + "reviewed": true, + "scope": "server" + } + ], + "LibTmux::Server#set_environment": [ + { + "command": "set-environment", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:223", + "gems/libtmux/lib/libtmux/operations.rb:82" + ], + "scope": null + } + ], + "LibTmux::Server#snapshot": [ + { + "command": "list-clients", + "evidence": [ + "gems/libtmux/lib/libtmux/capture.rb:94", + "gems/libtmux/lib/libtmux/server.rb:228" + ], + "reviewed": true, + "scope": null + }, + { + "command": "list-panes", + "evidence": [ + "gems/libtmux/lib/libtmux/capture.rb:93", + "gems/libtmux/lib/libtmux/server.rb:228" + ], + "reviewed": true, + "scope": "server" + }, + { + "command": "list-sessions", + "evidence": [ + "gems/libtmux/lib/libtmux/capture.rb:72", + "gems/libtmux/lib/libtmux/server.rb:228" + ], + "reviewed": true, + "scope": null + }, + { + "command": "list-windows", + "evidence": [ + "gems/libtmux/lib/libtmux/capture.rb:84", + "gems/libtmux/lib/libtmux/server.rb:228" + ], + "reviewed": true, + "scope": "server" + } + ], + "LibTmux::Server#source_file": [ + { + "command": "source-file", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:43" + ], + "scope": null + } + ], + "LibTmux::Server#switch_client": [ + { + "command": "list-commands", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:137", + "gems/libtmux/lib/libtmux/terminal.rb:41" + ], + "incidental": true, + "reviewed": true, + "scope": null + }, + { + "command": "show-options", + "evidence": [ + "gems/libtmux/lib/libtmux/options.rb:65", + "gems/libtmux/lib/libtmux/options.rb:61", + "gems/libtmux/lib/libtmux/operations.rb:130", + "gems/libtmux/lib/libtmux/terminal.rb:41" + ], + "incidental": true, + "reviewed": true, + "scope": null + }, + { + "command": "switch-client", + "evidence": [ + "gems/libtmux/lib/libtmux/terminal.rb:41", + "gems/libtmux/lib/libtmux/terminal.rb:42" + ], + "reviewed": true, + "scope": null + } + ], + "LibTmux::Server#unset_environment": [ + { + "command": "set-environment", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:90" + ], + "scope": null + } + ], + "LibTmux::Server#wait_for": [ + { + "command": "wait-for", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:51" + ], + "scope": null + } + ], + "LibTmux::Server#write_buffer": [ + { + "command": "load-buffer", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:55" + ], + "scope": null + } + ], + "LibTmux::Session#environment": [ + { + "command": "show-environment", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:228", + "gems/libtmux/lib/libtmux/operations.rb:280" + ], + "scope": null + } + ], + "LibTmux::Session#kill": [ + { + "command": "if-shell", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:172", + "gems/libtmux/lib/libtmux/operations.rb:171", + "gems/libtmux/lib/libtmux/operations.rb:257" + ], + "reviewed": true, + "scope": null, + "when": "expected windows or panes are given" + }, + { + "command": "kill-session", + "evidence": [ + "gems/libtmux/lib/libtmux/entity.rb:88", + "gems/libtmux/lib/libtmux/server.rb:436", + "gems/libtmux/lib/libtmux/operations.rb:255" + ], + "reviewed": true, + "scope": null + }, + { + "command": "list-commands", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:137", + "gems/libtmux/lib/libtmux/operations.rb:165", + "gems/libtmux/lib/libtmux/operations.rb:257" + ], + "incidental": true, + "reviewed": true, + "scope": null, + "when": "expected windows or panes are given" + }, + { + "command": "show-options", + "evidence": [ + "gems/libtmux/lib/libtmux/options.rb:65", + "gems/libtmux/lib/libtmux/options.rb:61", + "gems/libtmux/lib/libtmux/operations.rb:130", + "gems/libtmux/lib/libtmux/operations.rb:165", + "gems/libtmux/lib/libtmux/operations.rb:257" + ], + "incidental": true, + "reviewed": true, + "scope": null, + "when": "expected windows or panes are given" + } + ], + "LibTmux::Session#link_window": [ + { + "command": "link-window", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:272" + ], + "scope": null + } + ], + "LibTmux::Session#list_panes": [ + { + "command": "list-panes", + "evidence": [ + "gems/libtmux/lib/libtmux/server.rb:470", + "gems/libtmux/lib/libtmux/entity.rb:113" + ], + "reviewed": true, + "scope": "session" + } + ], + "LibTmux::Session#list_window_links": [ + { + "command": "list-windows", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:207", + "gems/libtmux/lib/libtmux/operations.rb:265" + ], + "reviewed": true, + "scope": "session" + } + ], + "LibTmux::Session#list_windows": [ + { + "command": "list-windows", + "evidence": [ + "gems/libtmux/lib/libtmux/server.rb:470", + "gems/libtmux/lib/libtmux/entity.rb:109" + ], + "reviewed": true, + "scope": "session" + } + ], + "LibTmux::Session#new_window": [ + { + "command": "new-window", + "evidence": [ + "gems/libtmux/lib/libtmux/server.rb:509", + "gems/libtmux/lib/libtmux/entity.rb:104" + ], + "reviewed": true, + "scope": null + } + ], + "LibTmux::Session#rename": [ + { + "command": "rename-session", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:261" + ], + "scope": null + } + ], + "LibTmux::Session#set_environment": [ + { + "command": "set-environment", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:223", + "gems/libtmux/lib/libtmux/operations.rb:276" + ], + "reviewed": true, + "scope": null + } + ], + "LibTmux::Session#unset_environment": [ + { + "command": "set-environment", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:284" + ], + "scope": null + } + ], + "LibTmux::Window#kill": [ + { + "command": "kill-window", + "evidence": [ + "gems/libtmux/lib/libtmux/entity.rb:88", + "gems/libtmux/lib/libtmux/server.rb:436", + "gems/libtmux/lib/libtmux/entity.rb:87" + ], + "reviewed": true, + "scope": null + } + ], + "LibTmux::Window#list_panes": [ + { + "command": "list-panes", + "evidence": [ + "gems/libtmux/lib/libtmux/server.rb:470", + "gems/libtmux/lib/libtmux/entity.rb:123" + ], + "reviewed": true, + "scope": "window" + } + ], + "LibTmux::Window#rename": [ + { + "command": "rename-window", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:290" + ], + "scope": null + } + ], + "LibTmux::Window#resize": [ + { + "command": "resize-window", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:309" + ], + "scope": null + } + ], + "LibTmux::Window#respawn": [ + { + "command": "respawn-window", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:297" + ], + "scope": null + } + ], + "LibTmux::Window#select_layout": [ + { + "command": "select-layout", + "evidence": [ + "gems/libtmux/lib/libtmux/entity.rb:159" + ], + "scope": null + } + ], + "LibTmux::Window#split": [ + { + "command": "split-window", + "evidence": [ + "gems/libtmux/lib/libtmux/server.rb:528", + "gems/libtmux/lib/libtmux/entity.rb:127" + ], + "reviewed": true, + "scope": null + } + ], + "LibTmux::WindowLink#display": [ + { + "command": "display-message", + "evidence": [ + "gems/libtmux/lib/libtmux/entity.rb:245" + ], + "scope": null + }, + { + "command": "list-commands", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:137", + "gems/libtmux/lib/libtmux/operations.rb:113", + "gems/libtmux/lib/libtmux/entity.rb:245" + ], + "incidental": true, + "reviewed": true, + "scope": null + }, + { + "command": "show-options", + "evidence": [ + "gems/libtmux/lib/libtmux/options.rb:65", + "gems/libtmux/lib/libtmux/options.rb:61", + "gems/libtmux/lib/libtmux/operations.rb:130", + "gems/libtmux/lib/libtmux/operations.rb:113", + "gems/libtmux/lib/libtmux/entity.rb:245" + ], + "incidental": true, + "reviewed": true, + "scope": null + } + ], + "LibTmux::WindowLink#kill": [ + { + "command": "kill-window", + "evidence": [ + "gems/libtmux/lib/libtmux/entity.rb:228" + ], + "scope": null + }, + { + "command": "list-commands", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:137", + "gems/libtmux/lib/libtmux/operations.rb:113", + "gems/libtmux/lib/libtmux/entity.rb:228" + ], + "incidental": true, + "reviewed": true, + "scope": null + }, + { + "command": "show-options", + "evidence": [ + "gems/libtmux/lib/libtmux/options.rb:65", + "gems/libtmux/lib/libtmux/options.rb:61", + "gems/libtmux/lib/libtmux/operations.rb:130", + "gems/libtmux/lib/libtmux/operations.rb:113", + "gems/libtmux/lib/libtmux/entity.rb:228" + ], + "incidental": true, + "reviewed": true, + "scope": null + } + ], + "LibTmux::WindowLink#move": [ + { + "command": "list-commands", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:137", + "gems/libtmux/lib/libtmux/operations.rb:113", + "gems/libtmux/lib/libtmux/entity.rb:235" + ], + "incidental": true, + "reviewed": true, + "scope": null + }, + { + "command": "move-window", + "evidence": [ + "gems/libtmux/lib/libtmux/entity.rb:235" + ], + "scope": null + }, + { + "command": "show-options", + "evidence": [ + "gems/libtmux/lib/libtmux/options.rb:65", + "gems/libtmux/lib/libtmux/options.rb:61", + "gems/libtmux/lib/libtmux/operations.rb:130", + "gems/libtmux/lib/libtmux/operations.rb:113", + "gems/libtmux/lib/libtmux/entity.rb:235" + ], + "incidental": true, + "reviewed": true, + "scope": null + } + ], + "LibTmux::WindowLink#select": [ + { + "command": "list-commands", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:137", + "gems/libtmux/lib/libtmux/operations.rb:113", + "gems/libtmux/lib/libtmux/entity.rb:220" + ], + "incidental": true, + "reviewed": true, + "scope": null + }, + { + "command": "select-window", + "evidence": [ + "gems/libtmux/lib/libtmux/entity.rb:220" + ], + "scope": null + }, + { + "command": "show-options", + "evidence": [ + "gems/libtmux/lib/libtmux/options.rb:65", + "gems/libtmux/lib/libtmux/options.rb:61", + "gems/libtmux/lib/libtmux/operations.rb:130", + "gems/libtmux/lib/libtmux/operations.rb:113", + "gems/libtmux/lib/libtmux/entity.rb:220" + ], + "incidental": true, + "reviewed": true, + "scope": null + } + ], + "LibTmux::WindowLink#swap": [ + { + "command": "list-commands", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:137", + "gems/libtmux/lib/libtmux/operations.rb:113", + "gems/libtmux/lib/libtmux/entity.rb:240" + ], + "incidental": true, + "reviewed": true, + "scope": null + }, + { + "command": "show-options", + "evidence": [ + "gems/libtmux/lib/libtmux/options.rb:65", + "gems/libtmux/lib/libtmux/options.rb:61", + "gems/libtmux/lib/libtmux/operations.rb:130", + "gems/libtmux/lib/libtmux/operations.rb:113", + "gems/libtmux/lib/libtmux/entity.rb:240" + ], + "incidental": true, + "reviewed": true, + "scope": null + }, + { + "command": "swap-window", + "evidence": [ + "gems/libtmux/lib/libtmux/entity.rb:240" + ], + "scope": null + } + ], + "LibTmux::WindowLink#unlink": [ + { + "command": "list-commands", + "evidence": [ + "gems/libtmux/lib/libtmux/operations.rb:137", + "gems/libtmux/lib/libtmux/operations.rb:113", + "gems/libtmux/lib/libtmux/entity.rb:224" + ], + "incidental": true, + "reviewed": true, + "scope": null + }, + { + "command": "show-options", + "evidence": [ + "gems/libtmux/lib/libtmux/options.rb:65", + "gems/libtmux/lib/libtmux/options.rb:61", + "gems/libtmux/lib/libtmux/operations.rb:130", + "gems/libtmux/lib/libtmux/operations.rb:113", + "gems/libtmux/lib/libtmux/entity.rb:224" + ], + "incidental": true, + "reviewed": true, + "scope": null + }, + { + "command": "unlink-window", + "evidence": [ + "gems/libtmux/lib/libtmux/entity.rb:224" + ], + "scope": null + } + ] + } +} diff --git a/site/src/data/tmux-usage/scala.json b/site/src/data/tmux-usage/scala.json new file mode 100644 index 000000000..3a40f0ebe --- /dev/null +++ b/site/src/data/tmux-usage/scala.json @@ -0,0 +1,3808 @@ +{ + "commands": [ + "attach-session", + "bind-key", + "break-pane", + "capture-pane", + "choose-buffer", + "choose-client", + "choose-tree", + "clear-history", + "clear-prompt-history", + "clock-mode", + "command-prompt", + "confirm-before", + "copy-mode", + "customize-mode", + "delete-buffer", + "detach-client", + "display-menu", + "display-message", + "display-panes", + "display-popup", + "find-window", + "has-session", + "if-shell", + "join-pane", + "kill-pane", + "kill-server", + "kill-session", + "kill-window", + "last-pane", + "last-window", + "link-window", + "list-buffers", + "list-clients", + "list-commands", + "list-keys", + "list-panes", + "list-sessions", + "list-windows", + "load-buffer", + "lock-client", + "lock-server", + "lock-session", + "move-pane", + "move-window", + "new-pane", + "new-session", + "new-window", + "next-layout", + "next-window", + "paste-buffer", + "pipe-pane", + "previous-layout", + "previous-window", + "refresh-client", + "rename-session", + "rename-window", + "resize-pane", + "resize-window", + "respawn-pane", + "respawn-window", + "rotate-window", + "run-shell", + "save-buffer", + "select-layout", + "select-pane", + "select-window", + "send-keys", + "send-prefix", + "server-access", + "set-buffer", + "set-environment", + "set-hook", + "set-option", + "set-window-option", + "show-buffer", + "show-environment", + "show-hooks", + "show-messages", + "show-options", + "show-prompt-history", + "show-window-options", + "source-file", + "split-window", + "start-server", + "suspend-client", + "swap-pane", + "swap-window", + "switch-client", + "unbind-key", + "unlink-window", + "wait-for" + ], + "port": "scala", + "repo": "libtmux/libtmux-java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "schemaVersion": 1, + "symbols": { + "io.github.libtmux.scaladsl.cats.Batch.run": [ + { + "command": "display-message", + "evidence": [ + "libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Batch.scala:26" + ], + "reviewed": true, + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/batch/Batch.java:94", + "libtmux/src/main/java/io/github/libtmux/batch/Batch.java:85", + "libtmux/src/main/java/io/github/libtmux/batch/Batch.java:82" + ], + "port": "java", + "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.batch.Batch.Batch.run" + }, + "when": "the batch is not empty" + } + ], + "io.github.libtmux.scaladsl.cats.Buffers.delete": [ + { + "command": "delete-buffer", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Buffers.java:105" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Buffers.java:111" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Buffers.Buffers.delete" + }, + "when": "except before tmux 3.4" + } + ], + "io.github.libtmux.scaladsl.cats.Buffers.list": [ + { + "command": "list-buffers", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Buffers.java:51" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Buffers.java:54" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Buffers.Buffers.list" + } + } + ], + "io.github.libtmux.scaladsl.cats.Buffers.load": [ + { + "command": "load-buffer", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Buffers.java:127" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Buffers.java:129" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Buffers.Buffers.load" + } + } + ], + "io.github.libtmux.scaladsl.cats.Buffers.save": [ + { + "command": "save-buffer", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Buffers.java:121" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Buffers.java:123" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Buffers.Buffers.save" + } + } + ], + "io.github.libtmux.scaladsl.cats.Buffers.set": [ + { + "command": "set-buffer", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Buffers.java:69" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Buffers.java:71" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Buffers.Buffers.set" + } + } + ], + "io.github.libtmux.scaladsl.cats.Buffers.show": [ + { + "command": "show-buffer", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Buffers.java:85" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Buffers.java:87" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Buffers.Buffers.show" + } + } + ], + "io.github.libtmux.scaladsl.cats.Client.detach": [ + { + "command": "detach-client", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Client.java:46" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Client.java:48" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Client.Client.detach" + } + } + ], + "io.github.libtmux.scaladsl.cats.Client.detachOthers": [ + { + "command": "detach-client", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Client.java:52" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Client.java:54" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Client.Client.detachOthers" + } + } + ], + "io.github.libtmux.scaladsl.cats.Client.redraw": [ + { + "command": "refresh-client", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Client.java:78" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Client.java:80" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Client.Client.redraw" + } + } + ], + "io.github.libtmux.scaladsl.cats.Client.switchTo": [ + { + "command": "switch-client", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Client.java:63" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Client.java:67" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Client.Client.switchTo" + } + } + ], + "io.github.libtmux.scaladsl.cats.Commands.list": [ + { + "command": "list-commands", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Commands.java:19" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Commands.java:21" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Commands.Commands.list" + } + } + ], + "io.github.libtmux.scaladsl.cats.Control.attachUnfenced": [ + { + "command": "attach-session", + "evidence": [ + "libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Control.scala:127" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/control/ControlClient.java:217", + "libtmux/src/main/java/io/github/libtmux/control/ControlClient.java:224", + "libtmux/src/main/java/io/github/libtmux/control/ControlClient.java:156" + ], + "port": "java", + "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.control.ControlClient.ControlClient.attachUnfenced" + } + } + ], + "io.github.libtmux.scaladsl.cats.Environment.all": [ + { + "command": "show-environment", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Environment.java:101" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Environment.java:205", + "libtmux/src/main/java/io/github/libtmux/Environment.java:205", + "libtmux/src/main/java/io/github/libtmux/Environment.java:357", + "libtmux/src/main/java/io/github/libtmux/Environment.java:104" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Environment.Environment.all" + } + } + ], + "io.github.libtmux.scaladsl.cats.Environment.get": [ + { + "command": "show-environment", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Environment.java:83" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Environment.java:357", + "libtmux/src/main/java/io/github/libtmux/Environment.java:192", + "libtmux/src/main/java/io/github/libtmux/Environment.java:194", + "libtmux/src/main/java/io/github/libtmux/Environment.java:85" + ], + "port": "java", + "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Environment.Environment.get" + } + } + ], + "io.github.libtmux.scaladsl.cats.Environment.isRemoved": [ + { + "command": "show-environment", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Environment.java:94" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Environment.java:357", + "libtmux/src/main/java/io/github/libtmux/Environment.java:192", + "libtmux/src/main/java/io/github/libtmux/Environment.java:194", + "libtmux/src/main/java/io/github/libtmux/Environment.java:96" + ], + "port": "java", + "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Environment.Environment.isRemoved" + } + } + ], + "io.github.libtmux.scaladsl.cats.Environment.remove": [ + { + "command": "set-environment", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Environment.java:177" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Environment.java:179", + "libtmux/src/main/java/io/github/libtmux/Environment.java:179", + "libtmux/src/main/java/io/github/libtmux/Environment.java:353" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Environment.Environment.remove" + } + } + ], + "io.github.libtmux.scaladsl.cats.Environment.removed": [ + { + "command": "show-environment", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Environment.java:137" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Environment.java:205", + "libtmux/src/main/java/io/github/libtmux/Environment.java:205", + "libtmux/src/main/java/io/github/libtmux/Environment.java:357", + "libtmux/src/main/java/io/github/libtmux/Environment.java:140" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Environment.Environment.removed" + } + } + ], + "io.github.libtmux.scaladsl.cats.Environment.set": [ + { + "command": "set-environment", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Environment.java:154" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Environment.java:156", + "libtmux/src/main/java/io/github/libtmux/Environment.java:156", + "libtmux/src/main/java/io/github/libtmux/Environment.java:353" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Environment.Environment.set" + } + } + ], + "io.github.libtmux.scaladsl.cats.Environment.setExpanded": [ + { + "command": "set-environment", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Environment.java:160" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Environment.java:162", + "libtmux/src/main/java/io/github/libtmux/Environment.java:162", + "libtmux/src/main/java/io/github/libtmux/Environment.java:353" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Environment.Environment.setExpanded" + } + } + ], + "io.github.libtmux.scaladsl.cats.Environment.unset": [ + { + "command": "set-environment", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Environment.java:166" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Environment.java:168", + "libtmux/src/main/java/io/github/libtmux/Environment.java:168", + "libtmux/src/main/java/io/github/libtmux/Environment.java:353" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Environment.Environment.unset" + } + } + ], + "io.github.libtmux.scaladsl.cats.Hooks.all": [ + { + "command": "show-hooks", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Hooks.java:125" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Hooks.java:128" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Hooks.Hooks.all" + } + } + ], + "io.github.libtmux.scaladsl.cats.Hooks.append": [ + { + "command": "set-hook", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Hooks.java:82" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Hooks.java:97" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Hooks.Hooks.append" + } + } + ], + "io.github.libtmux.scaladsl.cats.Hooks.run": [ + { + "command": "set-hook", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Hooks.java:112" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Hooks.java:114" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Hooks.Hooks.run" + } + } + ], + "io.github.libtmux.scaladsl.cats.Hooks.set": [ + { + "command": "set-hook", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Hooks.java:64" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Hooks.java:66" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Hooks.Hooks.set" + } + } + ], + "io.github.libtmux.scaladsl.cats.Hooks.unset": [ + { + "command": "set-hook", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Hooks.java:101" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Hooks.java:103" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Hooks.Hooks.unset" + } + } + ], + "io.github.libtmux.scaladsl.cats.Keys.bind": [ + { + "command": "bind-key", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Keys.java:51" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Keys.java:62" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Keys.Keys.bind" + } + } + ], + "io.github.libtmux.scaladsl.cats.Keys.list": [ + { + "command": "list-keys", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Keys.java:86" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Keys.java:90" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Keys.Keys.list" + } + } + ], + "io.github.libtmux.scaladsl.cats.Keys.unbind": [ + { + "command": "unbind-key", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Keys.java:66" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Keys.java:73" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Keys.Keys.unbind" + } + } + ], + "io.github.libtmux.scaladsl.cats.MessageLog.lines": [ + { + "command": "show-messages", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/MessageLog.java:30" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/MessageLog.java:32" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.MessageLog.MessageLog.lines" + } + } + ], + "io.github.libtmux.scaladsl.cats.Options.all": [ + { + "command": "display-message", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Options.java:138" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Options.java:196", + "libtmux/src/main/java/io/github/libtmux/Options.java:198", + "libtmux/src/main/java/io/github/libtmux/Options.java:153", + "libtmux/src/main/java/io/github/libtmux/Options.java:140" + ], + "port": "java", + "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Options.Options.all" + } + }, + { + "command": "show-options", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Options.java:138" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Options.java:153", + "libtmux/src/main/java/io/github/libtmux/Options.java:140" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Options.Options.all" + } + } + ], + "io.github.libtmux.scaladsl.cats.Options.append": [ + { + "command": "set-option", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Options.java:347" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Options.java:349" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Options.Options.append" + } + } + ], + "io.github.libtmux.scaladsl.cats.Options.effective": [ + { + "command": "display-message", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Options.java:317" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Options.java:196", + "libtmux/src/main/java/io/github/libtmux/Options.java:198", + "libtmux/src/main/java/io/github/libtmux/Options.java:153", + "libtmux/src/main/java/io/github/libtmux/Options.java:319" + ], + "port": "java", + "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Options.Options.effective" + } + }, + { + "command": "show-options", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Options.java:317" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Options.java:153", + "libtmux/src/main/java/io/github/libtmux/Options.java:319" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Options.Options.effective" + } + } + ], + "io.github.libtmux.scaladsl.cats.Options.get": [ + { + "command": "show-options", + "evidence": [ + "libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala:60" + ], + "reviewed": true, + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Options.java:92" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Options.Options.get" + } + } + ], + "io.github.libtmux.scaladsl.cats.Options.set": [ + { + "command": "set-option", + "evidence": [ + "libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Subsystems.scala:74" + ], + "reviewed": true, + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Options.java:325" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Options.Options.set" + } + } + ], + "io.github.libtmux.scaladsl.cats.Options.setExpanded": [ + { + "command": "set-option", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Options.java:362" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Options.java:364" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Options.Options.setExpanded" + } + } + ], + "io.github.libtmux.scaladsl.cats.Options.setIfAbsent": [ + { + "command": "set-option", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Options.java:336" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Options.java:338" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Options.Options.setIfAbsent" + } + } + ], + "io.github.libtmux.scaladsl.cats.Options.unset": [ + { + "command": "set-option", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Options.java:368" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Options.java:370" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Options.Options.unset" + } + } + ], + "io.github.libtmux.scaladsl.cats.Pane.breakOut": [ + { + "command": "break-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:703" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:834", + "libtmux/src/main/java/io/github/libtmux/Pane.java:708" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.breakOut" + } + } + ], + "io.github.libtmux.scaladsl.cats.Pane.capture": [ + { + "command": "capture-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:333" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/CaptureSpec.java:85", + "libtmux/src/main/java/io/github/libtmux/CaptureSpec.java:78", + "libtmux/src/main/java/io/github/libtmux/Pane.java:533" + ], + "port": "java", + "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.capture" + } + } + ], + "io.github.libtmux.scaladsl.cats.Pane.clearHistory": [ + { + "command": "clear-history", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:1050" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:1052" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.clearHistory" + } + } + ], + "io.github.libtmux.scaladsl.cats.Pane.copyMode": [ + { + "command": "copy-mode", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:225" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:227" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.copyMode" + } + } + ], + "io.github.libtmux.scaladsl.cats.Pane.exitMode": [ + { + "command": "copy-mode", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:252" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:254" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.exitMode" + } + } + ], + "io.github.libtmux.scaladsl.cats.Pane.expand": [ + { + "command": "display-message", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:732" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:735" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.expand" + } + } + ], + "io.github.libtmux.scaladsl.cats.Pane.joinTo": [ + { + "command": "join-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:1066" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:1070" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.joinTo" + } + } + ], + "io.github.libtmux.scaladsl.cats.Pane.kill": [ + { + "command": "kill-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:1076" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:1078" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.kill" + } + } + ], + "io.github.libtmux.scaladsl.cats.Pane.paste": [ + { + "command": "load-buffer", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:953" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:971" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.paste" + }, + "when": "except before tmux 3.4" + }, + { + "command": "paste-buffer", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:953" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:971" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.paste" + }, + "when": "except before tmux 3.4" + } + ], + "io.github.libtmux.scaladsl.cats.Pane.pasteBuffer": [ + { + "command": "paste-buffer", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:923" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:928" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.pasteBuffer" + } + } + ], + "io.github.libtmux.scaladsl.cats.Pane.pipeTo": [ + { + "command": "pipe-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:807" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:810" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.pipeTo" + } + } + ], + "io.github.libtmux.scaladsl.cats.Pane.resize": [ + { + "command": "resize-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:209" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:214" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.resize" + } + } + ], + "io.github.libtmux.scaladsl.cats.Pane.resizeTo": [ + { + "command": "resize-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:280" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:282" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.resizeTo" + } + } + ], + "io.github.libtmux.scaladsl.cats.Pane.respawn": [ + { + "command": "respawn-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:755" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:757" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.respawn" + } + } + ], + "io.github.libtmux.scaladsl.cats.Pane.respawnIn": [ + { + "command": "respawn-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:764" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:772", + "libtmux/src/main/java/io/github/libtmux/Pane.java:770", + "libtmux/src/main/java/io/github/libtmux/Pane.java:767" + ], + "port": "java", + "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.respawnIn" + } + } + ], + "io.github.libtmux.scaladsl.cats.Pane.retitle": [ + { + "command": "select-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:272" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:275" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.retitle" + } + } + ], + "io.github.libtmux.scaladsl.cats.Pane.select": [ + { + "command": "select-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:258" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:260" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.select" + } + } + ], + "io.github.libtmux.scaladsl.cats.Pane.send": [ + { + "command": "send-keys", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:546" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:639", + "libtmux/src/main/java/io/github/libtmux/Pane.java:576", + "libtmux/src/main/java/io/github/libtmux/Pane.java:583", + "libtmux/src/main/java/io/github/libtmux/Pane.java:560", + "libtmux/src/main/java/io/github/libtmux/Pane.java:548" + ], + "port": "java", + "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.send" + } + } + ], + "io.github.libtmux.scaladsl.cats.Pane.sendKeys": [ + { + "command": "display-message", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:558" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:735", + "libtmux/src/main/java/io/github/libtmux/Pane.java:737", + "libtmux/src/main/java/io/github/libtmux/Pane.java:656", + "libtmux/src/main/java/io/github/libtmux/Pane.java:577" + ], + "incidental": true, + "port": "java", + "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.sendKeys" + } + }, + { + "command": "list-panes", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:558" + ], + "scope": "window", + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:667", + "libtmux/src/main/java/io/github/libtmux/Pane.java:577" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.sendKeys" + }, + "when": "the pane is synchronized" + }, + { + "command": "send-keys", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:558" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:583", + "libtmux/src/main/java/io/github/libtmux/Pane.java:576", + "libtmux/src/main/java/io/github/libtmux/Pane.java:639" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.sendKeys" + } + } + ], + "io.github.libtmux.scaladsl.cats.Pane.sendLine": [ + { + "command": "send-keys", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:649" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:639", + "libtmux/src/main/java/io/github/libtmux/Pane.java:617", + "libtmux/src/main/java/io/github/libtmux/Pane.java:625", + "libtmux/src/main/java/io/github/libtmux/Pane.java:601", + "libtmux/src/main/java/io/github/libtmux/Pane.java:652" + ], + "port": "java", + "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.sendLine" + } + } + ], + "io.github.libtmux.scaladsl.cats.Pane.sendLiteral": [ + { + "command": "display-message", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:599" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:735", + "libtmux/src/main/java/io/github/libtmux/Pane.java:737", + "libtmux/src/main/java/io/github/libtmux/Pane.java:656", + "libtmux/src/main/java/io/github/libtmux/Pane.java:619" + ], + "incidental": true, + "port": "java", + "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.sendLiteral" + } + }, + { + "command": "list-panes", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:599" + ], + "scope": "window", + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:667", + "libtmux/src/main/java/io/github/libtmux/Pane.java:619" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.sendLiteral" + }, + "when": "the pane is synchronized" + }, + { + "command": "send-keys", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:599" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:625", + "libtmux/src/main/java/io/github/libtmux/Pane.java:617", + "libtmux/src/main/java/io/github/libtmux/Pane.java:639" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.sendLiteral" + } + } + ], + "io.github.libtmux.scaladsl.cats.Pane.split": [ + { + "command": "split-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:855" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/SplitSpec.java:165", + "libtmux/src/main/java/io/github/libtmux/SplitSpec.java:162", + "libtmux/src/main/java/io/github/libtmux/Pane.java:904", + "libtmux/src/main/java/io/github/libtmux/Pane.java:893" + ], + "port": "java", + "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.split" + } + } + ], + "io.github.libtmux.scaladsl.cats.Pane.stopPiping": [ + { + "command": "pipe-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:814" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:816" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.stopPiping" + } + } + ], + "io.github.libtmux.scaladsl.cats.Pane.swapWith": [ + { + "command": "swap-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:1056" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:1060" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.swapWith" + } + } + ], + "io.github.libtmux.scaladsl.cats.Prompt.clear": [ + { + "command": "clear-prompt-history", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Prompt.java:42" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Prompt.java:45" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Prompt.Prompt.clear" + } + } + ], + "io.github.libtmux.scaladsl.cats.Prompt.history": [ + { + "command": "show-prompt-history", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Prompt.java:31" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Prompt.java:34" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Prompt.Prompt.history" + } + } + ], + "io.github.libtmux.scaladsl.cats.Server.expand": [ + { + "command": "display-message", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Server.java:412" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:415" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Server.Server.expand" + } + } + ], + "io.github.libtmux.scaladsl.cats.Server.hasSession": [ + { + "command": "list-sessions", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Server.java:173" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/SessionLookup.java:21", + "libtmux/src/main/java/io/github/libtmux/Server.java:176" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Server.Server.hasSession" + } + } + ], + "io.github.libtmux.scaladsl.cats.Server.isAlive": [ + { + "command": "display-message", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Server.java:200" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:216" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Server.Server.isAlive" + } + } + ], + "io.github.libtmux.scaladsl.cats.Server.killServer": [ + { + "command": "display-message", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Server.java:298" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:313" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Server.Server.killServer" + } + }, + { + "command": "kill-server", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Server.java:298" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:313" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Server.Server.killServer" + } + } + ], + "io.github.libtmux.scaladsl.cats.Server.killSession": [ + { + "command": "kill-session", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Server.java:187" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:192" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Server.Server.killSession" + } + }, + { + "command": "list-sessions", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Server.java:187" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/SessionLookup.java:21", + "libtmux/src/main/java/io/github/libtmux/Server.java:191" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Server.Server.killSession" + } + } + ], + "io.github.libtmux.scaladsl.cats.Server.lock": [ + { + "command": "lock-server", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Server.java:445" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:447" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Server.Server.lock" + } + } + ], + "io.github.libtmux.scaladsl.cats.Server.newSession": [ + { + "command": "new-session", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Server.java:127" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/SessionSpec.java:145", + "libtmux/src/main/java/io/github/libtmux/SessionSpec.java:137", + "libtmux/src/main/java/io/github/libtmux/Server.java:156" + ], + "port": "java", + "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Server.Server.newSession" + } + } + ], + "io.github.libtmux.scaladsl.cats.Server.paneFields": [ + { + "command": "list-panes", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Server.java:531" + ], + "scope": "server", + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:538" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Server.Server.paneFields" + } + } + ], + "io.github.libtmux.scaladsl.cats.Server.panes": [ + { + "command": "list-panes", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Server.java:975" + ], + "scope": "server", + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:998" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Server.Server.panes" + } + } + ], + "io.github.libtmux.scaladsl.cats.Server.requireAlive": [ + { + "command": "display-message", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Server.java:226" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:228" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Server.Server.requireAlive" + } + } + ], + "io.github.libtmux.scaladsl.cats.Server.sessions": [ + { + "command": "list-sessions", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Server.java:902" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:905" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Server.Server.sessions" + } + } + ], + "io.github.libtmux.scaladsl.cats.Server.snapshot": [ + { + "command": "list-panes", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Server.java:875" + ], + "scope": "server", + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:183", + "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:103", + "libtmux/src/main/java/io/github/libtmux/Server.java:878" + ], + "port": "java", + "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Server.Server.snapshot" + } + } + ], + "io.github.libtmux.scaladsl.cats.Server.sourceFile": [ + { + "command": "source-file", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Server.java:624" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:626" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Server.Server.sourceFile" + } + } + ], + "io.github.libtmux.scaladsl.cats.Server.windows": [ + { + "command": "list-windows", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Server.java:937" + ], + "scope": "server", + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:960" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Server.Server.windows" + } + } + ], + "io.github.libtmux.scaladsl.cats.Session.detachClients": [ + { + "command": "detach-client", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Session.java:133" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Session.java:135" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Session.Session.detachClients" + } + } + ], + "io.github.libtmux.scaladsl.cats.Session.expand": [ + { + "command": "display-message", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Session.java:247" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Session.java:250" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Session.Session.expand" + } + } + ], + "io.github.libtmux.scaladsl.cats.Session.kill": [ + { + "command": "kill-session", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Session.java:269" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Session.java:271" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Session.Session.kill" + } + } + ], + "io.github.libtmux.scaladsl.cats.Session.lastWindow": [ + { + "command": "last-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Session.java:127" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Session.java:129" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Session.Session.lastWindow" + } + } + ], + "io.github.libtmux.scaladsl.cats.Session.newWindow": [ + { + "command": "new-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Session.java:186" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/WindowSpec.java:117", + "libtmux/src/main/java/io/github/libtmux/WindowSpec.java:115", + "libtmux/src/main/java/io/github/libtmux/Session.java:215" + ], + "port": "java", + "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Session.Session.newWindow" + } + } + ], + "io.github.libtmux.scaladsl.cats.Session.nextWindow": [ + { + "command": "next-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Session.java:110" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Session.java:112" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Session.Session.nextWindow" + } + } + ], + "io.github.libtmux.scaladsl.cats.Session.previousWindow": [ + { + "command": "previous-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Session.java:116" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Session.java:118" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Session.Session.previousWindow" + } + } + ], + "io.github.libtmux.scaladsl.cats.Session.rename": [ + { + "command": "rename-session", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Session.java:262" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Session.java:264" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Session.Session.rename" + } + } + ], + "io.github.libtmux.scaladsl.cats.Session.selectWindow": [ + { + "command": "select-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Session.java:93" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Session.java:100" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Session.Session.selectWindow" + } + } + ], + "io.github.libtmux.scaladsl.cats.Shell.capturing": [ + { + "command": "run-shell", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Shell.java:46" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Shell.java:55" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Shell.Shell.capturing" + }, + "when": "except from tmux 3.3 until 3.5" + } + ], + "io.github.libtmux.scaladsl.cats.Shell.choose": [ + { + "command": "if-shell", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Shell.java:64" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Shell.java:68" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Shell.Shell.choose" + } + } + ], + "io.github.libtmux.scaladsl.cats.Shell.run": [ + { + "command": "run-shell", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Shell.java:33" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Shell.java:36" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Shell.Shell.run" + } + } + ], + "io.github.libtmux.scaladsl.cats.Window.applyLayout": [ + { + "command": "select-layout", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Window.java:358" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:374" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Window.Window.applyLayout" + } + } + ], + "io.github.libtmux.scaladsl.cats.Window.displayPopup": [ + { + "command": "display-popup", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Window.java:395" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:397" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Window.Window.displayPopup" + } + } + ], + "io.github.libtmux.scaladsl.cats.Window.expand": [ + { + "command": "display-message", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Window.java:203" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:206" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Window.Window.expand" + } + } + ], + "io.github.libtmux.scaladsl.cats.Window.kill": [ + { + "command": "kill-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Window.java:401" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:403" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Window.Window.kill" + } + } + ], + "io.github.libtmux.scaladsl.cats.Window.linkTo": [ + { + "command": "link-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Window.java:230" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:234" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Window.Window.linkTo" + } + } + ], + "io.github.libtmux.scaladsl.cats.Window.moveTo": [ + { + "command": "move-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Window.java:250" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:254" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Window.Window.moveTo" + } + } + ], + "io.github.libtmux.scaladsl.cats.Window.nextLayout": [ + { + "command": "next-layout", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Window.java:327" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:329" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Window.Window.nextLayout" + } + } + ], + "io.github.libtmux.scaladsl.cats.Window.previousLayout": [ + { + "command": "previous-layout", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Window.java:333" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:335" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Window.Window.previousLayout" + } + } + ], + "io.github.libtmux.scaladsl.cats.Window.rename": [ + { + "command": "rename-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Window.java:223" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:225" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Window.Window.rename" + } + } + ], + "io.github.libtmux.scaladsl.cats.Window.resizeTo": [ + { + "command": "resize-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Window.java:275" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:278" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Window.Window.resizeTo" + } + } + ], + "io.github.libtmux.scaladsl.cats.Window.respawn": [ + { + "command": "respawn-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Window.java:380" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:382" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Window.Window.respawn" + } + } + ], + "io.github.libtmux.scaladsl.cats.Window.rotate": [ + { + "command": "rotate-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Window.java:309" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:311" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Window.Window.rotate" + } + } + ], + "io.github.libtmux.scaladsl.cats.Window.select": [ + { + "command": "select-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Window.java:114" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:116" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Window.Window.select" + } + } + ], + "io.github.libtmux.scaladsl.cats.Window.selectLayout": [ + { + "command": "select-layout", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Window.java:319" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:323" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Window.Window.selectLayout" + } + } + ], + "io.github.libtmux.scaladsl.cats.Window.split": [ + { + "command": "split-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Window.java:164" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/SplitSpec.java:165", + "libtmux/src/main/java/io/github/libtmux/SplitSpec.java:162", + "libtmux/src/main/java/io/github/libtmux/Pane.java:904", + "libtmux/src/main/java/io/github/libtmux/Window.java:191" + ], + "port": "java", + "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Window.Window.split" + } + } + ], + "io.github.libtmux.scaladsl.cats.Window.unlink": [ + { + "command": "unlink-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Window.java:244" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:246" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Window.Window.unlink" + } + } + ], + "io.github.libtmux.scaladsl.Client.detach": [ + { + "command": "detach-client", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Client.java:46" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Client.java:48" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Client.Client.detach" + } + } + ], + "io.github.libtmux.scaladsl.Client.detachOthers": [ + { + "command": "detach-client", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Client.java:52" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Client.java:54" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Client.Client.detachOthers" + } + } + ], + "io.github.libtmux.scaladsl.Client.redraw": [ + { + "command": "refresh-client", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Client.java:78" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Client.java:80" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Client.Client.redraw" + } + } + ], + "io.github.libtmux.scaladsl.Client.switchTo": [ + { + "command": "switch-client", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Client.java:63" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Client.java:67" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Client.Client.switchTo" + } + } + ], + "io.github.libtmux.scaladsl.Pane.breakOut": [ + { + "command": "break-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:703" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:834", + "libtmux/src/main/java/io/github/libtmux/Pane.java:708" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.breakOut" + } + } + ], + "io.github.libtmux.scaladsl.Pane.capture": [ + { + "command": "capture-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:333" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/CaptureSpec.java:85", + "libtmux/src/main/java/io/github/libtmux/CaptureSpec.java:78", + "libtmux/src/main/java/io/github/libtmux/Pane.java:533" + ], + "port": "java", + "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.capture" + } + } + ], + "io.github.libtmux.scaladsl.Pane.clearHistory": [ + { + "command": "clear-history", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:1050" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:1052" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.clearHistory" + } + } + ], + "io.github.libtmux.scaladsl.Pane.copyMode": [ + { + "command": "copy-mode", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:225" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:227" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.copyMode" + } + } + ], + "io.github.libtmux.scaladsl.Pane.exitMode": [ + { + "command": "copy-mode", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:252" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:254" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.exitMode" + } + } + ], + "io.github.libtmux.scaladsl.Pane.expand": [ + { + "command": "display-message", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:732" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:735" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.expand" + } + } + ], + "io.github.libtmux.scaladsl.Pane.joinTo": [ + { + "command": "join-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:1066" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:1070" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.joinTo" + } + } + ], + "io.github.libtmux.scaladsl.Pane.kill": [ + { + "command": "kill-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:1076" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:1078" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.kill" + } + } + ], + "io.github.libtmux.scaladsl.Pane.paste": [ + { + "command": "load-buffer", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:953" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:971" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.paste" + }, + "when": "except before tmux 3.4" + }, + { + "command": "paste-buffer", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:953" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:971" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.paste" + }, + "when": "except before tmux 3.4" + } + ], + "io.github.libtmux.scaladsl.Pane.pasteBuffer": [ + { + "command": "paste-buffer", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:923" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:928" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.pasteBuffer" + } + } + ], + "io.github.libtmux.scaladsl.Pane.pipeTo": [ + { + "command": "pipe-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:807" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:810" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.pipeTo" + } + } + ], + "io.github.libtmux.scaladsl.Pane.resize": [ + { + "command": "resize-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:209" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:214" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.resize" + } + } + ], + "io.github.libtmux.scaladsl.Pane.resizeTo": [ + { + "command": "resize-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:280" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:282" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.resizeTo" + } + } + ], + "io.github.libtmux.scaladsl.Pane.respawn": [ + { + "command": "respawn-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:755" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:757" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.respawn" + } + } + ], + "io.github.libtmux.scaladsl.Pane.respawnIn": [ + { + "command": "respawn-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:764" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:772", + "libtmux/src/main/java/io/github/libtmux/Pane.java:770", + "libtmux/src/main/java/io/github/libtmux/Pane.java:767" + ], + "port": "java", + "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.respawnIn" + } + } + ], + "io.github.libtmux.scaladsl.Pane.retitle": [ + { + "command": "select-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:272" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:275" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.retitle" + } + } + ], + "io.github.libtmux.scaladsl.Pane.select": [ + { + "command": "select-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:258" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:260" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.select" + } + } + ], + "io.github.libtmux.scaladsl.Pane.send": [ + { + "command": "send-keys", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:546" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:639", + "libtmux/src/main/java/io/github/libtmux/Pane.java:576", + "libtmux/src/main/java/io/github/libtmux/Pane.java:583", + "libtmux/src/main/java/io/github/libtmux/Pane.java:560", + "libtmux/src/main/java/io/github/libtmux/Pane.java:548" + ], + "port": "java", + "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.send" + } + } + ], + "io.github.libtmux.scaladsl.Pane.sendKeys": [ + { + "command": "display-message", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:558" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:735", + "libtmux/src/main/java/io/github/libtmux/Pane.java:737", + "libtmux/src/main/java/io/github/libtmux/Pane.java:656", + "libtmux/src/main/java/io/github/libtmux/Pane.java:577" + ], + "incidental": true, + "port": "java", + "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.sendKeys" + } + }, + { + "command": "list-panes", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:558" + ], + "scope": "window", + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:667", + "libtmux/src/main/java/io/github/libtmux/Pane.java:577" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.sendKeys" + }, + "when": "the pane is synchronized" + }, + { + "command": "send-keys", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:558" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:583", + "libtmux/src/main/java/io/github/libtmux/Pane.java:576", + "libtmux/src/main/java/io/github/libtmux/Pane.java:639" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.sendKeys" + } + } + ], + "io.github.libtmux.scaladsl.Pane.sendLine": [ + { + "command": "send-keys", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:649" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:639", + "libtmux/src/main/java/io/github/libtmux/Pane.java:617", + "libtmux/src/main/java/io/github/libtmux/Pane.java:625", + "libtmux/src/main/java/io/github/libtmux/Pane.java:601", + "libtmux/src/main/java/io/github/libtmux/Pane.java:652" + ], + "port": "java", + "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.sendLine" + } + } + ], + "io.github.libtmux.scaladsl.Pane.sendLiteral": [ + { + "command": "display-message", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:599" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:735", + "libtmux/src/main/java/io/github/libtmux/Pane.java:737", + "libtmux/src/main/java/io/github/libtmux/Pane.java:656", + "libtmux/src/main/java/io/github/libtmux/Pane.java:619" + ], + "incidental": true, + "port": "java", + "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.sendLiteral" + } + }, + { + "command": "list-panes", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:599" + ], + "scope": "window", + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:667", + "libtmux/src/main/java/io/github/libtmux/Pane.java:619" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.sendLiteral" + }, + "when": "the pane is synchronized" + }, + { + "command": "send-keys", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:599" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:625", + "libtmux/src/main/java/io/github/libtmux/Pane.java:617", + "libtmux/src/main/java/io/github/libtmux/Pane.java:639" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.sendLiteral" + } + } + ], + "io.github.libtmux.scaladsl.Pane.split": [ + { + "command": "split-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:855" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/SplitSpec.java:165", + "libtmux/src/main/java/io/github/libtmux/SplitSpec.java:162", + "libtmux/src/main/java/io/github/libtmux/Pane.java:904", + "libtmux/src/main/java/io/github/libtmux/Pane.java:893" + ], + "port": "java", + "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.split" + } + } + ], + "io.github.libtmux.scaladsl.Pane.stopPiping": [ + { + "command": "pipe-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:814" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:816" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.stopPiping" + } + } + ], + "io.github.libtmux.scaladsl.Pane.swapWith": [ + { + "command": "swap-pane", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Pane.java:1056" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Pane.java:1060" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Pane.Pane.swapWith" + } + } + ], + "io.github.libtmux.scaladsl.Server.expand": [ + { + "command": "display-message", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Server.java:412" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:415" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Server.Server.expand" + } + } + ], + "io.github.libtmux.scaladsl.Server.hasSession": [ + { + "command": "list-sessions", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Server.java:173" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/SessionLookup.java:21", + "libtmux/src/main/java/io/github/libtmux/Server.java:176" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Server.Server.hasSession" + } + } + ], + "io.github.libtmux.scaladsl.Server.isAlive": [ + { + "command": "display-message", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Server.java:200" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:216" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Server.Server.isAlive" + } + } + ], + "io.github.libtmux.scaladsl.Server.killServer": [ + { + "command": "display-message", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Server.java:298" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:313" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Server.Server.killServer" + } + }, + { + "command": "kill-server", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Server.java:298" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:313" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Server.Server.killServer" + } + } + ], + "io.github.libtmux.scaladsl.Server.killSession": [ + { + "command": "kill-session", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Server.java:187" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:192" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Server.Server.killSession" + } + }, + { + "command": "list-sessions", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Server.java:187" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/SessionLookup.java:21", + "libtmux/src/main/java/io/github/libtmux/Server.java:191" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Server.Server.killSession" + } + } + ], + "io.github.libtmux.scaladsl.Server.lock": [ + { + "command": "lock-server", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Server.java:445" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:447" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Server.Server.lock" + } + } + ], + "io.github.libtmux.scaladsl.Server.newSession": [ + { + "command": "new-session", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Server.java:127" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/SessionSpec.java:145", + "libtmux/src/main/java/io/github/libtmux/SessionSpec.java:137", + "libtmux/src/main/java/io/github/libtmux/Server.java:156" + ], + "port": "java", + "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Server.Server.newSession" + } + } + ], + "io.github.libtmux.scaladsl.Server.paneFields": [ + { + "command": "list-panes", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Server.java:531" + ], + "scope": "server", + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:538" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Server.Server.paneFields" + } + } + ], + "io.github.libtmux.scaladsl.Server.panes": [ + { + "command": "list-panes", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Server.java:975" + ], + "scope": "server", + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:998" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Server.Server.panes" + } + } + ], + "io.github.libtmux.scaladsl.Server.requireAlive": [ + { + "command": "display-message", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Server.java:226" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:228" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Server.Server.requireAlive" + } + } + ], + "io.github.libtmux.scaladsl.Server.sessions": [ + { + "command": "list-sessions", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Server.java:902" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:905" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Server.Server.sessions" + } + } + ], + "io.github.libtmux.scaladsl.Server.snapshot": [ + { + "command": "list-panes", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Server.java:875" + ], + "scope": "server", + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:183", + "libtmux/src/main/java/io/github/libtmux/SnapshotCapture.java:103", + "libtmux/src/main/java/io/github/libtmux/Server.java:878" + ], + "port": "java", + "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Server.Server.snapshot" + } + } + ], + "io.github.libtmux.scaladsl.Server.sourceFile": [ + { + "command": "source-file", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Server.java:624" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:626" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Server.Server.sourceFile" + } + } + ], + "io.github.libtmux.scaladsl.Server.windows": [ + { + "command": "list-windows", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Server.java:937" + ], + "scope": "server", + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Server.java:960" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Server.Server.windows" + } + } + ], + "io.github.libtmux.scaladsl.Session.detachClients": [ + { + "command": "detach-client", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Session.java:133" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Session.java:135" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Session.Session.detachClients" + } + } + ], + "io.github.libtmux.scaladsl.Session.expand": [ + { + "command": "display-message", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Session.java:247" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Session.java:250" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Session.Session.expand" + } + } + ], + "io.github.libtmux.scaladsl.Session.kill": [ + { + "command": "kill-session", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Session.java:269" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Session.java:271" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Session.Session.kill" + } + } + ], + "io.github.libtmux.scaladsl.Session.lastWindow": [ + { + "command": "last-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Session.java:127" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Session.java:129" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Session.Session.lastWindow" + } + } + ], + "io.github.libtmux.scaladsl.Session.newWindow": [ + { + "command": "new-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Session.java:186" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/WindowSpec.java:117", + "libtmux/src/main/java/io/github/libtmux/WindowSpec.java:115", + "libtmux/src/main/java/io/github/libtmux/Session.java:215" + ], + "port": "java", + "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Session.Session.newWindow" + } + } + ], + "io.github.libtmux.scaladsl.Session.nextWindow": [ + { + "command": "next-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Session.java:110" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Session.java:112" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Session.Session.nextWindow" + } + } + ], + "io.github.libtmux.scaladsl.Session.previousWindow": [ + { + "command": "previous-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Session.java:116" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Session.java:118" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Session.Session.previousWindow" + } + } + ], + "io.github.libtmux.scaladsl.Session.rename": [ + { + "command": "rename-session", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Session.java:262" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Session.java:264" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Session.Session.rename" + } + } + ], + "io.github.libtmux.scaladsl.Session.selectWindow": [ + { + "command": "select-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Session.java:93" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Session.java:100" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Session.Session.selectWindow" + } + } + ], + "io.github.libtmux.scaladsl.Window.applyLayout": [ + { + "command": "select-layout", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Window.java:358" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:374" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Window.Window.applyLayout" + } + } + ], + "io.github.libtmux.scaladsl.Window.displayPopup": [ + { + "command": "display-popup", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Window.java:395" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:397" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Window.Window.displayPopup" + } + } + ], + "io.github.libtmux.scaladsl.Window.expand": [ + { + "command": "display-message", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Window.java:203" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:206" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Window.Window.expand" + } + } + ], + "io.github.libtmux.scaladsl.Window.kill": [ + { + "command": "kill-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Window.java:401" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:403" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Window.Window.kill" + } + } + ], + "io.github.libtmux.scaladsl.Window.linkTo": [ + { + "command": "link-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Window.java:230" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:234" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Window.Window.linkTo" + } + } + ], + "io.github.libtmux.scaladsl.Window.moveTo": [ + { + "command": "move-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Window.java:250" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:254" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Window.Window.moveTo" + } + } + ], + "io.github.libtmux.scaladsl.Window.nextLayout": [ + { + "command": "next-layout", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Window.java:327" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:329" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Window.Window.nextLayout" + } + } + ], + "io.github.libtmux.scaladsl.Window.previousLayout": [ + { + "command": "previous-layout", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Window.java:333" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:335" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Window.Window.previousLayout" + } + } + ], + "io.github.libtmux.scaladsl.Window.rename": [ + { + "command": "rename-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Window.java:223" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:225" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Window.Window.rename" + } + } + ], + "io.github.libtmux.scaladsl.Window.resizeTo": [ + { + "command": "resize-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Window.java:275" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:278" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Window.Window.resizeTo" + } + } + ], + "io.github.libtmux.scaladsl.Window.respawn": [ + { + "command": "respawn-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Window.java:380" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:382" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Window.Window.respawn" + } + } + ], + "io.github.libtmux.scaladsl.Window.rotate": [ + { + "command": "rotate-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Window.java:309" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:311" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Window.Window.rotate" + } + } + ], + "io.github.libtmux.scaladsl.Window.select": [ + { + "command": "select-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Window.java:114" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:116" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Window.Window.select" + } + } + ], + "io.github.libtmux.scaladsl.Window.selectLayout": [ + { + "command": "select-layout", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Window.java:319" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:323" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Window.Window.selectLayout" + } + } + ], + "io.github.libtmux.scaladsl.Window.split": [ + { + "command": "split-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Window.java:164" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/SplitSpec.java:165", + "libtmux/src/main/java/io/github/libtmux/SplitSpec.java:162", + "libtmux/src/main/java/io/github/libtmux/Pane.java:904", + "libtmux/src/main/java/io/github/libtmux/Window.java:191" + ], + "port": "java", + "reviewed": true, + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Window.Window.split" + } + } + ], + "io.github.libtmux.scaladsl.Window.unlink": [ + { + "command": "unlink-window", + "evidence": [ + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:319", + "build-logic/codegen/src/main/kotlin/io/github/libtmux/codegen/scala/ScalaOperationGenerator.kt:351", + "libtmux/src/main/java/io/github/libtmux/Window.java:244" + ], + "scope": null, + "via": { + "evidence": [ + "libtmux/src/main/java/io/github/libtmux/Window.java:246" + ], + "port": "java", + "revision": "a0ecbc16da00140e2520462d478a2af470878272", + "symbol": "io.github.libtmux.Window.Window.unlink" + } + } + ] + } +} diff --git a/site/src/data/tmux-usage/scopes.json b/site/src/data/tmux-usage/scopes.json new file mode 100644 index 000000000..740e12fe9 --- /dev/null +++ b/site/src/data/tmux-usage/scopes.json @@ -0,0 +1,18 @@ +{ + "schemaVersion": 1, + "commands": { + "list-panes": { + "scopes": [ + { "id": "server", "label": "Server", "flag": "a", "function": "cmd_list_panes_server" }, + { "id": "session", "label": "Session", "flag": "s", "function": "cmd_list_panes_session" }, + { "id": "window", "label": "Window", "flag": "", "target": "t", "function": "cmd_list_panes_window" } + ] + }, + "list-windows": { + "scopes": [ + { "id": "server", "label": "Server", "flag": "a", "function": "cmd_list_windows_server", "inline": ["3.7c"] }, + { "id": "session", "label": "Session", "flag": "", "target": "t", "function": "cmd_list_windows_session", "inline": ["3.7c"] } + ] + } + } +} diff --git a/site/src/data/tmux-usage/swift.json b/site/src/data/tmux-usage/swift.json new file mode 100644 index 000000000..acf70e005 --- /dev/null +++ b/site/src/data/tmux-usage/swift.json @@ -0,0 +1,966 @@ +{ + "commands": [ + "attach-session", + "bind-key", + "break-pane", + "capture-pane", + "choose-buffer", + "choose-client", + "choose-tree", + "clear-history", + "clear-prompt-history", + "clock-mode", + "command-prompt", + "confirm-before", + "copy-mode", + "customize-mode", + "delete-buffer", + "detach-client", + "display-menu", + "display-message", + "display-panes", + "display-popup", + "find-window", + "has-session", + "if-shell", + "join-pane", + "kill-pane", + "kill-server", + "kill-session", + "kill-window", + "last-pane", + "last-window", + "link-window", + "list-buffers", + "list-clients", + "list-commands", + "list-keys", + "list-panes", + "list-sessions", + "list-windows", + "load-buffer", + "lock-client", + "lock-server", + "lock-session", + "move-pane", + "move-window", + "new-pane", + "new-session", + "new-window", + "next-layout", + "next-window", + "paste-buffer", + "pipe-pane", + "previous-layout", + "previous-window", + "refresh-client", + "rename-session", + "rename-window", + "resize-pane", + "resize-window", + "respawn-pane", + "respawn-window", + "rotate-window", + "run-shell", + "save-buffer", + "select-layout", + "select-pane", + "select-window", + "send-keys", + "send-prefix", + "server-access", + "set-buffer", + "set-environment", + "set-hook", + "set-option", + "set-window-option", + "show-buffer", + "show-environment", + "show-hooks", + "show-messages", + "show-options", + "show-prompt-history", + "show-window-options", + "source-file", + "split-window", + "start-server", + "suspend-client", + "swap-pane", + "swap-window", + "switch-client", + "unbind-key", + "unlink-window", + "wait-for" + ], + "port": "swift", + "repo": "libtmux/libtmux-swift", + "revision": "7993e7044347629b08020e9b02ae8bcffa0e5898", + "schemaVersion": 1, + "symbols": { + "ControlSession.stopWatching(_:)": [ + { + "command": "refresh-client", + "evidence": [ + "Sources/LibTmux/Watch.swift:151" + ], + "scope": null + } + ], + "ControlSession.watch(_:)": [ + { + "command": "refresh-client", + "evidence": [ + "Sources/LibTmux/Watch.swift:138" + ], + "scope": null + } + ], + "Server.breakPane(_:from:named:)": [ + { + "command": "break-pane", + "evidence": [ + "Sources/LibTmux/Navigation.swift:127", + "Sources/LibTmux/Navigation.swift:144" + ], + "reviewed": true, + "scope": null + }, + { + "command": "if-shell", + "evidence": [ + "Sources/LibTmux/Navigation.swift:136", + "Sources/LibTmux/Navigation.swift:144" + ], + "reviewed": true, + "scope": null, + "when": "no name is given" + } + ], + "Server.buffer(named:)": [ + { + "command": "show-buffer", + "evidence": [ + "Sources/LibTmux/Buffers.swift:51" + ], + "scope": null + } + ], + "Server.buffers()": [ + { + "command": "list-buffers", + "evidence": [ + "Sources/LibTmux/Buffers.swift:6" + ], + "scope": null + } + ], + "Server.cancelModes(in:)": [ + { + "command": "copy-mode", + "evidence": [ + "Sources/LibTmux/Navigation.swift:204" + ], + "scope": null + } + ], + "Server.capture(_:includingHistory:)": [ + { + "command": "capture-pane", + "evidence": [ + "Sources/LibTmux/PaneInteraction.swift:363", + "Sources/LibTmux/PaneInteraction.swift:94" + ], + "scope": null + } + ], + "Server.capture(_:includingHistory:maximumLines:)": [ + { + "command": "capture-pane", + "evidence": [ + "Sources/LibTmux/PaneInteraction.swift:295", + "Sources/LibTmux/PaneInteraction.swift:296", + "Sources/LibTmux/PaneInteraction.swift:139", + "Sources/LibTmux/PaneInteraction.swift:103" + ], + "reviewed": true, + "scope": null + }, + { + "command": "display-message", + "evidence": [ + "Sources/LibTmux/Formats.swift:364", + "Sources/LibTmux/Formats.swift:359", + "Sources/LibTmux/Formats.swift:314", + "Sources/LibTmux/PaneInteraction.swift:322", + "Sources/LibTmux/PaneInteraction.swift:138", + "Sources/LibTmux/PaneInteraction.swift:103" + ], + "incidental": true, + "reviewed": true, + "scope": null + } + ], + "Server.captureRange(_:startingAt:endingAt:joiningWrappedLines:maximumLines:)": [ + { + "command": "capture-pane", + "evidence": [ + "Sources/LibTmux/PaneInteraction.swift:295", + "Sources/LibTmux/PaneInteraction.swift:120" + ], + "scope": null + }, + { + "command": "display-message", + "evidence": [ + "Sources/LibTmux/Formats.swift:364", + "Sources/LibTmux/Formats.swift:359", + "Sources/LibTmux/Formats.swift:314", + "Sources/LibTmux/PaneInteraction.swift:322", + "Sources/LibTmux/PaneInteraction.swift:119" + ], + "incidental": true, + "reviewed": true, + "scope": null + } + ], + "Server.clearHistory(_:)": [ + { + "command": "clear-history", + "evidence": [ + "Sources/LibTmux/Navigation.swift:212" + ], + "scope": null + } + ], + "Server.clients()": [ + { + "command": "list-clients", + "evidence": [ + "Sources/LibTmux/Server.swift:295" + ], + "scope": null + } + ], + "Server.clients(where:)": [ + { + "command": "list-clients", + "evidence": [ + "Sources/LibTmux/FilteredListings.swift:100" + ], + "scope": null + } + ], + "Server.deleteBuffer(named:)": [ + { + "command": "delete-buffer", + "evidence": [ + "Sources/LibTmux/Buffers.swift:61" + ], + "scope": null + } + ], + "Server.detach(_:)": [ + { + "command": "detach-client", + "evidence": [ + "Sources/LibTmux/Navigation.swift:266" + ], + "scope": null + } + ], + "Server.detachClients(from:)": [ + { + "command": "detach-client", + "evidence": [ + "Sources/LibTmux/Navigation.swift:278" + ], + "scope": null + } + ], + "Server.enterCopyMode(_:)": [ + { + "command": "copy-mode", + "evidence": [ + "Sources/LibTmux/Navigation.swift:192" + ], + "scope": null + } + ], + "Server.environment(_:)": [ + { + "command": "show-environment", + "evidence": [ + "Sources/LibTmux/Environment.swift:68" + ], + "scope": null + } + ], + "Server.environmentValue(_:in:)": [ + { + "command": "show-environment", + "evidence": [ + "Sources/LibTmux/Environment.swift:85" + ], + "scope": null + } + ], + "Server.format(_:)": [ + { + "command": "display-message", + "evidence": [ + "Sources/LibTmux/Formats.swift:396" + ], + "scope": null + } + ], + "Server.format(_:for:)": [ + { + "command": "display-message", + "evidence": [ + "Sources/LibTmux/Formats.swift:364" + ], + "scope": null + } + ], + "Server.hooks(_:)": [ + { + "command": "show-hooks", + "evidence": [ + "Sources/LibTmux/Options.swift:224" + ], + "scope": null + } + ], + "Server.incarnation()": [ + { + "command": "display-message", + "evidence": [ + "Sources/LibTmux/Server.swift:348" + ], + "scope": null + } + ], + "Server.isRunning()": [ + { + "command": "list-sessions", + "evidence": [ + "Sources/LibTmux/Server.swift:399" + ], + "scope": null + } + ], + "Server.join(_:into:direction:size:)": [ + { + "command": "join-pane", + "evidence": [ + "Sources/LibTmux/Navigation.swift:182" + ], + "scope": null + } + ], + "Server.kill(_:)": [ + { + "command": "kill-pane", + "evidence": [ + "Sources/LibTmux/Mutations.swift:122" + ], + "scope": null + }, + { + "command": "kill-session", + "evidence": [ + "Sources/LibTmux/Mutations.swift:108" + ], + "scope": null + }, + { + "command": "kill-window", + "evidence": [ + "Sources/LibTmux/Mutations.swift:115" + ], + "scope": null + } + ], + "Server.killServer()": [ + { + "command": "kill-server", + "evidence": [ + "Sources/LibTmux/Navigation.swift:307" + ], + "scope": null + } + ], + "Server.link(_:into:)": [ + { + "command": "link-window", + "evidence": [ + "Sources/LibTmux/WindowTransfers.swift:75", + "Sources/LibTmux/WindowTransfers.swift:91", + "Sources/LibTmux/WindowTransfers.swift:20", + "Sources/LibTmux/WindowTransfers.swift:27" + ], + "reviewed": true, + "scope": null + }, + { + "command": "list-windows", + "evidence": [ + "Sources/LibTmux/Server.swift:273", + "Sources/LibTmux/Server.swift:274", + "Sources/LibTmux/Server.swift:269", + "Sources/LibTmux/WindowTransfers.swift:82", + "Sources/LibTmux/WindowTransfers.swift:20" + ], + "incidental": true, + "reviewed": true, + "scope": "server" + } + ], + "Server.loadBuffer(from:named:)": [ + { + "command": "load-buffer", + "evidence": [ + "Sources/LibTmux/Buffers.swift:81" + ], + "scope": null + } + ], + "Server.move(_:to:at:)": [ + { + "command": "list-windows", + "evidence": [ + "Sources/LibTmux/Server.swift:273", + "Sources/LibTmux/Server.swift:274", + "Sources/LibTmux/Server.swift:269", + "Sources/LibTmux/WindowTransfers.swift:82", + "Sources/LibTmux/WindowTransfers.swift:79", + "Sources/LibTmux/WindowTransfers.swift:46", + "Sources/LibTmux/WindowTransfers.swift:10" + ], + "incidental": true, + "reviewed": true, + "scope": "server", + "when": "no index is given" + }, + { + "command": "move-window", + "evidence": [ + "Sources/LibTmux/WindowTransfers.swift:75", + "Sources/LibTmux/WindowTransfers.swift:91", + "Sources/LibTmux/WindowTransfers.swift:46", + "Sources/LibTmux/WindowTransfers.swift:10" + ], + "reviewed": true, + "scope": null + } + ], + "Server.newSession(named:startDirectory:windowName:width:height:)": [ + { + "command": "new-session", + "evidence": [ + "Sources/LibTmux/Creation.swift:129" + ], + "scope": null + }, + { + "command": "resize-window", + "evidence": [ + "Sources/LibTmux/Creation.swift:154" + ], + "scope": null, + "when": "the requested size differs from the created size" + } + ], + "Server.newWindow(_:_:named:startDirectory:)": [ + { + "command": "new-window", + "evidence": [ + "Sources/LibTmux/Creation.swift:232", + "Sources/LibTmux/Creation.swift:204" + ], + "scope": null + } + ], + "Server.newWindow(in:named:startDirectory:)": [ + { + "command": "new-window", + "evidence": [ + "Sources/LibTmux/Creation.swift:232", + "Sources/LibTmux/Creation.swift:178" + ], + "scope": null + } + ], + "Server.nextLayout(_:)": [ + { + "command": "next-layout", + "evidence": [ + "Sources/LibTmux/Navigation.swift:101" + ], + "scope": null + } + ], + "Server.option(_:scope:)": [ + { + "command": "show-options", + "evidence": [ + "Sources/LibTmux/Options.swift:147", + "Sources/LibTmux/Options.swift:135" + ], + "scope": null + } + ], + "Server.options(_:)": [ + { + "command": "show-options", + "evidence": [ + "Sources/LibTmux/Options.swift:110" + ], + "scope": null + } + ], + "Server.panes()": [ + { + "command": "list-panes", + "evidence": [ + "Sources/LibTmux/Server.swift:284" + ], + "scope": "server" + } + ], + "Server.panes(where:)": [ + { + "command": "list-panes", + "evidence": [ + "Sources/LibTmux/FilteredListings.swift:76" + ], + "scope": "server" + } + ], + "Server.paste(buffer:into:)": [ + { + "command": "paste-buffer", + "evidence": [ + "Sources/LibTmux/Buffers.swift:105" + ], + "scope": null + } + ], + "Server.pipe(_:to:)": [ + { + "command": "pipe-pane", + "evidence": [ + "Sources/LibTmux/Navigation.swift:393" + ], + "scope": null + } + ], + "Server.previousLayout(_:)": [ + { + "command": "previous-layout", + "evidence": [ + "Sources/LibTmux/Navigation.swift:108" + ], + "scope": null + } + ], + "Server.removeEnvironment(_:in:)": [ + { + "command": "set-environment", + "evidence": [ + "Sources/LibTmux/Environment.swift:134" + ], + "scope": null + } + ], + "Server.rename(_:to:)": [ + { + "command": "rename-session", + "evidence": [ + "Sources/LibTmux/Mutations.swift:30" + ], + "scope": null + }, + { + "command": "rename-window", + "evidence": [ + "Sources/LibTmux/Mutations.swift:38" + ], + "scope": null + } + ], + "Server.resize(_:by:toward:)": [ + { + "command": "resize-pane", + "evidence": [ + "Sources/LibTmux/Mutations.swift:88" + ], + "scope": null + } + ], + "Server.resize(_:width:height:)": [ + { + "command": "resize-pane", + "evidence": [ + "Sources/LibTmux/Mutations.swift:71" + ], + "scope": null, + "when": "a width or height is given" + } + ], + "Server.resolvedOption(_:scope:)": [ + { + "command": "show-options", + "evidence": [ + "Sources/LibTmux/Options.swift:165" + ], + "scope": null + } + ], + "Server.respawn(_:running:killingExisting:)": [ + { + "command": "respawn-window", + "evidence": [ + "Sources/LibTmux/Navigation.swift:375" + ], + "scope": null + } + ], + "Server.respawn(_:running:killingExisting:startDirectory:)": [ + { + "command": "respawn-pane", + "evidence": [ + "Sources/LibTmux/Navigation.swift:362" + ], + "scope": null + } + ], + "Server.rotate(_:upward:)": [ + { + "command": "rotate-window", + "evidence": [ + "Sources/LibTmux/Navigation.swift:93" + ], + "scope": null + } + ], + "Server.runHook(_:in:)": [ + { + "command": "set-hook", + "evidence": [ + "Sources/LibTmux/Options.swift:286" + ], + "scope": null + } + ], + "Server.saveBuffer(named:to:)": [ + { + "command": "save-buffer", + "evidence": [ + "Sources/LibTmux/Buffers.swift:95" + ], + "scope": null + } + ], + "Server.select(_:)": [ + { + "command": "select-pane", + "evidence": [ + "Sources/LibTmux/Navigation.swift:19" + ], + "scope": null + }, + { + "command": "select-window", + "evidence": [ + "Sources/LibTmux/Navigation.swift:12" + ], + "scope": null + } + ], + "Server.selectLastPane(in:)": [ + { + "command": "last-pane", + "evidence": [ + "Sources/LibTmux/Navigation.swift:54" + ], + "scope": null + } + ], + "Server.selectLastWindow(in:)": [ + { + "command": "last-window", + "evidence": [ + "Sources/LibTmux/Navigation.swift:42" + ], + "scope": null + } + ], + "Server.selectLayout(_:_:)": [ + { + "command": "select-layout", + "evidence": [ + "Sources/LibTmux/Mutations.swift:52" + ], + "scope": null + } + ], + "Server.selectNextWindow(in:)": [ + { + "command": "next-window", + "evidence": [ + "Sources/LibTmux/Navigation.swift:27" + ], + "scope": null + } + ], + "Server.selectPreviousWindow(in:)": [ + { + "command": "previous-window", + "evidence": [ + "Sources/LibTmux/Navigation.swift:34" + ], + "scope": null + } + ], + "Server.sendKeys(_:to:literally:)": [ + { + "command": "send-keys", + "evidence": [ + "Sources/LibTmux/PaneInteraction.swift:43" + ], + "scope": null + } + ], + "Server.sessions()": [ + { + "command": "list-sessions", + "evidence": [ + "Sources/LibTmux/Server.swift:249" + ], + "scope": null + } + ], + "Server.sessions(where:)": [ + { + "command": "list-sessions", + "evidence": [ + "Sources/LibTmux/FilteredListings.swift:37" + ], + "scope": null + } + ], + "Server.setBuffer(_:named:)": [ + { + "command": "set-buffer", + "evidence": [ + "Sources/LibTmux/Buffers.swift:35" + ], + "scope": null + } + ], + "Server.setEnvironment(_:to:in:)": [ + { + "command": "set-environment", + "evidence": [ + "Sources/LibTmux/Environment.swift:109", + "Sources/LibTmux/Environment.swift:109", + "Sources/LibTmux/Environment.swift:51" + ], + "scope": null + } + ], + "Server.setHook(_:to:at:in:)": [ + { + "command": "set-hook", + "evidence": [ + "Sources/LibTmux/Options.swift:259" + ], + "scope": null + } + ], + "Server.setOption(_:to:scope:)": [ + { + "command": "set-option", + "evidence": [ + "Sources/LibTmux/Options.swift:185" + ], + "scope": null + } + ], + "Server.setTitle(_:of:)": [ + { + "command": "select-pane", + "evidence": [ + "Sources/LibTmux/Navigation.swift:224" + ], + "scope": null + } + ], + "Server.signal(_:)": [ + { + "command": "wait-for", + "evidence": [ + "Sources/LibTmux/Wait.swift:55" + ], + "scope": null + } + ], + "Server.snapshot()": [ + { + "command": "list-windows", + "evidence": [ + "Sources/LibTmux/Server.swift:273", + "Sources/LibTmux/Server.swift:311" + ], + "scope": "server" + } + ], + "Server.sourceFile(_:)": [ + { + "command": "source-file", + "evidence": [ + "Sources/LibTmux/Navigation.swift:325" + ], + "scope": null + } + ], + "Server.split(_:direction:size:startDirectory:)": [ + { + "command": "split-window", + "evidence": [ + "Sources/LibTmux/Creation.swift:313", + "Sources/LibTmux/Creation.swift:285" + ], + "scope": null + } + ], + "Server.splitWindow(_:direction:size:startDirectory:)": [ + { + "command": "split-window", + "evidence": [ + "Sources/LibTmux/Creation.swift:313", + "Sources/LibTmux/Creation.swift:258" + ], + "scope": null + } + ], + "Server.startServer()": [ + { + "command": "start-server", + "evidence": [ + "Sources/LibTmux/Navigation.swift:291" + ], + "scope": null + } + ], + "Server.swap(_:with:)": [ + { + "command": "swap-pane", + "evidence": [ + "Sources/LibTmux/Navigation.swift:72" + ], + "scope": null + }, + { + "command": "swap-window", + "evidence": [ + "Sources/LibTmux/Navigation.swift:65" + ], + "scope": null + } + ], + "Server.toggleZoom(_:)": [ + { + "command": "resize-pane", + "evidence": [ + "Sources/LibTmux/Mutations.swift:99" + ], + "scope": null + } + ], + "Server.unlink(_:)": [ + { + "command": "unlink-window", + "evidence": [ + "Sources/LibTmux/WindowTransfers.swift:34" + ], + "scope": null + } + ], + "Server.unsetEnvironment(_:in:)": [ + { + "command": "set-environment", + "evidence": [ + "Sources/LibTmux/Environment.swift:122" + ], + "scope": null + } + ], + "Server.unsetHook(_:in:)": [ + { + "command": "set-hook", + "evidence": [ + "Sources/LibTmux/Options.swift:275" + ], + "scope": null + } + ], + "Server.unsetOption(_:scope:)": [ + { + "command": "set-option", + "evidence": [ + "Sources/LibTmux/Options.swift:207" + ], + "scope": null + } + ], + "Server.wait(for:)": [ + { + "command": "wait-for", + "evidence": [ + "Sources/LibTmux/Wait.swift:35" + ], + "scope": null + } + ], + "Server.windowLinks()": [ + { + "command": "list-windows", + "evidence": [ + "Sources/LibTmux/Server.swift:273", + "Sources/LibTmux/Server.swift:269" + ], + "scope": "server" + } + ], + "Server.windows()": [ + { + "command": "list-windows", + "evidence": [ + "Sources/LibTmux/Server.swift:273", + "Sources/LibTmux/Server.swift:262" + ], + "scope": "server" + } + ], + "Server.windows(where:)": [ + { + "command": "list-windows", + "evidence": [ + "Sources/LibTmux/FilteredListings.swift:58" + ], + "scope": "server" + } + ], + "Server.withControlMode(attachingTo:_:)": [ + { + "command": "attach-session", + "evidence": [ + "Sources/LibTmux/ControlMode.swift:179" + ], + "scope": null + } + ] + } +} diff --git a/site/src/data/tmux-usage/ts.json b/site/src/data/tmux-usage/ts.json new file mode 100644 index 000000000..a0c607d6d --- /dev/null +++ b/site/src/data/tmux-usage/ts.json @@ -0,0 +1,1351 @@ +{ + "commands": [ + "attach-session", + "bind-key", + "break-pane", + "capture-pane", + "choose-buffer", + "choose-client", + "choose-tree", + "clear-history", + "clear-prompt-history", + "clock-mode", + "command-prompt", + "confirm-before", + "copy-mode", + "customize-mode", + "delete-buffer", + "detach-client", + "display-menu", + "display-message", + "display-panes", + "display-popup", + "find-window", + "has-session", + "if-shell", + "join-pane", + "kill-pane", + "kill-server", + "kill-session", + "kill-window", + "last-pane", + "last-window", + "link-window", + "list-buffers", + "list-clients", + "list-commands", + "list-keys", + "list-panes", + "list-sessions", + "list-windows", + "load-buffer", + "lock-client", + "lock-server", + "lock-session", + "move-pane", + "move-window", + "new-pane", + "new-session", + "new-window", + "next-layout", + "next-window", + "paste-buffer", + "pipe-pane", + "previous-layout", + "previous-window", + "refresh-client", + "rename-session", + "rename-window", + "resize-pane", + "resize-window", + "respawn-pane", + "respawn-window", + "rotate-window", + "run-shell", + "save-buffer", + "select-layout", + "select-pane", + "select-window", + "send-keys", + "send-prefix", + "server-access", + "set-buffer", + "set-environment", + "set-hook", + "set-option", + "set-window-option", + "show-buffer", + "show-environment", + "show-hooks", + "show-messages", + "show-options", + "show-prompt-history", + "show-window-options", + "source-file", + "split-window", + "start-server", + "suspend-client", + "swap-pane", + "swap-window", + "switch-client", + "unbind-key", + "unlink-window", + "wait-for" + ], + "port": "ts", + "repo": "libtmux/libtmux-ts", + "revision": "46cccfef2a546de55ce8b308249b8c76339089a0", + "schemaVersion": 1, + "symbols": { + "client.Client.detach": [ + { + "command": "detach-client", + "evidence": [ + "packages/libtmux/src/_internal/operations/shell.ts:246", + "packages/libtmux/src/client.ts:95" + ], + "scope": null + } + ], + "client.Client.switchTo": [ + { + "command": "switch-client", + "evidence": [ + "packages/libtmux/src/_internal/operations/shell.ts:255", + "packages/libtmux/src/client.ts:107" + ], + "scope": null + } + ], + "mcp.server.main": [ + { + "command": "display-message", + "evidence": [ + "packages/mcp/src/startup.ts:92", + "packages/mcp/src/startup.ts:107", + "packages/mcp/src/startup.ts:110", + "packages/mcp/src/startup.ts:124", + "packages/mcp/src/server.ts:244" + ], + "reviewed": true, + "scope": null, + "when": "unless an explicit launch finds no server" + }, + { + "command": "list-sessions", + "evidence": [ + "packages/libtmux/src/_internal/operations/server_utils.ts:129", + "packages/libtmux/src/server.ts:1301", + "packages/mcp/src/startup.ts:107", + "packages/mcp/src/server.ts:244" + ], + "reviewed": true, + "scope": null, + "when": "an explicit launch" + }, + { + "command": "show-options", + "evidence": [ + "packages/mcp/src/startup.ts:89", + "packages/mcp/src/server.ts:244" + ], + "reviewed": true, + "scope": null, + "when": "a minimal launch, no explicit selection" + }, + { + "command": "start-server", + "evidence": [ + "packages/mcp/src/startup.ts:88", + "packages/mcp/src/server.ts:244" + ], + "reviewed": true, + "scope": null, + "when": "a minimal launch, no explicit selection" + } + ], + "pane.Pane.breakOut": [ + { + "command": "break-pane", + "evidence": [ + "packages/libtmux/src/_internal/operations/shell.ts:146", + "packages/libtmux/src/pane.ts:517" + ], + "scope": null + } + ], + "pane.Pane.capture": [ + { + "command": "capture-pane", + "evidence": [ + "packages/libtmux/src/_internal/operations/pane_io.ts:44", + "packages/libtmux/src/pane.ts:345" + ], + "scope": null + } + ], + "pane.Pane.chooseBuffer": [ + { + "command": "choose-buffer", + "evidence": [ + "packages/libtmux/src/_internal/operations/interactive.ts:83", + "packages/libtmux/src/pane.ts:609" + ], + "scope": null + } + ], + "pane.Pane.chooseTree": [ + { + "command": "choose-tree", + "evidence": [ + "packages/libtmux/src/_internal/operations/interactive.ts:69", + "packages/libtmux/src/pane.ts:591" + ], + "scope": null + } + ], + "pane.Pane.clearHistory": [ + { + "command": "clear-history", + "evidence": [ + "packages/libtmux/src/_internal/operations/pane_io.ts:65", + "packages/libtmux/src/pane.ts:356" + ], + "scope": null + } + ], + "pane.Pane.customizeMode": [ + { + "command": "customize-mode", + "evidence": [ + "packages/libtmux/src/_internal/operations/interactive.ts:104", + "packages/libtmux/src/pane.ts:659" + ], + "scope": null + } + ], + "pane.Pane.displayMenu": [ + { + "command": "display-menu", + "evidence": [ + "packages/libtmux/src/_internal/operations/interactive.ts:50", + "packages/libtmux/src/pane.ts:573" + ], + "scope": null + } + ], + "pane.Pane.displayMessage": [ + { + "command": "display-message", + "evidence": [ + "packages/libtmux/src/_internal/operations/shell.ts:59", + "packages/libtmux/src/pane.ts:476" + ], + "scope": null + } + ], + "pane.Pane.displayPopup": [ + { + "command": "display-popup", + "evidence": [ + "packages/libtmux/src/_internal/operations/interactive.ts:19", + "packages/libtmux/src/pane.ts:562" + ], + "scope": null + } + ], + "pane.Pane.enterCopyMode": [ + { + "command": "copy-mode", + "evidence": [ + "packages/libtmux/src/_internal/operations/shell.ts:216", + "packages/libtmux/src/pane.ts:540" + ], + "scope": null + } + ], + "pane.Pane.exitCopyMode": [ + { + "command": "send-keys", + "evidence": [ + "packages/libtmux/src/_internal/operations/shell.ts:220", + "packages/libtmux/src/pane.ts:551" + ], + "scope": null + } + ], + "pane.Pane.findWindow": [ + { + "command": "find-window", + "evidence": [ + "packages/libtmux/src/_internal/operations/interactive.ts:94", + "packages/libtmux/src/pane.ts:627" + ], + "scope": null + } + ], + "pane.Pane.joinTo": [ + { + "command": "join-pane", + "evidence": [ + "packages/libtmux/src/_internal/operations/shell.ts:189", + "packages/libtmux/src/pane.ts:529" + ], + "scope": null + } + ], + "pane.Pane.kill": [ + { + "command": "kill-pane", + "evidence": [ + "packages/libtmux/src/pane.ts:244" + ], + "scope": null + } + ], + "pane.Pane.killIfWindowUnshared": [ + { + "command": "if-shell", + "evidence": [ + "packages/libtmux/src/_internal/operations/plans.ts:179", + "packages/libtmux/src/_internal/operations/plans.ts:192", + "packages/libtmux/src/_internal/operations/mutations.ts:86", + "packages/libtmux/src/pane.ts:255" + ], + "reviewed": true, + "scope": null + }, + { + "command": "kill-pane", + "evidence": [ + "packages/libtmux/src/_internal/operations/mutations.ts:86", + "packages/libtmux/src/_internal/operations/plans.ts:195", + "packages/libtmux/src/_internal/operations/plans.ts:192", + "packages/libtmux/src/pane.ts:255" + ], + "reviewed": true, + "scope": null, + "when": "the window has one placement" + } + ], + "pane.Pane.pasteBuffer": [ + { + "command": "paste-buffer", + "evidence": [ + "packages/libtmux/src/_internal/operations/topology.ts:439", + "packages/libtmux/src/pane.ts:452" + ], + "scope": null + } + ], + "pane.Pane.pipeTo": [ + { + "command": "pipe-pane", + "evidence": [ + "packages/libtmux/src/_internal/operations/pane_io.ts:92", + "packages/libtmux/src/pane.ts:503" + ], + "scope": null + } + ], + "pane.Pane.resize": [ + { + "command": "resize-pane", + "evidence": [ + "packages/libtmux/src/_internal/operations/topology.ts:314", + "packages/libtmux/src/pane.ts:370" + ], + "scope": null + } + ], + "pane.Pane.respawn": [ + { + "command": "respawn-pane", + "evidence": [ + "packages/libtmux/src/_internal/operations/shell.ts:77", + "packages/libtmux/src/pane.ts:487" + ], + "scope": null + } + ], + "pane.Pane.select": [ + { + "command": "select-pane", + "evidence": [ + "packages/libtmux/src/pane.ts:423" + ], + "scope": null + } + ], + "pane.Pane.sendKeys": [ + { + "command": "send-keys", + "evidence": [ + "packages/libtmux/src/_internal/operations/pane_io.ts:32", + "packages/libtmux/src/pane.ts:286" + ], + "scope": null + } + ], + "pane.Pane.sendPrefix": [ + { + "command": "send-prefix", + "evidence": [ + "packages/libtmux/src/_internal/operations/interactive.ts:99", + "packages/libtmux/src/pane.ts:641" + ], + "scope": null + } + ], + "pane.Pane.setHook": [ + { + "command": "set-hook", + "evidence": [ + "packages/libtmux/src/_internal/operations/hooks.ts:70", + "packages/libtmux/src/pane.ts:154" + ], + "scope": null + } + ], + "pane.Pane.setOption": [ + { + "command": "set-option", + "evidence": [ + "packages/libtmux/src/_internal/operations/options.ts:175", + "packages/libtmux/src/pane.ts:207" + ], + "reviewed": true, + "scope": null + } + ], + "pane.Pane.setTitle": [ + { + "command": "select-pane", + "evidence": [ + "packages/libtmux/src/_internal/operations/topology.ts:403", + "packages/libtmux/src/pane.ts:438" + ], + "scope": null + } + ], + "pane.Pane.showHooks": [ + { + "command": "show-hooks", + "evidence": [ + "packages/libtmux/src/_internal/operations/hooks.ts:31", + "packages/libtmux/src/pane.ts:143" + ], + "scope": null + } + ], + "pane.Pane.showOptions": [ + { + "command": "show-options", + "evidence": [ + "packages/libtmux/src/_internal/operations/options.ts:114", + "packages/libtmux/src/pane.ts:181" + ], + "reviewed": true, + "scope": null + } + ], + "pane.Pane.showResolvedOptions": [ + { + "command": "show-options", + "evidence": [ + "packages/libtmux/src/_internal/operations/options.ts:148", + "packages/libtmux/src/pane.ts:196" + ], + "scope": null + } + ], + "pane.Pane.split": [ + { + "command": "split-window", + "evidence": [ + "packages/libtmux/src/_internal/operations/plans.ts:97", + "packages/libtmux/src/_internal/operations/plans.ts:154", + "packages/libtmux/src/_internal/operations/mutations.ts:43", + "packages/libtmux/src/_internal/operations/mutations.ts:70", + "packages/libtmux/src/pane.ts:233" + ], + "reviewed": true, + "scope": null + } + ], + "pane.Pane.swapWith": [ + { + "command": "swap-pane", + "evidence": [ + "packages/libtmux/src/_internal/operations/topology.ts:379", + "packages/libtmux/src/pane.ts:412" + ], + "scope": null + } + ], + "pane.Pane.unsetHook": [ + { + "command": "set-hook", + "evidence": [ + "packages/libtmux/src/_internal/operations/hooks.ts:94", + "packages/libtmux/src/pane.ts:165" + ], + "scope": null + } + ], + "pane.Pane.unsetOption": [ + { + "command": "set-option", + "evidence": [ + "packages/libtmux/src/_internal/operations/options.ts:201", + "packages/libtmux/src/pane.ts:218" + ], + "reviewed": true, + "scope": null + } + ], + "pane.Pane.unzoom": [ + { + "command": "if-shell", + "evidence": [ + "packages/libtmux/src/_internal/operations/topology.ts:295", + "packages/libtmux/src/pane.ts:400" + ], + "scope": null + }, + { + "command": "resize-pane", + "evidence": [ + "packages/libtmux/src/_internal/operations/topology.ts:295", + "packages/libtmux/src/_internal/operations/topology.ts:297", + "packages/libtmux/src/pane.ts:400" + ], + "reviewed": true, + "scope": null, + "when": "the window is zoomed" + } + ], + "pane.Pane.zoom": [ + { + "command": "if-shell", + "evidence": [ + "packages/libtmux/src/_internal/operations/topology.ts:267", + "packages/libtmux/src/pane.ts:386" + ], + "scope": null + }, + { + "command": "resize-pane", + "evidence": [ + "packages/libtmux/src/_internal/operations/topology.ts:267", + "packages/libtmux/src/_internal/operations/topology.ts:276", + "packages/libtmux/src/pane.ts:386" + ], + "reviewed": true, + "scope": null, + "when": "the window is not zoomed" + }, + { + "command": "select-pane", + "evidence": [ + "packages/libtmux/src/_internal/operations/topology.ts:267", + "packages/libtmux/src/pane.ts:386" + ], + "scope": null + } + ], + "server.Server.checkAlive": [ + { + "command": "list-sessions", + "evidence": [ + "packages/libtmux/src/_internal/operations/server_utils.ts:160", + "packages/libtmux/src/server.ts:1317" + ], + "scope": null + } + ], + "server.Server.deleteBuffer": [ + { + "command": "delete-buffer", + "evidence": [ + "packages/libtmux/src/_internal/operations/server_utils.ts:116", + "packages/libtmux/src/server.ts:1257" + ], + "scope": null + } + ], + "server.Server.getEnvironment": [ + { + "command": "show-environment", + "evidence": [ + "packages/libtmux/src/_internal/operations/environment.ts:70", + "packages/libtmux/src/server.ts:1016" + ], + "scope": null + } + ], + "server.Server.hasSession": [ + { + "command": "list-sessions", + "evidence": [ + "packages/libtmux/src/_internal/operations/server_utils.ts:25", + "packages/libtmux/src/server.ts:1148" + ], + "scope": null + } + ], + "server.Server.ifShell": [ + { + "command": "if-shell", + "evidence": [ + "packages/libtmux/src/_internal/operations/shell.ts:36", + "packages/libtmux/src/server.ts:1284" + ], + "scope": null + } + ], + "server.Server.isAlive": [ + { + "command": "list-sessions", + "evidence": [ + "packages/libtmux/src/_internal/operations/server_utils.ts:129", + "packages/libtmux/src/server.ts:1301" + ], + "scope": null + } + ], + "server.Server.kill": [ + { + "command": "kill-server", + "evidence": [ + "packages/libtmux/src/_internal/operations/mutations.ts:90", + "packages/libtmux/src/server.ts:1126" + ], + "scope": null + } + ], + "server.Server.listBuffers": [ + { + "command": "list-buffers", + "evidence": [ + "packages/libtmux/src/_internal/operations/server_utils.ts:87", + "packages/libtmux/src/server.ts:1246" + ], + "scope": null + } + ], + "server.Server.listCommands": [ + { + "command": "list-commands", + "evidence": [ + "packages/libtmux/src/_internal/operations/server_utils.ts:42", + "packages/libtmux/src/server.ts:1177" + ], + "scope": null + } + ], + "server.Server.loadBuffer": [ + { + "command": "load-buffer", + "evidence": [ + "packages/libtmux/src/_internal/operations/server_utils.ts:69", + "packages/libtmux/src/server.ts:1191" + ], + "scope": null + } + ], + "server.Server.newSession": [ + { + "command": "new-session", + "evidence": [ + "packages/libtmux/src/_internal/operations/plans.ts:35", + "packages/libtmux/src/_internal/operations/plans.ts:120", + "packages/libtmux/src/_internal/operations/mutations.ts:43", + "packages/libtmux/src/_internal/operations/mutations.ts:52", + "packages/libtmux/src/server.ts:1115" + ], + "reviewed": true, + "scope": null + } + ], + "server.Server.removeEnvironment": [ + { + "command": "set-environment", + "evidence": [ + "packages/libtmux/src/_internal/operations/environment.ts:146", + "packages/libtmux/src/server.ts:1050" + ], + "scope": null + } + ], + "server.Server.runShell": [ + { + "command": "run-shell", + "evidence": [ + "packages/libtmux/src/_internal/operations/shell.ts:15", + "packages/libtmux/src/server.ts:1273" + ], + "scope": null + } + ], + "server.Server.saveBuffer": [ + { + "command": "save-buffer", + "evidence": [ + "packages/libtmux/src/_internal/operations/server_utils.ts:105", + "packages/libtmux/src/server.ts:835" + ], + "scope": null + } + ], + "server.Server.setBuffer": [ + { + "command": "set-buffer", + "evidence": [ + "packages/libtmux/src/_internal/operations/server_utils.ts:54", + "packages/libtmux/src/server.ts:1207" + ], + "scope": null + } + ], + "server.Server.setEnvironment": [ + { + "command": "set-environment", + "evidence": [ + "packages/libtmux/src/_internal/operations/environment.ts:98", + "packages/libtmux/src/server.ts:1027" + ], + "scope": null + } + ], + "server.Server.setGlobalOption": [ + { + "command": "set-option", + "evidence": [ + "packages/libtmux/src/_internal/operations/options.ts:175", + "packages/libtmux/src/server.ts:872" + ], + "reviewed": true, + "scope": null + } + ], + "server.Server.setHook": [ + { + "command": "set-hook", + "evidence": [ + "packages/libtmux/src/_internal/operations/hooks.ts:70", + "packages/libtmux/src/server.ts:917" + ], + "scope": null + } + ], + "server.Server.setOption": [ + { + "command": "set-option", + "evidence": [ + "packages/libtmux/src/_internal/operations/options.ts:175", + "packages/libtmux/src/server.ts:809" + ], + "reviewed": true, + "scope": null + } + ], + "server.Server.showBuffer": [ + { + "command": "show-buffer", + "evidence": [ + "packages/libtmux/src/_internal/operations/server_utils.ts:77", + "packages/libtmux/src/server.ts:1219" + ], + "scope": null + } + ], + "server.Server.showBufferBytes": [ + { + "command": "show-buffer", + "evidence": [ + "packages/libtmux/src/_internal/operations/server_utils.ts:82", + "packages/libtmux/src/server.ts:1234" + ], + "scope": null + } + ], + "server.Server.showEnvironment": [ + { + "command": "show-environment", + "evidence": [ + "packages/libtmux/src/_internal/operations/environment.ts:43", + "packages/libtmux/src/server.ts:1005" + ], + "scope": null + } + ], + "server.Server.showGlobalOptions": [ + { + "command": "show-options", + "evidence": [ + "packages/libtmux/src/_internal/operations/options.ts:114", + "packages/libtmux/src/server.ts:856" + ], + "reviewed": true, + "scope": null + } + ], + "server.Server.showHooks": [ + { + "command": "show-hooks", + "evidence": [ + "packages/libtmux/src/_internal/operations/hooks.ts:31", + "packages/libtmux/src/server.ts:902" + ], + "scope": null + } + ], + "server.Server.showOptions": [ + { + "command": "show-options", + "evidence": [ + "packages/libtmux/src/_internal/operations/options.ts:114", + "packages/libtmux/src/server.ts:783" + ], + "reviewed": true, + "scope": null + } + ], + "server.Server.showResolvedOptions": [ + { + "command": "show-options", + "evidence": [ + "packages/libtmux/src/_internal/operations/options.ts:148", + "packages/libtmux/src/server.ts:798" + ], + "scope": null + } + ], + "server.Server.snapshot": [ + { + "command": "list-panes", + "evidence": [ + "packages/libtmux/src/_internal/operations/acquire.ts:27", + "packages/libtmux/src/_internal/operations/acquire.ts:90", + "packages/libtmux/src/_internal/operations/acquire.ts:126", + "packages/libtmux/src/_internal/operations/snapshot.ts:42", + "packages/libtmux/src/server.ts:533" + ], + "reviewed": true, + "scope": "server" + } + ], + "server.Server.sourceFile": [ + { + "command": "source-file", + "evidence": [ + "packages/libtmux/src/_internal/operations/server_utils.ts:37", + "packages/libtmux/src/server.ts:1165" + ], + "scope": null + } + ], + "server.Server.unsetEnvironment": [ + { + "command": "set-environment", + "evidence": [ + "packages/libtmux/src/_internal/operations/environment.ts:123", + "packages/libtmux/src/server.ts:1038" + ], + "scope": null + } + ], + "server.Server.unsetGlobalOption": [ + { + "command": "set-option", + "evidence": [ + "packages/libtmux/src/_internal/operations/options.ts:201", + "packages/libtmux/src/server.ts:886" + ], + "reviewed": true, + "scope": null + } + ], + "server.Server.unsetHook": [ + { + "command": "set-hook", + "evidence": [ + "packages/libtmux/src/_internal/operations/hooks.ts:94", + "packages/libtmux/src/server.ts:928" + ], + "scope": null + } + ], + "server.Server.unsetOption": [ + { + "command": "set-option", + "evidence": [ + "packages/libtmux/src/_internal/operations/options.ts:201", + "packages/libtmux/src/server.ts:820" + ], + "reviewed": true, + "scope": null + } + ], + "server.Server.validateLayouts": [ + { + "command": "display-message", + "evidence": [ + "packages/libtmux/src/_internal/operations/layout.ts:62", + "packages/libtmux/src/_internal/operations/layout.ts:51", + "packages/libtmux/src/server.ts:955" + ], + "reviewed": true, + "scope": null, + "when": "layouts that depend on the tmux version" + } + ], + "session.Session.detach": [ + { + "command": "detach-client", + "evidence": [ + "packages/libtmux/src/_internal/operations/shell.ts:246", + "packages/libtmux/src/session.ts:418" + ], + "scope": null + } + ], + "session.Session.getEnvironment": [ + { + "command": "show-environment", + "evidence": [ + "packages/libtmux/src/_internal/operations/environment.ts:70", + "packages/libtmux/src/session.ts:223" + ], + "scope": null + } + ], + "session.Session.kill": [ + { + "command": "kill-session", + "evidence": [ + "packages/libtmux/src/session.ts:339" + ], + "scope": null + } + ], + "session.Session.newWindow": [ + { + "command": "new-window", + "evidence": [ + "packages/libtmux/src/_internal/operations/plans.ts:71", + "packages/libtmux/src/_internal/operations/plans.ts:133", + "packages/libtmux/src/_internal/operations/mutations.ts:43", + "packages/libtmux/src/_internal/operations/mutations.ts:61", + "packages/libtmux/src/session.ts:307" + ], + "reviewed": true, + "scope": null + } + ], + "session.Session.removeEnvironment": [ + { + "command": "set-environment", + "evidence": [ + "packages/libtmux/src/_internal/operations/environment.ts:146", + "packages/libtmux/src/session.ts:257" + ], + "scope": null + } + ], + "session.Session.rename": [ + { + "command": "rename-session", + "evidence": [ + "packages/libtmux/src/_internal/operations/session_nav.ts:10", + "packages/libtmux/src/session.ts:367" + ], + "scope": null + } + ], + "session.Session.selectWindow": [ + { + "command": "last-window", + "evidence": [ + "packages/libtmux/src/_internal/operations/session_nav.ts:34", + "packages/libtmux/src/session.ts:378" + ], + "reviewed": true, + "scope": null, + "when": "the target is \"last\"" + }, + { + "command": "next-window", + "evidence": [ + "packages/libtmux/src/_internal/operations/session_nav.ts:35", + "packages/libtmux/src/session.ts:378" + ], + "reviewed": true, + "scope": null, + "when": "the target is \"next\"" + }, + { + "command": "previous-window", + "evidence": [ + "packages/libtmux/src/_internal/operations/session_nav.ts:37", + "packages/libtmux/src/_internal/operations/session_nav.ts:36", + "packages/libtmux/src/session.ts:378" + ], + "reviewed": true, + "scope": null, + "when": "the target is \"previous\"" + }, + { + "command": "select-window", + "evidence": [ + "packages/libtmux/src/_internal/operations/session_nav.ts:40", + "packages/libtmux/src/session.ts:378" + ], + "scope": null, + "when": "the target is not last, next or previous" + } + ], + "session.Session.setEnvironment": [ + { + "command": "set-environment", + "evidence": [ + "packages/libtmux/src/_internal/operations/environment.ts:98", + "packages/libtmux/src/session.ts:234" + ], + "scope": null + } + ], + "session.Session.setHook": [ + { + "command": "set-hook", + "evidence": [ + "packages/libtmux/src/_internal/operations/hooks.ts:70", + "packages/libtmux/src/session.ts:186" + ], + "scope": null + } + ], + "session.Session.setOption": [ + { + "command": "set-option", + "evidence": [ + "packages/libtmux/src/_internal/operations/options.ts:175", + "packages/libtmux/src/session.ts:144" + ], + "reviewed": true, + "scope": null + } + ], + "session.Session.showEnvironment": [ + { + "command": "show-environment", + "evidence": [ + "packages/libtmux/src/_internal/operations/environment.ts:43", + "packages/libtmux/src/session.ts:212" + ], + "scope": null + } + ], + "session.Session.showHooks": [ + { + "command": "show-hooks", + "evidence": [ + "packages/libtmux/src/_internal/operations/hooks.ts:31", + "packages/libtmux/src/session.ts:171" + ], + "scope": null + } + ], + "session.Session.showOptions": [ + { + "command": "show-options", + "evidence": [ + "packages/libtmux/src/_internal/operations/options.ts:114", + "packages/libtmux/src/session.ts:118" + ], + "reviewed": true, + "scope": null + } + ], + "session.Session.showResolvedOptions": [ + { + "command": "show-options", + "evidence": [ + "packages/libtmux/src/_internal/operations/options.ts:148", + "packages/libtmux/src/session.ts:133" + ], + "scope": null + } + ], + "session.Session.unsetEnvironment": [ + { + "command": "set-environment", + "evidence": [ + "packages/libtmux/src/_internal/operations/environment.ts:123", + "packages/libtmux/src/session.ts:245" + ], + "scope": null + } + ], + "session.Session.unsetHook": [ + { + "command": "set-hook", + "evidence": [ + "packages/libtmux/src/_internal/operations/hooks.ts:94", + "packages/libtmux/src/session.ts:197" + ], + "scope": null + } + ], + "session.Session.unsetOption": [ + { + "command": "set-option", + "evidence": [ + "packages/libtmux/src/_internal/operations/options.ts:201", + "packages/libtmux/src/session.ts:155" + ], + "reviewed": true, + "scope": null + } + ], + "window.Window.kill": [ + { + "command": "kill-window", + "evidence": [ + "packages/libtmux/src/window.ts:398" + ], + "scope": null + } + ], + "window.Window.link": [ + { + "command": "link-window", + "evidence": [ + "packages/libtmux/src/_internal/operations/topology.ts:59", + "packages/libtmux/src/window.ts:439" + ], + "scope": null + } + ], + "window.Window.move": [ + { + "command": "move-window", + "evidence": [ + "packages/libtmux/src/_internal/operations/topology.ts:46", + "packages/libtmux/src/window.ts:427" + ], + "scope": null + } + ], + "window.Window.nextLayout": [ + { + "command": "next-layout", + "evidence": [ + "packages/libtmux/src/_internal/operations/topology.ts:412", + "packages/libtmux/src/window.ts:318" + ], + "reviewed": true, + "scope": null + } + ], + "window.Window.previousLayout": [ + { + "command": "previous-layout", + "evidence": [ + "packages/libtmux/src/_internal/operations/topology.ts:412", + "packages/libtmux/src/window.ts:329" + ], + "reviewed": true, + "scope": null + } + ], + "window.Window.rename": [ + { + "command": "rename-window", + "evidence": [ + "packages/libtmux/src/_internal/operations/topology.ts:27", + "packages/libtmux/src/window.ts:411" + ], + "scope": null + } + ], + "window.Window.resize": [ + { + "command": "resize-window", + "evidence": [ + "packages/libtmux/src/_internal/operations/topology.ts:350", + "packages/libtmux/src/window.ts:358" + ], + "scope": null + } + ], + "window.Window.respawn": [ + { + "command": "respawn-window", + "evidence": [ + "packages/libtmux/src/_internal/operations/shell.ts:109", + "packages/libtmux/src/window.ts:372" + ], + "scope": null + } + ], + "window.Window.rotate": [ + { + "command": "rotate-window", + "evidence": [ + "packages/libtmux/src/_internal/operations/topology.ts:426", + "packages/libtmux/src/window.ts:343" + ], + "scope": null + } + ], + "window.Window.select": [ + { + "command": "select-window", + "evidence": [ + "packages/libtmux/src/window.ts:535" + ], + "scope": null + } + ], + "window.Window.selectLayout": [ + { + "command": "select-layout", + "evidence": [ + "packages/libtmux/src/_internal/operations/topology.ts:242", + "packages/libtmux/src/window.ts:524" + ], + "scope": null + } + ], + "window.Window.setHook": [ + { + "command": "set-hook", + "evidence": [ + "packages/libtmux/src/_internal/operations/hooks.ts:70", + "packages/libtmux/src/window.ts:206" + ], + "scope": null + } + ], + "window.Window.setOption": [ + { + "command": "set-option", + "evidence": [ + "packages/libtmux/src/_internal/operations/options.ts:175", + "packages/libtmux/src/window.ts:259" + ], + "reviewed": true, + "scope": null + } + ], + "window.Window.showHooks": [ + { + "command": "show-hooks", + "evidence": [ + "packages/libtmux/src/_internal/operations/hooks.ts:31", + "packages/libtmux/src/window.ts:195" + ], + "scope": null + } + ], + "window.Window.showOptions": [ + { + "command": "show-options", + "evidence": [ + "packages/libtmux/src/_internal/operations/options.ts:114", + "packages/libtmux/src/window.ts:233" + ], + "reviewed": true, + "scope": null + } + ], + "window.Window.showResolvedOptions": [ + { + "command": "show-options", + "evidence": [ + "packages/libtmux/src/_internal/operations/options.ts:148", + "packages/libtmux/src/window.ts:248" + ], + "scope": null + } + ], + "window.Window.split": [ + { + "command": "split-window", + "evidence": [ + "packages/libtmux/src/_internal/operations/plans.ts:97", + "packages/libtmux/src/_internal/operations/plans.ts:154", + "packages/libtmux/src/_internal/operations/mutations.ts:43", + "packages/libtmux/src/_internal/operations/mutations.ts:70", + "packages/libtmux/src/window.ts:285" + ], + "reviewed": true, + "scope": null + } + ], + "window.Window.swapWith": [ + { + "command": "swap-window", + "evidence": [ + "packages/libtmux/src/_internal/operations/topology.ts:93", + "packages/libtmux/src/window.ts:484" + ], + "scope": null + } + ], + "window.Window.unlink": [ + { + "command": "unlink-window", + "evidence": [ + "packages/libtmux/src/_internal/operations/topology.ts:71", + "packages/libtmux/src/window.ts:461" + ], + "scope": null + } + ], + "window.Window.unsetHook": [ + { + "command": "set-hook", + "evidence": [ + "packages/libtmux/src/_internal/operations/hooks.ts:94", + "packages/libtmux/src/window.ts:217" + ], + "scope": null + } + ], + "window.Window.unsetOption": [ + { + "command": "set-option", + "evidence": [ + "packages/libtmux/src/_internal/operations/options.ts:201", + "packages/libtmux/src/window.ts:270" + ], + "reviewed": true, + "scope": null + } + ], + "window.Window.unzoom": [ + { + "command": "if-shell", + "evidence": [ + "packages/libtmux/src/_internal/operations/topology.ts:295", + "packages/libtmux/src/window.ts:387" + ], + "scope": null + }, + { + "command": "resize-pane", + "evidence": [ + "packages/libtmux/src/_internal/operations/topology.ts:295", + "packages/libtmux/src/_internal/operations/topology.ts:297", + "packages/libtmux/src/window.ts:387" + ], + "reviewed": true, + "scope": null, + "when": "the window is zoomed" + } + ] + } +} diff --git a/site/src/lib/api-labels.ts b/site/src/lib/api-labels.ts index 915829d9e..d47699a63 100644 --- a/site/src/lib/api-labels.ts +++ b/site/src/lib/api-labels.ts @@ -39,3 +39,57 @@ export function abbreviateNamespace(namespace: string): string { return parts.map((part, index) => index % 2 === 0 && index < parts.length - 1 ? namespaceSegments.segment(part)[Symbol.iterator]().next().value?.segment ?? '' : part).join('') } + +/** + * Languages whose type names mean nothing without their module: Elixir writes a type as `name/arity` and calls + * each module's main type `t`, so `t/0` outside its own module has to be `Snapshot.t/0`. + */ +const OWNER_BOUND_TYPES: ReadonlySet = new Set(['elixir']) + +/** What the related-types label rule needs to know about one entry. */ +export interface RelatedLabelInput { + id: string + /** The label before this rule: the name, with the module of a top-level type whose name repeats. */ + label: string + name: string + /** The source-qualified spelling the page's own heading and title use. */ + qualifiedName: string + /** The declaration this one is a member of. */ + owner?: { id: string; name: string } + /** More than one type in the port has this name. */ + shared: boolean +} + +/** + * `Owner.name` or `Owner::name`: the owner's name and the separator the language's qualified name puts before the entry. + * An entry with no owner, or whose qualified name does not end in `owner.name`, is spelled in full. + */ +export function ownerQualifiedName({ name, qualifiedName, owner }: RelatedLabelInput): string { + const head = qualifiedName.endsWith(name) ? qualifiedName.slice(0, qualifiedName.length - name.length) : undefined + const separator = head?.match(/[^\w$]+$/)?.[0] + if (!owner || !head || !separator || !head.slice(0, head.length - separator.length).endsWith(owner.name)) return qualifiedName + return `${owner.name}${separator}${name}` +} + +/** + * The visible labels of one page's related types, in order. + * + * A bare name stands when it is unambiguous and the page's own subject owns it. An entry another declaration owns takes + * that owner when the language binds a type's name to its module, or when more than one type in the port carries the + * name. Entries that still share a label then take their owner, and last their full name, so no two read alike. + * Every other label is left as it was. + * + * `home` holds the ids of the page's subject and of what contains it; an entry that is one of them, or that one declares, + * is at home. + */ +export function relatedLabels(inputs: readonly RelatedLabelInput[], home: ReadonlySet, language?: string): string[] { + const bound = language !== undefined && OWNER_BOUND_TYPES.has(language) + const atHome = (input: RelatedLabelInput) => home.has(input.id) || (input.owner !== undefined && home.has(input.owner.id)) + const labels = inputs.map((input) => input.owner && !atHome(input) && (bound || input.shared) ? ownerQualifiedName(input) : input.label) + for (const spell of [ownerQualifiedName, (input: RelatedLabelInput) => input.qualifiedName]) { + const counts = new Map() + for (const label of labels) counts.set(label, (counts.get(label) ?? 0) + 1) + for (const [i, input] of inputs.entries()) if ((counts.get(labels[i]!) ?? 0) > 1) labels[i] = spell(input) + } + return labels +} diff --git a/site/src/lib/api-sections.ts b/site/src/lib/api-sections.ts index be398402c..361e0297f 100644 --- a/site/src/lib/api-sections.ts +++ b/site/src/lib/api-sections.ts @@ -1,6 +1,7 @@ import { createHash } from 'node:crypto' -import { builtinHref, memberTier, typeParametersOf, type ApiSymbol, type MemberSignals, type Param, type Signature, type SymbolIndex } from '@libtmux/api-model' +import { builtinHref, memberTier, moduleOf, qualifiedNameOf, typeParametersOf, type ApiModelBase, type ApiSymbol, type MemberSignals, type Param, type Signature, type SymbolIndex } from '@libtmux/api-model' import { apiGlossaryHref } from './api-glossary' +import { relatedLabels } from './api-labels' import { csharpParameters, supportsCSharpSignatures, supportsElixirSignatures, supportsGoSignatures, supportsJavaSignatures, supportsLuaSignatures, supportsRubySignatures, supportsRustSignatures, supportsTypeScriptSignatures, swiftBaseName } from './code-layout' export interface ApiSection { @@ -300,12 +301,15 @@ export function apiMemberGroups(members: ApiSymbol[], signals: MemberSignals) { return groups.filter((group) => group.members.length > 0) } +/** The declarations a related-types list can hold. */ +const RELATED_KINDS: ReadonlySet = new Set(['class', 'struct', 'union', 'interface', 'trait', 'enum', 'typealias']) + /** Related declarations come from ownership, inheritance and return types. */ export function relatedApiTypes(owner: ApiSymbol, members: ApiSymbol[], index: SymbolIndex, parent?: ApiSymbol, options: { includeInternal?: boolean } = {}) { const types = new Map() const add = (symbol?: ApiSymbol) => { if (!symbol || symbol.id === owner.id || (!options.includeInternal && symbol.apiScope === 'internal') || - !['class', 'struct', 'union', 'interface', 'trait', 'enum', 'typealias'].includes(symbol.kind)) return + !RELATED_KINDS.has(symbol.kind)) return types.set(symbol.publicId ?? symbol.id, symbol) } add(parent) @@ -325,6 +329,53 @@ export function relatedApiTypes(owner: ApiSymbol, members: ApiSymbol[], index: S return [...types.values()].slice(0, 6) } +export interface RelatedTypeLink { + /** The label the page shows. */ + name: string + /** Whether the label spells out the owner, so it breaks at the owner's separator. */ + qualified: boolean + /** The source-qualified name, for the link's title. */ + identity: string + kind: ApiSymbol['kind'] + href: string + symbol: ApiSymbol +} + +const typeNameCounts = new WeakMap>() +const symbolsById = new WeakMap>() + +/** + * The related types of a page with the label it shows for each; `repeated` counts the top-level types that share a name. + * `language` selects the owner-bound spelling of an Elixir type, see `relatedLabels`. + */ +export function relatedTypeLinks( + model: ApiModelBase, owner: ApiSymbol, members: ApiSymbol[], index: SymbolIndex, hrefFor: (symbol: ApiSymbol) => string, + options: { language?: string; repeated: ReadonlyMap; includeInternal?: boolean }, +): RelatedTypeLink[] { + let ids = symbolsById.get(model.symbols) + let names = typeNameCounts.get(model.symbols) + if (!ids || !names) { + ids = new Map(model.symbols.map((symbol) => [symbol.id, symbol])) + names = new Map() + for (const symbol of model.symbols) if (RELATED_KINDS.has(symbol.kind)) names.set(symbol.name, (names.get(symbol.name) ?? 0) + 1) + symbolsById.set(model.symbols, ids) + typeNameCounts.set(model.symbols, names) + } + const symbols = relatedApiTypes(owner, members, index, owner.parent ? ids.get(owner.parent) : undefined, { includeInternal: options.includeInternal }) + const inputs = symbols.map((symbol) => { + const declarer = symbol.parent ? ids.get(symbol.parent) : undefined + return { + id: symbol.id, name: symbol.name, qualifiedName: qualifiedNameOf(symbol), shared: (names.get(symbol.name) ?? 0) > 1, + label: (options.repeated.get(symbol.name) ?? 0) > 1 ? `${symbol.name} (${moduleOf(symbol)})` : symbol.name, + owner: declarer && { id: declarer.id, name: declarer.name }, + } + }) + const labels = relatedLabels(inputs, new Set([owner.id, ...(owner.parent ? [owner.parent] : [])]), options.language) + return symbols.map((symbol, i) => ({ + name: labels[i]!, qualified: labels[i] !== inputs[i]!.label, identity: qualifiedNameOf(symbol), kind: symbol.kind, href: hrefFor(symbol), symbol, + })) +} + /** Describe unnamed native types without inventing a compilable declaration. */ export function anonymousDeclarationLabel(symbol: ApiSymbol): string { return symbol.type ? `${symbol.name}: ${symbol.type}` : `Anonymous ${symbol.kind}` diff --git a/site/src/lib/link-preview-browser.ts b/site/src/lib/link-preview-browser.ts index 6bee37e40..aaf18b725 100644 --- a/site/src/lib/link-preview-browser.ts +++ b/site/src/lib/link-preview-browser.ts @@ -3,6 +3,7 @@ import type { CodeHighlight } from './highlight' import { linkPreviewTarget, linkPreviewCandidate, linkPreviewBlockLink, markLinkPreview } from './link-preview-paint' import { abbreviateNamespace, kindMark, markClass } from './api-labels' import { wordBreak } from './word-break' +import { limitPreviewSignature } from './preview-signature' export { linkPreviewTarget } from './link-preview-paint' const cache = new Map() @@ -62,7 +63,8 @@ export function renderPreviewKind(slot: HTMLElement | null, kind?: string) { /** Optional token metadata can fail independently of the real reference link. */ export function renderPreviewSignature(element: HTMLElement, preview: LinkPreview) { - const signature = preview.signature ?? '' + // The head of a declaration: a payload that carries more is cut here, and its highlighting no longer matches, so it is plain text. + const signature = limitPreviewSignature(preview.signature ?? '') const value = preview.signatureHighlight const color = (input: unknown) => typeof input === 'string' && /^#(?:[\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$/i.test(input) const object = (input: unknown): input is Record => !!input && typeof input === 'object' diff --git a/site/src/lib/link-preview.ts b/site/src/lib/link-preview.ts index 19286a888..044664d6a 100644 --- a/site/src/lib/link-preview.ts +++ b/site/src/lib/link-preview.ts @@ -2,6 +2,7 @@ import { docSummaryText, qualifiedNameOf, sourceUrl, type ApiModel, type ApiSymb import { productApiHref } from './product-api' import { apiGlossary } from './api-glossary' import { codeLang, highlightTokens, type CodeHighlight } from './highlight' +import { linkPreviewTarget } from './link-preview-paint' import { tmuxEntityHref } from './tmux-links' import { tmuxManual, tmuxManualEntities, tmuxManualEntityHref, tmuxManualUrl, type TmuxManualEntity } from './tmux-manual-data' @@ -41,6 +42,24 @@ export async function highlightedPreview(preview: LinkPreview): Promise/reference//` for a + * card whatever the page is, so a prose page in a reference section needs a payload as much as a declaration does. A page + * the policy does not mark, such as a guide, is left out: nothing asks for its card. + */ +export function proseReferencePreviews(pages: { title: string; description?: string; href: string }[]): { href: string; preview: LinkPreview }[] { + return pages.filter((page) => linkPreviewTarget(page.href, 'https://libtmux.org')) + .map((page) => ({ href: page.href, preview: pagePreview(page, page.href) })) +} + export function glossaryPreview(href: string): LinkPreview { const glossary = apiGlossary(href) return { schema: 1, title: glossary.title, description: glossary.description, href: glossary.path, diff --git a/site/src/lib/port-families.ts b/site/src/lib/port-families.ts new file mode 100644 index 000000000..7ebee4884 --- /dev/null +++ b/site/src/lib/port-families.ts @@ -0,0 +1,30 @@ +/** A heading in the port picker and the ports listed under it, in display order. */ +export interface PortFamily { + label: string + ports: string[] +} + +/** + * The picker's groups, in display order. Ports that share a language runtime + * (the JVM, .NET, the BEAM) sit in a group named for it; the rest are split + * by how they are built and run. A port belongs to one group. + */ +export const PORT_FAMILIES: readonly PortFamily[] = [ + { label: 'Scripting & web', ports: ['py', 'ruby', 'lua', 'julia', 'ts'] }, + { label: 'Compiled & native', ports: ['rs', 'go', 'cxx', 'swift'] }, + { label: 'JVM', ports: ['java', 'kotlin', 'scala'] }, + { label: '.NET', ports: ['csharp', 'fsharp', 'powershell'] }, + { label: 'BEAM', ports: ['elixir'] }, +] + +/** The label of the group that collects every port no family names. */ +export const OTHER_FAMILY_LABEL = 'Other languages' + +/** The groups to draw for these ports, ending with the ports no family names. */ +export function portFamilies(ports: readonly string[]): PortFamily[] { + const known = new Set(PORT_FAMILIES.flatMap((family) => family.ports)) + return [ + ...PORT_FAMILIES.map((family) => ({ label: family.label, ports: [...family.ports] })), + { label: OTHER_FAMILY_LABEL, ports: ports.filter((port) => !known.has(port)) }, + ] +} diff --git a/site/src/lib/ports.ts b/site/src/lib/ports.ts index f24343670..39f25d928 100644 --- a/site/src/lib/ports.ts +++ b/site/src/lib/ports.ts @@ -648,7 +648,7 @@ const CORE_PORTS: readonly Port[] = [ // Unselected source installs follow the default branch. git: { code: 'using Pkg\nPkg.add(PackageSpec(url="https://github.com/libtmux/libtmux-julia.git", rev="master"))', lang: 'julia' }, }, - installNote: 'Requires Julia 1.13.1 and tmux 3.7c or newer. JSON layouts require tmux 3.8. Companion packages install from the same revision as the core.', + installNote: 'Requires Julia 1.13.1 and tmux 3.3a or newer. JSON layouts require tmux 3.8. Companion packages install from the same revision as the core.', }, { slug: 'elixir', diff --git a/site/src/lib/preview-signature.ts b/site/src/lib/preview-signature.ts new file mode 100644 index 000000000..1b745fd76 --- /dev/null +++ b/site/src/lib/preview-signature.ts @@ -0,0 +1,22 @@ +/** + * How much of a declaration a preview card shows. + * + * A card is a glance before a reader decides to open the page, so it shows the head of a declaration and not all of it. + * One declaration in tmux's source, an anonymous enum of the key codes, is a single signature of hundreds of + * thousands of characters; a payload that carried it was most of a megabyte, and a card that rendered it laid out a + * wall of text. The page the card links to has the whole declaration. + * + * The payload is built with the limit and the browser applies it again, so a payload from any producer, or one written + * before the limit, cannot make a card heavy. + */ +export const PREVIEW_SIGNATURE_LINES = 12 +export const PREVIEW_SIGNATURE_CHARS = 1200 + +/** `signature` as it is shown: whole when it fits, otherwise its first lines and characters followed by a line that says so. */ +export function limitPreviewSignature(signature: string): string { + const lines = signature.split('\n') + let text = lines.slice(0, PREVIEW_SIGNATURE_LINES).join('\n') + let cut = lines.length > PREVIEW_SIGNATURE_LINES + if (text.length > PREVIEW_SIGNATURE_CHARS) { text = text.slice(0, PREVIEW_SIGNATURE_CHARS); cut = true } + return cut ? `${text.trimEnd()}\n…` : text +} diff --git a/site/src/lib/symbol-markdown.ts b/site/src/lib/symbol-markdown.ts index 2856f4dc8..693cf2453 100644 --- a/site/src/lib/symbol-markdown.ts +++ b/site/src/lib/symbol-markdown.ts @@ -6,6 +6,7 @@ import mentions from '../data/mentions.json' import { PORT_NAME, referenceAlternatives } from './api-models' import { apiCommandFacts, apiCommandRelatedLinks, apiEntryFields, apiMemberGroups, apiMethodDetails, anonymousDeclarationLabel, hasScalarMembers, nativeSignatureText, parameterBindingText, signatureMultiline, signatureParameterText, usesNativeSignatures } from './api-sections' import { tmuxCommandsFor, tmuxManualUrl } from './tmux-manual-data' +import { tmuxCommandItems, tmuxCommandRows, tmuxCommandSeparator, tmuxSymbolSends, type ResolvedUsage } from './tmux-reference' import { CATALOG_KINDS, tmuxCatalogKindsForSymbol, tmuxCatalogUrl } from './tmux-catalog' import { tmuxCommandMentions, tmuxMentionMarkdown } from './tmux-links' import { productApiIndex } from './product-api' @@ -31,6 +32,8 @@ export interface MarkdownContext { index?: SymbolIndex hrefFor?: (symbol: ApiSymbol) => string manualLinks?: { name: string; href: string }[] + /** The library methods that send the command a C declaration implements. */ + usage?: ResolvedUsage[] catalogLinks?: { name: string; href: string }[] paths?: ApiRelationshipPath[] symbol: ApiSymbol @@ -134,6 +137,18 @@ export async function symbolMarkdownWithLayout(ctx: MarkdownContext): Promise `${entry.name}: ${entry.links.map((link) => `[\`${link.label}\`](${link.href})`).join(', ')}`) + lines.push(`- ${group.scope?.label ?? 'Any scope'}${flag}${target}: ${ports.join('; ')}`) + } + return lines +} + export function symbolMarkdown(ctx: MarkdownContext): string { const { model, symbol } = ctx const port = 'port' in model ? model.port : undefined @@ -177,6 +192,13 @@ export function symbolMarkdown(ctx: MarkdownContext): string { if (facts.length) out.push(...facts, '') const commands = ctx.manualLinks ?? (port ? tmuxCommandsFor(port, symbol.publicId ?? symbol.id) .map((command) => ({ ...command, href: tmuxManualUrl('latest', command.name) })) : []) + for (const send of port && !ctx.manualLinks ? tmuxSymbolSends(port, symbol.publicId ?? symbol.id) : []) { + // The same items as the method page: each scope names the command and then its C function, set apart by a comma, and + // the scopes by a semicolon. A condition follows the scope it holds for. + const items = tmuxCommandItems(tmuxCommandRows([send], [])) + const written = items.map((item) => `[\`${item.command}\`](${item.href})${item.scope ? ` ${item.scope.label.toLowerCase()} scope${item.function ? `, [\`${item.function.name}\`](${item.function.href})` : ''}` : ''}${item.when ? ` (${item.when})` : ''}`) + out.push(`tmux command: ${written.join(tmuxCommandSeparator(items))}`, '') + } for (const command of commands) out.push(`tmux command: [\`${command.name}\`](${command.href})`, '') const catalog = ctx.catalogLinks ?? (port && !ctx.manualLinks ? tmuxCatalogKindsForSymbol(port, symbol) .map((kind) => ({ name: CATALOG_KINDS[kind].label, href: tmuxCatalogUrl('latest', kind) })) : []) @@ -364,6 +386,11 @@ export function symbolMarkdown(ctx: MarkdownContext): string { } } + if (ctx.usage?.length) { + out.push('## In libtmux', '') + for (const entry of ctx.usage) out.push(...usageMarkdown(entry), '') + } + // One trailing newline, so the file ends the way a text file should. let markdown = `${out.join('\n').trimEnd()}\n` if (language === 'julia' && index) { diff --git a/site/src/lib/tmux-library-usage.ts b/site/src/lib/tmux-library-usage.ts new file mode 100644 index 000000000..66402f8be --- /dev/null +++ b/site/src/lib/tmux-library-usage.ts @@ -0,0 +1,281 @@ +/** + * Which library symbols send which tmux commands, and at which scope. + * + * The data is `site/src/data/tmux-usage/.json`, written by + * `scripts/gen-tmux-usage.mjs` from each port's source at the revision its + * API model was extracted from. A symbol appears only where the source shows + * it sending the command, so a link here is a claim about the code. + */ +import { qualifiedNameOf, type ApiSymbol } from '@libtmux/api-model' +import { API_MODELS, PORT_NAME, referenceHref } from './api-models' +import { PORTS } from './ports' +import scopeTable from '../data/tmux-usage/scopes.json' +import csharp from '../data/tmux-usage/csharp.json' +import cxx from '../data/tmux-usage/cxx.json' +import elixir from '../data/tmux-usage/elixir.json' +import fsharp from '../data/tmux-usage/fsharp.json' +import go from '../data/tmux-usage/go.json' +import java from '../data/tmux-usage/java.json' +import julia from '../data/tmux-usage/julia.json' +import kotlin from '../data/tmux-usage/kotlin.json' +import lua from '../data/tmux-usage/lua.json' +import powershell from '../data/tmux-usage/powershell.json' +import py from '../data/tmux-usage/py.json' +import rs from '../data/tmux-usage/rs.json' +import ruby from '../data/tmux-usage/ruby.json' +import scala from '../data/tmux-usage/scala.json' +import swift from '../data/tmux-usage/swift.json' +import ts from '../data/tmux-usage/ts.json' + +/** One use of a command by a symbol, as the generator records it. */ +export interface UsageUse { + command: string + /** The command's scope, or `null` for a command that has none. */ + scope: string | null + /** `file:line` in the port's repository at its pinned revision, the send site first. */ + evidence: string[] + /** A reviewed claim the generator checked line by line, not a scan result. */ + reviewed?: boolean + /** Sent on the way to what the method is for, such as a probe that reads the target first: shown on the method, not listed on the command's pages. */ + incidental?: boolean + /** When the method sends it, for a send that only some calls make: a few words, shown beside the method. */ + when?: string + /** The core library symbol a wrapper forwards to, and the lines that show it sends. */ + via?: { port: string; symbol: string; revision?: string; evidence: string[]; reviewed?: boolean; incidental?: boolean } +} + +export interface UsageDocument { + schemaVersion: number + port: string + repo: string + revision: string + commands: string[] + symbols: Record +} + +export interface TmuxScope { + id: string + label: string + /** The flag that selects the scope in tmux, empty for the default. */ + flag: string + /** The target flag, for a scope selected by what the target names. */ + target?: string + /** The C function that lists at this scope. */ + function: string + /** Releases that dispatch on the scope inline, with no function for it. */ + inline?: string[] +} + +export const TMUX_USAGE: Record = { + csharp, cxx, elixir, fsharp, go, java, julia, kotlin, lua, powershell, py, rs, ruby, scala, swift, ts, +} as unknown as Record + +const SCOPES = scopeTable.commands as Record + +/** Commands whose usage the data records. */ +export function tmuxUsageCommands(): string[] { + return [...new Set(Object.values(TMUX_USAGE).flatMap((document) => document.commands))].sort() +} + +/** The scopes tmux gives a command, in the order its dispatch tests them. */ +export function tmuxScopes(command: string): TmuxScope[] { + return SCOPES[command]?.scopes ?? [] +} + +/** + * A direct sender is the symbol whose own body sends the command, and is + * listed. A call through a helper is recorded as evidence and shown with the + * method, but is listed on the command's pages only when the method's own name + * says it is for that command: `Pane.sendKeys` sends `send-keys` through a + * helper and is listed, while a method that refreshes a pane afterwards sends + * `list-panes` through one and is not. A wrapper is listed when the core method + * it forwards to is. + */ +export const LISTED_MAX_HOPS = 0 + +/** Words a method may use for the verb of a command, where the library's wording differs from tmux's. */ +const VERB_ALIASES: Record = { + list: ['list', 'search', 'find', 'get', 'all', 'snapshot', 'read'], + show: ['show', 'get', 'read', 'all'], + display: ['display', 'show'], + new: ['new', 'create', 'open', 'start'], + kill: ['kill', 'close', 'destroy', 'remove', 'delete'], + set: ['set', 'unset', 'append', 'configure', 'apply'], +} + +/** The lower-case words of a member name: `sendKeysAsync`, `send_keys` and `Send-TmuxText` each give `send` first. */ +function memberWords(name: string): string[] { + return name.replace(/([a-z0-9])([A-Z])/g, '$1 $2').split(/[^A-Za-z0-9]+/).map((word) => word.toLowerCase()) + .filter((word) => word && word !== 'async' && word !== 'tmux').map((word) => (/(?:ss|us|is)$/.test(word) ? word : word.replace(/s$/, ''))) +} + +/** Whether a member's name carries the verb of the command: `sendKeys` for `send-keys`, `Create` for `new`. */ +export function namesCommand(command: string, member: string): boolean { + const verb = command.split('-')[0] + const accepted = VERB_ALIASES[verb] ?? [verb] + return memberWords(member).some((word) => accepted.includes(word)) +} + +/** The member a symbol id ends with, without the owners before it or the argument labels after it: `Server.capture(_:includingHistory:)` gives `capture`. */ +const memberName = (id: string): string => id.replace(/\(.*$/s, '').split(/[.#:\\]+/).at(-1) ?? id + +/** + * Whether a use belongs on the command's own pages, and not only on the method's. + * + * @param members the names the use may be listed under: the symbol's own, and for a wrapper the core method's. + */ +export function isListed(use: UsageUse, ...members: string[]): boolean { + if (use.incidental) return false + if (use.reviewed) return true + if (use.via) return isListed({ command: use.command, scope: use.scope, evidence: use.via.evidence, reviewed: use.via.reviewed, incidental: use.via.incidental }, ...members, use.via.symbol) + return use.evidence.length - 1 <= LISTED_MAX_HOPS || members.some((member) => namesCommand(use.command, memberName(member))) +} + +const symbolIndexes = new Map>() +function symbolOf(port: string, publicId: string): ApiSymbol | undefined { + let index = symbolIndexes.get(port) + if (!index) { + index = new Map((API_MODELS[port]?.symbols ?? []).map((symbol) => [symbol.publicId ?? symbol.id, symbol])) + symbolIndexes.set(port, index) + } + return index.get(publicId) +} + +const TYPE_KINDS = new Set(['class', 'interface', 'struct', 'union', 'enum', 'trait', 'exception', 'typealias']) + +/** The type that owns a member, when it has one. An Elixir function belongs to its module, which is its only owner. */ +function ownerOf(port: string, symbol: ApiSymbol): ApiSymbol | undefined { + const parent = symbol.parent ? API_MODELS[port]?.symbols.find((entry) => entry.id === symbol.parent) : undefined + return parent && (TYPE_KINDS.has(parent.kind) || (port === 'elixir' && parent.kind === 'module')) ? parent : undefined +} + +/** Where the segment that names the owner starts in a qualified name, whole segments only: `Pane` is not the end of `NewPane`. */ +function ownerSegment(qualified: string, owner: string): number { + const parts = qualified.split(/(\.|::|#|:)/) + for (let index = parts.length - 3; index >= 0; index -= 2) { + if (parts[index] === owner) return parts.slice(0, index).join('').length + } + return -1 +} + +/** `Server.panes`, `Server#list_panes`, `Server::panes`: the member with the type that owns it. */ +export function usageLabel(port: string, symbol: ApiSymbol): string { + const owner = ownerOf(port, symbol) + if (!owner) return symbol.name + const qualified = qualifiedNameOf(symbol) + const at = ownerSegment(qualified, owner.name) + return at >= 0 ? qualified.slice(at) : `${owner.name}.${symbol.name}` +} + +/** + * Two methods of one language that share a label, such as Scala's plain and cats `Server.panes`, are told + * apart by the namespace that holds their type: `scaladsl.Server.panes` and `cats.Server.panes`. + */ +function apart(links: UsageLink[]): UsageLink[] { + const counts = Map.groupBy(links, (link) => link.label) + return links.map((link) => { + if (counts.get(link.label)!.length < 2 || !link.owner) return link + const symbol = symbolOf(link.port, link.symbolId) + const qualified = symbol ? qualifiedNameOf(symbol) : '' + const at = ownerSegment(qualified, link.owner) + // The namespace segment before the owner, with the separator that joins it: `cats.Server.panes`, `Async::Server#new_session`. + const before = /([A-Za-z_]\w*)(\.|::)$/.exec(qualified.slice(0, at)) + return before ? { ...link, label: `${before[1]}${before[2]}${qualified.slice(at)}` } : link + }) +} + +/** + * Methods of the object a scope names come first: `Server` for the server, + * `Session` for a session, `Window` for a window. Free functions follow, and + * a method of another type, which sends the command for its own purpose, last. + */ +function ownerRank(scope: TmuxScope | undefined, owner: string | undefined, hasOwner: boolean): number { + if (!scope || !hasOwner) return 1 + return owner?.toLowerCase() === scope.label.toLowerCase() ? 0 : 2 +} + +export interface UsageLink { + port: string + symbolId: string + label: string + kind: string + href: string + /** The name of the type that owns the symbol, when it has one. */ + owner?: string + scope: string | null + evidence: string[] + hops: number + reviewed: boolean + /** The condition under which the method sends it, when not every call does. */ + when?: string + via?: UsageUse['via'] +} + +export interface UsageGroup { + scope: TmuxScope | undefined + ports: { port: string; name: string; links: UsageLink[] }[] +} + +export interface CommandUsage { + command: string + /** One group per scope, or a single group without a scope for an unscoped command. */ + groups: UsageGroup[] +} + +function linkFor(port: string, publicId: string, use: UsageUse, version?: string): UsageLink | undefined { + const symbol = symbolOf(port, publicId) + const href = symbol && referenceHref(port, publicId, version) + if (!symbol || !href) return undefined + return { + port, symbolId: publicId, label: usageLabel(port, symbol), kind: symbol.kind, href, scope: use.scope, owner: ownerOf(port, symbol)?.name, + evidence: use.evidence, hops: use.evidence.length - 1, reviewed: Boolean(use.reviewed), ...(use.when ? { when: use.when } : {}), ...(use.via ? { via: use.via } : {}), + } +} + +/** + * The library symbols that send a command, by scope and then by port in the + * order the site lists ports. + * + * @param scope Keep only this scope, for the page of the C function that lists at it. + */ +export function tmuxUsage(command: string, { scope, version }: { scope?: string; version?: string } = {}): CommandUsage | undefined { + if (!tmuxUsageCommands().includes(command)) return undefined + const scopes = tmuxScopes(command) + const wanted: (TmuxScope | undefined)[] = scopes.length ? scopes.filter((candidate) => !scope || candidate.id === scope) : [undefined] + const groups = wanted.map((group): UsageGroup => ({ + scope: group, + ports: PORTS.flatMap((port) => { + const document = TMUX_USAGE[port.slug] + if (!document) return [] + const links = apart(Object.entries(document.symbols).flatMap(([publicId, uses]) => uses + .filter((use) => use.command === command && use.scope === (group?.id ?? null) && isListed(use, publicId)) + .flatMap((use) => linkFor(port.slug, publicId, use, version) ?? []))) + .sort((a, b) => ownerRank(group, a.owner, Boolean(a.owner)) - ownerRank(group, b.owner, Boolean(b.owner)) || a.label.localeCompare(b.label)) + return links.length ? [{ port: port.slug, name: PORT_NAME[port.slug] ?? port.name, links }] : [] + }), + })) + return groups.some((group) => group.ports.length) ? { command, groups } : undefined +} + +export interface SymbolUsage { + command: string + scopes: { scope: TmuxScope | undefined; evidence: string[]; hops: number; reviewed: boolean; listed: boolean; when?: string; via?: UsageUse['via'] }[] +} + +/** The commands one symbol sends, with the scope and the lines that show it. Every hop counts here. */ +export function tmuxUsageOf(port: string, publicId: string): SymbolUsage[] { + const uses = TMUX_USAGE[port]?.symbols[publicId] ?? [] + const byCommand = Map.groupBy(uses, (use) => use.command) + return [...byCommand].map(([command, list]) => { + const scopes = tmuxScopes(command) + return { + command, + scopes: scopes.length + ? scopes.flatMap((scope) => list.filter((use) => use.scope === scope.id).map((use) => ({ scope, evidence: use.evidence, hops: use.evidence.length - 1, reviewed: Boolean(use.reviewed), listed: isListed(use, publicId), when: use.when, via: use.via }))) + : list.map((use) => ({ scope: undefined, evidence: use.evidence, hops: use.evidence.length - 1, reviewed: Boolean(use.reviewed), listed: isListed(use, publicId), when: use.when, via: use.via })), + } + }) +} + +/** The commands the data records for a symbol, whatever the scope. */ +export const tmuxUsageCommandsOf = (port: string, publicId: string): string[] => tmuxUsageOf(port, publicId).map((entry) => entry.command) diff --git a/site/src/lib/tmux-manual-data.ts b/site/src/lib/tmux-manual-data.ts index 56baf3221..81498bd7d 100644 --- a/site/src/lib/tmux-manual-data.ts +++ b/site/src/lib/tmux-manual-data.ts @@ -10,6 +10,7 @@ import { PORT_BY_SLUG } from './ports' import { withPortRoot } from './site-root' import { rowAnchor } from './row-anchors' import { linkTmuxManualTree } from './tmux-manual' +import { tmuxUsage, tmuxUsageCommands } from './tmux-library-usage' export type TmuxManual = typeof v37 export type TmuxCommand = TmuxManual['commands'][number] @@ -197,16 +198,38 @@ export function tmuxGuidesFor(command: string) { .map((guide) => ({ title: guide.title, href: withPortRoot(`/tmux/${guide.path}/`) })) } -/** Link only declarations present in the integrated library models. */ +/** + * One library page per language for a command, for the language picker. + * + * A command with recorded usage names the symbol that sends it, at the widest + * scope the port has one for. A language without one falls back to the + * equivalent API that the concepts name, so the picker still lands somewhere. + */ export function tmuxApiLinks(command: string) { const seen = new Set() - return commandConcepts(command).flatMap((concept) => Object.entries(concept.symbols).flatMap(([port, id]) => { + const sent = tmuxUsage(command)?.groups.flatMap((group) => group.ports).flatMap((entry) => { + if (seen.has(entry.port)) return [] + seen.add(entry.port) + return [{ name: PORT_BY_SLUG[entry.port].name, href: entry.links[0].href }] + }) ?? [] + return [...sent, ...commandConcepts(command).flatMap((concept) => Object.entries(concept.symbols).flatMap(([port, id]) => { if (seen.has(port) || !API_MODELS[port]?.symbols.some((symbol) => (symbol.publicId ?? symbol.id) === id)) return [] const href = referenceHref(port, id) if (!href) return [] seen.add(port) return [{ name: PORT_BY_SLUG[port].name, href }] - })) + }))] +} + +/** + * What a command's "Use from a library" section lists: the recorded senders, or the equivalents the + * concepts name for a command whose usage is not recorded. A recorded command that nothing sends has + * no section, because an equivalent that does not send it would be a false link. + */ +export function tmuxLibrarySection(command: string): 'usage' | 'equivalents' | undefined { + if (tmuxUsage(command)) return 'usage' + if (tmuxUsageCommands().includes(command)) return undefined + return tmuxApiLinks(command).length ? 'equivalents' : undefined } /** Task-oriented notes complement the pinned manual; the native catalog gates flags. */ @@ -264,15 +287,22 @@ export function tmuxManualHeadings(version: string, slug?: string) { { depth: 2, slug: 'behavior', text: notes ? 'Options' : 'Behavior' }, ...(notes?.groups.map((group) => ({ depth: 3, slug: group.id, text: group.title })) ?? []), ...(tmuxGuidesFor(slug).length ? [{ depth: 2, slug: 'guides', text: 'Guides' }] : []), - ...(tmuxApiLinks(slug).length ? [{ depth: 2, slug: 'libraries', text: 'Use from a library' }] : []), + ...(tmuxLibrarySection(slug) ? [{ depth: 2, slug: 'libraries', text: 'Use from a library' }] : []), ].map((heading) => heading.depth === 2 ? { ...heading, slug: rowAnchor(slug, heading.text) } : heading) return [...new Set(reference.commands.map((entry) => entry.section))].map((section) => ({ depth: 2, slug: section.toLowerCase().replaceAll(' ', '-'), text: section[0] + section.slice(1).toLowerCase(), })) } -/** Match source-verified concepts to commands present in the selected manual. */ +/** + * Match source-verified concepts to commands present in the selected manual. + * + * A command whose usage the data records is left out: a concept names an + * equivalent API, and the usage names the symbols that send the command. + */ export function tmuxCommandsFor(port: string, publicId: string): TmuxCommand[] { const concepts = conceptsFor(port, publicId) - return tmuxManual('latest').commands.filter((command) => commandConcepts(command.name).some((concept) => concepts.includes(concept))) + const recorded = tmuxUsageCommands() + return tmuxManual('latest').commands.filter((command) => !recorded.includes(command.name) + && commandConcepts(command.name).some((concept) => concepts.includes(concept))) } diff --git a/site/src/lib/tmux-reference.ts b/site/src/lib/tmux-reference.ts index 351a5c685..83b24e81d 100644 --- a/site/src/lib/tmux-reference.ts +++ b/site/src/lib/tmux-reference.ts @@ -1,15 +1,18 @@ /** tmux source data adapted to the shared API reference and navigation. */ -import { navSidecarFor, pageSlug, type ApiSymbol, type SourceApiModel, type SymbolIndex } from '@libtmux/api-model' +import { docSummaryText, navSidecarFor, pageSlug, sourceUrl, type ApiSymbol, type SourceApiModel, type SymbolIndex } from '@libtmux/api-model' import v32 from '../data/tmux/api/3.2a.json?raw' import v37 from '../data/tmux/api/3.7c.json?raw' import pins from '../data/tmux/versions.json' import { createApiIndex, type PortNavData } from './api-models' +import type { LinkPreview } from './link-preview' +import { limitPreviewSignature } from './preview-signature' import { navTreeFor, referenceTreeFor, referenceBreadcrumbs } from './api-tree' import { apiRelationshipPath } from './api-relationships' import { PORTS } from './ports' import { withPortRoot } from './site-root' import { buildsTmuxDocumentation, TMUX_VERSIONS, tmuxApiLinks, tmuxManualUrl } from './tmux-manual-data' import { tmuxCatalogLinksForSource } from './tmux-catalog' +import { tmuxScopes, tmuxUsage, tmuxUsageCommands, tmuxUsageOf, type CommandUsage, type SymbolUsage, type TmuxScope, type UsageGroup } from './tmux-library-usage' export interface TmuxSourceModel extends SourceApiModel { commands: { name: string; entry: string; callback: string }[] @@ -173,18 +176,174 @@ export function tmuxReferenceTree(version = 'latest') { const model = tmuxSourceModel(version) return referenceTreeFor('tmux', model, navigation(model).tree) } -export function tmuxSourceCommands(version: string, symbol: ApiSymbol) { - return tmuxSourceModel(version).commands +const scopeFunctions = new Map() + +/** + * The C function that lists a command at one scope in a release. A release that dispatches inline has + * none, so the scope's column leads to the command's own function, where the dispatch is, unless the + * caller asks for the scope's function alone. + */ +export function tmuxScopeFunction(version: string, command: string, scope: TmuxScope, { inline = true }: { inline?: boolean } = {}): ApiSymbol | undefined { + const model = tmuxSourceModel(version) + const key = `${model.version}\0${command}\0${scope.id}` + const exec = model.symbols.find((entry) => entry.id === model.commands.find((candidate) => candidate.name === command)?.callback) + if (!scopeFunctions.has(key)) { + scopeFunctions.set(key, exec && model.symbols.find((entry) => entry.name === scope.function && entry.source.file === exec.source.file && entry.id.startsWith('c:function:'))) + } + return scopeFunctions.get(key) ?? (inline && scope.inline?.includes(model.version) ? exec : undefined) +} + +/** + * The commands a C declaration belongs to, and for a scope's function, that scope. + * A command's entry and callback answer for every scope. + */ +export function tmuxSourceUsage(version: string, symbol: ApiSymbol): { command: string; scope?: string }[] { + const direct = tmuxSourceModel(version).commands .filter((command) => command.entry === symbol.id || command.callback === symbol.id) - .map((command) => ({ name: command.name, href: tmuxManualUrl(version, command.name) })) + .map((command) => ({ command: command.name })) + const scoped = tmuxUsageCommands().flatMap((command) => tmuxScopes(command) + .filter((scope) => tmuxScopeFunction(version, command, scope, { inline: false })?.id === symbol.id) + .map((scope) => ({ command, scope: scope.id }))) + return [...direct, ...scoped] +} + +export function tmuxSourceCommands(version: string, symbol: ApiSymbol) { + return tmuxSourceUsage(version, symbol) + .map(({ command }) => ({ name: command, href: tmuxManualUrl(version, command) })) + .filter((entry, index, all) => all.findIndex((other) => other.name === entry.name) === index) +} + +export interface ResolvedUsageGroup extends UsageGroup { + /** The C function behind the scope, in the release the page describes. */ + function?: { name: string; href: string } +} +export interface ResolvedUsage extends Omit { + manualHref: string + groups: ResolvedUsageGroup[] +} + +/** A command's usage with each scope's C function linked in one release. */ +export function tmuxResolvedUsage(version: string, command: string, scope?: string): ResolvedUsage | undefined { + const usage = tmuxUsage(command, { scope }) + if (!usage) return undefined + return { + ...usage, + manualHref: tmuxManualUrl(version, command), + groups: usage.groups.map((group) => { + const target = group.scope && tmuxScopeFunction(version, command, group.scope) + return { ...group, ...(target ? { function: { name: target.name, href: tmuxReferenceUrl(version, target) } } : {}) } + }), + } } export function tmuxCommandSources(version: string, name: string) { const model = tmuxSourceModel(version) const command = model.commands.find((entry) => entry.name === name) - return command ? [command.entry, command.callback].flatMap((id) => { - const symbol = model.symbols.find((entry) => entry.id === id) - return symbol ? [{ name: symbol.name, href: tmuxReferenceUrl(version, symbol) }] : [] - }) : [] + const scoped = tmuxScopes(name).flatMap((scope) => tmuxScopeFunction(version, name, scope, { inline: false }) ?? []) + return command ? [...[command.entry, command.callback].flatMap((id) => model.symbols.find((entry) => entry.id === id) ?? []), ...scoped] + .map((symbol) => ({ name: symbol.name, href: tmuxReferenceUrl(version, symbol) })) : [] +} + +export interface SymbolSend extends Omit { + manualHref: string + scopes: (SymbolUsage['scopes'][number] & { function?: { name: string; href: string } })[] +} + +export interface CommandRow { + command: string + href: string + scopes: SymbolSend['scopes'] + /** When the symbol sends the command, if only some calls do and every scope says the same. A scope that says otherwise says it itself. */ + when?: string +} + +/** The one condition every scope of a send carries, or nothing when some scope carries another or none. */ +export function sharedWhen(send: Pick): string | undefined { + const first = send.scopes[0]?.when + return first !== undefined && send.scopes.every((use) => use.when === first) ? first : undefined +} + +/** + * The commands a symbol page names, in the order a reader should weigh them: + * what the symbol itself sends, then the commands it has an equivalent for, + * then what it sends through a helper, which is rarely why anyone is here. + */ +export function tmuxCommandRows(sends: SymbolSend[], equivalents: { name: string; href: string }[]): CommandRow[] { + const rows = (list: SymbolSend[]) => list.map((send): CommandRow => ({ + command: send.command, href: send.manualHref, scopes: send.scopes.filter((use) => use.scope), + ...(sharedWhen(send) ? { when: sharedWhen(send) } : {}), + })) + const direct = (send: SymbolSend) => send.scopes.some((use) => use.listed) + const sent = new Set(sends.map((send) => send.command)) + return [ + ...rows(sends.filter(direct)), + // A command the symbol is recorded as sending is named once, by what it sends. + ...equivalents.filter((entry) => !sent.has(entry.name)).map((entry): CommandRow => ({ command: entry.name, href: entry.href, scopes: [] })), + ...rows(sends.filter((send) => !direct(send))), + ] +} + +/** + * One destination pair of a method page's tmux command line: the command with the flag that picks the scope, and the C + * function that implements it at that scope. A command sent at three scopes is three items, so each reads whole. + */ +export interface CommandItem { + command: string + href: string + /** The scope this item sends the command at; a command with no scope is the command alone. */ + scope?: NonNullable + function?: { name: string; href: string } + when?: string + /** The line that sends, or for a wrapper the core call it makes: what the scope's tooltip cites. */ + evidence?: string +} + +/** The items of a command line, one for each scope a command is sent at and one for a command with none. */ +export function tmuxCommandItems(rows: CommandRow[]): CommandItem[] { + return rows.flatMap((row): CommandItem[] => row.scopes.length + ? row.scopes.map((use) => ({ + command: row.command, href: row.href, scope: use.scope!, + ...(use.function ? { function: use.function } : {}), + ...(use.when ? { when: use.when } : {}), + evidence: use.via ? `Calls ${use.via.symbol}: ${use.via.evidence[0]}` : use.evidence[0], + })) + : [{ command: row.command, href: row.href, ...(row.when ? { when: row.when } : {}) }]) +} + +/** + * What goes between the items of one line. A comma already separates a command from its C function, so a line that + * has one uses a semicolon between items, and a line of commands alone keeps the comma. + */ +export const tmuxCommandSeparator = (items: CommandItem[]) => items.some((item) => item.function) ? '; ' : ', ' + +/** The commands a library symbol sends, with each scope's manual and C function. */ +export function tmuxSymbolSends(port: string, publicId: string, version = 'latest'): SymbolSend[] { + return tmuxUsageOf(port, publicId).map((entry) => ({ + ...entry, + manualHref: tmuxManualUrl(version, entry.command), + scopes: entry.scopes.map((use) => { + const target = use.scope && tmuxScopeFunction(version, entry.command, use.scope) + return { ...use, ...(target ? { function: { name: target.name, href: tmuxReferenceUrl(version, target) } } : {}) } + }), + })) +} +/** + * The card a link to a declaration of tmux's C source opens, from the same record as the page it leads to. tmux's source + * carries no Doxygen briefs, so the card says where the declaration is and shows it, which is what a reader following a + * link from a method wants to see before leaving the page. A declaration longer than a card holds shows its head, and the + * page has all of it (`limitPreviewSignature`). + */ +export function tmuxReferencePreview(version: string, symbol: ApiSymbol): LinkPreview { + const model = tmuxSourceModel(version) + const full = symbol.signatures[0]?.raw ?? (symbol.value !== undefined ? `${symbol.name} = ${symbol.value}` : undefined) + const signature = full === undefined ? undefined : limitPreviewSignature(full) + const summary = symbol.doc?.summary ?? symbol.signatures.find((entry) => entry.doc?.summary)?.doc?.summary + return { + schema: 1, title: symbol.name, kind: symbol.kind, + description: summary ? docSummaryText(summary, 'c') : '', + detail: `Defined in ${symbol.source.file}${symbol.source.line ? `, line ${symbol.source.line}` : ''} of tmux ${model.version}.${signature !== full ? ' The card shows the first lines of the declaration.' : ''}`, + signature, signatureLanguage: signature ? 'c' : undefined, + href: tmuxReferenceUrl(version, symbol), source: sourceUrl(model, symbol), + } } export function tmuxReferenceRoutes() { return buildsTmuxDocumentation() ? TMUX_VERSIONS.flatMap((version) => [ @@ -214,7 +373,16 @@ export function tmuxReferenceContext(version: string, symbol?: ApiSymbol) { const model = tmuxSourceModel(version) const referenceNavigation = navigation(model) const commands = symbol ? tmuxSourceCommands(version, symbol) : [] - const equivalents = commands.flatMap((command) => tmuxApiLinks(command.name)) + const sources = symbol ? tmuxSourceUsage(version, symbol) : [] + const usage = sources.flatMap(({ command, scope }) => tmuxResolvedUsage(version, command, scope) ?? []) + const sent = new Map() + for (const entry of usage.flatMap((resolved) => resolved.groups.flatMap((group) => group.ports))) { + if (!sent.has(entry.port)) sent.set(entry.port, entry.links[0].href) + } + // The command's own pages offer a language that sends nothing the page of its + // equivalent API; a scope's page has no equivalent for a language without that scope. + const scopeOnly = sources.length > 0 && sources.every((entry) => entry.scope) + const equivalents = scopeOnly ? [] : commands.flatMap((command) => tmuxApiLinks(command.name)) return { model, version, label: 'tmux C', title: 'tmux C source reference', description: `C declarations from tmux ${model.version}. These are tmux internals, not a supported external library API.`, @@ -228,10 +396,11 @@ export function tmuxReferenceContext(version: string, symbol?: ApiSymbol) { ], ...referenceNavigation, index: tmuxReferenceIndex(version), paths: tmuxReferencePaths(version), manualLinks: commands, + usage, catalogLinks: symbol ? tmuxCatalogLinksForSource(version, symbol.name) : [], pagePorts: PORTS.map((port) => ({ port: port.slug, name: port.name, - links: [...new Set(equivalents.filter((entry) => entry.name === port.name).map((entry) => entry.href))] - .map((href) => ({ href })), + links: sent.has(port.slug) ? [{ href: sent.get(port.slug)! }] + : [...new Set(equivalents.filter((entry) => entry.name === port.name).map((entry) => entry.href))].map((href) => ({ href })), })), } } diff --git a/site/src/pages/[...slug].preview.json.ts b/site/src/pages/[...slug].preview.json.ts index f91458480..46f0b58c6 100644 --- a/site/src/pages/[...slug].preview.json.ts +++ b/site/src/pages/[...slug].preview.json.ts @@ -1,8 +1,12 @@ import type { APIRoute } from 'astro' +import { getCollection } from 'astro:content' import { API_MODELS } from '../lib/api-models' import { productApiHref } from '../lib/product-api' -import { symbolPreview, glossaryPreview, highlightedPreview, tmuxManualPreview, type LinkPreview } from '../lib/link-preview' -import { PORT_BY_SLUG, referenceUrl } from '../lib/ports' +import { symbolPreview, glossaryPreview, highlightedPreview, proseReferencePreviews, tmuxManualPreview, type LinkPreview } from '../lib/link-preview' +import { PORT_BY_SLUG, portPageUrl, referenceUrl } from '../lib/ports' +import { docsPath } from '../lib/docs-paths' +import { docsEntriesAvailable } from '../lib/page-port-links' +import { localeOf } from '../i18n/resolve' import { symbolsForProduct } from '@libtmux/api-model' import { buildTarget } from '../lib/versions' import { buildLocale, DEFAULT_LOCALE } from '../i18n/locales' @@ -11,7 +15,7 @@ import { mcpObjects } from '../lib/mcp-catalog' import { mcpObjectPreview } from '../lib/mcp-preview' import { tmuxManualRoutes, tmuxManualUrl } from '../lib/tmux-manual-data' -export function getStaticPaths() { +export async function getStaticPaths() { if (buildLocale() !== DEFAULT_LOCALE) return [] const buildPort = process.env.LIBTMUX_DOCS_PORT const buildBase = process.env.LIBTMUX_DOCS_BASE ?? '/' @@ -42,6 +46,14 @@ export function getStaticPaths() { paths.push(route(preview.href, preview)) } } + // Prose pages beside the declarations, such as a workspace's exit codes: the policy marks a link to one for a card too. + // A root build writes a product's pages, as it does a product's declarations; a port build writes all of the port's. + const entries = docsEntriesAvailable(await getCollection('docs', (entry) => localeOf(entry.id) === DEFAULT_LOCALE), buildPort) + .filter((entry) => entry.data.port && PORT_BY_SLUG[entry.data.port] && (buildPort || entry.data.product)) + for (const { href, preview } of proseReferencePreviews(entries.map((entry) => ({ + title: entry.data.title, description: entry.data.description, + href: portPageUrl(PORT_BY_SLUG[entry.data.port!], buildPort ? buildVersion : defaults[entry.data.port!] ?? 'latest', docsPath(entry)), + })))) paths.push(route(href, preview)) return paths } export const GET: APIRoute = async ({ props }) => new Response(JSON.stringify(await highlightedPreview(props.preview)), { diff --git a/site/src/pages/tmux/[version]/manual/[...slug].astro b/site/src/pages/tmux/[version]/manual/[...slug].astro index 60f7da714..f94f19433 100644 --- a/site/src/pages/tmux/[version]/manual/[...slug].astro +++ b/site/src/pages/tmux/[version]/manual/[...slug].astro @@ -2,7 +2,8 @@ import DocsLayout from '../../../../layouts/DocsLayout.astro' import SectionHeading from '../../../../components/SectionHeading.astro' import { Code } from 'astro-expressive-code/components' -import { tmuxCommandSources, tmuxReferenceUrl } from '../../../../lib/tmux-reference' +import TmuxUsage from '../../../../components/tmux/TmuxUsage.astro' +import { tmuxCommandSources, tmuxReferenceUrl, tmuxResolvedUsage } from '../../../../lib/tmux-reference' import { withRoot } from '../../../../lib/site-root' import type { PageSource } from '../../../../lib/markdown-twins' import { rowAnchor } from '../../../../lib/row-anchors' @@ -11,7 +12,7 @@ import { linkTmuxManualCatalog } from '../../../../lib/tmux-catalog-html' import type { SidebarItem } from '../../../../lib/sidebar' import { pagePortsFor } from '../../../../lib/page-ports-for' import { PORTS } from '../../../../lib/ports' -import { TMUX_REPOSITORY, tmuxApiLinks, tmuxCommandNotes, tmuxGuidesFor, tmuxManualHtml, tmuxManualDescription, tmuxManualHeadings, tmuxManualTitle, tmuxManual, tmuxManualRoutes, tmuxManualUrl } from '../../../../lib/tmux-manual-data' +import { TMUX_REPOSITORY, tmuxApiLinks, tmuxCommandNotes, tmuxGuidesFor, tmuxLibrarySection, tmuxManualHtml, tmuxManualDescription, tmuxManualHeadings, tmuxManualTitle, tmuxManual, tmuxManualRoutes, tmuxManualUrl } from '../../../../lib/tmux-manual-data' export function getStaticPaths() { return tmuxManualRoutes().map(({ version, slug }) => ({ params: { version, slug } })) @@ -49,6 +50,7 @@ const guides = tmuxGuidesFor(command?.name ?? '') const headings = tmuxManualHeadings(version, slug) const notes = tmuxCommandNotes(version, slug) const implementations = command ? tmuxCommandSources(version, command.name) : [] +const usage = command ? tmuxResolvedUsage(version, command.name) : undefined const source: PageSource = { repo: TMUX_REPOSITORY, path: 'tmux.1', ref: reference.sourceCommit } const manualHtml = command || isManual ? await highlightTmuxManual(linkTmuxManualCatalog( @@ -100,10 +102,15 @@ const manualHtml = command || isManual

Internal declarations in tmux {reference.version}:

} - {equivalents.length > 0 && <> + {tmuxLibrarySection(command.name) && <> Use from a library -

Each API describes its own defaults, errors and execution model.

- + {usage ? <> +

These methods send {command.name}. Each describes its own defaults, errors and execution model.

+ + : <> +

Each API describes its own defaults, errors and execution model.

+ + } } : isManual ?
: <>

Look up the flags and behavior supported by tmux {reference.version}. Choose the version installed on your machine with tmux -V.

diff --git a/site/src/pages/tmux/[version]/reference/[...slug].md.ts b/site/src/pages/tmux/[version]/reference/[...slug].md.ts index 8575c2d3d..0c769f8a2 100644 --- a/site/src/pages/tmux/[version]/reference/[...slug].md.ts +++ b/site/src/pages/tmux/[version]/reference/[...slug].md.ts @@ -2,7 +2,7 @@ import type { APIRoute } from 'astro' import { sourceUrl } from '@libtmux/api-model' import { symbolMarkdownWithLayout } from '../../../../lib/symbol-markdown' import { tmuxCatalogLinksForSource } from '../../../../lib/tmux-catalog' -import { tmuxReferenceIndex, tmuxReferencePaths, tmuxReferenceRoutes, tmuxReferenceUrl, tmuxSourceCommands, tmuxSourceModel } from '../../../../lib/tmux-reference' +import { tmuxReferenceContext, tmuxReferenceIndex, tmuxReferencePaths, tmuxReferenceRoutes, tmuxReferenceUrl, tmuxSourceCommands, tmuxSourceModel } from '../../../../lib/tmux-reference' export function getStaticPaths() { return tmuxReferenceRoutes().filter(({ symbol }) => symbol).map(({ version, symbol }) => ({ @@ -18,6 +18,7 @@ export const GET: APIRoute = async ({ props, site }) => { source: sourceUrl(model, symbol), hrefFor: (entry) => tmuxReferenceUrl(version, entry), manualLinks: tmuxSourceCommands(version, symbol), + usage: tmuxReferenceContext(version, symbol).usage, catalogLinks: tmuxCatalogLinksForSource(version, symbol.name), paths: tmuxReferencePaths(version), }), { headers: { 'Content-Type': 'text/markdown; charset=utf-8' } }) diff --git a/site/src/pages/tmux/[version]/reference/[...slug].preview.json.ts b/site/src/pages/tmux/[version]/reference/[...slug].preview.json.ts new file mode 100644 index 000000000..e2f12f2ca --- /dev/null +++ b/site/src/pages/tmux/[version]/reference/[...slug].preview.json.ts @@ -0,0 +1,13 @@ +import type { APIRoute } from 'astro' +import { highlightedPreview } from '../../../../lib/link-preview' +import { tmuxReferencePreview, tmuxReferenceRoutes } from '../../../../lib/tmux-reference' + +/** A preview for every declaration page, at the address the link-preview policy asks for: the page's path with `.preview.json`. */ +export function getStaticPaths() { + return tmuxReferenceRoutes().filter(({ symbol }) => symbol).map(({ version, symbol }) => ({ + params: { version, slug: symbol!.slug }, props: { version, symbol: symbol! }, + })) +} +export const GET: APIRoute = async ({ props }) => new Response(JSON.stringify(await highlightedPreview(tmuxReferencePreview(props.version, props.symbol))), { + headers: { 'Content-Type': 'application/json; charset=utf-8' }, +}) diff --git a/site/src/styles/api.css b/site/src/styles/api.css index 183c11915..78b5f7d4b 100644 --- a/site/src/styles/api.css +++ b/site/src/styles/api.css @@ -179,6 +179,12 @@ dl.gp-sphinx-api-container > dt.gp-sphinx-api-header:only-child { opacity: 0.6; } +/* A method that sends a tmux command names the flag and the C function behind it. */ +.tmux-send { margin-inline-start: 0.25rem; } +.tmux-send > * + * { margin-inline-start: 0.25rem; } +/* A command a method sends only on some calls says when, quieter than the command. */ +.tmux-when { margin-inline-start: 0.25rem; opacity: 0.65; font-size: 0.85em; } + /* * The member list on a type's page. * @@ -868,7 +874,7 @@ dl.py.gp-sphinx-api-container > dd > :first-child > dl.field-list:first-child { /* The last parameter's heading sits inside a grid item, beyond the reach of the chain above. */ dl.py.gp-sphinx-api-container > dd > .gp-sphinx-api-parameters:last-child > dl.field-list > dd:last-child > ul.api-parameters > li:last-child > .api-parameter-heading:last-child { margin-bottom: 0; } -.api-related-types { margin-top: 2rem; } +.api-related-types, .api-tmux-usage { margin-top: 2rem; } .api-related-cards { display: grid; gap: 0.75rem; margin-top: 0.75rem; } .api-related-card { padding: 0.875rem 1rem; border: 1px solid var(--color-edge); border-radius: 0.4rem; } .api-related-card:hover { background: var(--color-surface); } diff --git a/site/src/styles/kind-marks.css b/site/src/styles/kind-marks.css index 49baf2934..1d7a395f6 100644 --- a/site/src/styles/kind-marks.css +++ b/site/src/styles/kind-marks.css @@ -219,7 +219,7 @@ */ @property --sp-h { syntax: ''; inherits: true; initial-value: 0px; } @property --sp-pb { syntax: ''; inherits: true; initial-value: 0px; } -:is(.api-elsewhere-value, .api-command-related, nav.api-related) a:has(> .api-nav__kind) { +:is(.api-elsewhere-value, .api-command-related, .tmux-usage, nav.api-related) a:has(> .api-nav__kind) { --sp-h: round(1.6em, 2px); --sp-pb: round(calc((var(--sp-h) - 2px - .875 * 1cap) / 2), var(--mark-step)); display: inline-flex; @@ -238,7 +238,7 @@ background: color-mix(in srgb, var(--color-foreground-primary, currentColor) 4%, transparent); text-decoration: none; } -:is(.api-elsewhere-value, .api-command-related, nav.api-related) a > .api-nav__kind { +:is(.api-elsewhere-value, .api-command-related, .tmux-usage, nav.api-related) a > .api-nav__kind { --mk-w: 1.6em; --mk-bwv: 0px; --mk-fill: color-mix(in srgb, var(--mk-hue, currentColor) 18%, var(--background-color, transparent)); /* The mark is one line tall and stays on the first line, however many lines the name takes. */ @@ -250,7 +250,7 @@ border-inline-end: 1px solid color-mix(in srgb, var(--mk-hue, currentColor) 30%, transparent); border-radius: 0; } -:is(.api-elsewhere-value, .api-command-related, nav.api-related) a > .api-nav__kind + code { +:is(.api-elsewhere-value, .api-command-related, .tmux-usage, nav.api-related) a > .api-nav__kind + code { /* * The last line's baseline keeps its gap from the bottom edge. The top margin reserves exactly the space the first * line has in a one-line chip (a hair less, so a single line never grows it), so the first line sits level with @@ -268,11 +268,31 @@ text-decoration: none; } @supports not (text-box: trim-both cap alphabetic) { - :is(.api-elsewhere-value, .api-command-related, nav.api-related) a > .api-nav__kind + code { margin: 0 0 var(--sp-pb); line-height: 1; } + :is(.api-elsewhere-value, .api-command-related, .tmux-usage, nav.api-related) a > .api-nav__kind + code { margin: 0 0 var(--sp-pb); line-height: 1; } } +/* A related or elsewhere chip darkens its surface on hover and focus; its mark takes the tree's active treatment, as any hovered link's does. */ :is(.api-elsewhere-value, .api-command-related, nav.api-related) a:has(> .api-nav__kind):is(:hover, :focus-visible) { background: color-mix(in srgb, var(--color-foreground-primary, currentColor) 9%, transparent); } +/* + * In the usage table hover and focus act on the whole chip, so it reads as one control: the surface and the border + * darken together and the mark keeps the fill it rests with. The loud active mark and its 2px ring are the selected + * row of the navigation tree; a ring on the mark alone overhangs the chip's rounded corner. Focus is one outline + * around the whole chip, clear of its edge. The related and elsewhere chips keep what they had. + */ +.tmux-usage a:has(> .api-nav__kind):is(:hover, :focus-visible) { + background: color-mix(in srgb, var(--color-foreground-primary, currentColor) 9%, transparent); + border-color: color-mix(in srgb, var(--color-foreground-primary, currentColor) 40%, transparent); +} +.tmux-usage a:has(> .api-nav__kind):is(:hover, :focus-visible) > .api-nav__kind { + background: var(--mk-fill, var(--mk-bg, transparent)); + color: var(--mk-ink, var(--mk-fg, inherit)); + box-shadow: var(--mk-shadow, none); +} +.tmux-usage a:has(> .api-nav__kind):focus-visible { + outline: 2px solid var(--focus-ring-color); + outline-offset: 2px; +} /* In the contents column each chip is its own row: as wide as its content, with an even gap between rows. */ .api-page-contents nav.api-related ul { display: grid; gap: .5rem; justify-items: start; } .api-page-contents nav.api-related a:has(> .api-nav__kind) { display: flex; } @@ -369,6 +389,15 @@ color: HighlightText; border-color: Highlight; } + /* A hovered chip of the usage table changes as a whole, in its border; its mark stays as it rests. */ + .tmux-usage a:has(> .api-nav__kind):is(:hover, :focus-visible) { + border-color: Highlight; + } + .tmux-usage a:has(> .api-nav__kind):is(:hover, :focus-visible) > .api-nav__kind { + background: Canvas; + color: CanvasText; + border-color: CanvasText; + } } /* More contrast: the border at full strength. */ diff --git a/site/test/browse-cards.test.ts b/site/test/browse-cards.test.ts index 15a32a85d..4a399e962 100644 --- a/site/test/browse-cards.test.ts +++ b/site/test/browse-cards.test.ts @@ -28,7 +28,7 @@ const cards = (section: string, port?: string) => describe('shared browse cards', () => { it.each([ - ['guides', 6], ['concepts', 4], ['topics', 10], ['examples', 3], + ['guides', 7], ['concepts', 4], ['topics', 10], ['examples', 3], ] as const)('keeps the %s destinations in shared and native version mounts', (section, count) => { const shared = cards(section) expect(shared).toHaveLength(count) diff --git a/site/test/chip-growth.test.ts b/site/test/chip-growth.test.ts index bfeeae36a..1659a79d1 100644 --- a/site/test/chip-growth.test.ts +++ b/site/test/chip-growth.test.ts @@ -9,7 +9,7 @@ import { judgeChipGrowth, railProblems } from '../scripts/check-badge-centring.m */ const marks = readFileSync(new URL('../src/styles/kind-marks.css', import.meta.url), 'utf8') -const CHIPS = ':is(.api-elsewhere-value, .api-command-related, nav.api-related)' +const CHIPS = ':is(.api-elsewhere-value, .api-command-related, .tmux-usage, nav.api-related)' /** The declarations of the rule whose selector is `selector`, comments removed. */ function declarations(css: string, selector: string): Record | undefined { const plain = css.replace(/\/\*[\s\S]*?\*\//g, '') diff --git a/site/test/chip-state.outer.test.ts b/site/test/chip-state.outer.test.ts new file mode 100644 index 000000000..d02f9d277 --- /dev/null +++ b/site/test/chip-state.outer.test.ts @@ -0,0 +1,109 @@ +import { readdirSync, readFileSync } from 'node:fs' +import { join } from 'node:path' +import { fileURLToPath } from 'node:url' +import { chromium, type Browser, type Page } from 'playwright' +import { afterAll, beforeAll, describe, expect, it } from 'vitest' + +/** + * The usage table's chips darken their border on hover, keep their mark as it rests and focus with one outline. The + * chips beside them (Related APIs, a command's related chips, In other ports) behave as they did on main, and this + * says so by painting both stylesheets in a real browser. `fixtures/kind-marks.main.css` is `kind-marks.css` as main + * served it when the usage table was added; every other sheet is the one in the tree, so only that file differs. + */ +const STYLES = fileURLToPath(new URL('../src/styles/', import.meta.url)) +const MAIN = readFileSync(fileURLToPath(new URL('./fixtures/kind-marks.main.css', import.meta.url)), 'utf8') +const sheets = [...readdirSync(STYLES).filter((name) => name.endsWith('.css')), ...readdirSync(join(STYLES, 'vendor')).filter((name) => name.endsWith('.css')).map((name) => `vendor/${name}`)] + .filter((name) => /api-nav__kind|api-badge|--mk-/.test(readFileSync(join(STYLES, name), 'utf8'))) +const css = (marks: string): string[] => sheets.map((name) => (name === 'kind-marks.css' ? marks : readFileSync(join(STYLES, name), 'utf8'))) +const CURRENT = readFileSync(join(STYLES, 'kind-marks.css'), 'utf8') + +/** The usage rules as they were when they applied to every chip: the scope this change narrows. */ +const SITEWIDE = CURRENT.replace(/^\.tmux-usage a:has\(> \.api-nav__kind\)/gm, ':is(.api-elsewhere-value, .api-command-related, .tmux-usage, nav.api-related) a:has(> .api-nav__kind)') + .replace(/^ {2}\.tmux-usage a:has\(> \.api-nav__kind\)/gm, ' :is(.api-elsewhere-value, .api-command-related, .tmux-usage, nav.api-related) a:has(> .api-nav__kind)') + +const mark = '' +const chip = (id: string, wrap: (link: string) => string) => `

${wrap(`${mark}Server.panes`)}

` +const CHIPS = { + related: (link: string) => ``, + elsewhere: (link: string) => `${link}`, + command: (link: string) => ``, + usage: (link: string) => `
${link}
`, +} +const body = Object.entries(CHIPS).map(([name, wrap]) => chip(name, wrap)).join('') + +const CHIP_PROPERTIES = ['background-color', 'border-top-color', 'border-right-color', 'border-bottom-color', 'border-left-color', 'box-shadow', 'outline-style', 'outline-width', 'outline-color', 'outline-offset', 'color'] +const MARK_PROPERTIES = ['background-color', 'border-top-color', 'border-right-color', 'border-bottom-color', 'border-left-color', 'box-shadow', 'color'] + +type Painted = Record> + +/** The computed style of each chip and its mark at rest, hovered and focused by keyboard, in one load of `sheets`. */ +async function painted(page: Page, marks: string): Promise { + await page.emulateMedia({ colorScheme: 'light', reducedMotion: 'reduce' }) + await page.setContent(`${css(marks).map((sheet) => ``).join('')}${body}`) + const read = (id: string) => page.evaluate(({ id, chipProperties, markProperties }) => { + const link = document.getElementById(id)! + const style = (node: Element, names: string[]) => Object.fromEntries(names.map((name) => [name, getComputedStyle(node).getPropertyValue(name)])) + return { ...Object.fromEntries(Object.entries(style(link, chipProperties)).map(([name, value]) => [`chip ${name}`, value])), ...Object.fromEntries(Object.entries(style(link.querySelector('.api-nav__kind')!, markProperties)).map(([name, value]) => [`mark ${name}`, value])) } + }, { id, chipProperties: CHIP_PROPERTIES, markProperties: MARK_PROPERTIES }) + const result: Painted = {} + for (const id of Object.keys(CHIPS)) { + await page.mouse.move(0, 0) + await page.evaluate(() => (document.activeElement as HTMLElement | null)?.blur()) + result[`${id} at rest`] = await read(id) + await page.hover(`#${id}`) + result[`${id} hovered`] = await read(id) + await page.mouse.move(0, 0) + // Tab to the chip, so the focus is the keyboard's and :focus-visible matches. + for (let tries = 0; tries < 8 && (await page.evaluate(() => document.activeElement?.id)) !== id; tries++) await page.keyboard.press('Tab') + expect(await page.evaluate((id) => document.getElementById(id)!.matches(':focus-visible'), id), `${id} is focused by keyboard`).toBe(true) + result[`${id} focused`] = await read(id) + } + return result +} + +/** The properties that differ between two loads, by state. */ +const differences = (left: Painted, right: Painted, ids: string[]): string[] => Object.keys(left).filter((state) => ids.includes(state.split(' ')[0]!)).flatMap((state) => + Object.keys(left[state]!).filter((name) => left[state]![name] !== right[state]![name]).map((name) => `${state}: ${name} ${right[state]![name]} became ${left[state]![name]}`)) + +let browser: Browser +let page: Page +let main: Painted +beforeAll(async () => { + browser = await chromium.launch({ headless: true }) + page = await browser.newPage() + main = await painted(page, MAIN) +}) +afterAll(async () => { await browser?.close() }) + +const OTHERS = ['related', 'elsewhere', 'command'] + +describe('the hover and focus of a chip, against main', () => { + it('paints a Related APIs chip, a command\'s related chip and an In other ports chip, at rest, hovered and focused, as main does', async () => { + const now = await painted(page, CURRENT) + expect(differences(now, main, OTHERS)).toEqual([]) + }) + + it('measures something: the states differ from rest, and the usage table\'s chip hovers and focuses differently from main\'s', async () => { + const now = await painted(page, CURRENT) + // A hovered related chip darkens its surface, and a keyboard focus is a state the browser paints. + expect(now['related hovered']!['chip background-color']).not.toBe(now['related at rest']!['chip background-color']) + // The usage table's chip darkens its border and rings the whole chip on focus; main never styled it. + expect(now['usage hovered']!['chip border-top-color']).not.toBe(main['usage hovered']!['chip border-top-color']) + expect(now['usage hovered']!['chip border-top-color']).not.toBe(now['usage at rest']!['chip border-top-color']) + expect(now['usage focused']!['chip outline-style']).toBe('solid') + expect(now['usage focused']!['chip outline-width']).toBe('2px') + // Its mark keeps the fill and shadow it rests with. + expect(now['usage hovered']!['mark background-color']).toBe(now['usage at rest']!['mark background-color']) + expect(now['usage hovered']!['mark box-shadow']).toBe(now['usage at rest']!['mark box-shadow']) + }) + + it('notices the usage rules applied to every chip, which is how they once shipped', async () => { + expect(SITEWIDE).not.toBe(CURRENT) + const sitewide = await painted(page, SITEWIDE) + const moved = differences(sitewide, main, OTHERS) + expect(moved.some((line) => /related hovered: chip border-top-color/.test(line)), moved.join('\n')).toBe(true) + expect(moved.some((line) => /related focused: chip outline-style/.test(line)), moved.join('\n')).toBe(true) + expect(moved.some((line) => /related hovered: mark box-shadow/.test(line)), moved.join('\n')).toBe(true) + }) +}) diff --git a/site/test/documentation-picker-interaction.test.ts b/site/test/documentation-picker-interaction.test.ts index 3381a9c40..acb547b3e 100644 --- a/site/test/documentation-picker-interaction.test.ts +++ b/site/test/documentation-picker-interaction.test.ts @@ -5,6 +5,7 @@ import { experimental_AstroContainer } from 'astro/container' import { pagePortLinks, type PagePortLink } from '../src/lib/page-port-links' import { API_MODELS } from '../src/lib/api-models' import { PORTS, productAvailable } from '../src/lib/ports' +import { PORT_FAMILIES } from '../src/lib/port-families' import ts from 'typescript' import { Window, type HTMLAnchorElement, type HTMLElement } from 'happy-dom' import { afterEach, beforeEach, expect, it, vi } from 'vitest' @@ -126,6 +127,7 @@ async function renderPicker(entries: PagePortLink[], portSlug = 'julia') { const component = await compile('../src/components/PagePortSwitcher.astro', { '../lib/ports': new URL('../src/lib/ports.ts', import.meta.url).href, '../lib/branding': new URL('../src/lib/branding.ts', import.meta.url).href, + '../lib/port-families': new URL('../src/lib/port-families.ts', import.meta.url).href, '../lib/site-root': root, './tmux/Logo.astro': logo, }) return (await import(/* @vite-ignore */ component)).default @@ -134,6 +136,18 @@ async function renderPicker(entries: PagePortLink[], portSlug = 'julia') { win.document.body.innerHTML = await container.renderToString(await pickerComponent, { props: { entries, portSlug } }) } +it('draws each port once, under its family, with Elixir under BEAM', async () => { + await renderPicker(pagePortLinks({ pagePath: 'reference/glossary', portSlug: 'elixir', version: 'latest', defaults: {}, docs: [] }), 'elixir') + const drawn = Array.from(win.document.querySelectorAll('.port-family')).map((section) => ({ + label: section.querySelector('h3')!.textContent, + ports: [...new Set(Array.from(section.querySelectorAll('[data-port]')).map((row) => row.getAttribute('data-port')))], + })) + expect(drawn.map((family) => family.label)).toEqual(PORT_FAMILIES.map((family) => family.label)) + expect(drawn.find((family) => family.label === 'BEAM')?.ports).toEqual(['elixir']) + expect(drawn.filter((family) => family.ports.includes('elixir'))).toHaveLength(1) + expect(drawn.flatMap((family) => family.ports).sort()).toEqual(PORTS.map((port) => port.slug).sort()) +}) + it('renders safe native glossary destinations without JavaScript', async () => { const entries = pagePortLinks({ pagePath: 'reference/glossary', portSlug: 'scala', version: 'latest', defaults: {}, docs: [] }) await renderPicker(entries, 'scala') diff --git a/site/test/fixtures/kind-marks.main.css b/site/test/fixtures/kind-marks.main.css new file mode 100644 index 000000000..49baf2934 --- /dev/null +++ b/site/test/fixtures/kind-marks.main.css @@ -0,0 +1,382 @@ +/* + * The kind mark and the treatments that adapt it to its context. + * + * One mark everywhere: a tuned per-mode tint on the six-family palette in + * `api-kinds.css`, built em-scaled, sans 600. Three rules choose how loud it is: + * + * 1. Fill follows crowding. Alone, a tint; a short run or a column, an outline + * or a split chip; a long run, chrome, or no colour budget, ink. + * 2. The word appears wherever the reader cannot hover: headings (the legend + * chip), menus, tables, tooltips. + * 3. Solid is a state or a hero, never a default. A pill is status, never kind. + * + * Centring. A mark's box snaps to an even height with `round()`, and its + * baseline snaps to a whole pixel from the box floor, so the ink centres at any + * sub-pixel position and zoom. The label is trimmed to the cap height, or the + * x-height for a m o r and the colon (`data-mark`), and sits on that floor. + * Centring the em box instead leaves capitals about half a pixel high and + * x-height letters low, and the baseline and the box edge round apart. + */ + +:root { --mark-step: 1px; } +@media (min-resolution: 2dppx) { :root { --mark-step: .5px; } } +@media (min-resolution: 3dppx) { :root { --mark-step: .3333px; } } + +/* ---- The mark ---- */ + +.api-nav__kind { + --mk-w: 1.35em; --mk-r: .2em; --mk-bw: 1px; --mk-gh: calc(.8 * 1cap); + --mk-bh: round(var(--mk-w), 2px); + display: inline-flex; + align-items: flex-end; + justify-content: center; + flex: none; + box-sizing: border-box; + min-width: var(--mk-bh); + height: var(--mk-bh); + padding: 0 0 round(calc((var(--mk-bh) - 2 * var(--mk-bwv, var(--mk-bw)) - var(--mk-gh)) / 2), var(--mark-step)); + border: var(--mk-bw) solid var(--mk-bd, color-mix(in srgb, var(--mk-hue, currentColor) var(--mark-border-alpha), transparent)); + border-radius: var(--mk-r); + background: var(--mk-fill, var(--mk-bg, transparent)); + color: var(--mk-ink, var(--mk-fg, inherit)); + box-shadow: var(--mk-shadow, none); + font: 600 min(1em, 1.25rem)/1 var(--font-sans, ui-sans-serif, system-ui, sans-serif); + white-space: nowrap; + vertical-align: middle; + align-self: center; +} +.api-nav__kind > .api-badge__label { + display: block; + font-size: .8em; + line-height: 1; + text-box: trim-both cap alphabetic; +} +.api-nav__kind > .api-badge__label[data-mark='x'], +.api-nav__kind > .api-badge__label[data-mark='col'] { text-box: trim-both ex alphabetic; } +.api-nav__kind:has(> [data-mark='x']) { --mk-gh: calc(.8 * (1ex + .01em)); } +.api-nav__kind:has(> [data-mark='col']) { --mk-gh: calc(.8 * 1ex); } +.api-nav__kind:has(> [data-mark='asc']) { --mk-gh: calc(.8 * (1cap + .04em)); } +.api-nav__kind:has(> [data-mark='tee']) { --mk-gh: calc(.8 * (1cap - .035em)); } + +/* Without text-box, centre the em box and lift the x-height marks. */ +@supports not (text-box: trim-both cap alphabetic) { + .api-nav__kind { align-items: center; padding-bottom: 0; } + .api-nav__kind > .api-badge__label[data-mark='x'] { translate: 0 -.06em; } +} + +/* ---- Treatments by context ---- */ + +/* T outline, in a fixed gutter: the navigation tree, its search results, and member and index lists. */ +:is(.api-nav, .api-member-list, .api-index-card__heading, .api-related-cards) .api-nav__kind { + --mk-fill: transparent; + --mk-bd: color-mix(in srgb, var(--mk-hue, currentColor) 60%, transparent); +} + +/* U ink: secondary navigation, the contents column, and tables. No hue, so chrome stays calm. */ +:is(a.sidebar-link, summary a, .api-page-contents, .api-contents, table) .api-nav__kind { + --mk-fill: color-mix(in srgb, var(--color-foreground-primary, currentColor) 7%, transparent); + --mk-bd: color-mix(in srgb, var(--color-foreground-primary, currentColor) 14%, transparent); + --mk-ink: var(--color-foreground-primary, currentColor); +} + +/* T outline on an opaque base: a callout tints its own surface, so the mark keeps the page colour under its outline. */ +:is(.aside, aside[role='note']) .api-nav__kind { + --mk-fill: var(--background-color, Canvas); + --mk-bd: color-mix(in srgb, var(--mk-hue, currentColor) 60%, transparent); +} + +/* ---- The active state ---- */ + +/* + * The selected node, the targeted heading and the hovered or focused link: + * the one loud mark. Solid in the family hue, or a 2px ring where white on the + * solid step is under 4.5:1. + */ +.api-nav__leaf[aria-current='page'] > .api-nav__kind, +.api-nav__row:has(> [aria-current='page']) > .api-nav__kind, +:is(a, summary):is(:hover, :focus-visible) > .api-nav__kind, +:is(h1, h2, h3, h4, h5, h6):target .api-nav__kind { + background: var(--mk-act-bg, var(--mk-fill, var(--mk-bg))); + color: var(--mk-act-fg, var(--mk-fg)); + border-color: var(--mk-hue, currentColor); + box-shadow: var(--mk-act-ring, none); +} + +/* ---- The legend chip: mark and word in one token ---- */ + +/* + * One box with one border and radius. The mark and the word are equal-height + * segments inside it, split by a 1px divider with the mark on a darker tint. + * They are one line of text: both sit on the same snapped baseline, and the run + * is centred as a whole by its cap height, never each segment on its own. + * Registered lengths resolve the em units once, on the chip. + */ +@property --leg-h { syntax: ''; inherits: true; initial-value: 0px; } +@property --leg-pb { syntax: ''; inherits: true; initial-value: 0px; } + +.api-badge.api-leg { + --leg-h: round(1.35em, 2px); + --leg-pb: round(calc((var(--leg-h) - 2px - .8 * 1cap) / 2), var(--mark-step)); + display: inline-flex; + align-items: stretch; + box-sizing: border-box; + height: var(--leg-h); + padding: 0; + overflow: hidden; + vertical-align: middle; + border: 1px solid color-mix(in srgb, var(--mk-hue, currentColor) var(--mark-border-alpha), transparent); + border-radius: .2em; + background: var(--mk-bg, transparent); + color: var(--mk-fg, inherit); + font: 600 .8125rem/1 var(--font-sans, ui-sans-serif, system-ui, sans-serif); + letter-spacing: 0; + text-transform: none; + text-decoration: none; + white-space: nowrap; +} +.api-leg__m { + display: flex; + align-items: flex-end; + justify-content: center; + min-width: 1.3em; + padding: 0 .4em var(--leg-pb); + border-inline-end: 1px solid color-mix(in srgb, var(--mk-hue, currentColor) var(--mark-border-alpha), transparent); + background: color-mix(in srgb, var(--mk-hue, currentColor) 22%, var(--mk-bg, transparent)); +} +.api-leg__g { display: block; font-size: .8em; line-height: 1; text-box: trim-both cap alphabetic; } +.api-leg__w { + display: flex; + align-items: flex-end; + padding: 0 .55em var(--leg-pb) .5em; + font-size: .8em; + line-height: 1; +} +.api-leg__wl { display: block; text-box: trim-both cap alphabetic; } +@supports not (text-box: trim-both cap alphabetic) { + .api-leg__m, .api-leg__w { align-items: center; padding-bottom: 0; } +} + +/* A plain kind word, for a table's kind column and the trailing word of a list row or a result. */ +.api-kind-word { + color: var(--color-foreground-muted); + font: .75rem/1.3 var(--font-sans, ui-sans-serif, system-ui, sans-serif); + text-transform: none; + letter-spacing: 0; +} + +/* ---- Navigation: the gutter, and the word that trails a result ---- */ + +/* + * In the API tree, marks sit in one fixed column and the names indent after + * them, so a reader scans down the left edge to filter methods from properties. + * A tree whose groups name their kind (`data-marks='mixed'`, the MCP sidebar) + * has no gutter: a row's mark, where it has one, is inline before its name at + * the row's normal gap, and a row without a mark starts at the row's indent. + */ +.api-nav:not([data-marks='mixed']) .api-nav__row { + padding-inline-start: .5rem; +} +.api-nav:not([data-marks='mixed']) .api-nav__row > .api-nav__label { + padding-inline-start: calc((var(--level, 1) - 1) * var(--api-nav-indent)); +} +.api-nav:not([data-marks='mixed']) .api-nav__row:not(:has(> .api-nav__kind)) > .api-nav__label { + padding-inline-start: calc(1.35em + .25rem + (var(--level, 1) - 1) * var(--api-nav-indent)); +} +.api-nav__results strong > .api-kind-word { margin-inline-start: auto; padding-inline-start: .5rem; font-weight: 400; } + +/* ---- A mark that leads a bare name ---- */ + +/* + * One rule for every place a compact mark precedes a name that is not in a code + * chip: index and tool cards, and the rows of a member list. The mark and the + * name are one run, centred as a unit: a gap clear of the name, and the mark's + * baseline raised by half the difference between the name's capital height and + * the mark's ink, so the two share a centre. A card's link is a row that holds + * the mark on the first line's baseline when a long name wraps. (The name's own + * code chip, in prose, supplies part of that gap with its padding.) + */ +:root { --mark-gap: .5em; } +:is(.api-index-card:not(.api-related-card) .api-index-card__link, .api-member-list li > span:first-child) > .api-nav__kind:first-child { + align-self: baseline; + vertical-align: baseline; + position: relative; + top: calc(-1 * round(calc((1cap - var(--mk-gh)) / 2), var(--mark-step))); + margin-inline-end: var(--mark-gap); +} +.api-index-card:not(.api-related-card) .api-index-card__link:has(> .api-nav__kind:first-child) { + display: flex; + align-items: baseline; + gap: 0; +} + +/* ---- A split chip: the mark and the name bound into one token ---- */ + +/* + * Contiguous runs ("In other ports", related APIs): the mark is the cap of a + * single outlined chip, the name sits on a quiet surface, and the chip replaces + * the link underline. The cap and the name are one line of text: both sit on + * the name's snapped baseline. + */ +@property --sp-h { syntax: ''; inherits: true; initial-value: 0px; } +@property --sp-pb { syntax: ''; inherits: true; initial-value: 0px; } +:is(.api-elsewhere-value, .api-command-related, nav.api-related) a:has(> .api-nav__kind) { + --sp-h: round(1.6em, 2px); + --sp-pb: round(calc((var(--sp-h) - 2px - .875 * 1cap) / 2), var(--mark-step)); + display: inline-flex; + align-items: stretch; + gap: 0; + box-sizing: border-box; + /* One line keeps the snapped height; a name that wraps at its points grows the chip instead of spilling out of it. */ + min-height: var(--sp-h); + max-inline-size: 100%; + /* The contents column pads and flags its links; a chip's box is its own. */ + padding: 0; + overflow: hidden; + vertical-align: middle; + border: 1px solid color-mix(in srgb, var(--color-foreground-primary, currentColor) 16%, transparent); + border-radius: .25em; + background: color-mix(in srgb, var(--color-foreground-primary, currentColor) 4%, transparent); + text-decoration: none; +} +:is(.api-elsewhere-value, .api-command-related, nav.api-related) a > .api-nav__kind { + --mk-w: 1.6em; --mk-bwv: 0px; + --mk-fill: color-mix(in srgb, var(--mk-hue, currentColor) 18%, var(--background-color, transparent)); + /* The mark is one line tall and stays on the first line, however many lines the name takes. */ + align-self: flex-start; + height: calc(var(--sp-h) - 2px); + min-width: 1.6em; + padding-bottom: var(--sp-pb); + border-width: 0; + border-inline-end: 1px solid color-mix(in srgb, var(--mk-hue, currentColor) 30%, transparent); + border-radius: 0; +} +:is(.api-elsewhere-value, .api-command-related, nav.api-related) a > .api-nav__kind + code { + /* + * The last line's baseline keeps its gap from the bottom edge. The top margin reserves exactly the space the first + * line has in a one-line chip (a hair less, so a single line never grows it), so the first line sits level with + * the mark, and each line after it adds one line of height to the chip. + */ + align-self: flex-end; + margin: calc(var(--sp-h) - 2px - var(--sp-pb) - 1cap - .1px) 0 var(--sp-pb); + padding: 0 .45em; + border: 0; + background: none; + font-size: .875em; + /* The text is trimmed to its cap and baseline, so this spaces the lines of a wrapped name and does not move one line. */ + line-height: 1.3; + text-box: trim-both cap alphabetic; + text-decoration: none; +} +@supports not (text-box: trim-both cap alphabetic) { + :is(.api-elsewhere-value, .api-command-related, nav.api-related) a > .api-nav__kind + code { margin: 0 0 var(--sp-pb); line-height: 1; } +} +:is(.api-elsewhere-value, .api-command-related, nav.api-related) a:has(> .api-nav__kind):is(:hover, :focus-visible) { + background: color-mix(in srgb, var(--color-foreground-primary, currentColor) 9%, transparent); +} +/* In the contents column each chip is its own row: as wide as its content, with an even gap between rows. */ +.api-page-contents nav.api-related ul { display: grid; gap: .5rem; justify-items: start; } +.api-page-contents nav.api-related a:has(> .api-nav__kind) { display: flex; } +/* In the contents column the cap is ink, like the rest of the chrome. */ +.api-page-contents nav.api-related a > .api-nav__kind { + --mk-fill: color-mix(in srgb, var(--color-foreground-primary, currentColor) 7%, transparent); + --mk-ink: var(--color-foreground-primary, currentColor); + border-inline-end-color: color-mix(in srgb, var(--color-foreground-primary, currentColor) 14%, transparent); +} + +/* ---- Modifier chips: outline-only, on the legend chip's geometry ---- */ + +/* + * Kind is filled and a modifier is an outline, so an entry has one loud thing. + * A modifier keeps its gp-sphinx hue (async violet, abstract indigo, classmethod + * and static amber, final and readonly green, the rest a readable grey), taken + * from the tokens in the vendored stylesheet, which scopes them to `dl.py`; they + * apply here wherever a modifier sits. Text is the token's ink, never a muted + * grey on a transparent fill. Deprecated is a status and takes the warning ink. + * A package names the container of a type, so it takes the types hue. + * + * The chip is the legend chip's box: the same snapped height, radius and sans + * 600 word, trimmed to its cap height on a whole-pixel baseline, so a row of + * kind and modifiers reads as one family. + */ +/* gp-sphinx's light amber ink is 4.4:1 on the declaration band; five percent darker clears 4.5:1 and keeps the hue. Dark takes the token as it is. */ +:root { --md-amber-fg: color-mix(in srgb, var(--gp-sphinx-badge-mod-classmethod-fg) 95%, #000); } +[data-theme-mode='dark'] { --md-amber-fg: var(--gp-sphinx-badge-mod-classmethod-fg); } +.api-badge--mod { + --md-fg: var(--gp-sphinx-badge-mod-default-fg); + --md-bd: var(--gp-sphinx-badge-mod-default-border); +} +.api-badge--mod-async { --md-fg: var(--gp-sphinx-badge-mod-async-fg); --md-bd: var(--gp-sphinx-badge-mod-async-border); } +.api-badge--mod-abstract { --md-fg: var(--gp-sphinx-badge-mod-abstract-fg); --md-bd: var(--gp-sphinx-badge-mod-abstract-border); } +.api-badge--mod-classmethod, .api-badge--mod-static { --md-fg: var(--md-amber-fg); --md-bd: var(--gp-sphinx-badge-mod-classmethod-border); } +.api-badge--mod-final, .api-badge--mod-readonly { --md-fg: var(--gp-sphinx-badge-mod-final-fg); --md-bd: var(--gp-sphinx-badge-mod-final-border); } +.api-badge--mod-deprecated { --md-fg: var(--api-ink-keyword); --md-bd: var(--api-ink-danger-border); } +.api-badge--mod-package { --md-fg: var(--mark-types-fg); --md-bd: var(--mark-types-hue); } + +/* The doubled class outranks the vendored `dl.py .api-badge--mod`, which would otherwise repaint a deprecated or package chip grey. */ +.api-badge.api-badge--mod.api-badge--mod { + --leg-h: round(1.35em, 2px); + --leg-pb: round(calc((var(--leg-h) - 2px - .8 * 1cap) / 2), var(--mark-step)); + display: inline-flex; + align-items: flex-end; + box-sizing: border-box; + height: var(--leg-h); + max-inline-size: 100%; + padding: 0 .4em var(--leg-pb); + overflow: hidden; + vertical-align: middle; + border: 1px solid var(--md-bd); + border-radius: .2em; + background: transparent; + color: var(--md-fg); + font: 600 .8125rem/1 var(--font-sans, ui-sans-serif, system-ui, sans-serif); + letter-spacing: 0; + text-transform: none; + text-decoration: none; + white-space: nowrap; +} +.api-badge--mod > .api-badge__label { display: block; font-size: .8em; line-height: 1; text-box: trim-both cap alphabetic; } +@supports not (text-box: trim-both cap alphabetic) { + .api-badge.api-badge--mod.api-badge--mod { align-items: center; padding-bottom: 0; } +} + +/* ---- Print, forced colours and increased contrast ---- */ + +/* Print is ink: tints stripped, a 1px border, the glyph in black. */ +@media print { + .api-nav__kind, .api-badge.api-leg, .api-leg__m, .api-badge.api-badge--mod.api-badge--mod { + background: transparent !important; + color: #000 !important; + border-color: #000 !important; + box-shadow: none !important; + } + .api-leg__m { border-inline-end-color: #000 !important; } +} + +/* Forced colours: an outline in system colours, Highlight where active. */ +@media (forced-colors: active) { + .api-nav__kind, .api-badge.api-leg, .api-badge.api-badge--mod.api-badge--mod { + forced-color-adjust: none; + background: Canvas; + color: CanvasText; + border-color: CanvasText; + box-shadow: none; + } + .api-leg__m { background: Canvas; border-inline-end-color: CanvasText; } + .api-nav__leaf[aria-current='page'] > .api-nav__kind, + .api-nav__row:has(> [aria-current='page']) > .api-nav__kind, + :is(a, summary):is(:hover, :focus-visible) > .api-nav__kind { + background: Highlight; + color: HighlightText; + border-color: Highlight; + } +} + +/* More contrast: the border at full strength. */ +@media (prefers-contrast: more) { + .api-nav__kind, .api-badge.api-leg, .api-badge.api-badge--mod.api-badge--mod { + --mk-bd: currentColor; + --md-bd: currentColor; + border-color: currentColor; + } + .api-leg__m { border-inline-end-color: currentColor; } +} diff --git a/site/test/just-clean.test.ts b/site/test/just-clean.test.ts new file mode 100644 index 000000000..9aafce945 --- /dev/null +++ b/site/test/just-clean.test.ts @@ -0,0 +1,254 @@ +import { execFileSync, spawn, spawnSync, type SpawnSyncReturns } from 'node:child_process' +import { copyFileSync, mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs' +import { tmpdir } from 'node:os' +import { dirname, join } from 'node:path' +import { fileURLToPath } from 'node:url' +import { afterAll, describe, expect, it } from 'vitest' + +/** + * `just clean` removes ignored output and nothing the build depends on, and + * `just nuke` removes everything it says it removes. + * + * The recipes run in a scratch repository that has this repository's own + * .gitignore plus the .env rules a developer adds. The build cache and the lock + * file are ignored, so only the recipe's exclusions keep them. Both deleting + * recipes refuse while an assembly holds .build.lock, as `pnpm run clean` does. + * The `just` runs need the binary on PATH and skip without it. + */ +const ROOT = join(dirname(fileURLToPath(import.meta.url)), '../..') +const scratch = mkdtempSync(join(tmpdir(), 'just-clean-')) +afterAll(() => rmSync(scratch, { recursive: true, force: true })) + +/** The command lines of one recipe, read from the justfile the project ships. */ +export function recipe(justfile: string, name: string): string[] { + const lines = justfile.split('\n') + const start = lines.findIndex((line) => line.startsWith(`${name}:`)) + if (start === -1) throw new Error(`no recipe named ${name}`) + const body: string[] = [] + for (const line of lines.slice(start + 1)) { + if (!/^\s+\S/.test(line)) break + body.push(line.trim()) + } + return body +} + +/** The prompt of a recipe's `[confirm("...")]` attribute, if it has one. */ +export function confirmPrompt(justfile: string, name: string): string | undefined { + const lines = justfile.split('\n') + const start = lines.findIndex((line) => line.startsWith(`${name}:`)) + if (start === -1) throw new Error(`no recipe named ${name}`) + for (let index = start - 1; index >= 0 && lines[index].startsWith('['); index--) { + const prompt = lines[index].match(/^\[confirm\("(.*)"\)\]$/) + if (prompt) return prompt[1] + } + return undefined +} + +/** The `git clean` line of a recipe body. */ +function gitClean(body: string[]): string { + const line = body.find((candidate) => candidate.startsWith('git clean')) + if (line === undefined) throw new Error('recipe has no git clean line') + return line +} + +/** A repository with ignored, kept and untracked files, ready to be cleaned. */ +function fixture(): string { + const dir = mkdtempSync(join(scratch, 'repo-')) + const git = (...args: string[]) => execFileSync('git', ['-c', 'user.name=t', '-c', 'user.email=t@t', ...args], { cwd: dir }) + git('init', '-q') + copyFileSync(join(ROOT, '.gitignore'), join(dir, '.gitignore')) + writeFileSync(join(dir, '.gitignore'), `${readFileSync(join(dir, '.gitignore'), 'utf8')}.env\n.env.*\n`) + git('add', '.gitignore') + git('commit', '-q', '-m', 'ignore rules') + for (const path of ['node_modules/pkg/index.js', '.build-cache/shell-1/page.html', '_site/index.html', 'sub/.env']) { + mkdirSync(dirname(join(dir, path)), { recursive: true }) + writeFileSync(join(dir, path), 'x\n') + } + for (const path of ['.build.lock', '.env', '.env.local', 'untracked.txt', 'debug.log']) writeFileSync(join(dir, path), 'x\n') + return dir +} + +let scripts = 0 + +/** A recipe that blocks, such as a `flock` that waits, fails the test instead of hanging it. */ +const RECIPE_TIMEOUT_MS = 10_000 + +/** Runs a recipe body the way `just` does: a shebang body as a script, else one shell line. */ +function attempt(dir: string, body: string[]): SpawnSyncReturns { + if (body[0]?.startsWith('#!')) { + const script = join(scratch, `recipe-${scripts++}.sh`) + writeFileSync(script, `${body.join('\n')}\n`) + return spawnSync('bash', [script], { cwd: dir, encoding: 'utf8', timeout: RECIPE_TIMEOUT_MS }) + } + return spawnSync('sh', ['-c', body.join('\n')], { cwd: dir, encoding: 'utf8', timeout: RECIPE_TIMEOUT_MS }) +} + +function run(dir: string, body: string[]): string[] { + const result = attempt(dir, body) + if (result.status !== 0) throw new Error(`recipe exited ${result.status}: ${result.stderr}`) + return result.stdout.split('\n').filter(Boolean) +} + +/** Every file in the repository outside .git, as the recipes leave it. */ +function files(dir: string): string[] { + return execFileSync('find', ['.', '-path', './.git', '-prune', '-o', '-type', 'f', '-print'], { cwd: dir, encoding: 'utf8' }) + .split('\n') + .filter(Boolean) + .sort() +} + +/** Holds `.build.lock` as an assembly does, until the returned function releases it. */ +async function holdLock(dir: string): Promise<() => Promise> { + const holder = spawn('flock', [join(dir, '.build.lock'), 'sh', '-c', 'echo held; read release'], { stdio: ['pipe', 'pipe', 'inherit'] }) + await new Promise((resolve, reject) => { + holder.once('error', reject) + holder.stdout.once('data', () => resolve()) + }) + return () => + new Promise((resolve) => { + holder.once('exit', () => resolve()) + holder.stdin.end('\n') + }) +} + +/** What `just nuke` leaves: the tracked .gitignore and the .env files, at any depth. */ +const LEFT_BY_NUKE = ['./.env', './.env.local', './.gitignore', './sub/.env'] + +describe('just clean', () => { + const justfile = readFileSync(join(ROOT, 'justfile'), 'utf8') + const exclusions = (command: string) => command.match(/-e '[^']+'/g) ?? [] + + it('lists ignored output and keeps the build cache, the lock and .env files', () => { + const listed = run(fixture(), recipe(justfile, 'clean-dry')) + expect(listed).toContain('Would remove node_modules/') + expect(listed).toContain('Would remove _site/') + expect(listed).toContain('Would remove debug.log') + for (const kept of ['.build-cache', '.build.lock', '.env', '.env.local', 'sub/', 'untracked.txt']) { + expect(listed.filter((line) => line.includes(kept))).toEqual([]) + } + }) + + it('removes what the dry run lists and nothing more', () => { + const dir = fixture() + run(dir, recipe(justfile, 'clean')) + expect(files(dir)).toEqual([ + './.build-cache/shell-1/page.html', + './.build.lock', + './.env', + './.env.local', + './.gitignore', + './sub/.env', + './untracked.txt', + ]) + }) + + it('previews with the exclusions it deletes with', () => { + expect(exclusions(gitClean(recipe(justfile, 'clean')))).toEqual(exclusions(gitClean(recipe(justfile, 'clean-dry')))) + }) + + it('would delete the cache, the lock and .env files without the exclusions', () => { + const listed = run(fixture(), ['git clean -ndX']) + for (const removed of ['.build-cache/', '.build.lock', '.env', '.env.local']) { + expect(listed.filter((line) => line.includes(removed))).not.toEqual([]) + } + }) + + it('reads a recipe body and rejects an unknown recipe', () => { + expect(recipe('a:\n one\n two\n\nb:\n three\n', 'a')).toEqual(['one', 'two']) + expect(() => recipe('a:\n one\n', 'missing')).toThrow('no recipe named missing') + }) + + it('reads a confirm prompt and tells a recipe without one', () => { + expect(confirmPrompt('[group: \'x\']\n[confirm("Sure?")]\na:\n one\n', 'a')).toBe('Sure?') + expect(confirmPrompt('a:\n one\n', 'a')).toBeUndefined() + }) +}) + +describe.each(['clean', 'nuke'])('just %s while an assembly runs', (name) => { + const justfile = readFileSync(join(ROOT, 'justfile'), 'utf8') + + it('refuses while .build.lock is held, deletes nothing, and runs once it is released', async () => { + const dir = fixture() + const before = files(dir) + const release = await holdLock(dir) + try { + const refused = attempt(dir, recipe(justfile, name)) + expect(refused.status).toBe(1) + expect(refused.stderr).toContain('an assembly holds .build.lock') + expect(files(dir)).toEqual(before) + } finally { + await release() + } + const ran = attempt(dir, recipe(justfile, name)) + expect(ran.status).toBe(0) + expect(files(dir)).not.toContain('./debug.log') + expect(files(dir)).not.toEqual(before) + }) +}) + +describe('just clean-dry while an assembly runs', () => { + it('previews anyway, since it deletes nothing', async () => { + const justfile = readFileSync(join(ROOT, 'justfile'), 'utf8') + const dir = fixture() + const release = await holdLock(dir) + try { + const preview = attempt(dir, recipe(justfile, 'clean-dry')) + expect(preview.status).toBe(0) + expect(preview.stdout).toContain('Would remove node_modules/') + } finally { + await release() + } + }) +}) + +describe('just nuke', () => { + const justfile = readFileSync(join(ROOT, 'justfile'), 'utf8') + const hasJust = spawnSync('just', ['--version']).status === 0 + const withJust = (dir: string, ...args: string[]) => + spawnSync('just', ['--justfile', join(ROOT, 'justfile'), '--working-directory', dir, ...args], { + encoding: 'utf8', + stdio: ['ignore', 'pipe', 'pipe'], + timeout: RECIPE_TIMEOUT_MS, + }) + + it('removes untracked files, the build cache and the lock, and keeps the .env files', () => { + const dir = fixture() + run(dir, recipe(justfile, 'nuke')) + expect(files(dir)).toEqual(LEFT_BY_NUKE) + }) + + it('would delete the .env files without the exclusions', () => { + const dir = fixture() + run(dir, ['git clean -fdx']) + expect(files(dir)).toEqual(['./.gitignore']) + }) + + it('names in its prompt what it removes and what it keeps', () => { + const prompt = confirmPrompt(justfile, 'nuke') ?? '' + const kept = (gitClean(recipe(justfile, 'nuke')).match(/-e '([^']+)'/g) ?? []).map((flag) => flag.slice(4, -1)) + const alsoRemoved = (gitClean(recipe(justfile, 'clean')).match(/-e '!([^']+)'/g) ?? []) + .map((flag) => flag.slice(5, -1)) + .filter((path) => !path.startsWith('.env')) + expect(kept).toEqual(['.env', '.env.*']) + expect(alsoRemoved).toEqual(['.build-cache/', '.build.lock']) + for (const named of [...kept, ...alsoRemoved]) expect(prompt).toContain(named) + expect(prompt).not.toMatch(/\ball\b/i) + }) + + it.skipIf(!hasJust)('runs without a prompt under --yes and leaves the same files', () => { + const dir = fixture() + const result = withJust(dir, '--yes', 'nuke') + expect(result.status).toBe(0) + expect(files(dir)).toEqual(LEFT_BY_NUKE) + }) + + it.skipIf(!hasJust)('exits non-zero without a terminal and --yes, shows the prompt, and deletes nothing', () => { + const dir = fixture() + const before = files(dir) + const result = withJust(dir, 'nuke') + expect(result.status).not.toBe(0) + expect(result.stderr).toContain(confirmPrompt(justfile, 'nuke')) + expect(result.stderr).toContain('was not confirmed') + expect(files(dir)).toEqual(before) + }) +}) diff --git a/site/test/link-preview.test.ts b/site/test/link-preview.test.ts index e1d219e21..d3240baf5 100644 --- a/site/test/link-preview.test.ts +++ b/site/test/link-preview.test.ts @@ -9,6 +9,7 @@ import { select } from 'astro-expressive-code/hast' import { fromHtml } from 'hast-util-from-html' import { visit } from 'unist-util-visit' import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest' +vi.mock('astro:content', () => ({ getCollection: async () => [] })) import { symbolPreview, glossaryPreview, tmuxManualPreview } from '../src/lib/link-preview' import { API_MODELS } from '../src/lib/api-models' import { productApiIndex } from '../src/lib/product-api' @@ -16,6 +17,7 @@ import { apiGlossaryHref } from '../src/lib/api-glossary' import { initLinkPreviews, disposeLinkPreviews, linkPreviewTarget, positionLinkPreview } from '../src/lib/link-preview-browser' import { GET } from '../src/pages/[...slug].preview.json' import { highlightTokens } from '../src/lib/highlight' +import { PREVIEW_SIGNATURE_CHARS, PREVIEW_SIGNATURE_LINES } from '../src/lib/preview-signature' import config from '../ec.config.mjs' it.each([ @@ -250,6 +252,36 @@ describe('preview lifecycle', () => { expect(code.classList.contains('lm-highlighted')).toBe(false) }) + it('shows only the head of a declaration too long for a card, whatever the payload carries', async () => { + const token = (content: string) => ({ content, light: { color: '#A626A4', fontStyle: 0 }, dark: { color: '#F97583', fontStyle: 0 } }) + const lines = Array.from({ length: 40 }, (_, index) => `case_${index}`) + const signature = `enum {\n${lines.join('\n')}\n}` + const payload = { schema: 1, title: 'enum', description: '', signature, signatureLanguage: 'c', href: `${prefix}-a/`, + signatureHighlight: { language: 'c', light: { foreground: '#24292E', background: '#FFFFFF' }, dark: { foreground: '#E1E4E8', background: '#24292E' }, + lines: signature.split('\n').map((line) => [token(line)]) } } + requests.mockResolvedValueOnce(new Response(JSON.stringify(payload))) + hover(); await settle() + const code = win.document.querySelector('[data-preview-signature]')! + // The lines it keeps, then a line that says the rest is on the page; the cut highlighting no longer fits, so it is plain text. + expect(code.textContent).toBe(`${signature.split('\n').slice(0, PREVIEW_SIGNATURE_LINES).join('\n')}\n…`) + expect(code.querySelectorAll('*')).toHaveLength(0) + escape() + // One line of hundreds of thousands of characters, as the tmux key-code enum is, is cut at the character limit. + requests.mockResolvedValueOnce(new Response(JSON.stringify({ ...payload, href: `${prefix}-b/`, signature: `enum { ${'KEYC_X, '.repeat(60_000)}}`, signatureHighlight: undefined }))) + hover('b'); await settle() + expect(code.textContent!.length).toBeLessThanOrEqual(PREVIEW_SIGNATURE_CHARS + 2) + expect(code.textContent!.endsWith('\n…')).toBe(true) + escape() + // The control: a declaration that fits keeps its highlighting and its text, with nothing added. + win.document.body.insertAdjacentHTML('afterbegin', `c`) + const short = 'enum { A, B }' + requests.mockResolvedValueOnce(new Response(JSON.stringify({ ...payload, href: `${prefix}-c/`, signature: short, + signatureHighlight: { ...payload.signatureHighlight, lines: [[token(short)]] } }))) + hover('c'); await settle() + expect(code.textContent).toBe(short) + expect(code.querySelectorAll('span')).toHaveLength(1) + }) + it('keeps the destructor name and native signature intact with meaningful title breaks', async () => { const name = 'libtmux::CommandOperation::~CommandOperation' const signature = '~CommandOperation();' diff --git a/site/test/port-families.test.ts b/site/test/port-families.test.ts new file mode 100644 index 000000000..b9c74ad11 --- /dev/null +++ b/site/test/port-families.test.ts @@ -0,0 +1,46 @@ +import { describe, expect, it } from 'vitest' +import { OTHER_FAMILY_LABEL, PORT_FAMILIES, portFamilies } from '../src/lib/port-families' +import { PORTS } from '../src/lib/ports' + +const slugs = PORTS.map((port) => port.slug) +const familiesOf = (slug: string) => PORT_FAMILIES.filter((family) => family.ports.includes(slug)).map((family) => family.label) + +describe('port picker families', () => { + it('files every registered port under exactly one family', () => { + for (const slug of slugs) expect(familiesOf(slug), slug).toHaveLength(1) + }) + + it('names only registered ports, once each, under distinct labels', () => { + const named = PORT_FAMILIES.flatMap((family) => family.ports) + expect(named.filter((slug) => !slugs.includes(slug))).toEqual([]) + expect(new Set(named).size).toBe(named.length) + const labels = [...PORT_FAMILIES.map((family) => family.label), OTHER_FAMILY_LABEL] + expect(new Set(labels).size).toBe(labels.length) + expect(PORT_FAMILIES.filter((family) => family.ports.length === 0)).toEqual([]) + }) + + it('puts Elixir in the BEAM family and in no other', () => { + expect(familiesOf('elixir')).toEqual(['BEAM']) + for (const family of portFamilies(slugs)) { + expect(family.ports.includes('elixir'), family.label).toBe(family.label === 'BEAM') + } + }) + + it('keeps the runtime families together, after the language families', () => { + const labels = PORT_FAMILIES.map((family) => family.label) + expect(labels.slice(0, 2)).toEqual(['Scripting & web', 'Compiled & native']) + expect(labels.slice(2)).toEqual(['JVM', '.NET', 'BEAM']) + }) + + it('leaves the catch-all family empty for the registered ports, and last', () => { + const drawn = portFamilies(slugs) + expect(drawn.at(-1)).toEqual({ label: OTHER_FAMILY_LABEL, ports: [] }) + expect(drawn.slice(0, -1)).toEqual(PORT_FAMILIES) + }) + + it('collects a port no family names under the catch-all, once', () => { + const drawn = portFamilies([...slugs, 'zig']) + expect(drawn.at(-1)).toEqual({ label: OTHER_FAMILY_LABEL, ports: ['zig'] }) + expect(drawn.filter((family) => family.ports.includes('zig'))).toHaveLength(1) + }) +}) diff --git a/site/test/preview-check.test.ts b/site/test/preview-check.test.ts new file mode 100644 index 000000000..1d652085e --- /dev/null +++ b/site/test/preview-check.test.ts @@ -0,0 +1,77 @@ +import { describe, expect, it } from 'vitest' +import { ownTreeElsewhere, payloadGaps, servedByBuild } from '../scripts/check-page-readiness.mjs' +import { PORTS, referenceSegment, referenceUrl } from '../src/lib/ports' +import { buildTarget, linkedVersionFor } from '../src/lib/versions' + +/** + * The browser check of preview cards asks each marked link's payload from the build it runs against. The build serves one + * version of each port's reference, so a link to another version names a tree it does not contain, and the check must + * leave that out and still ask for everything the build does serve. + */ +const environment = (defaults: Record) => ({ LIBTMUX_DOCS_VERSION: 'latest', LIBTMUX_DOCS_PORT_DEFAULTS: JSON.stringify(defaults) }) +const build = (env: Record) => ({ root: '', ports: PORTS, version: buildTarget(env).version, segment: referenceSegment('core') }) +/** Where the site sends a link to a port's core reference, at the version the assembly's defaults give it. */ +const linked = (env: Record) => PORTS.map((port) => ({ port, href: `${referenceUrl(port, linkedVersionFor(port.slug, env))}some-declaration/` })) + +describe('which destinations the build under test serves', () => { + it('leaves out a port whose reference the links name at another version, and asks for every other port', () => { + const env = environment({ py: 'stable' }) + const unserved = linked(env).filter(({ href }) => !servedByBuild(href, build(env))).map(({ port }) => port.slug) + expect(unserved).toEqual(['py']) + // The links of the other ports name the version the build serves. + expect(linked(env).filter(({ port }) => port.slug !== 'py').every(({ href }) => servedByBuild(href, build(env)))).toBe(true) + }) + + it('follows the site: another default moves which port is left out, and none is named in the check', () => { + const env = environment({ ts: 'v1.2', go: 'latest' }) + expect(linked(env).filter(({ href }) => !servedByBuild(href, build(env))).map(({ port }) => port.slug)).toEqual(['ts']) + expect(linked(environment({})).filter(({ href }) => !servedByBuild(href, build(environment({})))).map(({ port }) => port.slug)).toEqual([]) + }) + + it('serves what is not a port reference at whatever version a link names', () => { + const env = environment({ py: 'stable' }) + const py = PORTS.find((port) => port.slug === 'py')! + for (const href of [ + '/tmux/latest/reference/c-function-cmd-list-panes-c-cmd_list_panes_server/', '/tmux/3.2a/manual/list-panes/', '/tmux/latest/catalog/options/status-left/', + `${referenceUrl(py, 'stable', 'mcp')}tool/`, `${referenceUrl(py, 'stable', 'workspace')}builder/`, '/py/stable/guides/attaching-to-tmux/', + ]) expect(servedByBuild(href, build(env)), href).toBe(true) + // The same pages under a root, as the dev server mounts them. + expect(servedByBuild('/en/py/stable/reference/libtmux-server-panes/', { ...build(env), root: '/en' })).toBe(false) + expect(servedByBuild('/en/cxx/latest/reference/libtmux-server-panes/', { ...build(env), root: '/en' })).toBe(true) + }) +}) + +describe('asking for payloads', () => { + const request = (answers: Record) => ({ get: async (url: string) => ({ ok: () => answers[url] === 200, status: () => answers[url] ?? 404 }) }) + + it('reports a payload missing on a destination the build serves and names none it does not', async () => { + const env = environment({ py: 'stable' }) + const served = (href: string) => servedByBuild(href, { ...build(env), root: '/en' }) + const asked = request({ 'http://x/en/cxx/latest/reference/a.preview.json': 200 }) + const hrefs = ['/en/cxx/latest/reference/a/', '/en/cxx/latest/reference/missing/', '/en/py/stable/reference/b/'] + expect(await payloadGaps(asked, 'http://x', hrefs, served)).toEqual({ missing: ['/en/cxx/latest/reference/missing/ answers 404'], skipped: ['/en/py/stable/reference/b/'] }) + // The control: asking for everything reports the destination the build does not contain too, which is the failure this check had. + expect(await payloadGaps(asked, 'http://x', hrefs, undefined)).toEqual({ missing: ['/en/cxx/latest/reference/missing/ answers 404', '/en/py/stable/reference/b/ answers 404'], skipped: [] }) + }) +}) + +describe('what the check leaves out', () => { + it('is only a core reference of a port whose publisher owns its tree, at a version the build does not serve', () => { + const env = environment({ py: 'stable' }) + const mounted = { ...build(env), root: '/en' } + const links = ['/en/py/stable/reference/libtmux-server-panes/', '/en/cxx/latest/reference/libtmux-server-panes/', '/en/py/stable/mcp/reference/x/', '/en/tmux/latest/reference/c-function-x/', '/en/py/latest/reference/a/'] + // Every link the check leaves out is of that kind, and every one of that kind is left out: the two rules agree on these links. + expect(links.filter((href) => !servedByBuild(href, mounted))).toEqual(['/en/py/stable/reference/libtmux-server-panes/']) + expect(links.filter((href) => ownTreeElsewhere(href, mounted))).toEqual(['/en/py/stable/reference/libtmux-server-panes/']) + expect(PORTS.filter((port) => !port.publishesOwnTree).map((port) => port.slug)).toEqual([]) + }) + + it('does not call a port tree that its publisher does not own, or one of the version the build serves, one that is left out', () => { + const env = environment({ py: 'stable' }) + const ports = PORTS.map((port) => (port.slug === 'py' ? { ...port, publishesOwnTree: false } : port)) + expect(ownTreeElsewhere('/py/stable/reference/a/', { ...build(env), ports })).toBe(false) + expect(ownTreeElsewhere('/py/latest/reference/a/', build(env))).toBe(false) + // A destination the check would leave out with no port tree behind it is the difference the check asserts on. + expect(servedByBuild('/py/stable/reference/a/', { ...build(env), ports })).toBe(false) + }) +}) diff --git a/site/test/product-docs.test.ts b/site/test/product-docs.test.ts index 2c34b0a51..e43f3b9d6 100644 --- a/site/test/product-docs.test.ts +++ b/site/test/product-docs.test.ts @@ -652,6 +652,8 @@ describe.skipIf(!SITE_BUILT)('assembled MCP and Workspace Manager docs', () => { } }) + // A port reads every page of its MCP reference in one test, so the work grows with the reference and the largest port + // leaves little of the default deadline on a slower runner. The deadline is not what the test is about; the assertions are. it.each(Object.keys(MCP_REFERENCE))('%s uses the shared reference browser for all advertised protocol objects', async (port) => { const version = manifest().defaultVersion[port] expect(version, `${port} default version`).toBeDefined() @@ -679,7 +681,7 @@ describe.skipIf(!SITE_BUILT)('assembled MCP and Workspace Manager docs', () => { expect(JSON.parse(contract.querySelector('code')!.textContent)).toEqual(object.tool?.inputSchema ?? object.item) }) } - }) + }, 30_000) it.each(primaryPorts.map((port) => port.slug))('switches to equivalent sections and the tmux documentation for %s', async (slug) => { const defaults = manifest().defaultVersion diff --git a/site/test/prose-reference-previews.test.ts b/site/test/prose-reference-previews.test.ts new file mode 100644 index 000000000..ee1c551a0 --- /dev/null +++ b/site/test/prose-reference-previews.test.ts @@ -0,0 +1,98 @@ +import { afterEach, describe, expect, it, vi } from 'vitest' +import { createLinkPreviewPolicy } from '../src/lib/link-preview-paint' +import { pagePreview, proseReferencePreviews } from '../src/lib/link-preview' + +const docs = vi.hoisted(() => { + const page = (id: string, data: Record) => ({ id, data: { title: id, description: `About ${id}.`, ...data } }) + return { + entries: [ + // Product pages below a port's reference section, one authored for the port and one shared by every port. + page('ports/go/workspace/reference/compatibility', { port: 'go', product: 'workspace', title: 'Runtime and configuration support' }), + page('ports/go/workspace/reference/exit-codes', { port: 'go', product: 'workspace', title: 'Exit codes and errors', description: 'Use process status to handle failures.' }), + page('ports/rs/workspace/reference/exit-codes', { port: 'rs', product: 'workspace', title: 'Exit codes and errors' }), + // Pages a link is not marked for: a guide, the section's own index, and tmux prose that no port owns. + page('ports/go/workspace/guides/automation', { port: 'go', product: 'workspace' }), + page('ports/go/workspace/reference', { port: 'go', product: 'workspace' }), + page('guides/first-steps', {}), + // A port's page that is no product's: a port build writes it, a root build leaves it to the port's own. + page('ports/go/reference/migrating', { port: 'go', route: 'reference/migrating' }), + ], + } +}) +vi.mock('astro:content', () => ({ + getCollection: async (_name: string, filter?: (entry: (typeof docs.entries)[number]) => boolean) => docs.entries.filter(filter ?? (() => true)), +})) +import { getStaticPaths, GET } from '../src/pages/[...slug].preview.json' + +afterEach(() => vi.unstubAllEnvs()) + +const slugs = async () => (await getStaticPaths()).map((path) => path.params.slug) + +describe('the card of a prose page in a reference section', () => { + it('is the page\'s own title and summary, with the link to the page', () => { + expect(pagePreview({ title: 'Exit codes and errors', description: 'Use process status.' }, '/en/go/latest/workspace/reference/exit-codes/')) + .toEqual({ schema: 1, title: 'Exit codes and errors', description: 'Use process status.', href: '/en/go/latest/workspace/reference/exit-codes/', actionLabel: 'Open page' }) + expect(pagePreview({ title: 'No summary' }, '/en/go/latest/workspace/reference/x/').description).toBe('') + }) + + it('is written for the pages the preview policy marks and for no other', () => { + const pages = [ + { title: 'Exit codes', href: '/en/go/latest/workspace/reference/exit-codes/' }, + { title: 'Automation', href: '/en/go/latest/workspace/guides/automation/' }, + { title: 'Reference', href: '/en/go/latest/workspace/reference/' }, + ] + const policy = createLinkPreviewPolicy() + expect(proseReferencePreviews(pages).map(({ href }) => href)).toEqual(['/en/go/latest/workspace/reference/exit-codes/']) + // The payload is where the policy looks for the card of the page it describes. + expect(policy.target(pages[0]!.href, 'https://libtmux.org')?.endpoint).toBe('/en/go/latest/workspace/reference/exit-codes.preview.json') + expect(pages.filter((page) => policy.target(page.href, 'https://libtmux.org')).map((page) => page.title)).toEqual(['Exit codes']) + }) +}) + +describe('the payloads a root build writes', () => { + it('include the prose reference pages of a product, at each port\'s version, and no page the policy leaves alone', async () => { + vi.stubEnv('LIBTMUX_DOCS_PORT', '') + const written = await slugs() + expect(written).toEqual(expect.arrayContaining([ + 'go/latest/workspace/reference/compatibility', 'go/latest/workspace/reference/exit-codes', 'rs/latest/workspace/reference/exit-codes', + ])) + expect(written).not.toContain('go/latest/workspace/guides/automation') + expect(written).not.toContain('go/latest/workspace/reference') + expect(written).not.toContain('go/latest/reference/migrating') + expect(written.filter((slug) => slug.startsWith('guides'))).toEqual([]) + }) + + it('answer with the card, and the versions a port is built at', async () => { + vi.stubEnv('LIBTMUX_DOCS_PORT', '') + vi.stubEnv('LIBTMUX_DOCS_PORT_DEFAULTS', JSON.stringify({ go: 'stable' })) + const path = (await getStaticPaths()).find(({ params }) => params.slug === 'go/stable/workspace/reference/exit-codes')! + expect(path).toBeDefined() + const card = await (await GET({ props: path.props } as unknown as Parameters[0])).json() + expect(card).toMatchObject({ schema: 1, title: 'Exit codes and errors', description: 'Use process status to handle failures.', actionLabel: 'Open page' }) + expect(card.href).toMatch(/\/go\/stable\/workspace\/reference\/exit-codes\/$/) + }) +}) + +describe('the payloads a port build writes', () => { + // A port build reads its root and base when its modules load, as the assembly sets them. + async function portBuild() { + vi.stubEnv('LIBTMUX_DOCS_PORT', 'go') + vi.stubEnv('LIBTMUX_DOCS_VERSION', 'stable') + vi.stubEnv('LIBTMUX_DOCS_BASE', '/en/go/stable/') + vi.stubEnv('LIBTMUX_DOCS_PORT_ROOT', '/en') + vi.resetModules() + return import('../src/pages/[...slug].preview.json') + } + + it('include every prose page of the port the policy marks, beside the page, and none of another port\'s', async () => { + const route = await portBuild() + const paths = await route.getStaticPaths() + const written = paths.map((path) => path.params.slug) + expect(written).toEqual(expect.arrayContaining(['workspace/reference/compatibility', 'workspace/reference/exit-codes', 'reference/migrating'])) + expect(written).not.toContain('workspace/guides/automation') + expect(written).not.toContain('workspace/reference') + expect(written.filter((slug) => slug.startsWith('rs/') || slug.includes('/rs/'))).toEqual([]) + const path = paths.find(({ params }) => params.slug === 'reference/migrating')! + expect((await (await route.GET({ props: path.props } as unknown as Parameters[0])).json()).href).toBe('/en/go/stable/reference/migrating/') + }) +}) diff --git a/site/test/reference-previews.test.ts b/site/test/reference-previews.test.ts new file mode 100644 index 000000000..bd49a41fc --- /dev/null +++ b/site/test/reference-previews.test.ts @@ -0,0 +1,173 @@ +import { existsSync, mkdirSync, mkdtempSync, readdirSync, readFileSync, rmSync, writeFileSync } from 'node:fs' +import { tmpdir } from 'node:os' +import { join } from 'node:path' +import { afterEach, describe, expect, it } from 'vitest' +import { createLinkPreviewPolicy } from '../src/lib/link-preview-paint' +import { loadAstroTemplate, renderAstroTemplate } from './astro-templates' +import { SITE_BUILT, SITE_PREFIX, SITE_ROOT } from './site-root' + +/** + * Every reference page a link can lead to has a preview payload beside it. + * + * The preview policy marks a link to `//reference//` for a card, and the card asks for `.preview.json`. The + * browser check of the dev build serves one version of each port's reference, so it cannot ask for the trees at the other + * versions the assembly builds, such as the Python reference that the other ports link to at `stable`. Those trees are the + * shell's own: each port's shell build renders `///reference/` (the native Sphinx output of a port is `api/`), + * and `publishesOwnTree` says the port's publisher owns the subtree, not that it is made another way. This reads the assembly. + * + * A page that is only a redirect (`RedirectPage`) is not read by anyone, so no link opens a card for it: the page it names has + * the card. The walk sets those apart as `stubs`, and asks only that each leads to a page of the tree. + */ +const ORIGIN = 'https://libtmux.org' +const policy = createLinkPreviewPolicy() + +/** The directories of a tree under `root` that hold reference pages: a port's version trees, its products', and tmux's. */ +function referenceRoots(root: string): string[] { + const directories = (path: string) => (existsSync(path) ? readdirSync(path, { withFileTypes: true }).filter((entry) => entry.isDirectory()).map((entry) => entry.name) : []) + return directories(root).flatMap((tree) => directories(join(root, tree)).flatMap((version) => ['reference', 'mcp/reference', 'workspace/reference'] + .map((section) => `${tree}/${version}/${section}`))).filter((path) => existsSync(join(root, path))) +} + +/** + * Where a redirect page sends, when that is what the page is: the stub `RedirectPage` writes carries `noindex` and, for a + * reader without scripts, a refresh to its destination. Only a page that has both is a stub, so a page that is merely + * unlisted, or one that mentions a refresh, is not set apart. + */ +export function redirectDestination(html: string): string | undefined { + if (!//.test(html)) return undefined + return //.exec(html)?.[1] +} + +/** + * The reference pages the policy marks for a card, what is wrong with each one's payload, and the marked pages that are only + * redirects (`stubs`). `base` is where the tree is served, so that a stub's destination is found in it. + */ +export function referencePayloadProblems(root: string, base = '/en/') { + const pages: string[] = [] + const stubs: string[] = [] + const problems: string[] = [] + for (const section of referenceRoots(root)) { + for (const entry of readdirSync(join(root, section), { withFileTypes: true })) { + const url = `/${section}/${entry.name}/` + const index = join(root, section, entry.name, 'index.html') + if (!entry.isDirectory() || !existsSync(index)) continue + const target = policy.target(url, ORIGIN) + if (!target || !/\/reference\/[^/]+\/$/.test(url)) continue + const file = join(root, target.endpoint) + if (!existsSync(file)) { + // Only a page with no payload is read, so the walk does not open every declaration page of every tree. + const destination = redirectDestination(readFileSync(index, 'utf8')) + if (destination === undefined) { pages.push(url); problems.push(`${url} has no payload at ${target.endpoint}`); continue } + stubs.push(url) + const to = new URL(destination, ORIGIN) + if (to.origin !== ORIGIN || !to.pathname.startsWith(base) || !existsSync(join(root, to.pathname.slice(base.length), 'index.html'))) problems.push(`${url} redirects to ${destination}, which is not a page of the tree`) + continue + } + pages.push(url) + let card: { schema?: unknown; title?: unknown; description?: unknown; href?: unknown } + try { card = JSON.parse(readFileSync(file, 'utf8')) } catch { problems.push(`${target.endpoint} is not JSON`); continue } + if (card.schema !== 1 || typeof card.title !== 'string' || typeof card.description !== 'string') problems.push(`${target.endpoint} is not a card`) + else if (typeof card.href !== 'string' || !new URL(card.href, ORIGIN).pathname.endsWith(url)) problems.push(`${target.endpoint} leads to ${String(card.href)}, not to ${url}`) + } + } + return { pages, stubs, problems } +} + +/** + * Whether the site itself says it retired this address, so that a page that has become a redirect for any other reason does not + * lose its card unnoticed: a tmux command's page before commands moved to the manual (the manual's routes are the commands, and + * the full manual's old address is `manual`), and the operators that Swift's workspace reference dropped. + */ +async function retiredAddress(): Promise<(url: string) => boolean> { + // Loaded here and not at the top: the models are large, and only the assembled run needs them. + const [{ API_MODELS }, { productApiRedirects }, { tmuxManualRoutes }] = await Promise.all([ + import('../src/lib/api-models'), import('../src/lib/product-api'), import('../src/lib/tmux-manual-data'), + ]) + const commands = new Set(tmuxManualRoutes().filter(({ slug }) => slug) + .map(({ version, slug }) => `/tmux/${version}/reference/${slug === 'full' ? 'manual' : slug}/`)) + const operators = productApiRedirects(API_MODELS, 'swift', {}, 'latest').map(({ path }) => path) + return (url) => commands.has(url) || operators.some((path) => new RegExp(`^/swift/[^/]+/${path.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')}/$`).test(url)) +} + +/** A bare shell build has no port trees to read; an assembly has them, and then there must be pages in them. */ +const assembledTrees = SITE_BUILT && referenceRoots(SITE_ROOT).length > 0 + +describe('the reference trees of the assembly', () => { + // The walk lists every tree of the assembly, which takes longer than the default deadline allows. + it.runIf(assembledTrees)('has a payload beside every reference page the preview policy marks, in every port version and in tmux', async () => { + const { pages, stubs, problems } = referencePayloadProblems(SITE_ROOT, `/${SITE_PREFIX}`) + expect(pages.length).toBeGreaterThan(0) + expect(problems).toEqual([]) + // What the walk set apart is bounded by what the site says it retired, and not by what is convenient to leave out. + const retired = await retiredAddress() + expect(stubs.filter((url) => !retired(url))).toEqual([]) + }, 120_000) +}) + +describe('the walk over a tree', () => { + const made: string[] = [] + afterEach(() => { for (const path of made.splice(0)) rmSync(path, { recursive: true, force: true }) }) + const tree = (files: Record) => { + const root = mkdtempSync(join(tmpdir(), 'reference-previews-')) + made.push(root) + for (const [path, body] of Object.entries(files)) { + mkdirSync(join(root, path, '..'), { recursive: true }) + writeFileSync(join(root, path), body) + } + return root + } + const card = (href: string) => JSON.stringify({ schema: 1, title: 'x', description: '', href }) + + it('passes a tree whose pages each have a payload that leads back to them, and names the page that has none', () => { + const root = tree({ + 'py/stable/reference/a/index.html': '', 'py/stable/reference/a.preview.json': card('/en/py/stable/reference/a/'), + 'ruby/latest/mcp/reference/b/index.html': '', 'ruby/latest/mcp/reference/b.preview.json': card('/en/ruby/latest/mcp/reference/b/'), + // Not pages a link is marked for: the index of the tree, and a page two segments down. + 'py/stable/reference/index.html': '', 'py/stable/reference/symbols/a/index.html': '', + }) + expect(referencePayloadProblems(root)).toEqual({ pages: ['/py/stable/reference/a/', '/ruby/latest/mcp/reference/b/'], stubs: [], problems: [] }) + const missing = tree({ 'py/stable/reference/a/index.html': '', 'py/stable/reference/b/index.html': '', 'py/stable/reference/a.preview.json': card('/en/py/stable/reference/a/') }) + expect(referencePayloadProblems(missing).problems).toEqual(['/py/stable/reference/b/ has no payload at /py/stable/reference/b.preview.json']) + }) + + it('sets apart a page that is only a redirect, and still names a page with no payload beside it', async () => { + // The stub is what the site writes, so the walk is tested against the real markup and follows it if that changes. + const page = await loadAstroTemplate('components/docs/RedirectPage.astro') + const stub = (destination: string) => renderAstroTemplate(page, { props: { destination, title: 'tmux manual' } }) + expect(redirectDestination(await stub('/en/tmux/latest/manual/set-buffer/'))).toBe('/en/tmux/latest/manual/set-buffer/') + // Unlisted is not a redirect, and neither is a page that says nothing of where it goes. + expect(redirectDestination('')).toBeUndefined() + expect(redirectDestination('')).toBeUndefined() + const root = tree({ + 'tmux/latest/reference/set-buffer/index.html': await stub('/en/tmux/latest/manual/set-buffer/'), 'tmux/latest/manual/set-buffer/index.html': '', + 'tmux/latest/reference/real/index.html': 'real', + 'tmux/latest/reference/unlisted/index.html': '', + 'tmux/latest/reference/dangling/index.html': await stub('/en/tmux/latest/manual/dangling/'), + 'tmux/latest/reference/abroad/index.html': await stub('https://elsewhere.test/en/tmux/latest/manual/set-buffer/'), + }) + const walked = referencePayloadProblems(root) + expect(walked.stubs.sort()).toEqual(['/tmux/latest/reference/abroad/', '/tmux/latest/reference/dangling/', '/tmux/latest/reference/set-buffer/']) + expect(walked.problems.sort()).toEqual([ + '/tmux/latest/reference/abroad/ redirects to https://elsewhere.test/en/tmux/latest/manual/set-buffer/, which is not a page of the tree', + '/tmux/latest/reference/dangling/ redirects to /en/tmux/latest/manual/dangling/, which is not a page of the tree', + '/tmux/latest/reference/real/ has no payload at /tmux/latest/reference/real.preview.json', + '/tmux/latest/reference/unlisted/ has no payload at /tmux/latest/reference/unlisted.preview.json', + ]) + // The control: the same tree with only the stub that leads to a page is clean, and its page is not one that needs a payload. + const clean = tree({ 'tmux/latest/reference/set-buffer/index.html': await stub('/en/tmux/latest/manual/set-buffer/'), 'tmux/latest/manual/set-buffer/index.html': '' }) + expect(referencePayloadProblems(clean)).toEqual({ pages: [], stubs: ['/tmux/latest/reference/set-buffer/'], problems: [] }) + // A tree served below a preview's prefix finds its destination there. + expect(referencePayloadProblems(clean, '/pr-9/en/').problems).toEqual(['/tmux/latest/reference/set-buffer/ redirects to /en/tmux/latest/manual/set-buffer/, which is not a page of the tree']) + }) + + it('names a payload that is not a card or leads to another page', () => { + const root = tree({ + 'go/latest/reference/a/index.html': '', 'go/latest/reference/a.preview.json': JSON.stringify({ schema: 2, title: 'x', description: '' }), + 'go/latest/reference/b/index.html': '', 'go/latest/reference/b.preview.json': card('/en/go/latest/reference/c/'), + 'go/latest/reference/c/index.html': '', 'go/latest/reference/c.preview.json': '{', + }) + expect(referencePayloadProblems(root).problems).toEqual([ + '/go/latest/reference/a.preview.json is not a card', '/go/latest/reference/b.preview.json leads to /en/go/latest/reference/c/, not to /go/latest/reference/b/', '/go/latest/reference/c.preview.json is not JSON', + ]) + }) +}) diff --git a/site/test/related-labels.test.ts b/site/test/related-labels.test.ts new file mode 100644 index 000000000..7a29ce84d --- /dev/null +++ b/site/test/related-labels.test.ts @@ -0,0 +1,330 @@ +import { afterEach, beforeAll, describe, expect, it, vi } from 'vitest' +import { experimental_AstroContainer } from 'astro/container' +import { Window, type Document } from 'happy-dom' +import { membersOf, memberSignals, moduleOf, qualifiedNameOf, type ApiSymbol } from '@libtmux/api-model' +import mentionsData from '../src/data/mentions.json' +import { API_MODELS, indexFor, pageSlug, topLevelTypesOf } from '../src/lib/api-models' +import { ownerQualifiedName, relatedLabels, type RelatedLabelInput } from '../src/lib/api-labels' +import { relatedApiTypes, relatedTypeLinks, type RelatedTypeLink } from '../src/lib/api-sections' +import { coreApiSymbols } from '../src/lib/product-api' +import { wordBreak } from '../src/lib/word-break' +import { tmuxReferenceContext, tmuxReferenceIndex, tmuxReferenceUrl, tmuxSourceModel } from '../src/lib/tmux-reference' +import { loadAstroTemplate, withoutScope } from './astro-templates' + +vi.mock('astro:content', () => ({ getCollection: async () => [] })) + +/** + * A related type is labelled so that a reader can tell which entity it is. A bare name stays when it is unambiguous and the page's + * own subject owns it; an Elixir type, whose `t/0` means nothing outside its module, and any name more than one type in the port carries + * take their owner when another declaration owns them; entries that would still read alike take their owner, then their full name. + */ + +const entry = (id: string, over: Partial = {}): RelatedLabelInput => { + const name = id.split(/[.:]+/).at(-1)! + const owner = id.slice(0, id.length - name.length).replace(/[.:]+$/, '') + return { id, name, label: name, qualifiedName: id, shared: false, owner: owner ? { id: owner, name: owner.split(/[.:]+/).at(-1)! } : undefined, ...over } +} +const duplicates = (labels: readonly string[]) => [...new Set(labels.filter((label, i) => labels.indexOf(label) !== i))] + +describe('the label rule', () => { + // The reported page: LibTmux.Server lists four types, three of them called t/0. + const server = ['LibTmux.Snapshot.t/0', 'LibTmux.Error.t/0', 'LibTmux.Transport.OneShot.result/0', 'LibTmux.Server.t/0'].map((id) => entry(id)) + + it('names the owner of an Elixir type that another module owns, and leaves the page subject\'s own type bare', () => { + expect(relatedLabels(server, new Set(['LibTmux.Server']), 'elixir')).toEqual(['Snapshot.t/0', 'Error.t/0', 'OneShot.result/0', 't/0']) + }) + + it('names the owner of the same types on a page that is not their owner\'s', () => { + expect(relatedLabels(server, new Set(['LibTmux.Pane']), 'elixir')).toEqual(['Snapshot.t/0', 'Error.t/0', 'OneShot.result/0', 'Server.t/0']) + }) + + it('reads a member page\'s own module as home: the page and the module that declares it', () => { + expect(relatedLabels(server, new Set(['LibTmux.Server.new_session/2', 'LibTmux.Server']), 'elixir')[3]).toBe('t/0') + expect(relatedLabels(server, new Set(['LibTmux.Snapshot.t/0', 'LibTmux.Snapshot']), 'elixir')).toEqual(['t/0', 'Error.t/0', 'OneShot.result/0', 'Server.t/0']) + }) + + it('names the owner of an Elixir type even when no other type shares its name', () => { + const [only] = [entry('LibTmux.Schema.observation/0')] + expect(relatedLabels([only!], new Set(['LibTmux.Filter']), 'elixir')).toEqual(['Schema.observation/0']) + }) + + it('leaves another port\'s names alone when nothing makes them ambiguous', () => { + // A nested name only one type carries, a top-level name and a top-level name that repeats: none of them is touched. + const unique = [entry('swift.RegexPattern.Options'), entry('Server'), entry('libtmux.Server', { label: 'Server (libtmux)', owner: undefined })] + expect(relatedLabels(unique, new Set(['Client']), 'swift')).toEqual(['Options', 'Server', 'Server (libtmux)']) + }) + + it('separates colliding names in any language and leaves the unambiguous one in the same list alone', () => { + expect(relatedLabels(server, new Set(['LibTmux.Pane']), 'ruby')).toEqual(['Snapshot.t/0', 'Error.t/0', 'result/0', 'Server.t/0']) + }) + + it('names the owner of a nested name that more than one type in the port carries, when the page does not own it', () => { + const builder = entry('io.github.libtmux.CaptureSpec.Builder', { shared: true }) + expect(relatedLabels([builder], new Set(['io.github.libtmux.FilterSpec']), 'java')).toEqual(['CaptureSpec.Builder']) + expect(relatedLabels([builder], new Set(['io.github.libtmux.CaptureSpec']), 'java')).toEqual(['Builder']) + expect(relatedLabels([builder], new Set(['io.github.libtmux.CaptureSpec.Builder.from', 'io.github.libtmux.CaptureSpec.Builder']), 'java')).toEqual(['Builder']) + const async = entry('LibTmux::Async::Server', { shared: true }) + expect(relatedLabels([async], new Set(['LibTmux::Async::Scope#server', 'LibTmux::Async::Scope']), 'ruby')).toEqual(['Async::Server']) + }) + + it('names the owner of whichever entries still read alike, and spells the last collision in full', () => { + const pair = [entry('LibTmux::Async::Server', { label: 'Server' }), entry('LibTmux::Server', { label: 'Server', owner: undefined })] + expect(duplicates(pair.map((item) => item.label))).toEqual(['Server']) + expect(relatedLabels(pair, new Set(['LibTmux::Async::Server']), 'ruby')).toEqual(['Async::Server', 'LibTmux::Server']) + const twins = [entry('A.Request.t/0'), entry('B.Request.t/0')] + expect(relatedLabels(twins, new Set(['C']), 'elixir')).toEqual(['A.Request.t/0', 'B.Request.t/0']) + }) + + it('spells the owner with the separator the language\'s own qualified name uses', () => { + expect(ownerQualifiedName(entry('LibTmux.Snapshot.t/0'))).toBe('Snapshot.t/0') + expect(ownerQualifiedName(entry('libtmux::FilterExpr::Node'))).toBe('FilterExpr::Node') + expect(ownerQualifiedName(entry('LibTmux::Async::Server'))).toBe('Async::Server') + expect(ownerQualifiedName(entry('Server', { owner: undefined }))).toBe('Server') + expect(ownerQualifiedName(entry('x.Y.z', { owner: { id: 'x.Q', name: 'Q' } }))).toBe('x.Y.z') + }) +}) + +const TYPES = ['class', 'struct', 'union', 'interface', 'trait', 'enum', 'typealias'] + +/** `before` is each entry's label without the owner rule: its name, with the module of a top-level type whose name repeats. */ +interface Page { port: string; owner: ApiSymbol; links: RelatedTypeLink[]; before: string[] } + +let built: Page[] | undefined + +/** Every page of every port, with the related list the page builds. */ +function pages(): Page[] { + if (built) return built + const all: Page[] = [] + for (const [port, model] of Object.entries(API_MODELS)) { + const hrefFor = (symbol: ApiSymbol) => `/${port}/${symbol.slug ?? pageSlug(symbol.publicId ?? symbol.id)}/` + const index = indexFor(model, hrefFor) + const signals = memberSignals(port, mentionsData.mentions) + const repeated = new Map() + for (const type of topLevelTypesOf(model)) repeated.set(type.name, (repeated.get(type.name) ?? 0) + 1) + const byId = new Map(model.symbols.map((symbol) => [symbol.id, symbol])) + for (const owner of coreApiSymbols(model)) { + const members = membersOf(model, owner, signals) + const links = relatedTypeLinks(model, owner, members, index, hrefFor, { language: port, repeated }) + const before = relatedApiTypes(owner, members, index, owner.parent ? byId.get(owner.parent) : undefined) + .map((symbol) => (repeated.get(symbol.name) ?? 0) > 1 ? `${symbol.name} (${moduleOf(symbol)})` : symbol.name) + all.push({ port, owner, links, before }) + } + } + return (built = all) +} + +describe('related types on the committed models', () => { + let all: Page[] = [] + beforeAll(() => { all = pages() }, 120_000) + const page = (port: string, id: string) => { + const found = all.find((entry) => entry.port === port && (entry.owner.publicId ?? entry.owner.id) === id) + if (!found) throw new Error(`no ${port} page for ${id}`) + return found + } + const labels = (entry: Page) => entry.links.map((link) => link.name) + + it('lists the reported Elixir page by owner and links each to its own page', () => { + const server = page('elixir', 'LibTmux.Server') + expect(server.before).toEqual(['t/0', 't/0', 'result/0', 't/0']) + expect(labels(server)).toEqual(['Snapshot.t/0', 'Error.t/0', 'OneShot.result/0', 't/0']) + expect(server.links.map((link) => link.identity)).toEqual(['LibTmux.Snapshot.t/0', 'LibTmux.Error.t/0', 'LibTmux.Transport.OneShot.result/0', 'LibTmux.Server.t/0']) + expect(server.links.map((link) => link.href)).toEqual(['/elixir/libtmux-snapshot-t-0/', '/elixir/libtmux-error-t-0/', '/elixir/libtmux-transport-oneshot-result-0/', '/elixir/libtmux-server-t-0/']) + expect(server.links.map((link) => link.kind)).toEqual(Array(4).fill('typealias')) + expect(server.links.map((link) => link.qualified)).toEqual([true, true, true, false]) + }) + + it('names the owner in an Elixir list for every type another module owns, and for no other', () => { + for (const { owner, links } of all.filter((entry) => entry.port === 'elixir')) { + for (const link of links.filter((item) => item.symbol.parent)) { + const home = link.symbol.parent === owner.id || link.symbol.parent === owner.parent || link.symbol.id === owner.parent + expect(link.name === link.symbol.name, `${qualifiedNameOf(owner)}: ${link.identity} reads as ${link.name}`).toBe(home) + } + } + }) + + it('shows no two entries of one related list with the same label, on any port', () => { + const alike = all.flatMap(({ port, owner, links }) => duplicates(links.map((link) => link.name)).map((label) => `${port} ${qualifiedNameOf(owner)}: ${label}`)) + expect(alike).toEqual([]) + }) + + it('shows no two entries alike on the tmux C source reference either, and renames none', () => { + const version = '3.7c' + const model = tmuxSourceModel(version) + const index = tmuxReferenceIndex(version) + const signals = memberSignals('', []) + const byId = new Map(model.symbols.map((symbol) => [symbol.id, symbol])) + const repeated = new Map() + for (const symbol of model.symbols) if (!symbol.parent) repeated.set(symbol.name, (repeated.get(symbol.name) ?? 0) + 1) + const renamed: string[] = [] + for (const owner of model.symbols) { + const members = membersOf(model, owner, signals) + const links = relatedTypeLinks(model, owner, members, index, (symbol) => tmuxReferenceUrl(version, symbol), { language: model.language, repeated, includeInternal: true }) + const before = relatedApiTypes(owner, members, index, owner.parent ? byId.get(owner.parent) : undefined, { includeInternal: true }) + .map((symbol) => (repeated.get(symbol.name) ?? 0) > 1 ? `${symbol.name} (${moduleOf(symbol)})` : symbol.name) + if (links.some((link, i) => link.name !== before[i]) || duplicates(links.map((link) => link.name)).length > 0) renamed.push(owner.id) + } + expect(renamed).toEqual([]) + }, 120_000) + + it('can fail: without the rule some list repeats a label, and with it none does', () => { + expect(all.filter((entry) => duplicates(entry.before).length > 0).length).toBeGreaterThan(0) + expect(all.filter((entry) => duplicates(labels(entry)).length > 0)).toEqual([]) + }) + + it('marks as qualified exactly the labels the rule changed', () => { + const wrong = all.flatMap(({ port, owner, links, before }) => links.flatMap((link, i) => + link.qualified === (link.name !== before[i]) ? [] : [`${port} ${qualifiedNameOf(owner)}: ${link.identity} reads as ${link.name}, was ${before[i]}, qualified is ${link.qualified}`])) + expect(wrong).toEqual([]) + }) + + it('changes a label outside Elixir only for a name more than one type carries or for entries that would read alike', () => { + const carried = new Map(Object.entries(API_MODELS).map(([port, model]) => { + const count = new Map() + for (const symbol of model.symbols) if (TYPES.includes(symbol.kind)) count.set(symbol.name, (count.get(symbol.name) ?? 0) + 1) + return [port, count] as const + })) + for (const { port, owner, links, before } of all.filter((entry) => entry.port !== 'elixir')) { + for (const [i, link] of links.entries()) { + if (!link.qualified) continue + const reason = (carried.get(port)!.get(link.symbol.name) ?? 0) > 1 || before.filter((label) => label === before[i]).length > 1 + expect(reason, `${port} ${qualifiedNameOf(owner)}: ${link.identity} reads as ${link.name}`).toBe(true) + } + } + }) + + it('leaves every label of a port with no nested type as its name, or its name and module', () => { + for (const [port, model] of Object.entries(API_MODELS)) { + if (model.symbols.some((symbol) => TYPES.includes(symbol.kind) && symbol.parent)) continue + for (const { owner, links } of all.filter((entry) => entry.port === port)) { + for (const link of links) { + expect([link.symbol.name, `${link.symbol.name} (${moduleOf(link.symbol)})`], `${port} ${qualifiedNameOf(owner)}`).toContain(link.name) + } + } + } + }) + + it('keeps Java\'s Builder bare on its own class and Ruby\'s two Servers apart', () => { + expect(labels(page('java', 'io.github.libtmux.CaptureSpec.CaptureSpec'))).toEqual(['Builder']) + expect(labels(page('java', 'io.github.libtmux.CaptureSpec.CaptureSpec.Builder.build'))).toEqual(['Builder', 'CaptureSpec']) + expect(labels(page('ruby', 'LibTmux::Async::Server.open'))).toEqual(['Async::Server', 'LibTmux::Server']) + expect(labels(page('ruby', 'LibTmux::Async::Scope#server'))).toEqual(['Scope', 'Async::Server']) + }) +}) + +describe('the rendered related lists', () => { + const windows: Window[] = [] + afterEach(async () => { for (const win of windows.splice(0)) await win.happyDOM.abort() }) + + /** + * A page as its own components draw it. Only what a page shows beside the related section is real, as a harness that + * renders a reference page lists it: the section is part of `ApiReference`, so no child has to be named for it to appear. + */ + const PAGE_COMPONENTS = ['components/api/ApiPageContents.astro', 'components/api/ApiBadge.astro', 'components/api/SymbolName.astro', 'components/api/ApiRelationships.astro'] + + /** One related list as the reader sees it: the label and title of each link, and the label's markup. */ + function shown(root: Document, selector: string) { + return [...root.querySelectorAll(selector)].map((link) => { + const code = link.querySelector('code')! + return { label: code.textContent, markup: code.innerHTML, title: link.getAttribute('title'), href: link.getAttribute('href'), mark: link.querySelector('.api-nav__kind')?.textContent } + }) + } + + /** What a chip or card draws for a label: break points where the rule changed it, plain text where it did not. */ + const markup = (label: string, before: string) => (label !== before ? wordBreak(label).join('') : label).replaceAll('&', '&') + + it('draws the Related APIs chips of every list with unique labels, titles, links, marks and break points', async () => { + const rail = await loadAstroTemplate('components/api/ApiPageContents.astro', { real: ['components/api/ApiBadge.astro', 'components/api/SymbolName.astro'] }) + const win = new Window({ url: 'https://libtmux.org/' }) + windows.push(win) + const container = await experimental_AstroContainer.create() + let lists = 0 + for (const { port, owner, links, before } of pages().filter((entry) => entry.links.length > 1)) { + const where = `${port} ${qualifiedNameOf(owner)}` + win.document.body.innerHTML = withoutScope(await container.renderToString(rail as Parameters[0], { + request: new Request('https://libtmux.org/'), props: { sections: [], related: links }, + })) + const chips = shown(win.document, 'nav.api-related a') + expect(chips.map((item) => item.label), where).toEqual(links.map((link) => link.name)) + expect(duplicates(chips.map((item) => item.label!)), where).toEqual([]) + for (const [i, link] of links.entries()) { + expect(chips[i]!.title, where).toBe(link.identity) + expect(chips[i]!.href, where).toBe(link.href) + expect(chips[i]!.mark, where).toBeTruthy() + expect(chips[i]!.markup, `${where}: ${link.name}`).toBe(markup(link.name, before[i]!)) + } + lists++ + } + expect(lists).toBeGreaterThan(1000) + }, 300_000) + + async function reference(props: Record, slug: string | undefined, path: string) { + const template = await loadAstroTemplate('components/api/ApiReference.astro', { real: PAGE_COMPONENTS }) + const container = await experimental_AstroContainer.create({ astroConfig: { site: 'https://libtmux.org' } } as never) + const win = new Window() + windows.push(win) + win.document.body.innerHTML = withoutScope(await container.renderToString(template as never, { + request: new Request(`https://libtmux.org${path}`), params: slug ? { slug } : undefined, props, + })) + return win.document + } + + it('draws the Related types cards of a page from ApiReference, beside the chips that name the same entries', async () => { + const all = pages() + // Every page where the rule changed a label, and the first page of each other port with a list to compare. + const changed = all.filter((entry) => entry.links.some((link, i) => link.name !== entry.before[i])) + const others = Object.keys(API_MODELS).flatMap((port) => changed.some((entry) => entry.port === port) ? [] : all.filter((entry) => entry.port === port && entry.links.length > 1).slice(0, 1)) + const template = await loadAstroTemplate('components/api/ApiReference.astro', { real: PAGE_COMPONENTS }) + const container = await experimental_AstroContainer.create({ astroConfig: { site: 'https://libtmux.org' } } as never) + const win = new Window() + windows.push(win) + for (const { port, owner, links, before } of [...changed, ...others]) { + const where = `${port} ${qualifiedNameOf(owner)}` + win.document.body.innerHTML = withoutScope(await container.renderToString(template as never, { + request: new Request(`https://libtmux.org/en/${port}/latest/reference/${owner.slug}/`), params: { slug: owner.slug }, props: { model: API_MODELS[port], owner }, + })) + const ids = [...win.document.querySelectorAll('h2[id^="api-"]')].map((heading) => heading.id) + expect(ids, where).toContain('api-related-types') + const cards = shown(win.document, '.api-related-card > a') + const chips = shown(win.document, 'nav.api-related a') + expect(cards.map((item) => item.label), where).toEqual(links.map((link) => link.name)) + expect(chips.map((item) => item.label), where).toEqual(cards.map((item) => item.label)) + expect(duplicates(cards.map((item) => item.label!)), where).toEqual([]) + for (const [i, link] of links.entries()) { + expect(cards[i]!.title, where).toBe(link.identity) + expect(cards[i]!.href, where).toMatch(new RegExp(`/${link.symbol.slug}/$`)) + expect(cards[i]!.mark, where).toBeTruthy() + expect(cards[i]!.markup, `${where}: ${link.name}`).toBe(markup(link.name, before[i]!)) + } + } + expect(changed.length).toBeGreaterThan(0) + }, 300_000) + + describe('on the tmux C source reference', () => { + // The related types these two pages listed before the owner rule, which no C page takes. + const expected = { + cmd_list_panes_exec: ['c:enum:cmd_retval', 'c:struct:cmd', 'c:struct:cmdq_item'], + cmd_list_panes_window: ['c:struct:cmd', 'c:struct:session', 'c:struct:winlink', 'c:struct:cmdq_item'], + } + + it.each(Object.entries(expected))('keeps the related types of %s, as a section of the page and in the chips', async (name, related) => { + const model = tmuxSourceModel('latest') + const byId = new Map(model.symbols.map((entry) => [entry.id, entry])) + const symbol = model.symbols.find((entry) => entry.name === name)! + const document = await reference({ source: tmuxReferenceContext('latest', symbol), owner: symbol, searchable: false }, undefined, '/') + const ids = [...document.querySelectorAll('h2[id^="api-"]')].map((heading) => heading.id) + // The section follows the declarations the function references, and a section a later change appends may follow it. + expect(ids).toContain('api-referenced-declarations') + expect(ids.indexOf('api-related-types')).toBeGreaterThan(ids.indexOf('api-referenced-declarations')) + const labels = related.map((id) => byId.get(id)!.name) + const cards = shown(document, '.api-related-card > a') + expect(cards.map((item) => item.label)).toEqual(labels) + expect(shown(document, 'nav.api-related a').map((item) => item.label)).toEqual(labels) + for (const [i, item] of cards.entries()) { + expect(item.markup, item.label!).toBe(item.label) + expect(item.title, item.label!).toBe(item.label) + expect(item.href, item.label!).toBe(tmuxReferenceUrl('latest', byId.get(related[i]!)!)) + expect(item.mark, item.label!).toBeTruthy() + } + }, 120_000) + }) +}) diff --git a/site/test/tmux-library-usage.test.ts b/site/test/tmux-library-usage.test.ts new file mode 100644 index 000000000..b98036252 --- /dev/null +++ b/site/test/tmux-library-usage.test.ts @@ -0,0 +1,1121 @@ +import { readFileSync } from 'node:fs' +import { experimental_AstroContainer } from 'astro/container' +import { Window } from 'happy-dom' +import { afterEach, describe, expect, it, vi } from 'vitest' +import { dispatcherProblems, documentProblems, isPrivateSymbol, notPublic, publicSymbols, viaRevisionFor } from '../../scripts/gen-tmux-usage.mjs' +import { API_MODELS } from '../src/lib/api-models' +import { PORTS } from '../src/lib/ports' +import { symbolMarkdown } from '../src/lib/symbol-markdown' +import { TMUX_MANUALS, tmuxApiLinks, tmuxCommandsFor, tmuxLibrarySection, tmuxManualHeadings, tmuxManualUrl } from '../src/lib/tmux-manual-data' +import { TMUX_USAGE, isListed, namesCommand, tmuxScopes, tmuxUsage, tmuxUsageOf, type UsageUse } from '../src/lib/tmux-library-usage' +import { + sharedWhen, tmuxCommandRows, tmuxCommandSources, tmuxReferenceContext, tmuxReferenceIndex, tmuxReferenceUrl, tmuxResolvedUsage, tmuxSourceModel, tmuxSymbolSends, +} from '../src/lib/tmux-reference' +import { loadAstroTemplate, renderAstroTemplate, withoutScope } from './astro-templates' + +vi.mock('astro:content', () => ({ getCollection: async () => [] })) + +const windows: Window[] = [] +afterEach(async () => { for (const win of windows.splice(0)) await win.happyDOM.abort() }) +const dom = (html: string) => { + const win = new Window() + windows.push(win) + win.document.body.innerHTML = html + return win.document +} + +const scopeTable = JSON.parse(readFileSync(new URL('../src/data/tmux-usage/scopes.json', import.meta.url), 'utf8')) +const usage = tmuxUsage('list-panes')! +/** What a port lists at one scope of list-panes. */ +const cell = (scope: string, port: string) => usage.groups.find((group) => group.scope?.id === scope)!.ports.find((entry) => entry.port === port)?.links.map((link) => link.label) + +describe('the recorded usage', () => { + /** Every command either pinned manual documents. */ + const manualCommands = [...new Set(Object.values(TMUX_MANUALS).flatMap((manual) => manual.commands.map((command) => command.name)))].sort() + + const forwarders = JSON.parse(readFileSync(new URL('../../scripts/tmux-usage/forwarders.json', import.meta.url), 'utf8')).forwarders + const viaRevision = (slug: string) => viaRevisionFor(API_MODELS[slug], forwarders[slug] && API_MODELS[forwarders[slug].parent]) + + it.each(PORTS.map((port) => port.slug))('is bound to the pinned API model of %s', (slug) => { + expect(documentProblems(TMUX_USAGE[slug], API_MODELS[slug], scopeTable, manualCommands, viaRevision(slug))).toEqual([]) + }) + + it('reads the core lines of a wrapper where the wrapper is pinned when both live in one repository', () => { + // F# is pinned at a revision older than the C# model, and cites the C# lines as they read there. + expect(API_MODELS.fsharp.revision).not.toBe(API_MODELS.csharp.revision) + expect(viaRevision('fsharp')).toBe(API_MODELS.fsharp.revision) + // PowerShell lives in its own repository and depends on the C# release, so it cites that release's lines. + expect(viaRevision('powershell')).toBe(API_MODELS.csharp.revision) + expect(viaRevision('kotlin')).toBe(API_MODELS.kotlin.revision) + expect(viaRevision('py')).toBeUndefined() + for (const [symbol, uses] of Object.entries(TMUX_USAGE.fsharp.symbols)) { + for (const use of uses) if (use.via) expect(use.via.revision, `${symbol} ${use.command}`).toBe(API_MODELS.fsharp.revision) + } + }) + + it('refuses a via that cites core lines at a revision other than the one they must be read at', () => { + const document = TMUX_USAGE.fsharp + const [symbol, uses] = Object.entries(document.symbols).find(([, list]) => list.some((use) => use.via))! + const moved = (revision: string | undefined) => ({ + ...document, symbols: { ...document.symbols, [symbol]: uses.map((use) => (use.via ? { ...use, via: { ...use.via, revision } } : use)) }, + }) + expect(documentProblems(moved(API_MODELS.csharp.revision), API_MODELS.fsharp, scopeTable, manualCommands, viaRevision('fsharp')).join('\n')) + .toMatch(new RegExp(`cites csharp lines at ${API_MODELS.csharp.revision}, which must be ${API_MODELS.fsharp.revision}`)) + expect(documentProblems(moved(undefined), API_MODELS.fsharp, scopeTable, manualCommands, viaRevision('fsharp')).join('\n')).toMatch(/at no revision/) + // The control: the document as committed. + expect(documentProblems(document, API_MODELS.fsharp, scopeTable, manualCommands, viaRevision('fsharp'))).toEqual([]) + }) + + it('records public API only: a private helper is neither read from the model nor accepted in a document', () => { + const model = { + ...API_MODELS.py, + symbols: [ + ...API_MODELS.py.symbols, + { id: 'libtmux.Server._show_option', name: '_show_option', kind: 'method', modifiers: [], parent: 'libtmux.Server', source: { file: 'src/libtmux/server.py', line: 1 } }, + { id: 'libtmux.Server.__repr__', name: '__repr__', kind: 'method', modifiers: [], parent: 'libtmux.Server', source: { file: 'src/libtmux/server.py', line: 2 } }, + { id: 'libtmux.Server.hidden', name: 'hidden', kind: 'method', modifiers: ['private'], parent: 'libtmux.Server', source: { file: 'src/libtmux/server.py', line: 3 } }, + { id: 'libtmux._internal.control_mode.ControlMode.__enter__', name: '__enter__', kind: 'method', modifiers: [], parent: 'libtmux._internal.control_mode.ControlMode', source: { file: 'src/libtmux/_internal/control_mode.py', line: 4 } }, + ], + } + const names = publicSymbols(model).map((symbol: { id: string }) => symbol.id) + expect(names).not.toContain('libtmux.Server._show_option') + expect(names).not.toContain('libtmux.Server.hidden') + // A method of a private module is private, whatever its own name. + expect(names).not.toContain('libtmux._internal.control_mode.ControlMode.__enter__') + // A dunder is the language's protocol, not a helper. + expect(names).toContain('libtmux.Server.__repr__') + expect(isPrivateSymbol({ name: '_x', id: 'libtmux.Server._x' })).toBe(true) + expect(isPrivateSymbol({ name: '__init__', id: 'libtmux.Server.__init__' })).toBe(false) + expect(isPrivateSymbol({ name: '__enter__', id: 'libtmux._internal.control_mode.ControlMode.__enter__' })).toBe(true) + expect(isPrivateSymbol({ name: 'x', id: 'libtmux.Server.x', apiScope: 'internal' })).toBe(true) + const document = { ...TMUX_USAGE.py, symbols: { ...TMUX_USAGE.py.symbols, 'libtmux.Server._show_option': [{ command: 'show-options', scope: null, evidence: ['a.py:1'] }] } } + expect(documentProblems(document, model, scopeTable, manualCommands)).toEqual(['libtmux.Server._show_option: is private or package-private, and only public API is recorded']) + // None of the committed documents records a private symbol. + for (const slug of PORTS.map((port) => port.slug)) { + const privates = API_MODELS[slug].symbols.filter(isPrivateSymbol).map((symbol: { publicId?: string; id: string }) => symbol.publicId ?? symbol.id) + expect(Object.keys(TMUX_USAGE[slug].symbols).filter((id) => privates.includes(id)), slug).toEqual([]) + } + }) + + it('records public API only in Java and elsewhere: a member declared without public, or with a narrower visibility, is not recorded', () => { + const member = (name: string, raw: string, parent = 'io.libtmux.Type') => ({ + id: `${parent}.${name}`, name, kind: 'method', modifiers: [], parent, signatures: [{ raw }], source: { file: 'src/main/java/io/libtmux/Type.java', line: 1 }, + }) + const model = { + ...API_MODELS.java, + symbols: [ + { id: 'io.libtmux.Type', name: 'Type', kind: 'class', modifiers: [], source: { file: 'src/main/java/io/libtmux/Type.java', line: 1 } }, + { id: 'io.libtmux.Face', name: 'Face', kind: 'interface', modifiers: [], source: { file: 'src/main/java/io/libtmux/Face.java', line: 1 } }, + member('visible', 'public String visible()'), + member('annotated', '@Operation(Kind.READ)\npublic String annotated()'), + member('packaged', 'String packaged()'), + member('guarded', 'protected String guarded()'), + member('implicit', 'String implicit()', 'io.libtmux.Face'), + ], + } + const names = publicSymbols(model).map((symbol: { name: string }) => symbol.name) + expect(names).toEqual(expect.arrayContaining(['visible', 'annotated'])) + // A member declared without `public` cannot be called by the library's user, and an interface member is public without saying so. + expect(names).not.toContain('packaged') + expect(names).not.toContain('guarded') + expect(names).toContain('implicit') + const record = (id: string) => ({ ...TMUX_USAGE.java, revision: model.revision, symbols: { [id]: [{ command: 'list-panes', scope: 'server', evidence: ['a.java:1'] }] } }) + expect(documentProblems(record('io.libtmux.Type.packaged'), model, scopeTable, manualCommands).filter((problem: string) => /packaged/.test(problem))) + .toEqual(['io.libtmux.Type.packaged: is private or package-private, and only public API is recorded']) + // The control: a public member, and an interface member, are accepted. + expect(documentProblems(record('io.libtmux.Type.visible'), model, scopeTable, manualCommands).filter((problem: string) => /visible/.test(problem))).toEqual([]) + expect(documentProblems(record('io.libtmux.Face.implicit'), model, scopeTable, manualCommands).filter((problem: string) => /implicit/.test(problem))).toEqual([]) + // The visibility is read off the signature of any port: Kotlin `internal`, Rust `pub(crate)`, Swift `fileprivate`. + const byId = new Map() + expect(notPublic({ signatures: [{ raw: 'internal suspend fun Batch.run(): BatchResult' }] }, byId, 'kotlin')).toBe(true) + expect(notPublic({ signatures: [{ raw: '#[cfg(feature = "x")]\npub(crate) async fn run(&self)' }] }, byId, 'rs')).toBe(true) + expect(notPublic({ signatures: [{ raw: 'fileprivate func run()' }] }, byId, 'swift')).toBe(true) + expect(notPublic({ signatures: [{ raw: '#[cfg(feature = "x")]\npub async fn run(&self)' }] }, byId, 'rs')).toBe(false) + expect(notPublic({ signatures: [{ raw: 'public suspend fun Batch.run(): BatchResult' }] }, byId, 'kotlin')).toBe(false) + // A default-visibility signature is public in every port but Java. + expect(notPublic({ signatures: [{ raw: 'def run(self)' }] }, byId, 'py')).toBe(false) + // None of the committed documents records a member its model declares non-public. + for (const slug of PORTS.map((port) => port.slug)) { + const index = new Map(API_MODELS[slug].symbols.map((symbol: { id: string }) => [symbol.id, symbol])) + const hidden = API_MODELS[slug].symbols.filter((symbol) => notPublic(symbol, index as never, slug)).map((symbol: { publicId?: string; id: string }) => symbol.publicId ?? symbol.id) + expect(Object.keys(TMUX_USAGE[slug].symbols).filter((id) => hidden.includes(id)), slug).toEqual([]) + } + }) + + it('refuses a dispatching call whose cited definition is gone, differs, or does not show the call defined', () => { + const source = 'def cmd(self, *args):\n return run(args)\n' + const readSource = (path: string) => (path === 'lib.py' ? source : undefined) + const rule = (over: Record = {}) => ({ name: 'cmd', why: 'Runs the command it is given.', evidence: [{ at: 'lib.py:1', has: ['def cmd('] }], ...over }) + const problems = (over: Record) => dispatcherProblems({ port: 'py', dispatchers: [rule(over)], readSource }) + expect(problems({})).toEqual([]) + expect(problems({ evidence: [{ at: 'lib.py:9', has: ['def cmd('] }] })).toEqual(['py: dispatcher cmd: lib.py:9 is not a line of the pinned source', 'py: dispatcher cmd: no cited line shows cmd defined']) + expect(problems({ evidence: [{ at: 'lib.py:2', has: ['def cmd('] }] }).join('\n')).toMatch(/lib.py:2 does not contain "def cmd\("/) + expect(problems({ evidence: [{ at: 'lib.py:2', has: ['run(args)'] }] })).toEqual(['py: dispatcher cmd: no cited line shows cmd defined']) + expect(problems({ why: ' ' })).toEqual(['py: dispatcher cmd: names no call or gives no reason']) + expect(problems({ evidence: [] })).toEqual(['py: dispatcher cmd: cites no definition']) + }) + + it('records every command of the manual, for every port', () => { + expect(manualCommands).toContain('list-panes') + expect(manualCommands).toContain('set-window-option') + for (const slug of PORTS.map((port) => port.slug)) expect(TMUX_USAGE[slug].commands, slug).toEqual(manualCommands) + }) + + it('refuses a document that records fewer commands than the manual, or one the model does not have', () => { + const document = TMUX_USAGE.py + expect(documentProblems({ ...document, commands: ['list-panes'] }, API_MODELS.py, scopeTable, manualCommands, undefined)).toEqual([expect.stringMatching(/^covers \["list-panes"\]/)]) + expect(documentProblems({ ...document, revision: 'stale' }, API_MODELS.py, scopeTable, manualCommands)).toEqual([expect.stringMatching(/^records stale/)]) + const bogus = { ...document, symbols: { ...document.symbols, 'libtmux.Server.nope': [{ command: 'kill-pane', scope: null, evidence: ['a.py:1'] }] } } + expect(documentProblems(bogus, API_MODELS.py, scopeTable, manualCommands)).toEqual(['libtmux.Server.nope: not a symbol of the API model']) + const unscoped = { ...document, symbols: { ...document.symbols, 'libtmux.Server.panes': [{ command: 'list-panes', scope: null, evidence: ['a.py:1'] }] } } + expect(documentProblems(unscoped, API_MODELS.py, scopeTable, manualCommands)).toEqual(['libtmux.Server.panes: null is not a scope of list-panes']) + }) + + it('names the methods that send list-panes at each scope, where the ports differ in design', () => { + expect(cell('server', 'swift')).toEqual(['Server.panes()', 'Server.panes(where:)']) + expect(cell('server', 'py')).toEqual(['Server.panes', 'Server.search_panes']) + expect(cell('session', 'py')).toEqual(['Session.panes', 'Session.search_panes']) + expect(cell('window', 'cxx')).toEqual(['Window::panes']) + // Ruby's Async scope inherits the core server's methods, so both handles are listed, told apart by their namespace. + expect(cell('server', 'ruby')).toEqual(expect.arrayContaining(['Async::Server#list_panes', 'LibTmux::Server#list_panes'])) + expect(cell('session', 'ruby')).toEqual(['Session#list_panes']) + expect(cell('window', 'go')).toEqual(expect.arrayContaining(['Window.SearchPanes', 'Server.Pane'])) + // A snapshot-based port sends the command in its snapshot call. + expect(cell('server', 'ts')).toEqual(['Server.snapshot']) + expect(cell('server', 'lua')).toEqual(['Server:snapshot']) + // A wrapper stands on the library it calls. + expect(cell('server', 'powershell')).toEqual(['Get-TmuxPane']) + expect(cell('window', 'powershell')).toEqual(['Get-TmuxPane']) + }) + + it('leaves out a method that reads a capture instead of sending the command', () => { + // Go documents Session.Panes and Window.Panes as never querying tmux; the search methods send it. + expect(cell('session', 'go')).toEqual(['Session.SearchPanes']) + expect(cell('window', 'go')).not.toContain('Window.Panes') + // TypeScript and Swift read sessions and windows from a captured snapshot. + expect(cell('session', 'ts')).toBeUndefined() + expect(cell('window', 'ts')).toBeUndefined() + expect(cell('session', 'swift')).toBeUndefined() + // Kotlin and Scala wrap Java, which sends at the server only: their session and window readers send nothing. + for (const port of ['java', 'kotlin', 'scala']) { + for (const scope of ['session', 'window']) expect(cell(scope, port), `${port} ${scope}`).toBeUndefined() + } + }) + + it('credits a wrapper with the core method it calls, at the scope that method sends', () => { + expect(cell('server', 'java')).toEqual(['Server.paneFields', 'Server.panes', 'Server.snapshot']) + expect(cell('server', 'kotlin')).toEqual(['Server.paneFields', 'Server.panes', 'Server.snapshot']) + // Scala has two handles to one server, and the cell tells them apart. + expect(cell('server', 'scala')).toEqual(expect.arrayContaining(['cats.Server.panes', 'scaladsl.Server.panes'])) + // F# builds a session and then lists the panes of the session it made, and not of the server. + expect(cell('session', 'fsharp')).toEqual(['newSession']) + // tryFindPane reads one pane by id through Server.FindPaneAsync, which lists below tmux 3.3 and asks display-message + // from there, and the F# revision supports 3.2a: neither command holds on every release, so none is recorded. + expect(cell('server', 'fsharp')).toBeUndefined() + expect(tmuxUsageOf('fsharp', 'LibTmux.FSharp.Server.tryFindPane')).toEqual([]) + const kotlin = tmuxUsageOf('kotlin', 'io.github.libtmux.kotlin.Server.panes') + expect(kotlin.find((entry) => entry.command === 'list-panes')!.scopes[0]).toMatchObject({ + via: { port: 'java', symbol: 'io.github.libtmux.Server.Server.panes', evidence: ['libtmux/src/main/java/io/github/libtmux/Server.java:998'] }, + }) + }) + + it('lists a lookup by the command it sends, and not by the list name it passes to choose a format', () => { + const labels = (port: string, command: string) => tmuxUsage(command)!.groups.flatMap((group) => group.ports.filter((entry) => entry.port === port).flatMap((entry) => entry.links.map((link) => link.label))) + // The 3.3a floor of this revision drops the fallback that listed with -a, so every supported release asks display-message. + expect(labels('csharp', 'display-message')).toEqual(expect.arrayContaining(['Server.FindPaneAsync', 'Server.GetPaneAsync', 'Server.FindWindowAsync', 'Server.FindSessionAsync'])) + for (const name of ['Server.FindPaneAsync', 'Server.GetWindowAsync', 'Server.FindSessionAsync', 'Session.RefreshAsync']) { + for (const command of ['list-panes', 'list-windows', 'list-sessions']) expect(labels('csharp', command), `${name} ${command}`).not.toContain(name) + } + }) + + it('lists the object that owns the scope before a method that sends the command for its own purpose', () => { + expect(cell('window', 'py')).toEqual(['Window.panes', 'Window.search_panes', 'Pane.from_pane_id']) + expect(cell('session', 'rs')).toEqual(['Session.panes', 'ControlSender.watch_only']) + }) + + it('lists the ports in the order the site lists them', () => { + const order = PORTS.map((port) => port.slug) + for (const group of usage.groups) { + const slugs = group.ports.map((entry) => entry.port) + expect(slugs).toEqual(order.filter((slug) => slugs.includes(slug))) + } + }) + + it('keeps a call through a helper with the method and off the command pages', () => { + const go = tmuxUsageOf('go', 'tmux.Pane.Select').filter((entry) => entry.command === 'list-panes') + expect(go).toHaveLength(1) + expect(go[0].scopes[0]).toMatchObject({ hops: 1, evidence: ['tmux/lookup.go:369', 'tmux/window_pane_topology.go:199'] }) + expect(usage.groups.flatMap((group) => group.ports).flatMap((entry) => entry.links).map((link) => link.symbolId)).not.toContain('tmux.Pane.Select') + }) + + it('links every method to its own page', () => { + for (const link of usage.groups.flatMap((group) => group.ports).flatMap((entry) => entry.links)) { + expect(link.href).toMatch(new RegExp(`/${link.port}/[^/]+/reference/[^/]+/$`)) + expect(link.evidence[0]).toMatch(/^[^:]+:\d+$/) + } + }) + + it('has no usage for a command it has not recorded', () => { + expect(tmuxUsage('no-such-command')).toBeUndefined() + expect(tmuxScopes('no-such-command')).toEqual([]) + expect(tmuxUsageOf('py', 'libtmux.Pane.nope')).toEqual([]) + // A command with no scope helpers has one table with no scope heading. + expect(tmuxUsage('kill-pane')!.groups.map((group) => group.scope)).toEqual([undefined]) + }) +}) + +describe('which sends through a helper are listed', () => { + const use = (over: Partial = {}): UsageUse => ({ command: 'send-keys', scope: null, evidence: ['a.ts:1', 'b.ts:2'], ...over }) + + it('lists a method whose own name carries the verb of the command, and not one that refreshes afterwards', () => { + expect(namesCommand('send-keys', 'sendKeysAsync')).toBe(true) + expect(namesCommand('send-keys', 'Send-TmuxText')).toBe(true) + expect(namesCommand('list-panes', 'GetPanesAsync')).toBe(true) + expect(namesCommand('new-window', 'createWindow')).toBe(true) + expect(namesCommand('kill-server', 'close')).toBe(true) + // The controls: a method that sends the command only to refresh what it changed, or to look something up. + expect(namesCommand('list-panes', 'sendKeys')).toBe(false) + expect(namesCommand('list-panes', 'splitPane')).toBe(false) + expect(namesCommand('send-keys', 'select')).toBe(false) + }) + + it('applies to a call through a helper only: a direct send and a reviewed claim are listed, whatever the name', () => { + expect(isListed(use({ evidence: ['a.ts:1'] }), 'unrelated')).toBe(true) + expect(isListed(use({ reviewed: true }), 'unrelated')).toBe(true) + expect(isListed(use(), 'unrelated')).toBe(false) + expect(isListed(use(), 'Pane.sendKeys')).toBe(true) + // Swift ids carry argument labels, which hold colons of their own. + expect(isListed(use({ command: 'capture-pane' }), 'Server.capture(_:includingHistory:)')).toBe(true) + expect(isListed(use({ command: 'list-panes' }), 'Server.sendKeys(_:to:literally:)')).toBe(false) + // A wrapper is listed by its own name or the core method's, and by a reviewed core entry. + const wrapped = (over: Partial> = {}) => use({ evidence: ['w.kt:5'], via: { port: 'java', symbol: 'core.Pane.sendKeys', evidence: ['A.java:1', 'A.java:2'], ...over } }) + expect(isListed(wrapped(), 'wrapper.Pane.run')).toBe(true) + expect(isListed(wrapped({ symbol: 'core.Pane.run' }), 'wrapper.Pane.run')).toBe(false) + expect(isListed(wrapped({ symbol: 'core.Pane.run', reviewed: true }), 'wrapper.Pane.run')).toBe(true) + expect(isListed(wrapped({ symbol: 'core.Pane.run', evidence: ['A.java:1'] }), 'wrapper.Pane.run')).toBe(true) + }) + + it('puts the methods that send through a helper on the page of their own command, and not a lookup they make on the way', () => { + const labels = (command: string, port: string) => tmuxUsage(command)!.groups.flatMap((group) => group.ports).filter((entry) => entry.port === port).flatMap((entry) => entry.links.map((link) => link.label)) + expect(labels('send-keys', 'go')).toEqual(expect.arrayContaining(['Pane.SendKeys'])) + expect(labels('send-keys', 'csharp')).toContain('Pane.SendKeysAsync') + expect(labels('send-keys', 'ts')).toContain('Pane.sendKeys') + // Go's Pane.Select looks panes up with list-panes first; that stays on its own page. + expect(labels('list-panes', 'go')).not.toContain('Pane.Select') + expect(labels('select-pane', 'go')).toContain('Pane.Select') + }) + + it('tells two methods of one language that share a name apart, and names a member by whole segments', () => { + const labels = (command: string, port: string) => tmuxUsage(command)!.groups.flatMap((group) => group.ports).filter((entry) => entry.port === port).flatMap((entry) => entry.links.map((link) => link.label)) + expect(labels('new-session', 'ruby')).toEqual(['Async::Server#new_session', 'LibTmux::Server#new_session']) + // `Pane` ends `NewPane`, but the owner is the whole segment before it. + expect(labels('new-pane', 'go')).toContain('Pane.NewPane') + expect(labels('new-pane', 'go')).not.toContain('Pane') + }) +}) + +describe('a release a library refuses to send on', () => { + const use = (port: string, symbol: string, command: string) => TMUX_USAGE[port].symbols[symbol]?.find((entry) => entry.command === command) + + it('says so on a command that exists on a supported release and that the library will not send there', () => { + // Pane.paste and Buffers.delete throw before tmux 3.4, where deleting a named buffer can remove another; java supports 3.2a. + const refused = [ + ['java', 'io.github.libtmux.Pane.Pane.paste', ['load-buffer', 'paste-buffer']], + ['java', 'io.github.libtmux.Buffers.Buffers.delete', ['delete-buffer']], + ['kotlin', 'io.github.libtmux.kotlin.Pane.paste', ['load-buffer', 'paste-buffer']], + ['kotlin', 'io.github.libtmux.kotlin.Buffers.delete', ['delete-buffer']], + ['scala', 'io.github.libtmux.scaladsl.Pane.paste', ['load-buffer', 'paste-buffer']], + ['scala', 'io.github.libtmux.scaladsl.cats.Pane.paste', ['load-buffer', 'paste-buffer']], + ['scala', 'io.github.libtmux.scaladsl.cats.Buffers.delete', ['delete-buffer']], + ] as const + const entries = refused.flatMap(([port, symbol, commands]) => commands.map((command) => ({ label: `${port} ${symbol} ${command}`, entry: use(port, symbol, command) }))) + expect(entries).toHaveLength(11) + for (const { label, entry } of entries) expect(entry?.when, label).toBe('except before tmux 3.4') + // Lua's delete_buffer refuses the same way. Go's confirm-before and command-prompt send -b on every release it supports, since its floor is the 3.3a that has it, so they carry no qualifier. + expect(use('lua', 'libtmux.Server:delete_buffer', 'delete-buffer')?.when).toBe('except before tmux 3.4') + for (const [symbol, command] of [['tmux.Server.ConfirmBefore', 'confirm-before'], ['tmux.Server.CommandPrompt', 'command-prompt']] as const) { + expect(use('go', symbol, command), symbol).toBeDefined() + expect(use('go', symbol, command)?.when, symbol).toBeUndefined() + } + // run-shell's output is lost on every release from 3.3 until 3.5, which is a range and not two releases. + for (const [port, symbol] of [['java', 'io.github.libtmux.Shell.Shell.capturing'], ['kotlin', 'io.github.libtmux.kotlin.Shell.capturing'], ['scala', 'io.github.libtmux.scaladsl.cats.Shell.capturing']] as const) { + expect(use(port, symbol, 'run-shell')?.when, `${port} ${symbol}`).toBe('except from tmux 3.3 until 3.5') + } + // The controls: a method that pastes a buffer that already exists refuses nothing, and a command that tmux itself lacks before a release needs no qualifier. + expect(use('java', 'io.github.libtmux.Pane.Pane.pasteBuffer', 'paste-buffer')?.when).toBeUndefined() + for (const [port, symbol] of [['csharp', 'LibTmux.Pane.CreatePaneAsync'], ['csharp', 'LibTmux.Window.CreatePaneAsync'], ['go', 'tmux.Pane.NewPane'], ['go', 'tmux.Window.NewPane'], ['py', 'libtmux.Pane.new_pane'], ['py', 'libtmux.Window.new_pane']] as const) { + const entry = use(port, symbol, 'new-pane') + expect(entry, `${port} ${symbol}`).toBeDefined() + expect(entry?.when, `${port} ${symbol}`).toBeUndefined() + } + }) + + it('records what elixir sends where a call spells it, and nothing for a function that builds or forwards a command', () => { + // A capture lists the server's sessions, windows, panes and clients, and reads identity and text fields with display-message. + for (const symbol of ['LibTmux.Capture.fetch/2', 'LibTmux.Server.snapshot/2', 'LibTmux.Server.snapshot!/2']) { + expect(use('elixir', symbol, 'list-panes'), symbol).toMatchObject({ scope: 'server', reviewed: true }) + expect(use('elixir', symbol, 'list-windows'), symbol).toMatchObject({ scope: 'server', reviewed: true }) + expect(use('elixir', symbol, 'list-sessions'), symbol).toMatchObject({ scope: null, reviewed: true }) + } + // A submitted request sends the command it was built as, which the request says. + expect(use('elixir', 'LibTmux.Control.submit/3', 'display-message')?.when).toBe('the request reads a field') + expect(use('elixir', 'LibTmux.Control.submit/3', 'set-option')?.when).toBe('the request sets a user option') + expect(use('elixir', 'LibTmux.Control.start_link/1', 'attach-session')).toMatchObject({ reviewed: true }) + // A reconnect attaches again only after a close, through a message to the connection manager, which re-runs the bootstrap it was started with. + for (const symbol of ['LibTmux.Control.reconnect/2', 'LibTmux.Control.reconnect!/2']) { + for (const command of ['attach-session', 'display-message']) expect(use('elixir', symbol, command), `${symbol} ${command}`).toMatchObject({ reviewed: true, when: 'the connection is closed' }) + } + // The control: starting a connection attaches whenever it is called, so it carries no qualifier. + expect(use('elixir', 'LibTmux.Control.start_link/1', 'attach-session')?.when).toBeUndefined() + // A function of a module that is not a type is still named by its module, and Lua's functions, which no type owns, are not. + const labels = (port: string, command: string) => tmuxUsage(command)!.groups.flatMap((group) => group.ports).filter((entry) => entry.port === port).flatMap((entry) => entry.links.map((link) => link.label)) + expect(labels('elixir', 'list-panes')).toEqual(expect.arrayContaining(['Capture.fetch/2', 'Server.snapshot/2'])) + expect(labels('elixir', 'list-panes')).not.toContain('fetch/2') + expect(labels('lua', 'list-panes')).toContain('Server:snapshot') + // The controls: a request is data and sends nothing until it is submitted, and a function that runs the command it is handed spells none. + for (const symbol of ['LibTmux.Control.Request.set_user_option/2', 'LibTmux.Control.Request.field/2', 'LibTmux.Server.run/3', 'LibTmux.Transport.OneShot.run/3']) { + expect(TMUX_USAGE.elixir.symbols[symbol], symbol).toBeUndefined() + } + }) + + it('says when a launch sends what it sends, from the line the default launch reaches', () => { + // ts: only a minimal launch starts the server and reads the owner option; the facts are disclosed whenever the server is there. + expect(use('ts', 'mcp.server.main', 'start-server')?.when).toBe('a minimal launch, no explicit selection') + expect(use('ts', 'mcp.server.main', 'show-options')?.when).toBe('a minimal launch, no explicit selection') + expect(use('ts', 'mcp.server.main', 'display-message')?.when).toBe('unless an explicit launch finds no server') + // java: the default launch is the dedicated server, which starts it and reads its metadata; an explicit one only reads it. + const main = 'io.github.libtmux.mcp.Main.Main.main' + expect(use('java', main, 'start-server')).toMatchObject({ when: 'the launch chooses no socket', reviewed: true }) + expect(use('java', main, 'start-server')?.evidence[0]).toBe('libtmux-mcp/src/main/java/io/github/libtmux/mcp/LaunchConfiguration.java:106') + expect(use('java', main, 'display-message')?.when).toBeUndefined() + expect(use('java', main, 'display-message')?.evidence[0]).toBe('libtmux-mcp/src/main/java/io/github/libtmux/mcp/LaunchConfiguration.java:111') + // go: the helper registers a kill for the end of the test, which is not a send of the call itself. + expect(use('go', 'tmuxtest.NewSession', 'kill-session')?.when).toBe('the test ends, in t.Cleanup') + // ts: an explicit launch asks whether the server is there (list-sessions) and, if it is, for its socket path; the lines that say so are cited. + expect(use('ts', 'mcp.server.main', 'list-sessions')).toMatchObject({ when: 'an explicit launch', reviewed: true }) + expect(use('ts', 'mcp.server.main', 'display-message')?.evidence).toEqual(expect.arrayContaining(['packages/mcp/src/startup.ts:107', 'packages/mcp/src/startup.ts:110', 'packages/mcp/src/startup.ts:124'])) + }) + + it('credits a wrapper with every send of a method it calls, and reads a hook the way it reads an option', () => { + // OpenObservation sends list-windows on every call, as it does the other four, so the method that opens one has all five. + const sends = (symbol: string) => (TMUX_USAGE.go.symbols[symbol] ?? []).map((entry) => entry.command).sort() + expect(sends('tmux.Pane.OpenObservation')).toEqual(['capture-pane', 'delete-buffer', 'list-windows', 'refresh-client', 'save-buffer']) + expect(sends('tmux.Running.StreamTo')).toEqual(expect.arrayContaining(sends('tmux.Pane.OpenObservation'))) + expect(use('go', 'tmux.Running.StreamTo', 'list-windows')).toMatchObject({ scope: 'session', via: { symbol: 'tmux.Pane.OpenObservation' } }) + // The control: a claim that only some arguments reach is not forwarded, so a wrapper that passes its own does not inherit it. + expect(use('go', 'tmux.Server.NewSession', 'list-sessions')).toMatchObject({ when: 'a name is given', incidental: true, reviewed: true }) + expect(use('go', 'tmux.Server.NewSessionConnection', 'list-sessions')).toMatchObject({ when: 'a name is given', incidental: true, reviewed: true }) + expect(Object.entries(TMUX_USAGE.go.symbols).filter(([symbol, entries]) => symbol !== 'tmux.Server.NewSession' && entries.some((entry) => entry.via?.symbol === 'tmux.Server.NewSession' && entry.command === 'list-sessions'))).toEqual([]) + // julia's get_hook reads hooks with show-options -H on either receiver, as set_hook and unset_hook check them first; it is what it is for. + expect(use('julia', 'LibTmux.get_hook', 'show-options')).toMatchObject({ reviewed: true }) + expect(use('julia', 'LibTmux.get_hook', 'show-options')?.incidental).toBeUndefined() + expect(use('julia', 'LibTmux.get_hook', 'show-options')?.when).toBeUndefined() + expect(use('julia', 'LibTmux.set_hook', 'show-options')).toMatchObject({ incidental: true, when: 'on a Server' }) + }) + + it('credits go\'s probe before every command to no method for the check itself, and only to the methods that probe as a step of their own', () => { + // The probe is the library's own preflight, recorded as a rule, so a method that merely sends a command is not credited with the run-shell that precedes it. + const rules = JSON.parse(readFileSync(new URL('../../scripts/tmux-usage/preflights.json', import.meta.url), 'utf8')).preflights as { port: string; command: string; why: string }[] + expect(rules.find((rule) => rule.port === 'go' && rule.command === 'run-shell')?.why).toMatch(/before every ordinary command/) + for (const symbol of ['tmux.Server.NewSession', 'tmux.Session.Kill', 'tmux.Pane.SendKeys', 'tmux.Server.ListSessions']) { + expect(use('go', symbol, 'run-shell'), symbol).toBeUndefined() + } + // What carries run-shell besides the method that is run-shell is a lookup or a snapshot, whose own step is the probe, said so and not listed on the command's page. + const probers = Object.entries(TMUX_USAGE.go.symbols).filter(([symbol, entries]) => !/Server\.RunShell$|Running\.Kill$/.test(symbol) && entries.some((entry) => entry.command === 'run-shell')) + expect(probers.length).toBeGreaterThan(10) + for (const [symbol, entries] of probers) { + const entry = entries.find((candidate) => candidate.command === 'run-shell')! + expect(entry.when, symbol).toBe('the Server has no daemon identity') + expect(entry.reviewed || entry.via, symbol).toBeTruthy() + } + expect(tmuxUsage('run-shell')!.groups.flatMap((group) => group.ports).filter((entry) => entry.port === 'go').flatMap((entry) => entry.links.map((link) => link.label))).toEqual(expect.arrayContaining(['Server.RunShell'])) + expect(tmuxUsage('run-shell')!.groups.flatMap((group) => group.ports).filter((entry) => entry.port === 'go').flatMap((entry) => entry.links.map((link) => link.label))).not.toContain('Server.Session') + }) + + it('says which request HasSession sends has-session for and which it lists sessions for, since it does one or the other', () => { + // An exact-name check lists sessions and compares names, because tmux's exact-match marker still resolves identifiers; a pattern goes to has-session. + expect(use('go', 'tmux.Server.HasSession', 'has-session')).toMatchObject({ when: 'the request sets Pattern', reviewed: true }) + expect(use('go', 'tmux.Server.HasSession', 'list-sessions')?.when).toBe('the request does not set Pattern') + // The control: a method that always lists sessions carries no such qualifier. + expect(use('go', 'tmux.Server.CheckAlive', 'list-sessions')?.when).toBeUndefined() + }) + + it('records the command-alias inventory of a guarded Ruby call as list-commands and show-options, on the same symbols', () => { + const readers = (command: string) => Object.entries(TMUX_USAGE.ruby.symbols).filter(([, entries]) => entries.some((entry) => entry.command === command && entry.incidental)).map(([symbol]) => symbol).sort() + expect(readers('show-options')).toHaveLength(9) + expect(readers('list-commands')).toEqual(readers('show-options')) + // Pane#capture asks list-commands only when a flag it has to check is set, so a default call does not and it stays out. + expect(use('ruby', 'LibTmux::Pane#capture', 'list-commands')).toBeUndefined() + }) +}) + +describe('from a method to the command and its C function', () => { + it('names the scope and links the manual page and the C function behind it', () => { + const [send] = tmuxSymbolSends('swift', 'Server.panes()') + expect(send.command).toBe('list-panes') + expect(send.manualHref).toBe(tmuxManualUrl('latest', 'list-panes')) + expect(send.scopes.map((use) => [use.scope?.id, use.function?.name, use.function?.href])).toEqual([ + ['server', 'cmd_list_panes_server', '/tmux/latest/reference/c-function-cmd-list-panes-c-cmd_list_panes_server/'], + ]) + }) + + it('gives a cmdlet that lists at three scopes one row with all three', () => { + const [send] = tmuxSymbolSends('powershell', 'LibTmux\\Get-TmuxPane') + expect(send.scopes.map((use) => use.scope?.id)).toEqual(['server', 'session', 'window']) + expect(send.scopes.every((use) => use.via?.port === 'csharp')).toBe(true) + }) + + it('sets the command apart from its C function, and one scope from the next, on the line of a method page', async () => { + const template = await commandLineTemplate() + const line = async (rows: ReturnType) => { + const document = dom(withoutScope(await renderAstroTemplate(template, { props: { commandRows: rows } }))) + return { text: document.querySelector('.gp-sphinx-api-mentions')!.textContent!.replace(/\s+/g, ' ').trim(), document } + } + // One scope: the command and its flag, then the function, as two destinations. + const swift = tmuxCommandRows(tmuxSymbolSends('swift', 'Server.panes()'), []) + const one = await line(swift) + expect(one.text).toBe('tmux command list-panes -a, cmd_list_panes_server') + expect([...one.document.querySelectorAll('.gp-sphinx-api-mentions a')].map((a) => a.textContent!.trim())).toEqual(['list-panes', 'cmd_list_panes_server']) + expect(one.document.querySelector('.tmux-send')!.textContent!.replace(/\s+/g, ' ').trim()).toBe('-a, cmd_list_panes_server') + // Three scopes: each is a whole command and function, and a semicolon, which a comma already inside an item cannot be, divides them. + const cmdlet = tmuxCommandRows(tmuxSymbolSends('powershell', 'LibTmux\\Get-TmuxPane'), []).filter((row) => row.command === 'list-panes') + expect((await line(cmdlet)).text).toBe( + 'tmux command list-panes -a, cmd_list_panes_server; list-panes -s, cmd_list_panes_session; list-panes -t, cmd_list_panes_window') + // A condition follows the scope it holds for, inside its item. + const fsharp = tmuxCommandRows(tmuxSymbolSends('fsharp', 'LibTmux.FSharp.Server.newSession'), []).filter((row) => row.command === 'list-panes') + expect((await line(fsharp)).text).toBe( + 'tmux command list-panes -s, cmd_list_panes_session (the spec names a first window); list-panes -t, cmd_list_panes_window (the spec has more than one window)') + // Commands with no C function to name keep the comma, and a line that mixes the two uses the semicolon throughout. + const plain = [{ command: 'kill-pane', href: '/tmux/latest/manual/kill-pane/', scopes: [] }, { command: 'kill-window', href: '/tmux/latest/manual/kill-window/', scopes: [] }] + expect((await line(plain)).text).toBe('tmux command kill-pane, kill-window') + expect((await line([...swift, ...plain])).text).toBe('tmux command list-panes -a, cmd_list_panes_server; kill-pane; kill-window') + // The control: a scope with no function has no comma to set it apart. + const bare = [{ ...swift[0], scopes: swift[0].scopes.map((use) => ({ ...use, function: undefined })) }] + expect((await line(bare)).text).toBe('tmux command list-panes -a Server') + }) + + it('writes the same line into the Markdown of a method', () => { + const model = API_MODELS.powershell + const symbol = model.symbols.find((entry) => (entry.publicId ?? entry.id) === 'LibTmux\\Get-TmuxPane')! + const text = symbolMarkdown({ model, symbol }) + const lines = text.split('\n').filter((entry) => entry.startsWith('tmux command: [`list-panes`]')) + const manual = tmuxManualUrl('latest', 'list-panes') + const of = (scope: string) => `[\`list-panes\`](${manual}) ${scope} scope, [\`cmd_list_panes_${scope}\`](/tmux/latest/reference/c-function-cmd-list-panes-c-cmd_list_panes_${scope}/)` + expect(lines).toEqual([['server', 'session', 'window'].map(of).join('; ')].map((entry) => `tmux command: ${entry}`)) + // The control: a command with no scope is the command alone. + const swift = API_MODELS.swift.symbols.find((entry) => (entry.publicId ?? entry.id) === 'Server.panes()')! + expect(symbolMarkdown({ model: API_MODELS.swift, symbol: swift })).toContain(`tmux command: [\`list-panes\`](${manual}) server scope, [\`cmd_list_panes_server\`](`) + }) + + it('does not link a method that only reads a capture, whatever the concepts call it equivalent to', () => { + // The concept map names Window.Panes the Go equivalent of list-panes. + expect(tmuxSymbolSends('go', 'tmux.Window.Panes')).toEqual([]) + expect(tmuxCommandsFor('go', 'tmux.Window.Panes').map((command) => command.name)).not.toContain('list-panes') + expect(tmuxCommandsFor('ts', 'window.Window.panes').map((command) => command.name)).not.toContain('list-panes') + // A recorded command is linked by what the code sends, not by the concept map: TypeScript's capture reaches capture-pane through a helper. + expect(tmuxCommandsFor('ts', 'pane.Pane.capture')).toEqual([]) + expect(tmuxSymbolSends('ts', 'pane.Pane.capture').map((send) => [send.command, send.scopes[0].listed])).toEqual([['capture-pane', true]]) + // The send-keys that setCopyMode sends to leave copy mode is not what entering does, so entering records copy-mode alone. + expect(tmuxSymbolSends('ts', 'pane.Pane.enterCopyMode').map((send) => [send.command, send.scopes[0].listed])).toEqual([['copy-mode', true]]) + expect(tmuxSymbolSends('ts', 'pane.Pane.exitCopyMode').map((send) => send.command)).toEqual(['send-keys']) + }) + + it('names what the method sends before its equivalents, and what it sends through a helper last', () => { + const plain = [{ name: 'capture-pane', href: tmuxManualUrl('latest', 'capture-pane') }] + // Java's sendKeys sends send-keys through a helper and is named for it, so it leads; the list-panes lookup it makes on the way is last. + const rows = tmuxCommandRows(tmuxSymbolSends('java', 'io.github.libtmux.Pane.Pane.sendKeys'), plain) + expect(rows.map((row) => row.command)).toEqual(['send-keys', 'capture-pane', 'display-message', 'list-panes']) + expect(tmuxCommandRows(tmuxSymbolSends('py', 'libtmux.Server.panes'), [{ name: 'send-keys', href: '/x/' }]).map((row) => row.command)).toEqual(['list-panes', 'send-keys']) + expect(tmuxCommandRows([], plain).map((row) => row.scopes)).toEqual([[]]) + // A command the symbol is recorded as sending is not named twice. + expect(tmuxCommandRows(tmuxSymbolSends('py', 'libtmux.Server.panes'), [{ name: 'list-panes', href: '/x/' }]).map((row) => row.command)).toEqual(['list-panes']) + }) + + it('shows a send made on the way on the method, and does not list the method on the command page', () => { + // sendKeys reads whether the pane is synchronized before it sends, which asks display-message; that is not what it is for. + const probe = TMUX_USAGE.java.symbols['io.github.libtmux.Pane.Pane.sendKeys'].find((use) => use.command === 'display-message')! + expect(probe).toMatchObject({ reviewed: true, incidental: true }) + expect(tmuxSymbolSends('java', 'io.github.libtmux.Pane.Pane.sendKeys').map((send) => send.command)).toContain('display-message') + const listed = (port: string, symbol: string, command: string) => tmuxUsage(command)?.groups.flatMap((group) => group.ports).some((cell) => cell.port === port && cell.links.some((link) => link.symbolId === symbol)) ?? false + expect(listed('java', 'io.github.libtmux.Pane.Pane.sendKeys', 'display-message')).toBe(false) + // The same holds for the command-alias inventory a guarded Ruby call reads before it sends: on the method, not on the command's pages. + expect(tmuxSymbolSends('ruby', 'LibTmux::WindowLink#kill').map((send) => send.command).sort()).toEqual(['kill-window', 'list-commands', 'show-options']) + expect(listed('ruby', 'LibTmux::WindowLink#kill', 'show-options')).toBe(false) + expect(listed('ruby', 'LibTmux::WindowLink#kill', 'list-commands')).toBe(false) + // switch_client asks the same two questions before it sends, and neither is an exclusion: a default call sends both. + expect(tmuxSymbolSends('ruby', 'LibTmux::Server#switch_client').map((send) => send.command).sort()).toEqual(['list-commands', 'show-options', 'switch-client']) + expect(listed('ruby', 'LibTmux::Server#switch_client', 'list-commands')).toBe(false) + expect(listed('ruby', 'LibTmux::WindowLink#kill', 'kill-window')).toBe(true) + // The wrapper that stands on it is not listed either, and a claim that is not incidental still is. + expect(listed('kotlin', 'io.github.libtmux.kotlin.Pane.sendKeys', 'display-message')).toBe(false) + expect(isListed({ command: 'display-message', scope: null, evidence: ['a:1'], reviewed: true, incidental: true })).toBe(false) + expect(isListed({ command: 'display-message', scope: null, evidence: ['a:1'], reviewed: true })).toBe(true) + expect(isListed({ command: 'display-message', scope: null, evidence: ['a:1', 'a:2', 'a:3'], via: { port: 'java', symbol: 'x', evidence: ['b:1'], reviewed: true, incidental: true } })).toBe(false) + }) + + it('lists the call through a helper with the method it belongs to', () => { + const [send] = tmuxSymbolSends('go', 'tmux.Pane.Select') + expect(send.scopes[0]).toMatchObject({ hops: 1, function: { name: 'cmd_list_panes_window' } }) + }) +}) + +describe.each(['3.7c', '3.2a'])('the C pages of tmux %s', (version) => { + const model = tmuxSourceModel(version) + const symbolNamed = (name: string) => model.symbols.find((symbol) => symbol.name === name)! + const pagesOf = (name: string) => tmuxReferenceContext(version, symbolNamed(name)) + + it.each(['cmd_list_panes_entry', 'cmd_list_panes_exec'])('lists every scope on %s', (name) => { + const context = pagesOf(name) + expect(context.manualLinks.map((link) => link.name)).toEqual(['list-panes']) + expect(context.usage).toHaveLength(1) + expect(context.usage[0].groups.map((group) => [group.scope?.id, group.function?.name])).toEqual([ + ['server', 'cmd_list_panes_server'], ['session', 'cmd_list_panes_session'], ['window', 'cmd_list_panes_window'], + ]) + expect(context.usage[0].groups.map((group) => group.function?.href)).toEqual( + ['server', 'session', 'window'].map((scope) => tmuxReferenceUrl(version, symbolNamed(`cmd_list_panes_${scope}`))), + ) + }) + + it.each(['server', 'session', 'window'])('lists only the %s scope on its function', (scope) => { + const context = pagesOf(`cmd_list_panes_${scope}`) + expect(context.manualLinks.map((link) => link.name)).toEqual(['list-panes']) + expect(context.usage[0].groups.map((group) => group.scope?.id)).toEqual([scope]) + const symbolIds = context.usage[0].groups[0].ports.flatMap((entry) => entry.links.map((link) => link.symbolId)) + expect(symbolIds).toContain({ server: 'libtmux.Server.panes', session: 'libtmux.Session.panes', window: 'libtmux.Window.panes' }[scope]) + // The other scopes' methods are not on this page. + const others = { server: 'libtmux.Window.panes', session: 'libtmux.Server.panes', window: 'libtmux.Session.panes' }[scope] + expect(symbolIds).not.toContain(others) + }) + + it('offers a scope page only the languages that send the command at that scope', () => { + const picker = (name: string) => pagesOf(name).pagePorts.filter((entry) => entry.links.length).map((entry) => entry.port) + expect(picker('cmd_list_panes_session')).not.toContain('ts') + expect(picker('cmd_list_panes_session')).toContain('py') + // The command's own pages still land every language somewhere. + expect(picker('cmd_list_panes_exec')).toEqual(PORTS.map((port) => port.slug)) + }) + + it('links the command to every function that lists panes', () => { + expect(tmuxCommandSources(version, 'list-panes').map((entry) => entry.name)).toEqual([ + 'cmd_list_panes_entry', 'cmd_list_panes_exec', 'cmd_list_panes_server', 'cmd_list_panes_session', 'cmd_list_panes_window', + ]) + expect(tmuxCommandSources(version, 'capture-pane').map((entry) => entry.name)).toHaveLength(2) + }) + + it('writes the same lists into the Markdown of the page', () => { + const symbol = symbolNamed('cmd_list_panes_session') + const context = pagesOf('cmd_list_panes_session') + const text = symbolMarkdown({ model, symbol, version, index: tmuxReferenceIndex(version), hrefFor: (entry) => tmuxReferenceUrl(version, entry), + manualLinks: context.manualLinks, usage: context.usage }) + expect(text).toContain(`tmux command: [\`list-panes\`](${tmuxManualUrl(version, 'list-panes')})`) + expect(text).toMatch(/- Session `-s` \(\[`cmd_list_panes_session`\]\([^)]+\)\): .*Python: \[`Session\.panes`\]\(\/py\//) + expect(text).not.toContain('Server.panes') + // It is the last section, after the code around the declaration. + const headings = [...text.matchAll(/^## (.+)$/gm)].map((match) => match[1]) + expect(headings.at(-1)).toBe('In libtmux') + expect(headings.filter((heading) => heading === 'In libtmux')).toHaveLength(1) + expect(text.slice(text.indexOf('## In libtmux'))).toContain(`These methods send [\`list-panes\`](${tmuxManualUrl(version, 'list-panes')})`) + expect(text.slice(0, text.indexOf('## In libtmux'))).not.toContain('Python:') + }) +}) + +describe('the manual page of a command', () => { + it('keeps one language picker entry per language and the section heading', () => { + const links = tmuxApiLinks('list-panes') + expect(links.map((entry) => entry.name)).toEqual(expect.arrayContaining(['Python', 'Swift', 'Kotlin', 'Scala', 'F#'])) + expect(new Set(links.map((entry) => entry.name)).size).toBe(links.length) + // The widest scope a language has, so Python opens at the server's panes. + expect(links.find((entry) => entry.name === 'Python')!.href).toBe(cellHref('server', 'py', 'libtmux.Server.panes')) + expect(tmuxManualHeadings('latest', 'list-panes').map((heading) => heading.slug)).toContain('list-panes-use-from-a-library') + }) + + function cellHref(scope: string, port: string, id: string) { + return usage.groups.find((group) => group.scope?.id === scope)!.ports.find((entry) => entry.port === port)!.links.find((link) => link.symbolId === id)!.href + } +}) + +/** + * The method page's tmux command line, compiled from the source of `ApiEntry.astro` with nothing around it, and given + * rows to render. Its frontmatter is the two lines of the real one that turn rows into items. + */ +async function commandLineTemplate() { + const source = readFileSync(new URL('../src/components/api/ApiEntry.astro', import.meta.url), 'utf8') + const start = source.indexOf('{commandItems.length > 0 && }', start) + '

}'.length + expect(start).toBeGreaterThan(0) + expect(end).toBeGreaterThan(start) + const stub = [ + '---', "import { tmuxCommandItems, tmuxCommandSeparator } from '../../lib/tmux-reference'", 'const { commandRows } = Astro.props', + 'const commandItems = tmuxCommandItems(commandRows)', 'const commandSeparator = tmuxCommandSeparator(commandItems)', '---', source.slice(start, end), + ].join('\n') + return loadAstroTemplate('components/api/ApiEntry.astro', { stubs: { 'components/api/ApiEntry.astro': stub } }) +} + +describe('the rendered lists', () => { + async function render(props: Record) { + const template = await loadAstroTemplate('components/tmux/TmuxUsage.astro', { real: ['components/api/ApiBadge.astro', 'components/api/SymbolName.astro'] }) + return dom(withoutScope(await renderAstroTemplate(template, { props }))) + } + + it('shows a column for each scope, headed by its flag and the C function', async () => { + const document = await render({ usage: tmuxResolvedUsage('latest', 'list-panes') }) + const headers = [...document.querySelectorAll('thead th')].map((th) => th.textContent!.replace(/\s+/g, ' ').trim()) + expect(headers).toEqual(['Language', 'Server -a cmd_list_panes_server', 'Session -s cmd_list_panes_session', 'Window -t cmd_list_panes_window']) + expect([...document.querySelectorAll('thead a')].map((a) => a.getAttribute('href'))).toEqual( + ['server', 'session', 'window'].map((scope) => `/tmux/latest/reference/c-function-cmd-list-panes-c-cmd_list_panes_${scope}/`)) + }) + + it('shows one row per language, in site order, with a kind mark and a link in each filled cell', async () => { + const document = await render({ usage: tmuxResolvedUsage('latest', 'list-panes') }) + const rows = [...document.querySelectorAll('tbody tr')] + const order = PORTS.map((port) => port.slug) + const slugs = rows.map((row) => row.getAttribute('data-port')!) + expect(slugs).toEqual(order) + const swift = rows.find((row) => row.getAttribute('data-port') === 'swift')! + const cells = [...swift.querySelectorAll('td')] + expect(cells.map((td) => [...td.querySelectorAll('a')].map((a) => a.textContent!.replace(/\s+/g, '')))) + .toEqual([['mServer.panes()', 'mServer.panes(where:)'], [], []]) + expect(cells[0].querySelector('a')!.getAttribute('href')).toMatch(/\/swift\/[^/]+\/reference\/server-panes\(\)\/$/) + expect(cells[1].className).toContain('tmux-usage__empty') + }) + + it('names the languages that have no method of their own to list', async () => { + // Every language has one somewhere for list-panes, so the table has no such line. + expect((await render({ usage: tmuxResolvedUsage('latest', 'list-panes') })).querySelector('.tmux-usage__absent')).toBeNull() + const windowPage = await render({ usage: tmuxResolvedUsage('latest', 'list-panes', 'window') }) + expect(windowPage.querySelector('.tmux-usage__absent')!.textContent).toMatch(/^No method in Lua, Elixir, TypeScript, .*sends this command at this scope itself\.$/) + // A command a few languages send names the rest, in the order the site lists them. + const choose = await render({ usage: tmuxResolvedUsage('latest', 'choose-tree') }) + const named = choose.querySelector('.tmux-usage__absent')!.textContent! + expect(named).toMatch(/^No method in .* sends this command itself\.$/) + const sending = tmuxUsage('choose-tree')!.groups.flatMap((group) => group.ports).map((entry) => entry.name) + expect(sending.length).toBeGreaterThan(0) + for (const name of sending) expect(named).not.toContain(name) + // The control: a table where every language has a method has no such line. + const everyone = tmuxResolvedUsage('latest', 'list-panes')! + const full = { ...everyone, groups: everyone.groups.map((group) => ({ ...group, ports: PORTS.map((port) => ({ + port: port.slug, name: port.name, links: group.ports[0].links })) })) } + expect((await render({ usage: full })).querySelector('.tmux-usage__absent')).toBeNull() + }) + + it('names the wrappers that send nothing themselves, as the languages with no method', async () => { + // Kotlin's CommandChain only builds a chain, and sends nothing until it is run. + const document = await render({ usage: tmuxResolvedUsage('latest', 'choose-tree') }) + const absent = document.querySelector('.tmux-usage__absent')!.textContent! + for (const [port, listed] of [['kotlin', 'Kotlin'], ['scala', 'Scala']] as const) { + const sends = tmuxUsage('choose-tree')!.groups.flatMap((group) => group.ports).some((entry) => entry.port === port) + expect(absent.includes(listed), port).toBe(!sends) + } + }) + + it('says beside a method when it sends the command only on some calls', async () => { + // TypeScript's selectWindow sends previous-window only for the target "previous"; the row says so and links the method. + const document = await render({ usage: tmuxResolvedUsage('latest', 'previous-window') }) + const row = document.querySelector('tbody tr[data-port="ts"]')! + const item = row.querySelector('.tmux-usage__item')! + expect(item.querySelector('a')!.textContent!.replace(/\s+/g, '')).toContain('Session.selectWindow') + expect(item.querySelector('.tmux-usage__when')!.textContent).toBe('the target is "previous"') + // The control: a method that sends the command on every call has no qualifier. + const everyCall = await render({ usage: tmuxResolvedUsage('latest', 'select-window') }) + const plain = [...everyCall.querySelectorAll('tbody tr[data-port="ts"] .tmux-usage__item')].find((entry) => entry.querySelector('a')!.textContent!.replace(/\s+/g, '').trim().endsWith('Window.select')) + expect(plain?.querySelector('.tmux-usage__when') ?? null).toBeNull() + }) + + it('does not say a Julia function sends a command on one receiver when its methods on both do', async () => { + const item = async (command: string, name: string) => { + const page = await render({ usage: tmuxResolvedUsage('latest', command) }) + return [...page.querySelectorAll('tbody tr[data-port="julia"] .tmux-usage__item')] + .find((entry) => entry.querySelector('a')!.textContent!.replace(/\s+/g, '').trim().endsWith(name)) + } + // capture_bytes captures through a Server and through a ControlConnection: both send capture-pane, so there is nothing to qualify. + const both = await item('capture-pane', 'capture_bytes') + expect(both, 'capture_bytes is listed under capture-pane').toBeDefined() + expect(both!.querySelector('.tmux-usage__when')).toBeNull() + // Only the ControlConnection method spools through a buffer, and the page says so. + const spooled = await item('save-buffer', 'capture_bytes') + expect(spooled?.querySelector('.tmux-usage__when')?.textContent).toBe('on a ControlConnection') + // The data agrees: no Julia use says it is on a receiver unless some method of the function does not send it. + for (const [symbol, uses] of Object.entries(TMUX_USAGE.julia.symbols)) { + for (const use of uses) { + if (/^on a (?:Server|ControlConnection)$/.test(use.when ?? '')) expect(['capture_bytes', 'get_environment', 'load_buffer', 'save_buffer', 'snapshot', 'set_option', 'unset_option', 'set_hook', 'unset_hook'], `${symbol} ${use.command}`).toContain(symbol.split('.').at(-1)) + } + } + }) + + it('cites the line of the core method that sends, and not the generator, beside a generated wrapper', async () => { + const entry = await commandLineTemplate() + const rows = tmuxCommandRows(tmuxSymbolSends('kotlin', 'io.github.libtmux.kotlin.Pane.sendKeys'), []).filter((row) => row.scopes.length) + expect(rows.length).toBeGreaterThan(0) + const page = await renderAstroTemplate(entry, { props: { commandRows: rows } }).then((text) => dom(withoutScope(text))) + const titles = [...page.querySelectorAll('.tmux-send')].map((send) => send.getAttribute('title')) + expect(titles.length).toBeGreaterThan(0) + // The entry's own first line is the generator's template; the line that sends is the Java one the entry stands on. + for (const title of titles) expect(title).toMatch(/^Calls io\.github\.libtmux\.Pane\.Pane\.sendKeys: libtmux\/src\/main\/java\/.*\/Pane\.java:\d+$/) + }) + + it('cannot render a conditional entry without its qualifier, on a command page or a method page', async () => { + const entry = await commandLineTemplate() + const conditional = Object.entries(TMUX_USAGE).flatMap(([port, document]) => Object.entries(document.symbols) + .flatMap(([symbol, uses]) => uses.filter((use) => use.when).map((use) => ({ port, symbol, use })))) + expect(conditional.length).toBeGreaterThan(50) + // Every conditional entry carries its qualifier to the command page's link and to the method page's row. + const byCommand = Map.groupBy(conditional, ({ use }) => use.command) + for (const [command, entries] of byCommand) { + const usage = tmuxUsage(command) + const links = usage?.groups.flatMap((group) => group.ports).flatMap((cell) => cell.links) ?? [] + const html = usage ? await render({ usage: tmuxResolvedUsage('latest', command) }) : undefined + for (const { port, symbol, use } of entries) { + const link = links.find((candidate) => candidate.port === port && candidate.symbolId === symbol && candidate.scope === use.scope) + // A use that is not listed on the command page is a row of its method's page only. + if (link) { + expect(link.when, `${port} ${symbol} ${command}`).toBe(use.when) + const rendered = [...html!.querySelectorAll(`tbody tr[data-port="${port}"] .tmux-usage__item`)].filter((item) => item.querySelector('.tmux-usage__when')?.textContent === use.when) + expect(rendered.length, `${port} ${symbol} ${command} renders ${use.when}`).toBeGreaterThan(0) + } + const row = tmuxCommandRows(tmuxSymbolSends(port, symbol), []).find((candidate) => candidate.command === command)! + // The row carries this use's own condition: all of the command's scopes share it, or its scope says it. + const own = row.when ?? row.scopes.find((candidate) => candidate.scope?.id === use.scope)?.when ?? (row.scopes.length === 0 ? undefined : '') + expect(own, `${port} ${symbol} ${command} row`).toBe(use.when) + const page = await renderAstroTemplate(entry, { props: { commandRows: [row] } }).then((text) => dom(withoutScope(text))) + expect([...page.querySelectorAll('.tmux-when')].map((element) => element.textContent), `${port} ${symbol} ${command} page`).toContain(use.when) + } + } + // The control: a row whose use carries no qualifier renders none. + // A command sent at two scopes under two conditions says each condition beside its own scope, and not the first for both. + const fsharp = tmuxCommandRows(tmuxSymbolSends('fsharp', 'LibTmux.FSharp.Server.newSession'), []).find((row) => row.command === 'list-panes')! + expect(fsharp.when).toBeUndefined() + expect(fsharp.scopes.map((use) => [use.scope?.id, use.when])).toEqual([['session', 'the spec names a first window'], ['window', 'the spec has more than one window']]) + const twice = await renderAstroTemplate(entry, { props: { commandRows: [fsharp] } }).then((text) => dom(withoutScope(text))) + expect([...twice.querySelectorAll('.tmux-send')].map((send) => send.querySelector('.tmux-when')?.textContent)).toEqual(['the spec names a first window', 'the spec has more than one window']) + expect(sharedWhen({ scopes: [{ when: 'a' }, { when: 'a' }] as never })).toBe('a') + expect(sharedWhen({ scopes: [{ when: 'a' }, { when: 'b' }] as never })).toBeUndefined() + expect(sharedWhen({ scopes: [{ when: 'a' }, {}] as never })).toBeUndefined() + const plain = tmuxCommandRows(tmuxSymbolSends('swift', 'Server.panes()'), []) + expect(plain.every((row) => row.when === undefined)).toBe(true) + expect((await renderAstroTemplate(entry, { props: { commandRows: plain } }).then((text) => dom(withoutScope(text)))).querySelector('.tmux-when')).toBeNull() + }, 120_000) + + it('names the condition in a method page and in its markdown, in a few words', async () => { + const sends = tmuxSymbolSends('ts', 'session.Session.selectWindow') + const previous = sends.find((send) => send.command === 'previous-window')! + expect(previous.scopes[0].when).toBe('the target is "previous"') + const rows = tmuxCommandRows(sends, []) + expect(rows.find((row) => row.command === 'previous-window')!.when).toBe('the target is "previous"') + // The window it selects when the target is none of those three says so too, and a method that selects on every call does not. + expect(rows.find((row) => row.command === 'select-window')!.when).toBe('the target is not last, next or previous') + expect(tmuxCommandRows(tmuxSymbolSends('ts', 'window.Window.select'), []).find((row) => row.command === 'select-window')!.when).toBeUndefined() + for (const document of Object.values(TMUX_USAGE)) { + for (const uses of Object.values(document.symbols)) for (const use of uses) if (use.when) expect(use.when.trim().split(/\s+/).length).toBeLessThanOrEqual(8) + } + }) + + it('renders only the scope asked for on a scope page', async () => { + const document = await render({ usage: tmuxResolvedUsage('latest', 'list-panes', 'window') }) + expect([...document.querySelectorAll('thead th')].map((th) => th.textContent!.replace(/\s+/g, ' ').trim())) + .toEqual(['Language', 'Window -t cmd_list_panes_window']) + expect(document.querySelectorAll('tbody tr').length).toBeGreaterThan(0) + expect(document.body.textContent).not.toContain('Server.panes') + }) + + it('adds the command, flag and C function to the declaration card, and no table', async () => { + const template = await commandLineTemplate() + const html = (commandRows: ReturnType) => renderAstroTemplate(template, { props: { commandRows } }).then((text) => dom(withoutScope(text))) + + const method = await html(tmuxCommandRows(tmuxSymbolSends('swift', 'Server.panes()'), [])) + expect(method.querySelector('.gp-sphinx-api-mentions')!.textContent!.replace(/\s+/g, ' ').trim()).toBe('tmux command list-panes -a, cmd_list_panes_server') + expect([...method.querySelectorAll('.gp-sphinx-api-mentions a')].map((a) => a.getAttribute('href'))).toEqual([ + '/tmux/latest/manual/list-panes/', '/tmux/latest/reference/c-function-cmd-list-panes-c-cmd_list_panes_server/', + ]) + expect(method.querySelector('.tmux-usage')).toBeNull() + + // A reader of a method that does not send the command sees no row for it. + const reader = await html(tmuxCommandRows(tmuxSymbolSends('go', 'tmux.Window.Panes'), [])) + expect(reader.querySelector('.gp-sphinx-api-mentions')).toBeNull() + }) +}) + +describe('a C page', () => { + async function page(name: string) { + const template = await loadAstroTemplate('components/api/ApiReference.astro', { + real: ['components/api/ApiPageContents.astro', 'components/tmux/TmuxUsage.astro', 'components/api/ApiBadge.astro', 'components/api/SymbolName.astro', 'components/api/ApiRelationships.astro'], + }) + const model = tmuxSourceModel('latest') + const symbol = model.symbols.find((entry) => entry.name === name)! + const container = await experimental_AstroContainer.create({ astroConfig: { site: 'https://libtmux.org' } } as never) + return dom(withoutScope(await container.renderToString(template as never, { + request: new Request('https://libtmux.org/'), props: { source: tmuxReferenceContext('latest', symbol), owner: symbol, searchable: false }, + }))) + } + + it.each(['cmd_list_panes_exec', 'cmd_list_panes_window'])('ends with In libtmux, after the code around %s', async (name) => { + const document = await page(name) + const sections = [...document.querySelectorAll('h2[id^="api-"]')].map((heading) => heading.id) + // The section is last, after the call neighborhood, its calls, the declarations it references and the related types. + expect(sections.at(-1)).toBe('api-tmux-usage') + expect(sections).toEqual(expect.arrayContaining(['api-call-network', 'api-calls', 'api-referenced-declarations', 'api-related-types'])) + expect(sections.filter((id) => id === 'api-tmux-usage')).toHaveLength(1) + const heading = document.querySelector('h2#api-tmux-usage')! + expect(heading.textContent).toContain('In libtmux') + expect(heading.querySelector('a[href="#api-tmux-usage"]')).not.toBeNull() + expect(heading.closest('section')!.querySelectorAll('.tmux-usage table')).toHaveLength(1) + // It is in the section links and in "On this page", in the same last place. + for (const links of [document.querySelector('nav.api-section-links')!, document.querySelector('.api-page-contents')!]) { + const targets = [...links.querySelectorAll('a[href^="#api-"]')].map((link) => link.getAttribute('href')) + expect(targets.at(-1)).toBe('#api-tmux-usage') + } + // Nothing of the table is inside the declaration card. + expect(document.querySelector('.api-overview .tmux-usage')).toBeNull() + }) + + it('has no such section for a declaration that no command owns', async () => { + const document = await page('options_table') + expect(document.querySelector('#api-tmux-usage')).toBeNull() + expect(document.querySelector('.tmux-usage')).toBeNull() + }) +}) + +describe('the manual page', () => { + async function page(slug: string) { + const template = await loadAstroTemplate('pages/tmux/[version]/manual/[...slug].astro', { + real: ['components/tmux/TmuxUsage.astro', 'components/api/ApiBadge.astro', 'components/api/SymbolName.astro', 'components/SectionHeading.astro'], + // Neither the code highlighter nor the content collection runs outside a build. + modules: { + 'astro-expressive-code/components': { Code: Object.assign(() => '', { isAstroComponentFactory: true }) }, + '../../../../lib/page-ports-for': { pagePortsFor: async () => [] }, + }, + }) + const container = await experimental_AstroContainer.create({ astroConfig: { site: 'https://libtmux.org' } } as never) + return dom(withoutScope(await container.renderToString(template as never, { request: new Request('https://libtmux.org/'), params: { version: 'latest', slug } }))) + } + + it('lists the methods that send list-panes by scope, and every function that implements it', async () => { + const document = await page('list-panes') + expect(document.querySelector('h2#list-panes-use-from-a-library')).not.toBeNull() + // The heading keeps its earlier anchor, so a link to it still lands. + expect(document.querySelector('#libraries')).not.toBeNull() + expect(document.querySelectorAll('.tmux-usage table').length).toBe(1) + expect(document.querySelector('.tmux-usage tr[data-port="swift"] a')!.getAttribute('href')).toMatch(/\/swift\/[^/]+\/reference\/server-panes\(\)\/$/) + expect([...document.querySelectorAll('h2#list-panes-implementation + p + ul a')].map((a) => a.textContent)).toEqual([ + 'cmd_list_panes_entry', 'cmd_list_panes_exec', 'cmd_list_panes_server', 'cmd_list_panes_session', 'cmd_list_panes_window', + ]) + }) + + it('ends with Use from a library, after the C implementation and everything else', async () => { + for (const slug of ['list-panes', 'capture-pane']) { + const document = await page(slug) + const sections = [...document.querySelectorAll('h2[id^="' + slug + '-"]')].map((heading) => heading.id) + expect(sections.at(-1), slug).toBe(`${slug}-use-from-a-library`) + expect(sections.indexOf(`${slug}-implementation`), slug).toBeLessThan(sections.indexOf(`${slug}-use-from-a-library`)) + } + }) + + it('lists a command with no scope helpers in one table headed Methods', async () => { + const document = await page('capture-pane') + expect(document.querySelectorAll('.tmux-usage table')).toHaveLength(1) + expect([...document.querySelectorAll('.tmux-usage thead th')].map((th) => th.textContent!.replace(/\s+/g, ' ').trim())).toEqual(['Language', 'Methods']) + expect(document.querySelector('.tmux-usage tr[data-port="py"] a')!.getAttribute('href')).toMatch(/\/py\/[^/]+\/reference\//) + // The language picker no longer needs the plain list: the table is the section. + expect(document.querySelector('h2#capture-pane-use-from-a-library ~ ul')).toBeNull() + }) + + it('has no section for a command that no language sends, rather than a link that is not a sender', async () => { + const document = await page('set-window-option') + expect(document.querySelector('.tmux-usage')).toBeNull() + expect(document.querySelector('h2#set-window-option-use-from-a-library')).toBeNull() + expect(tmuxLibrarySection('set-window-option')).toBeUndefined() + expect(tmuxLibrarySection('capture-pane')).toBe('usage') + expect(tmuxLibrarySection('no-such-command')).toBeUndefined() + }) +}) + +/** The rules of a stylesheet as `{ at, selector, body }`, with the at-rule they sit in. */ +function parseRules(css: string, at = ''): { at: string; selector: string; body: Record }[] { + const text = css.replace(/\/\*[\s\S]*?\*\//g, '') + const out: { at: string; selector: string; body: Record }[] = [] + for (let index = 0; index < text.length;) { + const open = text.indexOf('{', index) + if (open < 0) break + let depth = 1 + let end = open + 1 + while (depth && end < text.length) depth += text[end++] === '{' ? 1 : text[end - 1] === '}' ? -1 : 0 + const head = text.slice(index, open).trim() + const body = text.slice(open + 1, end - 1) + if (head.startsWith('@')) out.push(...parseRules(body, head)) + else out.push({ at, selector: head, body: Object.fromEntries(body.split(';').flatMap((declaration) => { + const colon = declaration.indexOf(':') + return colon > 0 ? [[declaration.slice(0, colon).trim(), declaration.slice(colon + 1).trim()]] : [] + })) }) + index = end + } + return out +} + +/** + * What a reader sees go wrong in a cell of stacked chips: a chip indented against the first, a + * name wrapped inside a chip of fixed height so it spills onto the next line, and a table wider + * than its column with nowhere to scroll. Empty means the stylesheet rules out all three. + */ +function layoutProblems(css: string): string[] { + const rules = parseRules(css).filter((rule) => !rule.at) + const problems: string[] = [] + const chips = (rule: { selector: string }) => /\.tmux-usage__links/.test(rule.selector) + const stack = rules.find((rule) => rule.selector.trim() === '.tmux-usage__links')?.body + if (stack?.display !== 'flex' || stack['flex-direction'] !== 'column' || stack['align-items'] !== 'flex-start' || !stack.gap) { + problems.push('chips do not stack flush at the start of the cell with a gap') + } + for (const rule of rules.filter(chips)) { + for (const property of ['margin-inline-start', 'margin-left', 'padding-inline-start', 'padding-left', 'text-indent']) { + if (property in rule.body) problems.push(`${rule.selector} indents a chip with ${property}`) + } + } + for (const target of ['a', 'code']) { + const held = rules.some((rule) => chips(rule) && rule.selector.split(',').some((part) => part.trim().endsWith(` ${target}`)) && rule.body['white-space'] === 'nowrap') + if (!held) problems.push(`a chip's ${target} can wrap`) + } + // A qualifier never takes the chip's width: the chip does not shrink, and the qualifier drops under it and wraps instead. + const item = rules.find((rule) => rule.selector.trim() === '.tmux-usage__item')?.body + const chip = rules.find((rule) => rule.selector.trim() === '.tmux-usage__item > a')?.body + const when = rules.find((rule) => rule.selector.trim() === '.tmux-usage__when')?.body + if (!chip || !(chip.flex === 'none' || chip['flex-shrink'] === '0')) problems.push('a chip shrinks to make room for its qualifier') + if (item?.['flex-wrap'] !== 'wrap') problems.push('a qualifier cannot drop under its chip') + if (item?.['white-space'] === 'nowrap' || when?.['white-space'] !== 'normal') problems.push('a qualifier cannot wrap in the cell') + for (const rule of rules.filter((candidate) => /(?:^|[\s,])td\b|__links/.test(candidate.selector) && !/__function/.test(candidate.selector))) { + if (/anywhere|break-word/.test(rule.body['overflow-wrap'] ?? '') || rule.body['word-break'] === 'break-all') problems.push(`${rule.selector} breaks a name anywhere`) + } + const frame = rules.find((rule) => rule.selector.trim() === '.tmux-usage')?.body + if (!/^(auto|scroll)$/.test(frame?.['overflow-x'] ?? frame?.overflow ?? '')) problems.push('a table wider than its column cannot scroll') + if (!/inline-size/.test(frame?.container ?? frame?.['container-type'] ?? '')) problems.push('the stacked layout has no container to measure') + const stacked = parseRules(css).filter((rule) => /^@container .*max-width: *(\d+(?:\.\d+)?)rem/.test(rule.at)) + for (const rule of stacked) if (/\btd\b/.test(rule.selector) && rule.body.display === 'block') problems.push('td is both block and grid when stacked') + if (!stacked.some((rule) => rule.selector.includes('td') && rule.body.display === 'grid') || Math.min(...stacked.map((rule) => Number(/max-width: *(\d+(?:\.\d+)?)rem/.exec(rule.at)![1]))) < 40) { + problems.push('the table does not stack when the container is narrow') + } + return problems +} + +describe('the chip layout of the usage table', () => { + const component = readFileSync(new URL('../src/components/tmux/TmuxUsage.astro', import.meta.url), 'utf8') + const css = /