Timeline for Can I configure my shell to print STDERR and STDOUT in different colors?
Current License: CC BY-SA 4.0
12 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Oct 13, 2024 at 13:22 | history | edited | terdon♦ | CC BY-SA 4.0 | Updated username |
| Apr 13, 2017 at 12:36 | history | edited | CommunityBot | replaced http://unix.stackexchange.com/ with https://unix.stackexchange.com/ | |
| Jul 28, 2015 at 23:44 | history | edited | Gilles 'SO- stop being evil' | CC BY-SA 3.0 | added 24 characters in body |
| May 13, 2014 at 10:05 | history | edited | Stéphane Chazelas | CC BY-SA 3.0 | wrapping around `write` would not be enough. |
| Nov 10, 2013 at 14:41 | comment | added | Drew Noakes | The stderred project seems to be an implementation of hooking write via LD_PRELOAD as you describe. | |
| Nov 1, 2012 at 23:17 | comment | added | Stéphane Chazelas | @Gilles, That wouldn't work. You can only hijack the functions called by the program, not the shared libs it calls unfortunately (at least on Linux). If the program calls printf and printf calls write, the write that printf calls will not be hijacked. | |
| Nov 1, 2012 at 23:13 | comment | added | Gilles 'SO- stop being evil' | @StephaneChazelas I was thinking of hooking around the write syscall wrapper. Is it inlined in other functions in Glibc? | |
| Nov 1, 2012 at 23:02 | comment | added | Stéphane Chazelas | At least on Linux, intercepting write alone would not work as most applications do not call directly, but another function from some shared library (like printf) that would call the original write | |
| May 2, 2011 at 13:24 | comment | added | alex | @intuited: that would require pathcing every terminal emulator you want this to work with. Using LD_PRELOAD trick to intercept write calls seems to be the most appropriate, IMO (but then again, there might be differences on certain *nix flavors.) | |
| May 2, 2011 at 3:27 | comment | added | intuited | It might not be difficult to patch a terminal program to colourize the stderr stream. Somebody has suggested something like this at ubuntu brainstorm. | |
| May 1, 2011 at 23:58 | vote | accept | Naftuli Kay | ||
| May 1, 2011 at 23:50 | history | answered | Gilles 'SO- stop being evil' | CC BY-SA 3.0 |