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.232 by sasha, Tue Dec 18 15:44:55 2007 UTC vs.
Revision 1.233 by ayin, Fri Dec 21 16:21:06 2007 UTC

1146rxvt_get_ttymode (ttymode_t *tio, int erase) 1146rxvt_get_ttymode (ttymode_t *tio, int erase)
1147{ 1147{
1148 /* 1148 /*
1149 * standard System V termios interface 1149 * standard System V termios interface
1150 */ 1150 */
1151 if (GET_TERMIOS (STDIN_FILENO, tio) < 0) 1151 if (tcgetattr (STDIN_FILENO, tio) < 0)
1152 { 1152 {
1153 // return error - use system defaults, 1153 // return error - use system defaults,
1154 // where possible, and zero elsewhere 1154 // where possible, and zero elsewhere
1155 memset (tio, 0, sizeof (ttymode_t)); 1155 memset (tio, 0, sizeof (ttymode_t));
1156 1156
1339 else 1339 else
1340#endif 1340#endif
1341 er = -1; 1341 er = -1;
1342 1342
1343 rxvt_get_ttymode (&tio, er); 1343 rxvt_get_ttymode (&tio, er);
1344 SET_TERMIOS (pty->tty, &tio); /* init terminal attributes */ 1344 /* init terminal attributes */
1345 cfsetospeed (&tio, BAUDRATE);
1346 cfsetispeed (&tio, BAUDRATE);
1347 tcsetattr (pty->tty, TCSANOW, &tio);
1345 pty->set_utf8_mode (enc_utf8); 1348 pty->set_utf8_mode (enc_utf8);
1346 1349
1347 /* set initial window size */ 1350 /* set initial window size */
1348 tt_winch (); 1351 tt_winch ();
1349 1352

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines