1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-02 03:52:49 -05:00

Introduce alternative cursor shapes: underline, vertical line

[originally from svn r870]
This commit is contained in:
Simon Tatham
2001-01-17 16:57:33 +00:00
parent e364010d4f
commit c68959b584
5 changed files with 58 additions and 5 deletions

View File

@ -1771,6 +1771,8 @@ static void do_paint (Context ctx, int may_optimise){
}
else
cursor = ATTR_PASCURS;
if (wrapnext)
cursor |= ATTR_RIGHTCURS;
}
else cursor = 0;
rv = (rvideo ? ATTR_REVERSE : 0);
@ -1781,11 +1783,10 @@ static void do_paint (Context ctx, int may_optimise){
int lattr = (disptop[idx+cols] & LATTR_MODE);
for (j=0; j<=cols; j++,idx++) {
unsigned long *d = disptop+idx;
wanttext[idx] = lattr | ((*d ^ rv
wanttext[idx] = lattr | (((*d &~ ATTR_WRAPPED) ^ rv
^ (selstart <= d && d < selend ?
ATTR_REVERSE : 0)) |
(i==our_curs_y && j==curs_x ? cursor : 0));
if (blink_is_real) {
if (has_focus && tblinker && (wanttext[idx]&ATTR_BLINK) )
{