On this page
libtmux::kFormatEscape
- Module
- libtmux
- Package
- libtmux-cxx
- Source
- include/libtmux/snapshot.hpp
- kFormatEscape : std::string_view
-
A separator absent from every format name is not absent from every format value, which is the whole difficulty.
tmux rename-window 'a␞b` is accepted, and one such name used to make every window and pane listing on that server fail to split — data the caller never chose breaking reads of everything else.
So tmux escapes the separator before it can be mistaken for one. U+241B pairs with it and is escaped in turn, which is what makes the transform reversible:
␛Sis a separator that was in the value and␛Eis an escape marker that was, and neither has a second reading.
0 declared, 0 inherited