Lines Matching refs:col

693 CopyCells(TScreen *screen, LineData *src, LineData *dst, int col, int len, Bool down)
700 int last = col + len;
711 if (col > 0) {
712 if (dst->charData[col] == HIDDEN_CHAR) {
714 Clear2Cell(dst, src, col - 1);
715 Clear2Cell(dst, src, col);
717 if (src->charData[col] != HIDDEN_CHAR) {
718 Clear2Cell(dst, src, col - 1);
719 Clear2Cell(dst, src, col);
721 fix_l = col - 1;
724 } else if (src->charData[col] == HIDDEN_CHAR) {
725 Clear2Cell(dst, src, col - 1);
726 Clear2Cell(dst, src, col);
727 ++col;
749 for (n = col; n < last; ++n) {
755 for (n = col; n < last; ++n) {
762 for (n = col; n < last; ++n) {
794 ClearCells(XtermWidget xw, int flags, unsigned len, int row, int col)
803 if (((unsigned) col + len) > ld->lineSize)
804 len = (unsigned) (ld->lineSize - col);
807 if (((unsigned) col + len) < ld->lineSize &&
808 ld->charData[col + (int) len] == HIDDEN_CHAR) {
811 if (col > 0 &&
812 ld->charData[col] == HIDDEN_CHAR) {
814 col--;
821 if_OPT_DEC_RECTOPS(ld->charSeen[(unsigned) col + n] = ' ');
822 ld->charData[(unsigned) col + n] = (CharData) ' ';
825 FillIAttr(ld->attribs + col, (unsigned) flags, (size_t) len);
830 ld->color[(unsigned) col + n] = p;
836 memset(ld->combData[off] + col, 0, (size_t) len * sizeof(CharData));
847 ScrnClearCells(XtermWidget xw, int row, int col, unsigned len)
858 if (DamagedCells(screen, len, &kl, &kr, row, col)
863 ClearCells(xw, flags, len, row, col);
1268 * Inserts n blanks in screen at current row, col. Size is the size of each
1275 for (j = last; j >= (col + (int) n); --j) \
1282 int col = screen->cur_col;
1285 if (col < first || col > last) {
1286 TRACE(("ScrnInsertChar - col %d outside [%d..%d]\n", col, first, last));
1288 } else if (last < (col + (int) n)) {
1289 n = (unsigned) (last + 1 - col);
1326 ClearCells(xw, CHARDRAWN, n, row, col);
1332 * Deletes n characters at current row, col.
1338 for (j = col; j < last - (int) n; ++j) \
1345 int col = screen->cur_col;
1348 if (col < first || col > last) {
1349 TRACE(("ScrnDeleteChar - col %d outside [%d..%d]\n", col, first, last));
1351 } else if (last <= (col + (int) n)) {
1352 n = (unsigned) (last - col);
1468 if (screen->startH.col < screen->endH.col) {
1469 *start = screen->startH.col;
1470 *end = screen->endH.col;
1472 *start = screen->endH.col;
1473 *end = screen->startH.col;
1478 * Return 1 if any part of [col, maxcol] intersects with the selection.
1483 int col,
1491 && ((start >= col && start <= maxcol)
1492 || (end > col && end < maxcol)) ? 1 : 0;
1495 || (row == screen->startH.row && maxcol < screen->startH.col)
1496 || (row == screen->endH.row && col >= screen->endH.col)) ? 1 : 0;
1500 * If there are any parts of [col, maxcol] not in the selection,
1501 * invoke ScrnRefresh on them, then adjust [col, maxcol] to be fully
1509 int *col,
1517 if (*col < start) {
1518 ScrnRefresh(xw, row, *col, 1, start - *col, force);
1519 *col = start;
1526 if (row == screen->startH.row && *col < screen->startH.col) {
1527 ScrnRefresh(xw, row, *col, 1, screen->startH.col - *col,
1529 *col = screen->startH.col;
1531 if (row == screen->endH.row && *maxcol >= screen->endH.col) {
1532 ScrnRefresh(xw, row, screen->endH.col, 1,
1533 *maxcol - screen->endH.col + 1, force);
1534 *maxcol = screen->endH.col - 1;
1539 #define intersectsSelection(screen, row, col, maxcol) \
1541 && (row != screen->startH.row || maxcol >= screen->startH.col) \
1542 && (row != screen->endH.row || col < screen->endH.col))
1591 if (screen->cursorp.col >= leftcol
1592 && screen->cursorp.col <= (leftcol + ncols - 1)
1600 #define ColorOf(col) (fb ? fb[col] : initCColor)
1608 int col = leftcol;
1665 col = leftcol;
1672 if (!intersectsSelection(screen, row, col, maxcol)) {
1679 col /= 2;
1692 while (col <= maxcol && (attrs[col] & ~BOLD) == 0 &&
1693 BLANK_CEL(col))
1694 col++;
1696 while (col <= maxcol && (attrs[maxcol] & ~BOLD) == 0 &&
1702 col *= 2;
1710 * of col to maxcol, then adjust col and maxcol so that they are
1713 recurseForNotSelectedAndAdjust(xw, row, &col, &maxcol, force);
1716 if (row == screen->startH.row && col < screen->startH.col) {
1717 ScrnRefresh(xw, row, col, 1, screen->startH.col - col,
1719 col = screen->startH.col;
1721 if (row == screen->endH.row && maxcol >= screen->endH.col) {
1722 ScrnRefresh(xw, row, screen->endH.col, 1,
1723 maxcol - screen->endH.col + 1, force);
1724 maxcol = screen->endH.col - 1;
1757 if (col > maxcol)
1767 col /= 2;
1772 flags = attrs[col];
1775 wideness = isWide((int) chars[col]);
1780 fg_bg = ColorOf(col);
1790 x = LineCursorX(screen, ld, col);
1791 lastind = col;
1793 for (; col <= maxcol; col++) {
1796 (chars[col] != HIDDEN_CHAR) &&
1798 ((attrs[col] != flags)
1799 || (hilite && (col > hi_col))
1802 && (extract_fg(xw, ColorOf(col), attrs[col]) != fg))
1804 && (extract_bg(xw, ColorOf(col), attrs[col]) != bg))
1807 || (isWide((int) chars[col]) != wideness)
1811 assert(col >= lastind);
1813 lastind, col,
1815 (unsigned) (col - lastind))));
1831 (unsigned) (col - lastind));
1842 for (i = lastind; i < col; i++) {
1860 lastind = col;
1862 if (hilite && (col > hi_col))
1865 flags = attrs[col];
1867 fg_bg = ColorOf(col);
1872 wideness = isWide((int) chars[col]);
1882 if (chars[col] == 0) {
1883 chars[col] = ' ';
1887 assert(col >= lastind);
1889 lastind, col,
1890 visibleIChars(&chars[lastind], (unsigned) (col - lastind))));
1906 (unsigned) (col - lastind));
1917 for (i = lastind; i < col; i++) {
2427 * Return true if any character cell starting at [row,col], for len-cells is
2433 int col,
2442 for (i = col; i < len; i++) {
2479 limitedParseCol(XtermWidget xw, int col)
2486 col += screen->lft_marg;
2488 if (col < min_col)
2489 col = min_col;
2490 else if (col > max_col)
2491 col = max_col;
2493 return col;
2569 int row, col;
2602 for (col = left; col <= right; ++col) {
2603 unsigned temp = ld->attribs[col];
2609 ld->attribs[col] = (IAttr) temp;
2612 ld->color[col] = xtermColorPair(xw);
2617 for (col = left; col <= right; ++col)
2618 ld->charData[col] = actual;
2673 int row, col;
2693 for (col = source->left - 1; col < source->right; ++col) {
2694 k = (Cardinal) (col - (source->left - 1));
2697 ld, source, col);
2706 for (col = target.left - 1; col < target.right; ++col) {
2707 k = (Cardinal) (col - (target.left - 1));
2710 && col >= getMinCol(screen)
2711 && col <= getMaxCol(screen)
2715 if (ld->charData[col] == HIDDEN_CHAR
2716 && (col + 1) == target.left) {
2718 Clear1Cell(ld, col - 1);
2720 if ((col + 1) == target.right
2721 && ld->charData[col] == HIDDEN_CHAR) {
2727 ld, &target, col);
2729 ld->attribs[col] |= CHARDRAWN;
2835 int row, col;
2849 for (col = left; col <= right; ++col) {
2850 unsigned flags = ld->attribs[col];
2855 Clear1Cell(ld, col);
2863 if (row == top && col == left)
2926 if (row == top && col == left)
2928 ld->attribs[col] ^ flags));
2930 ld->attribs[col] = (IAttr) flags;
2956 #define IsProtected(ld, col) \
2958 && (ld->attribs[col] & PROTECTED))
2967 int row, col;
2995 for (col = left; col <= right; ++col) {
2996 if (!IsProtected(ld, col)) {
2997 ld->attribs[col] |= CHARDRAWN;
2998 Clear1Cell(ld, col);
3047 int row, col;
3059 for (col = left; col <= right && col < (int) ld->lineSize; ++col) {
3060 if (!(ld->attribs[col] & CHARDRAWN)) {
3066 ld->charSeen[col],
3067 ld->charSets[col]);
3069 ch = (int) ld->charData[col];
3078 IAttr flags = ld->attribs[col];
3079 CellColor fg_bg = ld->color[col];
3096 if (dft_bg && !dft_fg && (ld->attribs[col] & BOLD))
3100 if (ld->attribs[col] & PROTECTED)
3103 if (ld->attribs[col] & INVISIBLE)
3106 if (ld->attribs[col] & UNDERLINE)
3108 if (ld->attribs[col] & INVERSE)
3110 if (ld->attribs[col] & BLINK)
3112 if (ld->attribs[col] & BOLD)
3115 if (first || (ch != ' ') || (ld->attribs[col] & DRAWX_MASK)) {
3127 total += (int) ld->combData[off][col];