ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/init.C
(Generate patch)

Comparing rxvt-unicode/src/init.C (file contents):
Revision 1.264 by sf-exg, Sun Apr 4 18:59:19 2010 UTC vs.
Revision 1.267 by sf-exg, Mon Jun 14 15:47:52 2010 UTC

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",
1533rxvt_get_ttymode (struct termios *tio, int erase) 1533rxvt_get_ttymode (struct termios *tio, int erase)
1534{ 1534{
1535 /* 1535 /*
1536 * standard System V termios interface 1536 * standard System V termios interface
1537 */ 1537 */
1538 // does not work as stdin is not a tty
1538 if (tcgetattr (STDIN_FILENO, tio) < 0) 1539 // if (tcgetattr (STDIN_FILENO, tio) < 0)
1540 if (1)
1539 { 1541 {
1540 // return error - use system defaults, 1542 // return error - use system defaults,
1541 // where possible, and zero elsewhere 1543 // where possible, and zero elsewhere
1542 memset (tio, 0, sizeof (struct termios)); 1544 memset (tio, 0, sizeof (struct termios));
1545 for (int i = 0; i < NCCS; i++)
1546 tio->c_cc[i] = VDISABLE;
1543 1547
1544 tio->c_cc[VINTR] = CINTR; 1548 tio->c_cc[VINTR] = CINTR;
1545 tio->c_cc[VQUIT] = CQUIT; 1549 tio->c_cc[VQUIT] = CQUIT;
1546 tio->c_cc[VERASE] = CERASE; 1550 tio->c_cc[VERASE] = CERASE;
1547#ifdef VERASE2 1551#ifdef VERASE2
1567 tio->c_cc[VLNEXT] = CLNEXT; 1571 tio->c_cc[VLNEXT] = CLNEXT;
1568# endif 1572# endif
1569 } 1573 }
1570 1574
1571 tio->c_cc[VEOF] = CEOF; 1575 tio->c_cc[VEOF] = CEOF;
1572 tio->c_cc[VEOL] = VDISABLE;
1573# ifdef VEOL2
1574 tio->c_cc[VEOL2] = VDISABLE;
1575# endif
1576# ifdef VSWTC
1577 tio->c_cc[VSWTC] = VDISABLE;
1578# endif
1579# ifdef VSWTCH
1580 tio->c_cc[VSWTCH] = VDISABLE;
1581# endif
1582# if VMIN != VEOF 1576# if VMIN != VEOF
1583 tio->c_cc[VMIN] = 1; 1577 tio->c_cc[VMIN] = 1;
1584# endif 1578# endif
1585# if VTIME != VEOL 1579# if VTIME != VEOL
1586 tio->c_cc[VTIME] = 0; 1580 tio->c_cc[VTIME] = 0;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines