@Test public void testCSI_CUP() { term.write("\u001b[?6h"); term.write("\u001b[" + (char)0x48); }
private void csi_CUP(String p) { int[] ps = vt100_parse_params(p, new int[] { 1, 1 }); if (vt100_mode_origin) { cursor_set(scroll_area_y0 + ps[0] - 1, ps[1] - 1); } else { cursor_set(ps[0] - 1, ps[1] - 1); } }
Terminal { private void csi_CUP(String p) { int[] ps = vt100_parse_params(p, new int[] { 1, 1 }); if (vt100_mode_origin) { cursor_set(scroll_area_y0 + ps[0] - 1, ps[1] - 1); } else { cursor_set(ps[0] - 1, ps[1] - 1); } } }
Terminal { private void csi_CUP(String p) { int[] ps = vt100_parse_params(p, new int[] { 1, 1 }); if (vt100_mode_origin) { cursor_set(scroll_area_y0 + ps[0] - 1, ps[1] - 1); } else { cursor_set(ps[0] - 1, ps[1] - 1); } } Terminal();  Terminal(int width, int height); }
Terminal { private void csi_CUP(String p) { int[] ps = vt100_parse_params(p, new int[] { 1, 1 }); if (vt100_mode_origin) { cursor_set(scroll_area_y0 + ps[0] - 1, ps[1] - 1); } else { cursor_set(ps[0] - 1, ps[1] - 1); } } 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_CUP(String p) { int[] ps = vt100_parse_params(p, new int[] { 1, 1 }); if (vt100_mode_origin) { cursor_set(scroll_area_y0 + ps[0] - 1, ps[1] - 1); } else { cursor_set(ps[0] - 1, ps[1] - 1); } } 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();  }