Lines Matching refs:cury
722 sc->cury = 0;
1099 if (sc->cury < sc->top_margin)
1100 sc->cury = sc->top_margin;
1101 if (sc->cury > sc->bottom_margin)
1102 sc->cury = sc->bottom_margin;
1112 SUBR_SCROLL(sc, sc->cury, sc->curx + n, n, SCROLL_LEFT);
1113 attrmov(sc, sc->cury, sc->curx + n, sc->cury, sc->curx,
1115 attrclr(sc, sc->cury, sc->cols - n, 1, n);
1118 SUBR_PUTC(sc, ' ', sc->cury, sc->cols - n - 1, ATTR_NOR);
1128 SUBR_SCROLL(sc, sc->cury, sc->curx, n, SCROLL_RIGHT);
1129 attrmov(sc, sc->cury, sc->curx, sc->cury, sc->curx + n,
1131 attrclr(sc, sc->cury, sc->curx, 1, n);
1134 SUBR_PUTC(sc, ' ', sc->cury, sc->curx + n, ATTR_NOR);
1141 int y = sc->cury, x = sc->curx;
1153 int y = sc->cury, x = uimin(sc->curx + 1, sc->cols);
1163 int y = sc->cury;
1177 if (sc->cury < sc->rows - 1) {
1178 SUBR_CLEAR(sc, sc->cury + 1, 0,
1179 sc->rows - 1 - sc->cury, sc->cols);
1180 attrclr(sc, sc->cury, 0, sc->rows - sc->cury, sc->cols);
1190 if (sc->cury > 0) {
1191 SUBR_CLEAR(sc, 0, 0, sc->cury, sc->cols);
1192 attrclr(sc, 0, 0, sc->cury, sc->cols);
1216 if (sc->cury < sc->top_margin || sc->cury > sc->bottom_margin)
1219 n = uimin(n, sc->bottom_margin + 1 - sc->cury);
1220 if (n <= sc->bottom_margin - sc->cury) {
1221 SUBR_SCROLL(sc, sc->cury + n, 0, n, SCROLL_UP);
1222 attrmov(sc, sc->cury + n, 0, sc->cury, 0,
1223 sc->bottom_margin + 1 - sc->cury - n, sc->cols);
1238 if (sc->cury < sc->top_margin || sc->cury > sc->bottom_margin)
1241 n = uimin(n, sc->bottom_margin + 1 - sc->cury);
1242 if (n <= sc->bottom_margin - sc->cury) {
1243 SUBR_SCROLL(sc, sc->cury, 0, n, SCROLL_DOWN);
1244 attrmov(sc, sc->cury, 0, sc->cury + n, 0,
1245 sc->bottom_margin + 1 - sc->cury - n, sc->cols);
1247 SUBR_CLEAR(sc, sc->cury, 0, n, sc->cols);
1248 attrclr(sc, sc->cury, 0, n, sc->cols);
1256 ++sc->cury;
1257 if ((sc->cury == sc->bottom_margin+1) || (sc->cury == sc->rows)) {
1258 sc->cury--;
1296 sc->cury--;
1297 if ((sc->cury < 0) || (sc->cury == sc->top_margin - 1)) {
1298 sc->cury++;
1544 sc->save_cury = sc->cury;
1558 sc->cury = sc->save_cury;
1743 sc->cury + 1, sc->curx + 1);
1843 sc->cury = uimin(y, sc->rows - 1);
1863 sc->cury = uimin(y, sc->rows - 1);
1873 n = sc->cury - (n ? n : 1);
1881 sc->cury = n;
1889 n = sc->cury + (n ? n : 1);
1897 sc->cury = n;
1955 attrclr(sc, sc->cury, sc->curx + n, 1, 1);
1956 SUBR_PUTC(sc, ' ', sc->cury, sc->curx + n, ATTR_NOR);
1991 sc->cury = sc->top_margin;
2147 sc->cury = sc->inside_margins ? sc->top_margin : 0;
2308 SUBR_PUTC(sc, c, sc->cury, sc->curx, ATTR_INV);
2310 SUBR_PUTC(sc, c, sc->cury, sc->curx, ATTR_NOR);
2312 SUBR_PUTC(sc, c, sc->cury, sc->curx, sc->attribute);
2326 if (++sc->cury >= sc->bottom_margin + 1) {
2327 sc->cury = sc->bottom_margin;