|
|
@ -1419,15 +1419,13 @@ xdrawcursor(int cx, int cy, Glyph g, int ox, int oy, Glyph og)
|
|
|
|
g.mode &= ATTR_BOLD|ATTR_ITALIC|ATTR_UNDERLINE|ATTR_STRUCK|ATTR_WIDE;
|
|
|
|
g.mode &= ATTR_BOLD|ATTR_ITALIC|ATTR_UNDERLINE|ATTR_STRUCK|ATTR_WIDE;
|
|
|
|
|
|
|
|
|
|
|
|
if (selected(cx, cy)) {
|
|
|
|
if (selected(cx, cy)) {
|
|
|
|
drawcol = dc.col[g.bg];
|
|
|
|
g.bg = defaultrcs;
|
|
|
|
|
|
|
|
g.fg = defaultfg;
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
g.mode |= ATTR_REVERSE;
|
|
|
|
g.bg = defaultcs;
|
|
|
|
|
|
|
|
g.fg = defaultbg;
|
|
|
|
if (g.mode & ATTR_BOLD && BETWEEN(g.fg, 0, 7))
|
|
|
|
|
|
|
|
drawcol = dc.col[g.fg + 8];
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
drawcol = dc.col[g.fg];
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
drawcol = dc.col[g.bg];
|
|
|
|
|
|
|
|
|
|
|
|
if (IS_SET(MODE_REVERSE)) {
|
|
|
|
if (IS_SET(MODE_REVERSE)) {
|
|
|
|
drawcol.color.red = ~drawcol.color.red;
|
|
|
|
drawcol.color.red = ~drawcol.color.red;
|
|
|
|