private void csi_REP(String p) { int[] ps = vt100_parse_params(p, new int[] {1}); if (vt100_lastchar < 32) { return; } int n = Math.min(2000, Math.max(1, ps[0])); while (n-- > 0) { dumb_echo(vt100_lastchar); } vt100_lastchar = 0; }
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; }