Exemple #1
0
 private void csi_EL(String p) {
   String[] ps = vt100_parse_params(p, new String[] {"0"});
   if ("0".equals(ps[0])) {
     clear(cy, cx, cy + 1, width);
   } else if ("1".equals(ps[0])) {
     clear(cy, 0, cy + 1, cx + 1);
   } else if ("2".equals(ps[0])) {
     clear(cy, 0, cy + 1, width);
   }
 }
Exemple #2
0
 private void scroll_line_left(int y, int x, int n) {
   if (x < width) {
     n = Math.min(width - cx, n);
     poke(y, x, peek(y, x + n, y + 1, width));
     clear(y, width - n, y + 1, width);
   }
 }
Exemple #3
0
 private void csi_ECH(String p) {
   int[] ps = vt100_parse_params(p, new int[] {1});
   int n = Math.min(width - cx, Math.max(1, ps[0]));
   clear(cy, cx, cy + 1, cx + n);
 }
Exemple #4
0
 private void scroll_area_down(int y0, int y1, int n) {
   n = Math.min(y1 - y0, n);
   poke(y0 + n, 0, peek(y0, 0, y1 - n, width));
   clear(y0, 0, y0 + n, width);
 }