You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the 1.6.0 release and the following script, the plumbum-colored strings don't appear colored inside a screen session inside konsole, though they do outside of screen.
Plumbum's color library looks for the $TERM variable to try to set color on or off. Can you try echo $TERM in a shell? I get screen as the result. I'm not sure whether color should always be on for screen, though.
clint uses .isatty() only, and then has an environment variable that can be set. Maybe it would make sense to assume at least basic color output if $TERM is not xterm, etc.
You can enforce color using:
fromplumbumimportcolorscolors.use_color=3# 0 is off, 1 is 8 color, 2 is 16, 3 is 512, and 4 is 24 bit color
And that will turn on color regardless of the terminal type.
Thanks, it's screen for me as well, and setting use_color works. I would support color working inside screen by default, but I'm not sufficiently familiar with the potential problem cases.
Found the docs on screen, and did some testing. Screen forces 8 color mode default, so added that plumbum.colors, and you can set term screen-256color to get 256 color mode, so added support for that too. Also changed the default to be level 3 color vs. no color, unless of course isatty() is false.
Hi,
Using the 1.6.0 release and the following script, the plumbum-colored strings don't appear colored inside a screen session inside konsole, though they do outside of screen.
Here's my
.screenrc
:And here's the script (see last few lines):
The text was updated successfully, but these errors were encountered: