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.223 by ayin, Mon Nov 26 10:33:36 2007 UTC vs.
Revision 1.227 by ayin, Wed Dec 12 09:33:48 2007 UTC

40#include "init.h" 40#include "init.h"
41 41
42#include <limits> 42#include <limits>
43 43
44#include <csignal> 44#include <csignal>
45
46#include <fcntl.h>
45 47
46#ifdef HAVE_XSETLOCALE 48#ifdef HAVE_XSETLOCALE
47# define X_LOCALE 49# define X_LOCALE
48# include <X11/Xlocale.h> 50# include <X11/Xlocale.h>
49#else 51#else
278#if OFF_FOCUS_FADING 280#if OFF_FOCUS_FADING
279 "rgb:00/00/00", 281 "rgb:00/00/00",
280#endif 282#endif
281 }; 283 };
282 284
283bool 285void
284rxvt_term::init_vars () 286rxvt_term::init_vars ()
285{ 287{
286 pix_colors = // 288 pix_colors = //
287 pix_colors_focused = new rxvt_color [TOTAL_COLORS]; 289 pix_colors_focused = new rxvt_color [TOTAL_COLORS];
288#ifdef OFF_FOCUS_FADING 290#ifdef OFF_FOCUS_FADING
314 set_option (Opt_secondaryScreen); 316 set_option (Opt_secondaryScreen);
315 set_option (Opt_secondaryScroll); 317 set_option (Opt_secondaryScroll);
316 set_option (Opt_pastableTabs); 318 set_option (Opt_pastableTabs);
317 set_option (Opt_intensityStyles); 319 set_option (Opt_intensityStyles);
318 set_option (Opt_iso14755_52); 320 set_option (Opt_iso14755_52);
319
320 return true;
321} 321}
322 322
323void 323void
324rxvt_term::init_secondary () 324rxvt_term::init_secondary ()
325{ 325{
1226 1226
1227 /* 1227 /*
1228 * Debugging 1228 * Debugging
1229 */ 1229 */
1230#ifdef DEBUG_TTYMODE 1230#ifdef DEBUG_TTYMODE
1231#ifdef HAVE_TERMIOS_H
1232 /* c_iflag bits */ 1231 /* c_iflag bits */
1233 fprintf (stderr, "Input flags\n"); 1232 fprintf (stderr, "Input flags\n");
1234 1233
1235 /* cpp token stringize doesn't work on all machines <sigh> */ 1234 /* cpp token stringize doesn't work on all machines <sigh> */
1236# define FOO(flag,name) \ 1235# define FOO(flag,name) \
1299 FOO (VLNEXT, "VLNEXT"); 1298 FOO (VLNEXT, "VLNEXT");
1300# endif 1299# endif
1301 1300
1302 fprintf (stderr, "\n"); 1301 fprintf (stderr, "\n");
1303# undef FOO 1302# undef FOO
1304# endif /* HAVE_TERMIOS_H */
1305#endif /* DEBUG_TTYMODE */ 1303#endif /* DEBUG_TTYMODE */
1306} 1304}
1307 1305
1308/*----------------------------------------------------------------------*/ 1306/*----------------------------------------------------------------------*/
1309/* 1307/*
1413rxvt_term::run_child (const char *const *argv) 1411rxvt_term::run_child (const char *const *argv)
1414{ 1412{
1415 char *login; 1413 char *login;
1416 1414
1417 if (option (Opt_console)) 1415 if (option (Opt_console))
1416 {
1418 { /* be virtual console, fail silently */ 1417 /* be virtual console, fail silently */
1419#ifdef TIOCCONS 1418#ifdef TIOCCONS
1420 unsigned int on = 1; 1419 unsigned int on = 1;
1421 1420
1422 ioctl (STDIN_FILENO, TIOCCONS, &on); 1421 ioctl (STDIN_FILENO, TIOCCONS, &on);
1423#elif defined (SRIOCSREDIR) 1422#elif defined (SRIOCSREDIR)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines