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

Is there a way to paginate the output while keeping colors and formatting? #411

Closed
k0pernikus opened this issue Nov 13, 2015 · 3 comments
Closed

Comments

@k0pernikus
Copy link

I have certain HTTP calls the provide a huge response, and fill up quite a few monitor spaces. And in those calls, the most relevant information is at the beginning of the response, so I want to read that first.

So I have to page up quite a few times (or use reverse search in terminal). I rather just view the response on a page-by-page-approach starting from the top.

I tried piping the output of httpie into less and most, yet thereby I lose both colors and formatting.

Is there a way to get paginated output?

@k0pernikus
Copy link
Author

Nice, I figured it out on my own. Hitting the manual does help:

http --pretty=all POST YOUR_ENDPOINT < data.json | less -r

@jkbrzt jkbrzt added the question label Jan 1, 2016
@jkbrzt
Copy link
Member

jkbrzt commented Jan 1, 2016

@jkbrzt jkbrzt closed this as completed Jan 1, 2016
@vinibrsl
Copy link

http --pretty=all get https://google.com | less does it! 😄

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

3 participants