Lines Matching refs:rect
44 static void erase(VTermState *state, VTermRect rect, int selective) in erase() argument
47 if((*state->callbacks->erase)(rect, selective, state->cbdata)) in erase()
84 static void scroll(VTermState *state, VTermRect rect, int downward, int rightward) in scroll() argument
89 int rows = rect.end_row - rect.start_row; in scroll()
95 int cols = rect.end_col - rect.start_col; in scroll()
102 if(rect.start_col == 0 && rect.end_col == state->cols && rightward == 0) { in scroll()
103 int height = rect.end_row - rect.start_row - abs(downward); in scroll()
106 memmove(state->lineinfo + rect.start_row, in scroll()
107 state->lineinfo + rect.start_row + downward, in scroll()
110 memmove(state->lineinfo + rect.start_row - downward, in scroll()
111 state->lineinfo + rect.start_row, in scroll()
116 if((*state->callbacks->scrollrect)(rect, downward, rightward, state->cbdata)) in scroll()
120 vterm_scroll_rect(rect, downward, rightward, in scroll()
127 VTermRect rect = { in linefeed() local
134 scroll(state, rect, 1, 0); in linefeed()
358 VTermRect rect = { in on_text() local
364 scroll(state, rect, 0, -1); in on_text()
464 VTermRect rect = { in on_control() local
471 scroll(state, rect, -1, 0); in on_control()
924 VTermRect rect; in on_csi() local
940 rect.start_row = state->pos.row; in on_csi()
941 rect.end_row = state->pos.row + 1; in on_csi()
942 rect.start_col = state->pos.col; in on_csi()
944 rect.end_col = SCROLLREGION_RIGHT(state); in on_csi()
946 rect.end_col = THISROWWIDTH(state); in on_csi()
948 scroll(state, rect, 0, -count); in on_csi()
1020 rect.start_row = state->pos.row; rect.end_row = state->pos.row + 1; in on_csi()
1021 rect.start_col = state->pos.col; rect.end_col = state->cols; in on_csi()
1022 if(rect.end_col > rect.start_col) in on_csi()
1023 erase(state, rect, selective); in on_csi()
1025 rect.start_row = state->pos.row + 1; rect.end_row = state->rows; in on_csi()
1026 rect.start_col = 0; in on_csi()
1027 for(int row = rect.start_row; row < rect.end_row; row++) in on_csi()
1029 if(rect.end_row > rect.start_row) in on_csi()
1030 erase(state, rect, selective); in on_csi()
1034 rect.start_row = 0; rect.end_row = state->pos.row; in on_csi()
1035 rect.start_col = 0; rect.end_col = state->cols; in on_csi()
1036 for(int row = rect.start_row; row < rect.end_row; row++) in on_csi()
1038 if(rect.end_col > rect.start_col) in on_csi()
1039 erase(state, rect, selective); in on_csi()
1041 rect.start_row = state->pos.row; rect.end_row = state->pos.row + 1; in on_csi()
1042 rect.end_col = state->pos.col + 1; in on_csi()
1043 if(rect.end_row > rect.start_row) in on_csi()
1044 erase(state, rect, selective); in on_csi()
1048 rect.start_row = 0; rect.end_row = state->rows; in on_csi()
1049 rect.start_col = 0; rect.end_col = state->cols; in on_csi()
1050 for(int row = rect.start_row; row < rect.end_row; row++) in on_csi()
1052 erase(state, rect, selective); in on_csi()
1060 rect.start_row = state->pos.row; in on_csi()
1061 rect.end_row = state->pos.row + 1; in on_csi()
1066 rect.start_col = state->pos.col; rect.end_col = THISROWWIDTH(state); break; in on_csi()
1068 rect.start_col = 0; rect.end_col = state->pos.col + 1; break; in on_csi()
1070 rect.start_col = 0; rect.end_col = THISROWWIDTH(state); break; in on_csi()
1075 if(rect.end_col > rect.start_col) in on_csi()
1076 erase(state, rect, selective); in on_csi()
1086 rect.start_row = state->pos.row; in on_csi()
1087 rect.end_row = SCROLLREGION_BOTTOM(state); in on_csi()
1088 rect.start_col = SCROLLREGION_LEFT(state); in on_csi()
1089 rect.end_col = SCROLLREGION_RIGHT(state); in on_csi()
1091 scroll(state, rect, -count, 0); in on_csi()
1101 rect.start_row = state->pos.row; in on_csi()
1102 rect.end_row = SCROLLREGION_BOTTOM(state); in on_csi()
1103 rect.start_col = SCROLLREGION_LEFT(state); in on_csi()
1104 rect.end_col = SCROLLREGION_RIGHT(state); in on_csi()
1106 scroll(state, rect, count, 0); in on_csi()
1116 rect.start_row = state->pos.row; in on_csi()
1117 rect.end_row = state->pos.row + 1; in on_csi()
1118 rect.start_col = state->pos.col; in on_csi()
1120 rect.end_col = SCROLLREGION_RIGHT(state); in on_csi()
1122 rect.end_col = THISROWWIDTH(state); in on_csi()
1124 scroll(state, rect, 0, count); in on_csi()
1131 rect.start_row = state->scrollregion_top; in on_csi()
1132 rect.end_row = SCROLLREGION_BOTTOM(state); in on_csi()
1133 rect.start_col = SCROLLREGION_LEFT(state); in on_csi()
1134 rect.end_col = SCROLLREGION_RIGHT(state); in on_csi()
1136 scroll(state, rect, count, 0); in on_csi()
1143 rect.start_row = state->scrollregion_top; in on_csi()
1144 rect.end_row = SCROLLREGION_BOTTOM(state); in on_csi()
1145 rect.start_col = SCROLLREGION_LEFT(state); in on_csi()
1146 rect.end_col = SCROLLREGION_RIGHT(state); in on_csi()
1148 scroll(state, rect, -count, 0); in on_csi()
1155 rect.start_row = state->pos.row; in on_csi()
1156 rect.end_row = state->pos.row + 1; in on_csi()
1157 rect.start_col = state->pos.col; in on_csi()
1158 rect.end_col = state->pos.col + count; in on_csi()
1159 UBOUND(rect.end_col, THISROWWIDTH(state)); in on_csi()
1161 erase(state, rect, 0); in on_csi()
1417 rect.start_row = state->scrollregion_top; in on_csi()
1418 rect.end_row = SCROLLREGION_BOTTOM(state); in on_csi()
1419 rect.start_col = state->pos.col; in on_csi()
1420 rect.end_col = SCROLLREGION_RIGHT(state); in on_csi()
1422 scroll(state, rect, 0, -count); in on_csi()
1432 rect.start_row = state->scrollregion_top; in on_csi()
1433 rect.end_row = SCROLLREGION_BOTTOM(state); in on_csi()
1434 rect.start_col = state->pos.col; in on_csi()
1435 rect.end_col = SCROLLREGION_RIGHT(state); in on_csi()
1437 scroll(state, rect, 0, count); in on_csi()
1752 VTermRect rect = { 0, state->rows, 0, state->cols }; in vterm_state_reset() local
1753 erase(state, rect, 0); in vterm_state_reset()
1827 VTermRect rect = { in vterm_state_set_termprop() local
1833 erase(state, rect, 0); in vterm_state_set_termprop()