On this page
io.github.libtmux.Pane.Pane.expand
- Module
- io.github.libtmux.Pane
- Declared in
- Pane
- Package
- io.github.libtmux:libtmux
- Source
- libtmux/src/main/java/io/github/libtmux/Pane.java
-
Expands a tmux format in this pane's context, and answers with what it came to.
<p>The way out of this library. Snapshots carry the fields worth carrying; a format reaches everything else tmux knows, including fields added by a release this code has never heard of.
<pre>
String title = pane.expand("#{pane_title"); String where = pane.expand("#{session_name}:#{window_index}.#{pane_index}"); }</pre>- Parameters
-
-
format ( String ) – a tmux format, usually of the shape
#{name}
-
- Returns
-
the expansion, whole when it spans lines and empty when the format expanded to nothing
0 declared, 0 inherited