Core Library0.xAPI reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

MoreLess about this notice

method libtmux-java

PaneCommand.awaitShellStart

Waits for a pane that was just created to start its shell, and says whether it had to.

Source and package
Qualified name
io.github.libtmux.PaneCommand.awaitShellStart
Package
io.github.libtmux
Declared in
PaneCommand
Distribution
io.github.libtmux:libtmux
Source
libtmux/src/main/java/io/github/libtmux/PaneCommand.java
public static boolean awaitShellStart( Pane pane, String current) throws InterruptedException

Description

Between fork and exec the process in a pane's terminal is the server's own copy, so tmux names the pane tmux until its shell starts. A read of the pane's command taken in that window is out of date once this returns true, and has to be taken again. A pane still named tmux after the wait is left for the caller's shell check to refuse.

Parameters
  • pane (Pane) – the pane to wait for

  • current (String) – the command the pane was last read to be running

Returns

whether the pane was waited for, so that current is stale

Errors

Recorded calls

source calls
No call edges in the Java model.

The Java reference records declarations, not calls, so this page shows no callers or callees. That is a limit of the extracted data, not a statement that nothing calls io.github.libtmux.PaneCommand.awaitShellStart.

Esc
Search in

Type to search.

Reference previewOpen reference