@Override public boolean isAnsiSupported() { return terminal.isAnsiSupported(); }
@Override public boolean isAnsiSupported() { return terminal.isAnsiSupported(); }
public KarafTerminal(Terminal terminal) throws IOException { super("Karaf", terminal.getType()); this.terminal = terminal; String type = terminal.getType(); if (type == null && terminal.isAnsiSupported()) { type = "ansi"; } String caps; try { caps = InfoCmp.getInfoCmp(type); } catch (Exception e) { try { caps = InfoCmp.getInfoCmp("ansi"); } catch (InterruptedException e2) { throw new UnsupportedOperationException(e2); } } try { InfoCmp.parseInfoCmp(caps, bools, ints, strings); } catch (Exception e) { // TODO } }
public KarafTerminal(Terminal terminal) throws IOException { super("Karaf", terminal.getType()); this.terminal = terminal; String type = terminal.getType(); if (type == null && terminal.isAnsiSupported()) { type = "ansi"; } String caps; try { caps = InfoCmp.getInfoCmp(type); } catch (Exception e) { try { caps = InfoCmp.getInfoCmp("ansi"); } catch (InterruptedException e2) { throw new UnsupportedOperationException(e2); } } try { InfoCmp.parseInfoCmp(caps, bools, ints, strings); } catch (Exception e) { // TODO } }