-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using stderred with tmux makes all text red #52
Comments
Is there a better fix for this than "run bash"? |
EDIT: Just use |
@rico-chet Why not hard-code it and submit a pull request? |
@twmccart I wanted to find out first where the leading dash is coming from and whether a non-standard So just checking for the |
`tmux` (https://github.com/tmux/tmux/wiki) is a terminal multiplexer, like `screen`. It spawns its terminals with a '-' prefixed in `argv[0]`, thus breaking `stderred`'s early return on `bash` encounter. This leads to normal text being always red. Refer to https://github.com/tmux/tmux/blob/c9d482ab489d5d57d481858091608ee1b32e46ab/window.c#L993 and to tmux/tmux@22d1b94. Fixes ku1ik#52
`tmux` (https://github.com/tmux/tmux/wiki) is a terminal multiplexer, like `screen`. It spawns its terminals with a '-' prefixed in `argv[0]`, thus breaking `stderred`'s early return on `bash` encounter. This leads to normal text being always red. When `PROGRAM_NAME` matches the '-%s' format pattern, treat it as a shell and return early. Refer to https://github.com/tmux/tmux/blob/c9d482ab489d5d57d481858091608ee1b32e46ab/window.c#L993 and to tmux/tmux@22d1b94. Fixes ku1ik#52
`tmux` (https://github.com/tmux/tmux/wiki) is a terminal multiplexer, like `screen`. It spawns its terminals with `argv[0]` prefixed with a '-', thus breaking `stderred`'s early return on `bash` encounter. This leads to normal text being always red. When `PROGRAM_NAME` matches the '-%s' format pattern, treat it as a shell and return early. Refer to https://github.com/tmux/tmux/blob/c9d482ab489d5d57d481858091608ee1b32e46ab/window.c#L993 and to tmux/tmux@22d1b94. Fixes ku1ik#52
`tmux` (https://github.com/tmux/tmux/wiki) is a terminal multiplexer, like `screen`. It spawns its terminals with `argv[0]` prefixed with a '-', thus breaking `stderred`'s early return on `bash` encounter. This leads to normal text being always red. When `PROGRAM_NAME` matches the '-%s' format pattern, treat it as a shell and return early. Refer to https://github.com/tmux/tmux/blob/c9d482ab489d5d57d481858091608ee1b32e46ab/window.c#L993 and to tmux/tmux@22d1b94. Fixes ku1ik#52
`tmux` (https://github.com/tmux/tmux/wiki) is a terminal multiplexer, like `screen`. It spawns its terminals with `argv[0]` prefixed with a '-', thus breaking `stderred`'s early return on `bash` encounter. This leads to normal text being always red. When `PROGRAM_NAME` matches the '-%s' format pattern, treat it as a shell and return early. Refer to https://github.com/tmux/tmux/blob/c9d482ab489d5d57d481858091608ee1b32e46ab/window.c#L993 and to tmux/tmux@22d1b94. Fixes ku1ik#52
When using tmux, even when setting STDERRED_BLACKLIST or setting LD_PRELOAD to empty before starting, all text in bash under tmux is highlighted in red. Running bash after entering tmux will revert the text color to the default.
The text was updated successfully, but these errors were encountered: