-
Notifications
You must be signed in to change notification settings - Fork 7
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
Feature idea: --dump $URL #9
Comments
This is great! What do you think about I've added it to
I'll look into adding a way to launch in wide mode with |
That looks great! I am not overly concerned about the name of the switch, I only chose I never gave the cursor or the default display mode a thought before posting my suggestion, but now that I see it in my terminal, I think you're right about both: wide mode and no cursor. Otherwise well done! |
PS: And no colours if stdout is not a TTY: $ phetch -p port70.dk | cat
fatal: Can't get terminal size. Please file a bug: https://github.com/dvkt/phetch/issues/new (I know you have just started on this, it's just an illustration.) |
Ah perfect, thank you. Yes disabling colors is needed for this. I'll keep this issue open until those three improvements get ironed out. |
This should be fully operational now, give or take a few bugs. It will be in the next release. The TTY-less version should also be working now:
Thank you for the suggestion! 🎆 🍾 |
That looks really nice. Thanks!! 👍 |
One thing I just noticed:
This should probably default to the tty-less plain output, or at least show a nicer error. |
Perhaps I already have a binary that works? |
Well, it turns out I already changed this in |
Sleepcode 😸 |
It would be sweet to be able to dump a rendered version of a gopher URL with e.g.
-d URL
/--dump URL
, such that the output is coloured if stdout is a TTY and plain text if not. This feature complements the-r
/--raw
switch, similarly to what we can do with e.g.lynx
andw3m
:The text was updated successfully, but these errors were encountered: