private void ctrl_LF() { if (vt100_mode_lfnewline) { ctrl_CR(); } if (cy == scroll_area_y1 - 1) { scroll_area_up(scroll_area_y0, scroll_area_y1); } else { cursor_down(); } }
private boolean dumb_write(int c) { if (c < 32) { if (c == 8) { ctrl_BS(); } else if (c == 9) { ctrl_HT(); } else if (c >= 10 && c <= 12) { ctrl_LF(); } else if (c == 13) { ctrl_CR(); } return true; } return false; }
private void dumb_echo(int c) { if (eol) { if (vt100_mode_autowrap) { ctrl_CR(); ctrl_LF(); } else { cx = cursor_line_width(c)[1] - 1; } } if (vt100_mode_insert) { scroll_line_right(cy, cx); } if (vt100_charset_is_single_shift) { vt100_charset_is_single_shift = false; } else if (vt100_charset_is_graphical && ((c & 0xffe0) == 0x0060)) { c = vt100_charset_graph[c - 0x60]; } poke(cy, cx, new int[] {attr | c}); cursor_right(); }
private void csi_CPL(String p) { csi_CUU(p); ctrl_CR(); }
private void csi_CNL(String p) { csi_CUD(p); ctrl_CR(); }
private void esc_NEL() { ctrl_CR(); ctrl_LF(); }