Drawing a more visible rectangle as cursor on unfocus.

To have a more visible cursor on unfocused windows this patch makes st draw a
rectangle around the terminal cell.

Thanks Mark Hills <mark@xwax.org> for the suggestion!
This commit is contained in:
Christoph Lohmann
2013-04-13 09:44:00 +02:00
parent 5dc48af29e
commit 1e7816c202
2 changed files with 27 additions and 10 deletions

View File

@ -52,18 +52,16 @@ static const char *colorname[] = {
/* more colors can be added after 255 to use with DefaultXX */
"#cccccc",
"#333333",
};
/*
* Default colors (colorname index)
* foreground, background, cursor, unfocused cursor
* foreground, background, cursor
*/
static unsigned int defaultfg = 7;
static unsigned int defaultbg = 0;
static unsigned int defaultcs = 256;
static unsigned int defaultucs = 257;
/*
* Colors used, when the specific fg == defaultfg. So in reverse mode this