Package org.jline.builtins
Class Tmux
java.lang.Object
org.jline.builtins.Tmux
A terminal multiplexer similar to the 'tmux' Unix command.
This class provides terminal multiplexing capabilities, allowing multiple virtual terminal sessions to be created, accessed, and controlled from a single terminal. Features include:
- Window and pane management
- Session persistence
- Split screen layouts
- Copy and paste functionality
- Status line display
- Command execution within panes
The implementation provides a subset of the functionality of the Unix 'tmux' command, adapted for JLine's terminal handling and pure Java implementation.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
bindKey
(PrintStream out, PrintStream err, List<String> args) protected void
clockMode
(PrintStream out, PrintStream err, List<String> args) createEmptyKeyMap
(String prefix) createKeyMap
(String prefix) protected void
displayPanes
(PrintStream out, PrintStream err, List<String> args) void
execute
(PrintStream out, PrintStream err, String command) void
execute
(PrintStream out, PrintStream err, List<String> command) protected void
protected void
listKeys
(PrintStream out, PrintStream err, List<String> args) protected void
listWindows
(PrintStream out, PrintStream err, List<String> args) protected void
newWindow
(PrintStream out, PrintStream err, List<String> args) protected void
nextWindow
(PrintStream out, PrintStream err, List<String> args) protected void
previousWindow
(PrintStream out, PrintStream err, List<String> args) protected void
redraw()
protected void
resizePane
(PrintStream out, PrintStream err, List<String> args) void
run()
protected void
selectPane
(PrintStream out, PrintStream err, List<String> args) protected void
sendKeys
(PrintStream out, PrintStream err, List<String> args) protected void
sendPrefix
(PrintStream out, PrintStream err, List<String> args) protected void
setOption
(PrintStream out, PrintStream err, List<String> args) protected void
splitWindow
(PrintStream out, PrintStream err, List<String> args) protected void
unbindKey
(PrintStream out, PrintStream err, List<String> args)
-
Field Details
-
OPT_PREFIX
- See Also:
-
CMD_COMMANDS
- See Also:
-
CMD_SEND_PREFIX
- See Also:
-
CMD_SPLIT_WINDOW
- See Also:
-
CMD_SPLITW
- See Also:
-
CMD_SELECT_PANE
- See Also:
-
CMD_SELECTP
- See Also:
-
CMD_RESIZE_PANE
- See Also:
-
CMD_RESIZEP
- See Also:
-
CMD_DISPLAY_PANES
- See Also:
-
CMD_DISPLAYP
- See Also:
-
CMD_CLOCK_MODE
- See Also:
-
CMD_SET_OPTION
- See Also:
-
CMD_SET
- See Also:
-
CMD_LIST_KEYS
- See Also:
-
CMD_LSK
- See Also:
-
CMD_SEND_KEYS
- See Also:
-
CMD_SEND
- See Also:
-
CMD_BIND_KEY
- See Also:
-
CMD_BIND
- See Also:
-
CMD_UNBIND_KEY
- See Also:
-
CMD_UNBIND
- See Also:
-
CMD_NEW_WINDOW
- See Also:
-
CMD_NEWW
- See Also:
-
CMD_NEXT_WINDOW
- See Also:
-
CMD_NEXT
- See Also:
-
CMD_PREVIOUS_WINDOW
- See Also:
-
CMD_PREV
- See Also:
-
CMD_LIST_WINDOWS
- See Also:
-
CMD_LSW
- See Also:
-
-
Constructor Details
-
Tmux
- Throws:
IOException
-
-
Method Details
-
createKeyMap
-
createEmptyKeyMap
-
run
- Throws:
IOException
-
execute
- Throws:
Exception
-
execute
- Throws:
Exception
-
listWindows
- Throws:
Exception
-
previousWindow
- Throws:
Exception
-
nextWindow
- Throws:
Exception
-
newWindow
- Throws:
Exception
-
setOption
- Throws:
Exception
-
bindKey
- Throws:
Exception
-
unbindKey
- Throws:
Exception
-
listKeys
- Throws:
Exception
-
sendKeys
- Throws:
Exception
-
clockMode
- Throws:
Exception
-
displayPanes
- Throws:
Exception
-
resizePane
- Throws:
Exception
-
selectPane
- Throws:
Exception
-
sendPrefix
- Throws:
Exception
-
splitWindow
- Throws:
Exception
-
layoutResize
protected void layoutResize() -
redraw
protected void redraw()
-