mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-18 03:28:07 -05:00
Make the cursor colour override true colour.
Otherwise, moving the cursor (at least in active, filled-cell mode) on to a true-coloured character cell causes it to vanish completely because the cell's colours override the thing that differentiates the cursor.
This commit is contained in:
parent
1adf211d70
commit
262376a054
@ -3274,6 +3274,7 @@ void do_text_internal(Context ctx, int x, int y, wchar_t *text, int len,
|
|||||||
else if (nbg >= 256) nbg |= 1;
|
else if (nbg >= 256) nbg |= 1;
|
||||||
}
|
}
|
||||||
if ((attr & TATTR_ACTCURS) && !monochrome) {
|
if ((attr & TATTR_ACTCURS) && !monochrome) {
|
||||||
|
truecolour.fg = truecolour.bg = optionalrgb_none;
|
||||||
nfg = 260;
|
nfg = 260;
|
||||||
nbg = 261;
|
nbg = 261;
|
||||||
}
|
}
|
||||||
|
@ -3429,6 +3429,7 @@ void do_text_internal(Context ctx, int x, int y, wchar_t *text, int len,
|
|||||||
y += offset_height;
|
y += offset_height;
|
||||||
|
|
||||||
if ((attr & TATTR_ACTCURS) && (cursor_type == 0 || term->big_cursor)) {
|
if ((attr & TATTR_ACTCURS) && (cursor_type == 0 || term->big_cursor)) {
|
||||||
|
truecolour.fg = truecolour.bg = optionalrgb_none;
|
||||||
attr &= ~(ATTR_REVERSE|ATTR_BLINK|ATTR_COLOURS);
|
attr &= ~(ATTR_REVERSE|ATTR_BLINK|ATTR_COLOURS);
|
||||||
/* cursor fg and bg */
|
/* cursor fg and bg */
|
||||||
attr |= (260 << ATTR_FGSHIFT) | (261 << ATTR_BGSHIFT);
|
attr |= (260 << ATTR_FGSHIFT) | (261 << ATTR_BGSHIFT);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user