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.267 by sf-exg, Mon Jun 14 15:47:52 2010 UTC vs.
Revision 1.269 by root, Tue Jun 15 10:33:47 2010 UTC

1540 if (1) 1540 if (1)
1541 { 1541 {
1542 // return error - use system defaults, 1542 // return error - use system defaults,
1543 // where possible, and zero elsewhere 1543 // where possible, and zero elsewhere
1544 memset (tio, 0, sizeof (struct termios)); 1544 memset (tio, 0, sizeof (struct termios));
1545 if (VDISABLE)
1545 for (int i = 0; i < NCCS; i++) 1546 for (int i = 0; i < NCCS; i++)
1546 tio->c_cc[i] = VDISABLE; 1547 tio->c_cc[i] = VDISABLE;
1547 1548
1548 tio->c_cc[VINTR] = CINTR; 1549 tio->c_cc[VINTR] = CINTR;
1549 tio->c_cc[VQUIT] = CQUIT; 1550 tio->c_cc[VQUIT] = CQUIT;
1550 tio->c_cc[VERASE] = CERASE; 1551 tio->c_cc[VERASE] = CERASE;
1551#ifdef VERASE2 1552#ifdef VERASE2
1579# if VTIME != VEOL 1580# if VTIME != VEOL
1580 tio->c_cc[VTIME] = 0; 1581 tio->c_cc[VTIME] = 0;
1581# endif 1582# endif
1582 1583
1583 if (erase != -1) 1584 if (erase != -1)
1584 tio->c_cc[VERASE] = (char)erase; 1585 tio->c_cc[VERASE] = erase;
1585 1586
1586 /* input modes */ 1587 /* input modes */
1587 tio->c_iflag = (BRKINT | IGNPAR | ICRNL 1588 tio->c_iflag = (BRKINT | IGNPAR | ICRNL
1588# ifdef IMAXBEL 1589# ifdef IMAXBEL
1589 | IMAXBEL 1590 | IMAXBEL
1611 fprintf (stderr, "Input flags\n"); 1612 fprintf (stderr, "Input flags\n");
1612 1613
1613 /* cpp token stringize doesn't work on all machines <sigh> */ 1614 /* cpp token stringize doesn't work on all machines <sigh> */
1614# define FOO(flag,name) \ 1615# define FOO(flag,name) \
1615 if ((tio->c_iflag) & flag) \ 1616 if ((tio->c_iflag) & flag) \
1616 fprintf (stderr, "%s ", name) 1617 fprintf (stderr, "%s ", name)
1617 1618
1618 /* c_iflag bits */ 1619 /* c_iflag bits */
1619 FOO (IGNBRK, "IGNBRK"); 1620 FOO (IGNBRK, "IGNBRK");
1620 FOO (BRKINT, "BRKINT"); 1621 FOO (BRKINT, "BRKINT");
1621 FOO (IGNPAR, "IGNPAR"); 1622 FOO (IGNPAR, "IGNPAR");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines