On this page
libtmux.neo._split_records
- Module
- libtmux.neo
- Package
- libtmux
- Source
- src/libtmux/neo.py
-
Regroup
-Foutput into one string per object.tmux writes one record per line, but any format value may itself contain a newline --
pane_current_pathfor a directory whose name has one -- and that splits the record across output lines. Iterating lines then handsparse_outputa fragment with too few values, which its strictziprejects, so one directory breaks every object on the server rather than the one pane in it.Regrouping on the separator is exact rather than merely better: the template from
get_output_formatterminates *every* field with a separator, so one record holds exactlyfield_countof them and a newline is never one. Nothing is split on newlines, so a value may contain any number of them, in any position.- Raises
-
-
LibTmuxException – If the values do not divide into whole records, which means a value contained the separator itself.
-
0 declared, 0 inherited