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
jrnl: v4.0.1
Python: 3.12.0 (main, Oct 2 2023, 12:03:24) [Clang 15.0.0 (clang-1500.0.40.1)]
OS: Darwin 23.1.0
Current Behavior
The output of jrnl --format pretty doesn't preserve color information when written into a Bash variable. This used to be the case before updating from 4.0.1_4 to 4.0.1_5.
Expected Behavior
The output of jrnl --format pretty preserves color information when written into a Bash variable.
Hi @h0adp0re, thanks for reporting this, and for all the detailed info. I'm able to reproduce this with linuxbrew in my WSL/Ubuntu bash environment on v4.0.1_5. Just as you wrote, it outputs color to the terminal, but the color isn't saved in variables.
At first I thought this was a problem specific to brew, but I was also able to reproduce this in Ubuntu using our current beta installed via pipx (pipx install jrnl==4.1-beta0). The beta removes the colors, whereas v4.0.1 shows the colors. I think this issue was introduced by #1693 which makes sense, since it affects pretty printing and the latest jrnl homebrew formula has incorporated it, probably to solve the same problem of Python 3.12 compatibility.
This is resolved in the latest jrnl beta, v4.1b2. I've just tested it after using pipx to install it. Once we release 4.1, it should be fixed in Homebrew.
Diagnostic output
Current Behavior
The output of
jrnl --format pretty
doesn't preserve color information when written into a Bash variable. This used to be the case before updating from4.0.1_4
to4.0.1_5
.Expected Behavior
The output of
jrnl --format pretty
preserves color information when written into a Bash variable.Repro Steps
Debug output
Other Information
No response
The text was updated successfully, but these errors were encountered: