@Test public void testWrite_2byteModes() { for (int i = 0x23; i <= 0x29; i++) { for (int j = 0x30; j <= 0x42; j++) { term.write("\u001b" + (char)i + (char)j); } } for (int i = 0x20; i <= 0x24; i++) { for (int j = 0x40; j <= 0x77; j++) { term.write("\u001b[" + (char)i + (char)j); } } }
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();  }