- java.lang.Object
-
- org.jline.builtins.Tmux
-
public class Tmux extends Object
Terminal multiplexer
-
-
Field Summary
Fields Modifier and Type Field Description static String
CMD_BIND
static String
CMD_BIND_KEY
static String
CMD_CLOCK_MODE
static String
CMD_COMMANDS
static String
CMD_DISPLAY_PANES
static String
CMD_DISPLAYP
static String
CMD_LIST_KEYS
static String
CMD_LIST_WINDOWS
static String
CMD_LSK
static String
CMD_LSW
static String
CMD_NEW_WINDOW
static String
CMD_NEWW
static String
CMD_NEXT
static String
CMD_NEXT_WINDOW
static String
CMD_PREV
static String
CMD_PREVIOUS_WINDOW
static String
CMD_RESIZE_PANE
static String
CMD_RESIZEP
static String
CMD_SELECT_PANE
static String
CMD_SELECTP
static String
CMD_SEND
static String
CMD_SEND_KEYS
static String
CMD_SEND_PREFIX
static String
CMD_SET
static String
CMD_SET_OPTION
static String
CMD_SPLIT_WINDOW
static String
CMD_SPLITW
static String
CMD_UNBIND
static String
CMD_UNBIND_KEY
static String
OPT_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()
-
-