@Override public String getType() { return terminal.getType(); }
@Override public String getType() { return terminal.getType(); }
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 } }
channel.setPtyLines(getTermHeight()); channel.setAgentForwarding(true); channel.setEnv("TERM", session.getTerminal().getType()); String ctype = (String) session.get("LC_CTYPE"); if (ctype == null) {
channel.setPtyLines(getTermHeight()); channel.setAgentForwarding(true); channel.setEnv("TERM", session.getTerminal().getType()); String ctype = (String) session.get("LC_CTYPE"); if (ctype == null) {
session.put(Session.COMPLETION_MODE, loadCompletionMode()); session.put("USER", ShellUtil.getCurrentUserName()); session.put("TERM", terminal.getType()); session.put("APPLICATION", System.getProperty("karaf.name", "root")); session.put("#LINES", (Function) (session, arguments) -> Integer.toString(terminal.getHeight()));
session.put(Session.COMPLETION_MODE, loadCompletionMode()); session.put("USER", ShellUtil.getCurrentUserName()); session.put("TERM", terminal.getType()); session.put("APPLICATION", System.getProperty("karaf.name", "root")); session.put("#LINES", (Function) (session, arguments) -> Integer.toString(terminal.getHeight()));