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

Support raw output mode #5

Open
ryochack opened this issue Jun 24, 2019 · 4 comments
Open

Support raw output mode #5

ryochack opened this issue Jun 24, 2019 · 4 comments

Comments

@ryochack
Copy link
Owner

The output of peep contains escape sequences.
This is a problem when using pipe or redirect.

$ cargo run -- -n 4 Cargo.toml > out.txt
$ vim out.txt
�[1G�[2K
lines�[2K
lines�[2K
lines�[2K
lines�[2K�[4F [package]�[m
 name = "peep"�[m
 edition = "2018"�[m
 version = "0.1.4"�[m

So, I will add raw-output-mode to peep to fix it.

@aalvarado
Copy link

will this enable colors in terminal as well?

@ryochack
Copy link
Owner Author

Thanks for your question.
No, this mode is only for outputting plain text without ANSI escape codes.

Unfortunately, I haven't had time to work on this issue lately, but...

@aalvarado
Copy link

Thanks for your hard work, I really love this utility. I'm learning Rust but I want to try to contribute

@ryochack
Copy link
Owner Author

Thank you very much! I'm really glad to hear that.

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