FakeControlClient
A tmux -C client of a FakeTmux, as the process a control client talks to.
Source and package
- Qualified name
-
io.github .libtmux .junit5. Fake Control Client - Package
- io.github.libtmux.junit5
- Distribution
- io.github.libtmux:libtmux
- Source
- libtmux-junit5/src/main/java/io/github/libtmux/junit5/FakeControlClient.java
-
Description
It reads one command line at a time, has the fake answer it, and writes the reply block tmux would:
%begin, the output, then%endor%error. Pushed output and notifications are written between replies, never inside one, as tmux writes them. It ends, with%exit, when the fake restarts or the client closes its input.
Members11 members
- destroy
- end Ends the client as a server that went away does.
- exitValue
- FakeControlClient
- getErrorStream
- getInputStream
- getOutputStream
- isAlive
- parse A command line as tmux's parser reads the ones this library writes: each argument single quoted, a quote as
'\'', a newline or return as"\n"or"\r", and an unquoted;between commands. - push Writes an unprompted line, such as
%output, between replies. - waitFor