- java.lang.Object
-
- org.jline.builtins.Tmux
-
public class Tmux extends Object
Terminal multiplexer
-
-
Field Summary
Fields Modifier and Type Field Description static StringCMD_BINDstatic StringCMD_BIND_KEYstatic StringCMD_CLOCK_MODEstatic StringCMD_COMMANDSstatic StringCMD_DISPLAY_PANESstatic StringCMD_DISPLAYPstatic StringCMD_LIST_KEYSstatic StringCMD_LIST_WINDOWSstatic StringCMD_LSKstatic StringCMD_LSWstatic StringCMD_NEW_WINDOWstatic StringCMD_NEWWstatic StringCMD_NEXTstatic StringCMD_NEXT_WINDOWstatic StringCMD_PREVstatic StringCMD_PREVIOUS_WINDOWstatic StringCMD_RESIZE_PANEstatic StringCMD_RESIZEPstatic StringCMD_SELECT_PANEstatic StringCMD_SELECTPstatic StringCMD_SENDstatic StringCMD_SEND_KEYSstatic StringCMD_SEND_PREFIXstatic StringCMD_SETstatic StringCMD_SET_OPTIONstatic StringCMD_SPLIT_WINDOWstatic StringCMD_SPLITWstatic StringCMD_UNBINDstatic StringCMD_UNBIND_KEYstatic StringOPT_PREFIX
-
Constructor Summary
Constructors Constructor Description Tmux(Terminal terminal, PrintStream err, Consumer<Terminal> runner)
-
Method Summary
-
-
-
Field Detail
-
OPT_PREFIX
public static final String OPT_PREFIX
- See Also:
- Constant Field Values
-
CMD_COMMANDS
public static final String CMD_COMMANDS
- See Also:
- Constant Field Values
-
CMD_SEND_PREFIX
public static final String CMD_SEND_PREFIX
- See Also:
- Constant Field Values
-
CMD_SPLIT_WINDOW
public static final String CMD_SPLIT_WINDOW
- See Also:
- Constant Field Values
-
CMD_SPLITW
public static final String CMD_SPLITW
- See Also:
- Constant Field Values
-
CMD_SELECT_PANE
public static final String CMD_SELECT_PANE
- See Also:
- Constant Field Values
-
CMD_SELECTP
public static final String CMD_SELECTP
- See Also:
- Constant Field Values
-
CMD_RESIZE_PANE
public static final String CMD_RESIZE_PANE
- See Also:
- Constant Field Values
-
CMD_RESIZEP
public static final String CMD_RESIZEP
- See Also:
- Constant Field Values
-
CMD_DISPLAY_PANES
public static final String CMD_DISPLAY_PANES
- See Also:
- Constant Field Values
-
CMD_DISPLAYP
public static final String CMD_DISPLAYP
- See Also:
- Constant Field Values
-
CMD_CLOCK_MODE
public static final String CMD_CLOCK_MODE
- See Also:
- Constant Field Values
-
CMD_SET_OPTION
public static final String CMD_SET_OPTION
- See Also:
- Constant Field Values
-
CMD_SET
public static final String CMD_SET
- See Also:
- Constant Field Values
-
CMD_LIST_KEYS
public static final String CMD_LIST_KEYS
- See Also:
- Constant Field Values
-
CMD_LSK
public static final String CMD_LSK
- See Also:
- Constant Field Values
-
CMD_SEND_KEYS
public static final String CMD_SEND_KEYS
- See Also:
- Constant Field Values
-
CMD_SEND
public static final String CMD_SEND
- See Also:
- Constant Field Values
-
CMD_BIND_KEY
public static final String CMD_BIND_KEY
- See Also:
- Constant Field Values
-
CMD_BIND
public static final String CMD_BIND
- See Also:
- Constant Field Values
-
CMD_UNBIND_KEY
public static final String CMD_UNBIND_KEY
- See Also:
- Constant Field Values
-
CMD_UNBIND
public static final String CMD_UNBIND
- See Also:
- Constant Field Values
-
CMD_NEW_WINDOW
public static final String CMD_NEW_WINDOW
- See Also:
- Constant Field Values
-
CMD_NEWW
public static final String CMD_NEWW
- See Also:
- Constant Field Values
-
CMD_NEXT_WINDOW
public static final String CMD_NEXT_WINDOW
- See Also:
- Constant Field Values
-
CMD_NEXT
public static final String CMD_NEXT
- See Also:
- Constant Field Values
-
CMD_PREVIOUS_WINDOW
public static final String CMD_PREVIOUS_WINDOW
- See Also:
- Constant Field Values
-
CMD_PREV
public static final String CMD_PREV
- See Also:
- Constant Field Values
-
CMD_LIST_WINDOWS
public static final String CMD_LIST_WINDOWS
- See Also:
- Constant Field Values
-
CMD_LSW
public static final String CMD_LSW
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Tmux
public Tmux(Terminal terminal, PrintStream err, Consumer<Terminal> runner) throws IOException
- Throws:
IOException
-
-
Method Detail
-
run
public void run() throws IOException- Throws:
IOException
-
execute
public void execute(PrintStream out, PrintStream err, String command) throws Exception
- Throws:
Exception
-
execute
public void execute(PrintStream out, PrintStream err, List<String> command) throws Exception
- Throws:
Exception
-
listWindows
protected void listWindows(PrintStream out, PrintStream err, List<String> args) throws Exception
- Throws:
Exception
-
previousWindow
protected void previousWindow(PrintStream out, PrintStream err, List<String> args) throws Exception
- Throws:
Exception
-
nextWindow
protected void nextWindow(PrintStream out, PrintStream err, List<String> args) throws Exception
- Throws:
Exception
-
newWindow
protected void newWindow(PrintStream out, PrintStream err, List<String> args) throws Exception
- Throws:
Exception
-
setOption
protected void setOption(PrintStream out, PrintStream err, List<String> args) throws Exception
- Throws:
Exception
-
bindKey
protected void bindKey(PrintStream out, PrintStream err, List<String> args) throws Exception
- Throws:
Exception
-
unbindKey
protected void unbindKey(PrintStream out, PrintStream err, List<String> args) throws Exception
- Throws:
Exception
-
listKeys
protected void listKeys(PrintStream out, PrintStream err, List<String> args) throws Exception
- Throws:
Exception
-
sendKeys
protected void sendKeys(PrintStream out, PrintStream err, List<String> args) throws Exception
- Throws:
Exception
-
clockMode
protected void clockMode(PrintStream out, PrintStream err, List<String> args) throws Exception
- Throws:
Exception
-
displayPanes
protected void displayPanes(PrintStream out, PrintStream err, List<String> args) throws Exception
- Throws:
Exception
-
resizePane
protected void resizePane(PrintStream out, PrintStream err, List<String> args) throws Exception
- Throws:
Exception
-
selectPane
protected void selectPane(PrintStream out, PrintStream err, List<String> args) throws Exception
- Throws:
Exception
-
sendPrefix
protected void sendPrefix(PrintStream out, PrintStream err, List<String> args) throws Exception
- Throws:
Exception
-
splitWindow
protected void splitWindow(PrintStream out, PrintStream err, List<String> args) throws Exception
- Throws:
Exception
-
layoutResize
protected void layoutResize()
-
redraw
protected void redraw()
-
-