@Test public void testCSI_DSR() { term.write("\u001b[5n"); term.write("\u001b[6n"); term.write("\u001b[7n"); term.write("\u001b[8n"); term.write("\u001b[?6n"); term.write("\u001b[?15n"); term.write("\u001b[?25n"); term.write("\u001b[?26n"); term.write("\u001b[?53n"); }
private void csi_DSR(String p) { String[] ps = vt100_parse_params(p, new String[] { "0" }); if ("5".equals(ps[0])) { vt100_out = "\u001b[0n"; } else if ("6".equals(ps[0])) { vt100_out = "\u001b[" + (cy + 1) + ";" + (cx + 1) + "R"; } else if ("7".equals(ps[0])) { vt100_out = "gogo-term"; } else if ("8".equals(ps[0])) { vt100_out = "1.0-SNAPSHOT"; } else if ("?6".equals(ps[0])) { vt100_out = "\u001b[" + (cy + 1) + ";" + (cx + 1) + ";0R"; } else if ("?15".equals(ps[0])) { vt100_out = "\u001b[?13n"; } else if ("?25".equals(ps[0])) { vt100_out = "\u001b[?20n"; } else if ("?26".equals(ps[0])) { vt100_out = "\u001b[?27;1n"; } else if ("?53".equals(ps[0])) { vt100_out = "\u001b[?53n"; } }
Terminal { private void csi_DSR(String p) { String[] ps = vt100_parse_params(p, new String[] { "0" }); if ("5".equals(ps[0])) { vt100_out = "\u001b[0n"; } else if ("6".equals(ps[0])) { vt100_out = "\u001b[" + (cy + 1) + ";" + (cx + 1) + "R"; } else if ("7".equals(ps[0])) { vt100_out = "gogo-term"; } else if ("8".equals(ps[0])) { vt100_out = "1.0-SNAPSHOT"; } else if ("?6".equals(ps[0])) { vt100_out = "\u001b[" + (cy + 1) + ";" + (cx + 1) + ";0R"; } else if ("?15".equals(ps[0])) { vt100_out = "\u001b[?13n"; } else if ("?25".equals(ps[0])) { vt100_out = "\u001b[?20n"; } else if ("?26".equals(ps[0])) { vt100_out = "\u001b[?27;1n"; } else if ("?53".equals(ps[0])) { vt100_out = "\u001b[?53n"; } } }
Terminal { private void csi_DSR(String p) { String[] ps = vt100_parse_params(p, new String[] { "0" }); if ("5".equals(ps[0])) { vt100_out = "\u001b[0n"; } else if ("6".equals(ps[0])) { vt100_out = "\u001b[" + (cy + 1) + ";" + (cx + 1) + "R"; } else if ("7".equals(ps[0])) { vt100_out = "gogo-term"; } else if ("8".equals(ps[0])) { vt100_out = "1.0-SNAPSHOT"; } else if ("?6".equals(ps[0])) { vt100_out = "\u001b[" + (cy + 1) + ";" + (cx + 1) + ";0R"; } else if ("?15".equals(ps[0])) { vt100_out = "\u001b[?13n"; } else if ("?25".equals(ps[0])) { vt100_out = "\u001b[?20n"; } else if ("?26".equals(ps[0])) { vt100_out = "\u001b[?27;1n"; } else if ("?53".equals(ps[0])) { vt100_out = "\u001b[?53n"; } } Terminal();  Terminal(int width, int height); }
Terminal { private void csi_DSR(String p) { String[] ps = vt100_parse_params(p, new String[] { "0" }); if ("5".equals(ps[0])) { vt100_out = "\u001b[0n"; } else if ("6".equals(ps[0])) { vt100_out = "\u001b[" + (cy + 1) + ";" + (cx + 1) + "R"; } else if ("7".equals(ps[0])) { vt100_out = "gogo-term"; } else if ("8".equals(ps[0])) { vt100_out = "1.0-SNAPSHOT"; } else if ("?6".equals(ps[0])) { vt100_out = "\u001b[" + (cy + 1) + ";" + (cx + 1) + ";0R"; } else if ("?15".equals(ps[0])) { vt100_out = "\u001b[?13n"; } else if ("?25".equals(ps[0])) { vt100_out = "\u001b[?20n"; } else if ("?26".equals(ps[0])) { vt100_out = "\u001b[?27;1n"; } else if ("?53".equals(ps[0])) { vt100_out = "\u001b[?53n"; } } 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_DSR(String p) { String[] ps = vt100_parse_params(p, new String[] { "0" }); if ("5".equals(ps[0])) { vt100_out = "\u001b[0n"; } else if ("6".equals(ps[0])) { vt100_out = "\u001b[" + (cy + 1) + ";" + (cx + 1) + "R"; } else if ("7".equals(ps[0])) { vt100_out = "gogo-term"; } else if ("8".equals(ps[0])) { vt100_out = "1.0-SNAPSHOT"; } else if ("?6".equals(ps[0])) { vt100_out = "\u001b[" + (cy + 1) + ";" + (cx + 1) + ";0R"; } else if ("?15".equals(ps[0])) { vt100_out = "\u001b[?13n"; } else if ("?25".equals(ps[0])) { vt100_out = "\u001b[?20n"; } else if ("?26".equals(ps[0])) { vt100_out = "\u001b[?27;1n"; } else if ("?53".equals(ps[0])) { vt100_out = "\u001b[?53n"; } } 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();  }