Lines Matching defs:scp
372 chtype *wcp, *scp, *wp, *sp, wc, sc;
387 scp = curscr->_y[wy];
403 sp = scp + wx;
411 for (sp = scp+wx, wp = wcp+wx; wp > wcp; --wp, --sp, --wx)
417 sp = scp + lastx - 1;
441 for (sp = scp + blnkx + 1; blnkx < scrco - 1;
524 scp += wx;
533 for (; wx < lastx; ++wx, ++wcp, ++scp)
534 if (*wcp != *scp)
538 for (; wx > wx_sav; --wx, --wcp, --scp) {
539 if (!ISCBIT(*wcp) && !ISCBIT(*scp))
552 for (sp = scp+(x-wx); x >= wx; --x, --sp)
573 (void) memcpy((char *) scp, (char *) wcp,
576 scp += mtch;
595 sc = *scp;
617 if (marks && wx > 0 && _ATTR(*(scp - 1)) !=
619 _VIDS(A_NORMAL, _ATTR(*(scp - 1)));
620 if (_VIDEO(*scp - 1))
622 if (_COLOR(*scp - 1))
629 if (wx > idcx && !ISCBIT(*scp) &&
630 (mtch = _useidch(wcp, scp, lastx - wx,
634 scp += mtch;
716 _setmark1(wy, wx, scp);
718 _setmark2(wy, wx, scp);
740 *scp++ = wc;
747 *scp++ = *wcp++;
761 for (wx = 0, scp = curscr->_y[wy]; wx < scrco; ++wx, ++scp)
762 if (_DARKCHAR(*scp))
770 scp = curscr->_y[wy] + wx;
771 for (; wx >= 0; --wx, --scp)
772 if (_DARKCHAR(*scp))
788 * prefix of one of 'wcp' or 'scp', then either delete or
792 * scp : what the screen looks like now
801 _useidch(chtype *wcp, chtype *scp, int length, int maxi, int *id)
808 if ((match = _prefix(wcp, scp, length, length / 2, &idch)) > 0)
844 scp[x1] = scp[x2];
846 scp[x1] = ' ';
854 if (!(SP->ichok) || _CHAR(*scp) == ' ')
859 if ((match = _prefix(scp, wcp, length, maxi, &idch)) <= 0)
927 scp[x1] = scp[x2];
928 (void) memcpy((char *) scp, (char *) wcp, idch * sizeof (chtype));