Commit Graph

12 Commits

Author SHA1 Message Date
Simon Ruderich
f54cd101d7 Update copyright year. 2014-01-01 16:41:01 +01:00
Simon Ruderich
08e7324497 constants.h: Fix indentation. 2013-07-07 14:43:29 +02:00
Simon Ruderich
b950cdb792 Add COLORED_STDERR_IGNORED_BINARIES to exclude binaries. 2013-07-07 13:33:44 +02:00
Simon Ruderich
d08a512806 Set DEFAULT_PRE_STRING to red.
Bright red doesn't work in GNU/Linux's console.
2013-06-29 23:24:03 +02:00
Simon Ruderich
0d7f306898 Overwrite tracked file descriptors when exporting COLORED_STDERR_FDS.
If the list of tracked file descriptors is modified to contain unwanted
values (e.g. when a parent process closes or redirects stderr), this
makes it possible to set the tracked file descriptors back to a given
list.

This problem occurred with startx which somehow closes or redirects
stderr. As COLORED_STDERR_FDS was set in the shell running startx, this
disabled coloring stderr for all processes started in the X11 session.

This is no longer an issue. As COLORED_STDERR_FDS is set in the shell
configuration file, it automatically sets the list to the correct value
when a shell is opened in the terminal emulator once X11 is running.
2013-06-21 23:03:12 +02:00
Simon Ruderich
1e02760898 constants.h: Fix indentation. 2013-06-13 21:45:19 +02:00
Simon Ruderich
357a499884 configure.ac: Add --enable-warnings.
Enables warning() messages without the overhead of all debug output.
2013-06-10 16:18:35 +02:00
Simon Ruderich
30876b212c constants.h: Use "\033" instead of the non-standard "\e". 2013-06-09 16:26:36 +02:00
Simon Ruderich
c2097785e7 Use static list of descriptors to reduce mallocs.
Only if file descriptors with a value > 255 occur, the list
implementation is used.
2013-06-07 01:27:58 +02:00
Simon Ruderich
7337375e05 Add warning() and use it in DEBUG mode. 2013-06-07 00:58:16 +02:00
Simon Ruderich
96710bc3fa Add ENV_NAME_FORCE_WRITE to force writes to non-tty devices. 2013-06-01 21:13:23 +02:00
Simon Ruderich
abc3d7889f Initial commit. 2013-05-31 18:19:12 +02:00