Commit 61172e68ea685ebbfd135ba8898bf6b1ecbab04b
Ignore underline attribute on Windows
Windows terminals don't support underscoring.
Author: xaizek
Author date (UTC): 2019-03-20 12:24
Committer name: xaizek
Committer date (UTC): 2019-03-20 12:24
Parent(s): edc9531889554c7ee297f13c88fb34d226028e2f
Signing key: 99DC5E4DB05F6BE2
Tree: db54cad3bba8659996d81d9841362e323ceba87f
File win32/pdcscrn.c changed (mode: 100644) (index b48ddaaf..da84cdeb) |
... |
... |
void PDC_init_pair(short pair, short fg, short bg) |
560 |
560 |
if (i & (A_REVERSE >> PDC_ATTR_SHIFT)) |
if (i & (A_REVERSE >> PDC_ATTR_SHIFT)) |
561 |
561 |
att = bg | (fg << 4); |
att = bg | (fg << 4); |
562 |
562 |
if (i & (A_UNDERLINE >> PDC_ATTR_SHIFT)) |
if (i & (A_UNDERLINE >> PDC_ATTR_SHIFT)) |
563 |
|
att = 1; |
|
|
563 |
|
/* No underscores in Windows terminals. */ |
|
564 |
|
att |= 0; |
564 |
565 |
if (i & (A_INVIS >> PDC_ATTR_SHIFT)) |
if (i & (A_INVIS >> PDC_ATTR_SHIFT)) |
565 |
566 |
{ |
{ |
566 |
567 |
temp_bg = att >> 4; |
temp_bg = att >> 4; |