@Test public void testWrite() { term.write("\u001b[r"); term.write("\u001b[T"); term.write("\u001b[S"); term.write("" + (char)10); term.write("" + (char)13); term.write("\u001b[20h"); term.write("" + (char)10); term.write("" + (char)13); term.write("" + 'a'); term.write("\u001b[" + (char)24); term.write("\u001b[" + (char)25); term.write("\u001b[" + (char)26); term.write("\u001b[?3h"); term.write("\u001b[?3l"); term.write("\u001b[?40h"); term.write("\u001b[?3h"); term.write("\u001b[?3l"); term.write("\u001b[4h"); term.write("\u001b[?6h"); term.write("\u001b[?6l"); term.write("\u001b[?7h"); term.write("\u001b[?25h"); term.write("\u001b[?47h"); term.write("\u001b[?68h"); term.write("\u001b#8"); term.write("" + (char)14); term.write("" + (char)15); assertTrue(term.write("\u001b[!p")); }
public synchronized boolean write(String d) { d = utf8_decode(d); for (int c : d.toCharArray()) { if (vt100_write(c)) { continue; } if (dumb_write(c)) { continue; } if (c <= 0xffff) { dumb_echo(c); } } return true; }
Terminal { public synchronized boolean write(String d) { d = utf8_decode(d); for (int c : d.toCharArray()) { if (vt100_write(c)) { continue; } if (dumb_write(c)) { continue; } if (c <= 0xffff) { dumb_echo(c); } } return true; } }
Terminal { public synchronized boolean write(String d) { d = utf8_decode(d); for (int c : d.toCharArray()) { if (vt100_write(c)) { continue; } if (dumb_write(c)) { continue; } if (c <= 0xffff) { dumb_echo(c); } } return true; } Terminal();  Terminal(int width, int height); }
Terminal { public synchronized boolean write(String d) { d = utf8_decode(d); for (int c : d.toCharArray()) { if (vt100_write(c)) { continue; } if (dumb_write(c)) { continue; } if (c <= 0xffff) { dumb_echo(c); } } return true; } 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 { public synchronized boolean write(String d) { d = utf8_decode(d); for (int c : d.toCharArray()) { if (vt100_write(c)) { continue; } if (dumb_write(c)) { continue; } if (c <= 0xffff) { dumb_echo(c); } } return true; } 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();  }