Lines Matching refs:cx

80 	unsigned int cx, cy;		/* Current output position. */  member
1042 if (line->len <= tp->cx) { in tty3270_put_character()
1043 while (line->len < tp->cx) { in tty3270_put_character()
1052 cell = line->cells + tp->cx; in tty3270_put_character()
1171 tp->cx = 0; in tty3270_cr()
1217 while (line->len < tp->cx) { in tty3270_insert_characters()
1223 if (n > tp->view.cols - tp->cx) in tty3270_insert_characters()
1224 n = tp->view.cols - tp->cx; in tty3270_insert_characters()
1225 k = min_t(int, line->len - tp->cx, tp->view.cols - tp->cx - n); in tty3270_insert_characters()
1227 line->cells[tp->cx + n + k] = line->cells[tp->cx + k]; in tty3270_insert_characters()
1232 line->cells[tp->cx + n].character = tp->view.ascebc[' ']; in tty3270_insert_characters()
1233 line->cells[tp->cx + n].highlight = tp->highlight; in tty3270_insert_characters()
1234 line->cells[tp->cx + n].f_color = tp->f_color; in tty3270_insert_characters()
1248 if (line->len <= tp->cx) in tty3270_delete_characters()
1250 if (line->len - tp->cx <= n) { in tty3270_delete_characters()
1251 line->len = tp->cx; in tty3270_delete_characters()
1254 for (i = tp->cx; i + n < line->len; i++) in tty3270_delete_characters()
1269 while (line->len > tp->cx && n-- > 0) { in tty3270_erase_characters()
1270 cell = line->cells + tp->cx++; in tty3270_erase_characters()
1275 tp->cx += n; in tty3270_erase_characters()
1276 tp->cx = min_t(int, tp->cx, tp->view.cols - 1); in tty3270_erase_characters()
1294 line->len = tp->cx; in tty3270_erase_line()
1296 for (i = 0; i < tp->cx; i++) { in tty3270_erase_line()
1302 if (line->len <= tp->cx) in tty3270_erase_line()
1303 line->len = tp->cx + 1; in tty3270_erase_line()
1406 tty3270_goto_xy(struct tty3270 *tp, int cx, int cy) in tty3270_goto_xy() argument
1408 int max_cx = max(0, cx); in tty3270_goto_xy()
1411 tp->cx = min_t(int, tp->view.cols - 1, max_cx); in tty3270_goto_xy()
1470 tp->saved_cx = tp->cx; in tty3270_escape_sequence()
1482 tp->cx = tp->saved_cx = 0; in tty3270_escape_sequence()
1516 sprintf(buf, "\033[%d;%dR", tp->cy + 1, tp->cx + 1); in tty3270_escape_sequence()
1533 tty3270_goto_xy(tp, tp->cx, tty3270_getpar(tp, 0) - 1); in tty3270_escape_sequence()
1537 tty3270_goto_xy(tp, tp->cx, tp->cy - tty3270_getpar(tp, 0)); in tty3270_escape_sequence()
1542 tty3270_goto_xy(tp, tp->cx, tp->cy + tty3270_getpar(tp, 0)); in tty3270_escape_sequence()
1546 tty3270_goto_xy(tp, tp->cx + tty3270_getpar(tp, 0), tp->cy); in tty3270_escape_sequence()
1549 tty3270_goto_xy(tp, tp->cx - tty3270_getpar(tp, 0), tp->cy); in tty3270_escape_sequence()
1571 tp->saved_cx = tp->cx; in tty3270_escape_sequence()
1607 if (tp->cx > 0) { in tty3270_do_write()
1608 tp->cx--; in tty3270_do_write()
1613 for (i = tp->cx % 8; i < 8; i++) { in tty3270_do_write()
1614 if (tp->cx >= tp->view.cols) { in tty3270_do_write()
1620 tp->cx++; in tty3270_do_write()
1629 tp->cx = tp->cy = 0; in tty3270_do_write()
1632 tp->cx = 0; in tty3270_do_write()
1640 if (tp->cx >= tp->view.cols) { in tty3270_do_write()
1645 tp->cx++; in tty3270_do_write()