@Test public void testCSI_ED() { term.write("\u001b[1J"); term.write("\u001b[2J"); }
private void csi_ED(String p) { String[] ps = vt100_parse_params(p, new String[] { "0" }); if ("0".equals(ps[0])) { clear(cy, cx, height, width); } else if ("1".equals(ps[0])) { clear(0, 0, cy + 1, cx + 1); } else if ("2".equals(ps[0])) { clear(0, 0, height, width); } }
Terminal { private void csi_ED(String p) { String[] ps = vt100_parse_params(p, new String[] { "0" }); if ("0".equals(ps[0])) { clear(cy, cx, height, width); } else if ("1".equals(ps[0])) { clear(0, 0, cy + 1, cx + 1); } else if ("2".equals(ps[0])) { clear(0, 0, height, width); } } }
Terminal { private void csi_ED(String p) { String[] ps = vt100_parse_params(p, new String[] { "0" }); if ("0".equals(ps[0])) { clear(cy, cx, height, width); } else if ("1".equals(ps[0])) { clear(0, 0, cy + 1, cx + 1); } else if ("2".equals(ps[0])) { clear(0, 0, height, width); } } Terminal();  Terminal(int width, int height); }
Terminal { private void csi_ED(String p) { String[] ps = vt100_parse_params(p, new String[] { "0" }); if ("0".equals(ps[0])) { clear(cy, cx, height, width); } else if ("1".equals(ps[0])) { clear(0, 0, cy + 1, cx + 1); } else if ("2".equals(ps[0])) { clear(0, 0, height, width); } } Terminal();  Terminal(int width, int height); synchronized boolean setSize(int w, int h); synchronized String read(); synchronized String pipe(String d); synchronized boolean write(String d); synchronized String dump(); String toString(); }
Terminal { private void csi_ED(String p) { String[] ps = vt100_parse_params(p, new String[] { "0" }); if ("0".equals(ps[0])) { clear(cy, cx, height, width); } else if ("1".equals(ps[0])) { clear(0, 0, cy + 1, cx + 1); } else if ("2".equals(ps[0])) { clear(0, 0, height, width); } } Terminal();  Terminal(int width, int height); synchronized boolean setSize(int w, int h); synchronized String read(); synchronized String pipe(String d); synchronized boolean write(String d); synchronized String dump(); String toString();  }