--- rxvt-unicode/src/init.C 2007/11/26 11:20:16 1.224 +++ rxvt-unicode/src/init.C 2007/12/21 16:21:06 1.233 @@ -12,9 +12,7 @@ * Copyright (c) 1997,1998 Oezguer Kesim * Copyright (c) 1998-2001 Geoff Wing * - extensive modifications - * Copyright (c) 1999 D J Hawkey Jr - * - QNX support - * Copyright (c) 2003-2006 Marc Lehmann + * Copyright (c) 2003-2007 Marc Lehmann * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -43,6 +41,8 @@ #include +#include + #ifdef HAVE_XSETLOCALE # define X_LOCALE # include @@ -280,7 +280,7 @@ #endif }; -bool +void rxvt_term::init_vars () { pix_colors = // @@ -289,7 +289,6 @@ pix_colors_unfocused = new rxvt_color [TOTAL_COLORS]; #endif - MEvent.time = CurrentTime; MEvent.button = AnyButton; want_refresh = 1; @@ -300,7 +299,6 @@ ext_bwidth = EXTERNALBORDERWIDTH; lineSpace = LINESPACE; saveLines = SAVELINES; - numpix_colors = TOTAL_COLORS; refresh_type = SLOW_REFRESH; @@ -316,8 +314,6 @@ set_option (Opt_pastableTabs); set_option (Opt_intensityStyles); set_option (Opt_iso14755_52); - - return true; } void @@ -418,6 +414,8 @@ #endif #ifdef HAVE_AFTERIMAGE + set_application_name ((char*)rs[Rs_name]); + set_output_threshold (OUTPUT_LEVEL_WARNING); asv = create_asvisual_for_id (dpy, display->screen, depth, XVisualIDFromVisual (visual), cmap, NULL); #endif free (r_argv); @@ -1150,7 +1148,7 @@ /* * standard System V termios interface */ - if (GET_TERMIOS (STDIN_FILENO, tio) < 0) + if (tcgetattr (STDIN_FILENO, tio) < 0) { // return error - use system defaults, // where possible, and zero elsewhere @@ -1228,7 +1226,6 @@ * Debugging */ #ifdef DEBUG_TTYMODE -#ifdef HAVE_TERMIOS_H /* c_iflag bits */ fprintf (stderr, "Input flags\n"); @@ -1301,7 +1298,6 @@ fprintf (stderr, "\n"); # undef FOO -# endif /* HAVE_TERMIOS_H */ #endif /* DEBUG_TTYMODE */ } @@ -1345,7 +1341,10 @@ er = -1; rxvt_get_ttymode (&tio, er); - SET_TERMIOS (pty->tty, &tio); /* init terminal attributes */ + /* init terminal attributes */ + cfsetospeed (&tio, BAUDRATE); + cfsetispeed (&tio, BAUDRATE); + tcsetattr (pty->tty, TCSANOW, &tio); pty->set_utf8_mode (enc_utf8); /* set initial window size */