mirror of
https://github.com/tio/tio.git
synced 2026-05-01 23:07:58 +02:00
Introduce bold color option
Introduce "bold" color option which only apply bold color formatting to existing system color. Also make "bold" the default color option. Fixes all white issue with black on white tio text.
This commit is contained in:
parent
9db7bb4fbb
commit
9733bdf19c
6 changed files with 31 additions and 10 deletions
|
|
@ -226,6 +226,12 @@ static int data_handler(void *user, const char *section, const char *name,
|
|||
return 0;
|
||||
}
|
||||
|
||||
if (!strcmp(value, "bold"))
|
||||
{
|
||||
option.color = 256; // Bold
|
||||
return 0;
|
||||
}
|
||||
|
||||
option.color = atoi(value);
|
||||
if ((option.color < 0) || (option.color > 255))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue