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.236 by ayin, Mon Dec 31 01:05:50 2007 UTC

297 saveLines = SAVELINES; 297 saveLines = SAVELINES;
298 298
299 refresh_type = SLOW_REFRESH; 299 refresh_type = SLOW_REFRESH;
300 300
301 oldcursor.row = oldcursor.col = -1; 301 oldcursor.row = oldcursor.col = -1;
302 last_bot = last_state = -1;
303 302
304 set_option (Opt_scrollBar); 303 set_option (Opt_scrollBar);
305 set_option (Opt_scrollTtyOutput); 304 set_option (Opt_scrollTtyOutput);
306 set_option (Opt_jumpScroll); 305 set_option (Opt_jumpScroll);
307 set_option (Opt_skipScroll); 306 set_option (Opt_skipScroll);
1137 1136
1138/* ------------------------------------------------------------------------- * 1137/* ------------------------------------------------------------------------- *
1139 * GET TTY CURRENT STATE * 1138 * GET TTY CURRENT STATE *
1140 * ------------------------------------------------------------------------- */ 1139 * ------------------------------------------------------------------------- */
1141void 1140void
1142rxvt_get_ttymode (ttymode_t *tio, int erase) 1141rxvt_get_ttymode (struct termios *tio, int erase)
1143{ 1142{
1144 /* 1143 /*
1145 * standard System V termios interface 1144 * standard System V termios interface
1146 */ 1145 */
1147 if (tcgetattr (STDIN_FILENO, tio) < 0) 1146 if (tcgetattr (STDIN_FILENO, tio) < 0)
1148 { 1147 {
1149 // return error - use system defaults, 1148 // return error - use system defaults,
1150 // where possible, and zero elsewhere 1149 // where possible, and zero elsewhere
1151 memset (tio, 0, sizeof (ttymode_t)); 1150 memset (tio, 0, sizeof (struct termios));
1152 1151
1153 tio->c_cc[VINTR] = CINTR; 1152 tio->c_cc[VINTR] = CINTR;
1154 tio->c_cc[VQUIT] = CQUIT; 1153 tio->c_cc[VQUIT] = CQUIT;
1155 tio->c_cc[VERASE] = CERASE; 1154 tio->c_cc[VERASE] = CERASE;
1156#ifdef VERASE2 1155#ifdef VERASE2

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines