protected static int getProperty(String name, String stty) { String str = getPropertyAsString(name, stty); return str != null ? parseControlChar(str) : -1; }
public String getPropertyAsString(String name) { checkNotNull(name); if (!fetchConfig(name)) { return null; } return getPropertyAsString(name, config); }
public void disableInterruptCharacter() { try { intr = getSettings().getPropertyAsString("intr"); if ("<undef>".equals(intr)) { intr = null; } settings.undef("intr"); } catch (Exception e) { if (e instanceof InterruptedException) { Thread.currentThread().interrupt(); } Log.error("Failed to disable interrupt character", e); } }
public void disableLitteralNextCharacter() { try { lnext = getSettings().getPropertyAsString("lnext"); if ("<undef>".equals(lnext)) { lnext = null; } settings.undef("lnext"); } catch (Exception e) { if (e instanceof InterruptedException) { Thread.currentThread().interrupt(); } Log.error("Failed to disable litteral next character", e); } }
@Override public void init() throws Exception { super.init(); intr = getSettings().getPropertyAsString("intr"); if ("<undef>".equals(intr)) { intr = null; } if (intr != null) { getSettings().undef("intr"); } }
protected static int getProperty(String name, String stty) { String str = getPropertyAsString(name, stty); return str != null ? parseControlChar(str) : -1; }
public String getPropertyAsString(String name) { checkNotNull(name); if (!fetchConfig(name)) { return null; } return getPropertyAsString(name, config); }
public void disableInterruptCharacter() { try { intr = getSettings().getPropertyAsString("intr"); if ("<undef>".equals(intr)) { intr = null; } settings.undef("intr"); } catch (Exception e) { if (e instanceof InterruptedException) { Thread.currentThread().interrupt(); } Log.error("Failed to disable interrupt character", e); } }
public void disableLitteralNextCharacter() { try { lnext = getSettings().getPropertyAsString("lnext"); if ("<undef>".equals(lnext)) { lnext = null; } settings.undef("lnext"); } catch (Exception e) { if (e instanceof InterruptedException) { Thread.currentThread().interrupt(); } Log.error("Failed to disable litteral next character", e); } }
@Override public void init() throws Exception { super.init(); intr = getSettings().getPropertyAsString("intr"); if ("<undef>".equals(intr)) { intr = null; } if (intr != null) { getSettings().undef("intr"); } }