SttyTerminal extends ExternalCommandTerminal { @Override protected Integer parseColumns(BufferedReader commandOutput) { String line1; try { line1 = commandOutput.readLine(); } catch (IOException e) { logger.trace(() -> "Error reading output for '" + ExternalCommandTerminal.toString(getColumnsCommand()) + "' command: " + e.getMessage()); return null; } return parseLine(line1); } SttyTerminal(BootLogger logger);   }
@Test public void testParseColumns_OSX() { String line = "speed 9600 baud; 39 rows; 136 columns;"; BufferedReader in = new BufferedReader(new StringReader(line)); assertEquals(new Integer(136), terminal.parseColumns(in)); }