Lines Matching refs:cx
80 unsigned int cx, cy; /* Current output position. */ member
1046 if (line->len <= tp->cx) { in tty3270_put_character()
1047 while (line->len < tp->cx) { in tty3270_put_character()
1056 cell = line->cells + tp->cx; in tty3270_put_character()
1175 tp->cx = 0; in tty3270_cr()
1221 while (line->len < tp->cx) { in tty3270_insert_characters()
1227 if (n > tp->view.cols - tp->cx) in tty3270_insert_characters()
1228 n = tp->view.cols - tp->cx; in tty3270_insert_characters()
1229 k = min_t(int, line->len - tp->cx, tp->view.cols - tp->cx - n); in tty3270_insert_characters()
1231 line->cells[tp->cx + n + k] = line->cells[tp->cx + k]; in tty3270_insert_characters()
1236 line->cells[tp->cx + n].character = tp->view.ascebc[' ']; in tty3270_insert_characters()
1237 line->cells[tp->cx + n].highlight = tp->highlight; in tty3270_insert_characters()
1238 line->cells[tp->cx + n].f_color = tp->f_color; in tty3270_insert_characters()
1252 if (line->len <= tp->cx) in tty3270_delete_characters()
1254 if (line->len - tp->cx <= n) { in tty3270_delete_characters()
1255 line->len = tp->cx; in tty3270_delete_characters()
1258 for (i = tp->cx; i + n < line->len; i++) in tty3270_delete_characters()
1273 while (line->len > tp->cx && n-- > 0) { in tty3270_erase_characters()
1274 cell = line->cells + tp->cx++; in tty3270_erase_characters()
1279 tp->cx += n; in tty3270_erase_characters()
1280 tp->cx = min_t(int, tp->cx, tp->view.cols - 1); in tty3270_erase_characters()
1298 line->len = tp->cx; in tty3270_erase_line()
1300 for (i = 0; i < tp->cx; i++) { in tty3270_erase_line()
1306 if (line->len <= tp->cx) in tty3270_erase_line()
1307 line->len = tp->cx + 1; in tty3270_erase_line()
1410 tty3270_goto_xy(struct tty3270 *tp, int cx, int cy) in tty3270_goto_xy() argument
1412 int max_cx = max(0, cx); in tty3270_goto_xy()
1415 tp->cx = min_t(int, tp->view.cols - 1, max_cx); in tty3270_goto_xy()
1474 tp->saved_cx = tp->cx; in tty3270_escape_sequence()
1486 tp->cx = tp->saved_cx = 0; in tty3270_escape_sequence()
1520 sprintf(buf, "\033[%d;%dR", tp->cy + 1, tp->cx + 1); in tty3270_escape_sequence()
1537 tty3270_goto_xy(tp, tp->cx, tty3270_getpar(tp, 0) - 1); in tty3270_escape_sequence()
1541 tty3270_goto_xy(tp, tp->cx, tp->cy - tty3270_getpar(tp, 0)); in tty3270_escape_sequence()
1546 tty3270_goto_xy(tp, tp->cx, tp->cy + tty3270_getpar(tp, 0)); in tty3270_escape_sequence()
1550 tty3270_goto_xy(tp, tp->cx + tty3270_getpar(tp, 0), tp->cy); in tty3270_escape_sequence()
1553 tty3270_goto_xy(tp, tp->cx - tty3270_getpar(tp, 0), tp->cy); in tty3270_escape_sequence()
1575 tp->saved_cx = tp->cx; in tty3270_escape_sequence()
1611 if (tp->cx > 0) { in tty3270_do_write()
1612 tp->cx--; in tty3270_do_write()
1617 for (i = tp->cx % 8; i < 8; i++) { in tty3270_do_write()
1618 if (tp->cx >= tp->view.cols) { in tty3270_do_write()
1624 tp->cx++; in tty3270_do_write()
1633 tp->cx = tp->cy = 0; in tty3270_do_write()
1636 tp->cx = 0; in tty3270_do_write()
1644 if (tp->cx >= tp->view.cols) { in tty3270_do_write()
1649 tp->cx++; in tty3270_do_write()