| 1516 |
|
|
| 1517 |
/* VT Color */ |
/* VT Color */ |
| 1518 |
for (i = 0; i <= 1; i++) { |
for (i = 0; i <= 1; i++) { |
| 1519 |
ts->TmpColor[0][i * 3] = GetRValue(ts->VTColor[i]); |
if (ts->ColorFlag & CF_REVERSEVIDEO) { |
| 1520 |
ts->TmpColor[0][i * 3 + 1] = GetGValue(ts->VTColor[i]); |
if (ts->ColorFlag & CF_REVERSECOLOR) { |
| 1521 |
ts->TmpColor[0][i * 3 + 2] = GetBValue(ts->VTColor[i]); |
ts->TmpColor[0][i * 3] = GetRValue(ts->VTReverseColor[i]); |
| 1522 |
|
ts->TmpColor[0][i * 3 + 1] = GetGValue(ts->VTReverseColor[i]); |
| 1523 |
|
ts->TmpColor[0][i * 3 + 2] = GetBValue(ts->VTReverseColor[i]); |
| 1524 |
|
} |
| 1525 |
|
else { |
| 1526 |
|
ts->TmpColor[0][i * 3] = GetRValue(ts->VTColor[!i]); |
| 1527 |
|
ts->TmpColor[0][i * 3 + 1] = GetGValue(ts->VTColor[!i]); |
| 1528 |
|
ts->TmpColor[0][i * 3 + 2] = GetBValue(ts->VTColor[!i]); |
| 1529 |
|
} |
| 1530 |
|
} |
| 1531 |
|
else { |
| 1532 |
|
ts->TmpColor[0][i * 3] = GetRValue(ts->VTColor[i]); |
| 1533 |
|
ts->TmpColor[0][i * 3 + 1] = GetGValue(ts->VTColor[i]); |
| 1534 |
|
ts->TmpColor[0][i * 3 + 2] = GetBValue(ts->VTColor[i]); |
| 1535 |
|
} |
| 1536 |
} |
} |
| 1537 |
WriteInt6(Section, "VTColor", FName, |
WriteInt6(Section, "VTColor", FName, |
| 1538 |
ts->TmpColor[0][0], ts->TmpColor[0][1], ts->TmpColor[0][2], |
ts->TmpColor[0][0], ts->TmpColor[0][1], ts->TmpColor[0][2], |
| 1540 |
|
|
| 1541 |
/* VT Bold Color */ |
/* VT Bold Color */ |
| 1542 |
for (i = 0; i <= 1; i++) { |
for (i = 0; i <= 1; i++) { |
| 1543 |
ts->TmpColor[0][i * 3] = GetRValue(ts->VTBoldColor[i]); |
if (ts->ColorFlag & CF_REVERSEVIDEO) { |
| 1544 |
ts->TmpColor[0][i * 3 + 1] = GetGValue(ts->VTBoldColor[i]); |
ts->TmpColor[0][i * 3] = GetRValue(ts->VTBoldColor[!i]); |
| 1545 |
ts->TmpColor[0][i * 3 + 2] = GetBValue(ts->VTBoldColor[i]); |
ts->TmpColor[0][i * 3 + 1] = GetGValue(ts->VTBoldColor[!i]); |
| 1546 |
|
ts->TmpColor[0][i * 3 + 2] = GetBValue(ts->VTBoldColor[!i]); |
| 1547 |
|
} |
| 1548 |
|
else { |
| 1549 |
|
ts->TmpColor[0][i * 3] = GetRValue(ts->VTBoldColor[i]); |
| 1550 |
|
ts->TmpColor[0][i * 3 + 1] = GetGValue(ts->VTBoldColor[i]); |
| 1551 |
|
ts->TmpColor[0][i * 3 + 2] = GetBValue(ts->VTBoldColor[i]); |
| 1552 |
|
} |
| 1553 |
} |
} |
| 1554 |
WriteInt6(Section, "VTBoldColor", FName, |
WriteInt6(Section, "VTBoldColor", FName, |
| 1555 |
ts->TmpColor[0][0], ts->TmpColor[0][1], ts->TmpColor[0][2], |
ts->TmpColor[0][0], ts->TmpColor[0][1], ts->TmpColor[0][2], |
| 1557 |
|
|
| 1558 |
/* VT Blink Color */ |
/* VT Blink Color */ |
| 1559 |
for (i = 0; i <= 1; i++) { |
for (i = 0; i <= 1; i++) { |
| 1560 |
ts->TmpColor[0][i * 3] = GetRValue(ts->VTBlinkColor[i]); |
if (ts->ColorFlag & CF_REVERSEVIDEO) { |
| 1561 |
ts->TmpColor[0][i * 3 + 1] = GetGValue(ts->VTBlinkColor[i]); |
ts->TmpColor[0][i * 3] = GetRValue(ts->VTBlinkColor[!i]); |
| 1562 |
ts->TmpColor[0][i * 3 + 2] = GetBValue(ts->VTBlinkColor[i]); |
ts->TmpColor[0][i * 3 + 1] = GetGValue(ts->VTBlinkColor[!i]); |
| 1563 |
|
ts->TmpColor[0][i * 3 + 2] = GetBValue(ts->VTBlinkColor[!i]); |
| 1564 |
|
} |
| 1565 |
|
else { |
| 1566 |
|
ts->TmpColor[0][i * 3] = GetRValue(ts->VTBlinkColor[i]); |
| 1567 |
|
ts->TmpColor[0][i * 3 + 1] = GetGValue(ts->VTBlinkColor[i]); |
| 1568 |
|
ts->TmpColor[0][i * 3 + 2] = GetBValue(ts->VTBlinkColor[i]); |
| 1569 |
|
} |
| 1570 |
} |
} |
| 1571 |
WriteInt6(Section, "VTBlinkColor", FName, |
WriteInt6(Section, "VTBlinkColor", FName, |
| 1572 |
ts->TmpColor[0][0], ts->TmpColor[0][1], ts->TmpColor[0][2], |
ts->TmpColor[0][0], ts->TmpColor[0][1], ts->TmpColor[0][2], |
| 1574 |
|
|
| 1575 |
/* VT Reverse Color */ |
/* VT Reverse Color */ |
| 1576 |
for (i = 0; i <= 1; i++) { |
for (i = 0; i <= 1; i++) { |
| 1577 |
ts->TmpColor[0][i * 3] = GetRValue(ts->VTReverseColor[i]); |
if (ts->ColorFlag & CF_REVERSEVIDEO && ts->ColorFlag & CF_REVERSECOLOR) { |
| 1578 |
ts->TmpColor[0][i * 3 + 1] = GetGValue(ts->VTReverseColor[i]); |
ts->TmpColor[0][i * 3] = GetRValue(ts->VTColor[i]); |
| 1579 |
ts->TmpColor[0][i * 3 + 2] = GetBValue(ts->VTReverseColor[i]); |
ts->TmpColor[0][i * 3 + 1] = GetGValue(ts->VTColor[i]); |
| 1580 |
|
ts->TmpColor[0][i * 3 + 2] = GetBValue(ts->VTColor[i]); |
| 1581 |
|
} |
| 1582 |
|
else { |
| 1583 |
|
ts->TmpColor[0][i * 3] = GetRValue(ts->VTReverseColor[i]); |
| 1584 |
|
ts->TmpColor[0][i * 3 + 1] = GetGValue(ts->VTReverseColor[i]); |
| 1585 |
|
ts->TmpColor[0][i * 3 + 2] = GetBValue(ts->VTReverseColor[i]); |
| 1586 |
|
} |
| 1587 |
} |
} |
| 1588 |
WriteInt6(Section, "VTReverseColor", FName, |
WriteInt6(Section, "VTReverseColor", FName, |
| 1589 |
ts->TmpColor[0][0], ts->TmpColor[0][1], ts->TmpColor[0][2], |
ts->TmpColor[0][0], ts->TmpColor[0][1], ts->TmpColor[0][2], |
| 1594 |
|
|
| 1595 |
/* URL color */ |
/* URL color */ |
| 1596 |
for (i = 0; i <= 1; i++) { |
for (i = 0; i <= 1; i++) { |
| 1597 |
ts->TmpColor[0][i * 3] = GetRValue(ts->URLColor[i]); |
if (ts->ColorFlag & CF_REVERSEVIDEO) { |
| 1598 |
ts->TmpColor[0][i * 3 + 1] = GetGValue(ts->URLColor[i]); |
ts->TmpColor[0][i * 3] = GetRValue(ts->URLColor[!i]); |
| 1599 |
ts->TmpColor[0][i * 3 + 2] = GetBValue(ts->URLColor[i]); |
ts->TmpColor[0][i * 3 + 1] = GetGValue(ts->URLColor[!i]); |
| 1600 |
|
ts->TmpColor[0][i * 3 + 2] = GetBValue(ts->URLColor[!i]); |
| 1601 |
|
} |
| 1602 |
|
else { |
| 1603 |
|
ts->TmpColor[0][i * 3] = GetRValue(ts->URLColor[i]); |
| 1604 |
|
ts->TmpColor[0][i * 3 + 1] = GetGValue(ts->URLColor[i]); |
| 1605 |
|
ts->TmpColor[0][i * 3 + 2] = GetBValue(ts->URLColor[i]); |
| 1606 |
|
} |
| 1607 |
} |
} |
| 1608 |
WriteInt6(Section, "URLColor", FName, |
WriteInt6(Section, "URLColor", FName, |
| 1609 |
ts->TmpColor[0][0], ts->TmpColor[0][1], ts->TmpColor[0][2], |
ts->TmpColor[0][0], ts->TmpColor[0][1], ts->TmpColor[0][2], |