Tmux { protected void layoutResize() { } Tmux(Terminal terminal, PrintStream err, Consumer<Terminal> runner); void run(); void execute(PrintStream out, PrintStream err, String command); synchronized void execute(PrintStream out, PrintStream err, List<String> command); static final String OPT_PREFIX; static final String CMD_COMMANDS; static final String CMD_SEND_PREFIX; static final String CMD_SPLIT_WINDOW; static final String CMD_SPLITW; static final String CMD_SELECT_PANE; static final String CMD_SELECTP; static final String CMD_RESIZE_PANE; static final String CMD_RESIZEP; static final String CMD_DISPLAY_PANES; static final String CMD_DISPLAYP; static final String CMD_CLOCK_MODE; static final String CMD_SET_OPTION; static final String CMD_SET; static final String CMD_LIST_KEYS; static final String CMD_LSK; static final String CMD_SEND_KEYS; static final String CMD_SEND; static final String CMD_BIND_KEY; static final String CMD_BIND; static final String CMD_UNBIND_KEY; static final String CMD_UNBIND; static final String CMD_NEW_WINDOW; static final String CMD_NEWW; static final String CMD_NEXT_WINDOW; static final String CMD_NEXT; static final String CMD_PREVIOUS_WINDOW; static final String CMD_PREV; static final String CMD_LIST_WINDOWS; static final String CMD_LSW; }
@Test public void testLayoutResize() { Tmux.Layout l = Tmux.Layout.parse("b7c7,148x44,0,0[148x26,0,0{69x26,0,0,0,78x26,70,0,3},148x17,0,27{74x17,0,27,1,36x17,75,27,4,36x17,112,27,5}]"); l.resize(140, 44); assertEquals("ebac,140x44,0,0[140x26,0,0{65x26,0,0,0,74x26,66,0,0},140x17,0,27{71x17,0,27,0,33x17,72,27,0,34x17,106,27,0}]", l.dump()); System.out.println(l.dump()); }