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.222 by ayin, Thu Nov 15 11:36:15 2007 UTC vs.
Revision 1.225 by ayin, Tue Dec 11 11:39:06 2007 UTC

853 if (rs[Rs_color + idx] && isdigit (* (rs[Rs_color + idx]))) 853 if (rs[Rs_color + idx] && isdigit (* (rs[Rs_color + idx])))
854 { 854 {
855 int i = atoi (rs[Rs_color + idx]); 855 int i = atoi (rs[Rs_color + idx]);
856 856
857 if (i >= 8 && i <= 15) 857 if (i >= 8 && i <= 15)
858 { /* bright colors */ 858 /* bright colors */
859 i -= 8;
860 rs[Rs_color + idx] = rs[Rs_color + minBrightCOLOR + i]; 859 rs[Rs_color + idx] = rs[Rs_color + minBrightCOLOR + i - 8];
861 return; 860 else if (i >= 0 && i <= 7)
862 } 861 /* normal colors */
863
864 if (i >= 0 && i <= 7) /* normal colors */
865 rs[Rs_color + idx] = rs[Rs_color + minCOLOR + i]; 862 rs[Rs_color + idx] = rs[Rs_color + minCOLOR + i];
866 } 863 }
867} 864}
868 865
869/*----------------------------------------------------------------------*/ 866/*----------------------------------------------------------------------*/
1229 1226
1230 /* 1227 /*
1231 * Debugging 1228 * Debugging
1232 */ 1229 */
1233#ifdef DEBUG_TTYMODE 1230#ifdef DEBUG_TTYMODE
1234#ifdef HAVE_TERMIOS_H
1235 /* c_iflag bits */ 1231 /* c_iflag bits */
1236 fprintf (stderr, "Input flags\n"); 1232 fprintf (stderr, "Input flags\n");
1237 1233
1238 /* cpp token stringize doesn't work on all machines <sigh> */ 1234 /* cpp token stringize doesn't work on all machines <sigh> */
1239# define FOO(flag,name) \ 1235# define FOO(flag,name) \
1302 FOO (VLNEXT, "VLNEXT"); 1298 FOO (VLNEXT, "VLNEXT");
1303# endif 1299# endif
1304 1300
1305 fprintf (stderr, "\n"); 1301 fprintf (stderr, "\n");
1306# undef FOO 1302# undef FOO
1307# endif /* HAVE_TERMIOS_H */
1308#endif /* DEBUG_TTYMODE */ 1303#endif /* DEBUG_TTYMODE */
1309} 1304}
1310 1305
1311/*----------------------------------------------------------------------*/ 1306/*----------------------------------------------------------------------*/
1312/* 1307/*
1416rxvt_term::run_child (const char *const *argv) 1411rxvt_term::run_child (const char *const *argv)
1417{ 1412{
1418 char *login; 1413 char *login;
1419 1414
1420 if (option (Opt_console)) 1415 if (option (Opt_console))
1416 {
1421 { /* be virtual console, fail silently */ 1417 /* be virtual console, fail silently */
1422#ifdef TIOCCONS 1418#ifdef TIOCCONS
1423 unsigned int on = 1; 1419 unsigned int on = 1;
1424 1420
1425 ioctl (STDIN_FILENO, TIOCCONS, &on); 1421 ioctl (STDIN_FILENO, TIOCCONS, &on);
1426#elif defined (SRIOCSREDIR) 1422#elif defined (SRIOCSREDIR)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines