Skip to content
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

Bug - omit the colorama escape style on --string and the output can be used to set the path variable #28

Open
buchs opened this issue Jun 4, 2024 · 2 comments

Comments

@buchs
Copy link
Contributor

buchs commented Jun 4, 2024

$ justpath --correct --string|od -xc
0000000    552f    6573    7372    622f    6375    7368    622f    6e69
          /   U   s   e   r   s   /   b   u   c   h   s   /   b   i   n
...
0000500    2e2f    6163    6772    2f6f    6962    0a6e    5b1b    6d30
          /   .   c   a   r   g   o   /   b   i   n  \n 033   [   0   m
0000520

With that closing "Escape [ 0 m" the output cannot be directly used.

PR coming to fix shortly.

buchs added a commit to buchs/justpath that referenced this issue Jun 4, 2024
@buchs buchs mentioned this issue Jun 4, 2024
@epogrebnyak
Copy link
Owner

Thanks for spotting the big, coloring is indeed only useful when used line by line and should be avoided for the --string output.

@epogrebnyak
Copy link
Owner

Will roll out a new version to PyPI soon with updates, thanks again for your contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants