ExecPty implements Pty { static Size doGetSize(String cfg) throws IOException { return new Size(doGetInt("columns", cfg), doGetInt("rows", cfg)); } protected  ExecPty(String name); static Pty current(); @Override void close(); String getName(); @Override InputStream getMasterInput(); @Override OutputStream getMasterOutput(); @Override InputStream getSlaveInput(); @Override OutputStream getSlaveOutput(); @Override Attributes getAttr(); @Override void setAttr(Attributes attr); @Override Size getSize();  }
@Test public void testParseSize() throws IOException { assertEquals(new Size(244, 85), ExecPty.doGetSize(linuxSttySample)); assertEquals(new Size(244, 85), ExecPty.doGetSize(solarisSttySample)); assertEquals(new Size(244, 85), ExecPty.doGetSize(aixSttySample)); assertEquals(new Size(244, 85), ExecPty.doGetSize(macOsSttySample)); assertEquals(new Size(244, 85), ExecPty.doGetSize(netBsdSttySample)); assertEquals(new Size(244, 85), ExecPty.doGetSize(freeBsdSttySample)); assertEquals(new Size(244, 85), ExecPty.doGetSize(hpuxSttySample)); }