… | |
… | |
174 | "rgb:00/00/ff", // 4/12: bright blue (Blue) |
174 | "rgb:00/00/ff", // 4/12: bright blue (Blue) |
175 | "rgb:ff/00/ff", // 5/13: bright magenta (Magenta) |
175 | "rgb:ff/00/ff", // 5/13: bright magenta (Magenta) |
176 | "rgb:00/ff/ff", // 6/14: bright cyan (Cyan) |
176 | "rgb:00/ff/ff", // 6/14: bright cyan (Cyan) |
177 | "rgb:ff/ff/ff", // 7/15: bright white (White) |
177 | "rgb:ff/ff/ff", // 7/15: bright white (White) |
178 | |
178 | |
179 | #ifndef USE_256_COLORS |
179 | #if !USE_256_COLORS |
180 | // 88 xterm colours |
180 | // 88 xterm colours |
181 | "rgb:00/00/00", |
181 | "rgb:00/00/00", |
182 | "rgb:00/00/8b", |
182 | "rgb:00/00/8b", |
183 | "rgb:00/00/cd", |
183 | "rgb:00/00/cd", |
184 | "rgb:00/00/ff", |
184 | "rgb:00/00/ff", |
… | |
… | |
510 | #if ENABLE_FRILLS |
510 | #if ENABLE_FRILLS |
511 | NULL, // Color_underline |
511 | NULL, // Color_underline |
512 | #endif |
512 | #endif |
513 | #ifdef OPTION_HC |
513 | #ifdef OPTION_HC |
514 | NULL, |
514 | NULL, |
|
|
515 | NULL, |
515 | #endif |
516 | #endif |
516 | COLOR_SCROLLBAR, |
517 | COLOR_SCROLLBAR, |
517 | #ifdef RXVT_SCROLLBAR |
518 | #ifdef RXVT_SCROLLBAR |
518 | COLOR_SCROLLTROUGH, |
519 | COLOR_SCROLLTROUGH, |
519 | #endif |
520 | #endif |
… | |
… | |
1532 | rxvt_get_ttymode (struct termios *tio, int erase) |
1533 | rxvt_get_ttymode (struct termios *tio, int erase) |
1533 | { |
1534 | { |
1534 | /* |
1535 | /* |
1535 | * standard System V termios interface |
1536 | * standard System V termios interface |
1536 | */ |
1537 | */ |
|
|
1538 | // does not work as stdin is not a tty |
1537 | if (tcgetattr (STDIN_FILENO, tio) < 0) |
1539 | // if (tcgetattr (STDIN_FILENO, tio) < 0) |
|
|
1540 | if (1) |
1538 | { |
1541 | { |
1539 | // return error - use system defaults, |
1542 | // return error - use system defaults, |
1540 | // where possible, and zero elsewhere |
1543 | // where possible, and zero elsewhere |
1541 | memset (tio, 0, sizeof (struct termios)); |
1544 | memset (tio, 0, sizeof (struct termios)); |
|
|
1545 | if (VDISABLE) |
|
|
1546 | for (int i = 0; i < NCCS; i++) |
|
|
1547 | tio->c_cc[i] = VDISABLE; |
1542 | |
1548 | |
1543 | tio->c_cc[VINTR] = CINTR; |
1549 | tio->c_cc[VINTR] = CINTR; |
1544 | tio->c_cc[VQUIT] = CQUIT; |
1550 | tio->c_cc[VQUIT] = CQUIT; |
1545 | tio->c_cc[VERASE] = CERASE; |
1551 | tio->c_cc[VERASE] = CERASE; |
1546 | #ifdef VERASE2 |
1552 | #ifdef VERASE2 |
… | |
… | |
1566 | tio->c_cc[VLNEXT] = CLNEXT; |
1572 | tio->c_cc[VLNEXT] = CLNEXT; |
1567 | # endif |
1573 | # endif |
1568 | } |
1574 | } |
1569 | |
1575 | |
1570 | tio->c_cc[VEOF] = CEOF; |
1576 | tio->c_cc[VEOF] = CEOF; |
1571 | tio->c_cc[VEOL] = VDISABLE; |
|
|
1572 | # ifdef VEOL2 |
|
|
1573 | tio->c_cc[VEOL2] = VDISABLE; |
|
|
1574 | # endif |
|
|
1575 | # ifdef VSWTC |
|
|
1576 | tio->c_cc[VSWTC] = VDISABLE; |
|
|
1577 | # endif |
|
|
1578 | # ifdef VSWTCH |
|
|
1579 | tio->c_cc[VSWTCH] = VDISABLE; |
|
|
1580 | # endif |
|
|
1581 | # if VMIN != VEOF |
1577 | # if VMIN != VEOF |
1582 | tio->c_cc[VMIN] = 1; |
1578 | tio->c_cc[VMIN] = 1; |
1583 | # endif |
1579 | # endif |
1584 | # if VTIME != VEOL |
1580 | # if VTIME != VEOL |
1585 | tio->c_cc[VTIME] = 0; |
1581 | tio->c_cc[VTIME] = 0; |