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.234 by ayin, Fri Dec 28 14:57:04 2007 UTC vs.
Revision 1.235 by ayin, Sat Dec 29 12:36:56 2007 UTC

1137 1137
1138/* ------------------------------------------------------------------------- * 1138/* ------------------------------------------------------------------------- *
1139 * GET TTY CURRENT STATE * 1139 * GET TTY CURRENT STATE *
1140 * ------------------------------------------------------------------------- */ 1140 * ------------------------------------------------------------------------- */
1141void 1141void
1142rxvt_get_ttymode (ttymode_t *tio, int erase) 1142rxvt_get_ttymode (struct termios *tio, int erase)
1143{ 1143{
1144 /* 1144 /*
1145 * standard System V termios interface 1145 * standard System V termios interface
1146 */ 1146 */
1147 if (tcgetattr (STDIN_FILENO, tio) < 0) 1147 if (tcgetattr (STDIN_FILENO, tio) < 0)
1148 { 1148 {
1149 // return error - use system defaults, 1149 // return error - use system defaults,
1150 // where possible, and zero elsewhere 1150 // where possible, and zero elsewhere
1151 memset (tio, 0, sizeof (ttymode_t)); 1151 memset (tio, 0, sizeof (struct termios));
1152 1152
1153 tio->c_cc[VINTR] = CINTR; 1153 tio->c_cc[VINTR] = CINTR;
1154 tio->c_cc[VQUIT] = CQUIT; 1154 tio->c_cc[VQUIT] = CQUIT;
1155 tio->c_cc[VERASE] = CERASE; 1155 tio->c_cc[VERASE] = CERASE;
1156#ifdef VERASE2 1156#ifdef VERASE2

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines