protected int getTermWidth() { return terminal != null ? terminal.getWidth() : 80; }
@Override public int getWidth() { return terminal.getWidth(); }
protected int getTermWidth() { return terminal != null ? terminal.getWidth() : 80; }
@Override public int getWidth() { return terminal.getWidth(); }
protected int getTermWidth() { return terminal != null ? terminal.getWidth() : 0; }
protected int getTermWidth() { return terminal != null ? terminal.getWidth() : 0; }
private int getTermWidth() { Terminal term = session.getTerminal(); return term != null ? term.getWidth() : 80; }
private int getTermWidth() { Terminal term = session.getTerminal(); return term != null ? term.getWidth() : 80; }
@Override public Size getSize() { int h = terminal.getHeight(); int w = terminal.getWidth(); return new Size(w, h); }
@Override public Size getSize() { int h = terminal.getHeight(); int w = terminal.getWidth(); return new Size(w, h); }
Terminal terminal = session.getTerminal(); if (terminal != null) { maxSize = terminal.getWidth();
Terminal terminal = session.getTerminal(); if (terminal != null) { maxSize = terminal.getWidth();
Terminal terminal = session.getTerminal(); if (terminal != null) { maxSize = terminal.getWidth();
@Override public Object execute() throws Exception { List<Bus> busses = getBusses(); ShellTable table = new ShellTable(); if (terminal != null && terminal.getWidth() > 0) { table.size(terminal.getWidth()); } table.column("Name"); table.column("State"); for (Bus bus : busses) { String name = bus.getId(); String state = bus.getState().toString(); table.addRow().addContent(name, state); } table.print(System.out, !noFormat); return null; }
@Override public Object execute() throws Exception { List<Bus> busses = getBusses(); ShellTable table = new ShellTable(); if (terminal != null && terminal.getWidth() > 0) { table.size(terminal.getWidth()); } table.column("Name"); table.column("State"); for (Bus bus : busses) { String name = bus.getId(); String state = bus.getState().toString(); table.addRow().addContent(name, state); } table.print(System.out, !noFormat); return null; }
int termWidth = term != null ? term.getWidth() : 80; ShellTable table = new ShellTable().noHeaders().separator(" ").size(termWidth - 1); Col col = new Col("Command").maxSize(64);
int termWidth = term != null ? term.getWidth() : 80; ShellTable table = new ShellTable().noHeaders().separator(" ").size(termWidth - 1); Col col = new Col("Command").maxSize(64);
if (previous == Status.Background || current == Status.Background || previous == Status.Suspended || current == Status.Suspended) { int width = terminal.getWidth(); String status = current.name().toLowerCase(); jlineTerminal.writer().write(getStatusLine(job, width, status));