/** * Execute the stty command with the specified arguments against the current active terminal. */ protected static int stty(final String args) throws IOException, InterruptedException { String cmd = "stty " + args + " < /dev/tty"; return exec(new String[] { "sh", "-c", cmd }); }