0
For example, when I call the help menu in the Windows CMD terminal, "Curl --help", comes a rain of information on the screen, getting pretty bad to track reading.
0
For example, when I call the help menu in the Windows CMD terminal, "Curl --help", comes a rain of information on the screen, getting pretty bad to track reading.
1
On terminals usually "pause" works well, but it is a bit complicated to pause at the desired point, each terminal has its features, usually visual systems see with "terminal emulators" which allows to use the scrollbar, the same goes for the CMD, "just scroll" back.
But for ease you can save in a document using >
, for example:
curl --help > curl.txt
And read in your favorite text editor, or else read in https://curl.haxx.se/docs/manpage.html
In this post on Soen they gave a series of suggestions:
Some suggestions that seemed interesting:
Use the command less
(I believe not to be something standard in all systems, but I can not say):
curl --help | less
Then just use the up and down arrow.
The other suggestion was to use the key Scrolllock (Scrlk) before executing the command to then control with Pageup (Pgup) and Pagedown (Pgdn) , but I’m not sure about the behavior in different terminals/systems and I haven’t had a chance to test.
1
- Here is the suggestion to know the unxutils, these are some linux executables already ported to the Windows platform, including the
less
curl --help | less.exe
The unxutils is available on this website:
http://unxutils.sourceforge.net
- Alternative not too full of resources like the
less.exe
, would use themore
:
curl --help | more
Or, capture the output (crtl+c) via clip:
curl --help | clip & curl --help | more
You still have the option to open text-moved output (present in @guilhermenascimento’s reply):
>"%temp%\curl_help.txt" curl.exe --help && "%temp%\curl_help.txt"
That is exactly what I was looking for! Thank you, my friend
Pipe and more are from Windows, pipe eh an operator and more a suffer that comes with Windows and accepts operator redirection.
Browser other questions tagged windows curl cmd terminal
You are not signed in. Login or sign up in order to post.
Thank you for your attention, William! The "pipe" Less command I already know, I use on linux, and that’s exactly the same behavior I look for to use on Curl. But the documentation of Curl is very extensive and the navigation by the notebook in the CMD is terrible, so I thought it best to ask who uses the tool more often. Grateful for the information.
– Elcio Augusto Dalosto
@Elcioaugustodalosto being windows (cmd), the
curl --help > curl.txt
did not resolve?– Guilherme Nascimento
This command would be to save the data in a file. txt, but my intention is to use only the terminal to read the instructions quickly, just to query the commands, not to have to deal with the mouse too much or to pick up files in the folders manually. Anyway if I were to read the . txt saved it would open on the screen a huge "gut" of information that would look bad to read the same way.
– Elcio Augusto Dalosto
This command would be to save the data in a file. txt, but my intention is to use only the terminal to read the instructions quickly, just to query the commands, not to have to deal with the mouse too much or to pick up files in the folders manually. Anyway if I were to read the . txt saved it would open on the screen a huge "gut" of information that would look bad to read the same way.
– Elcio Augusto Dalosto
@Elcioaugustodalosto being windows I see no difficulty in this or in reading doc https://curl.haxx.se/docs/manpage.html, I myself have a series of "txts" with quick instructions and "snippets" (examples of commands I use a lot for quick copying).
– Guilherme Nascimento
Yes, it is a way to do the reading, but I was looking for exactly what the friend of the comment below sent. It would be the Curl --help | more, which allows you to read the text called slowly, being rolled while pressing some key. The | Less command does not work on cmd, I think q only on linux terminal or if you download lib pro cmd. The strange thing is that in the Curl help it doesn’t say anything about using the "pipe" more command to list with pause. Anyway, it was solved, I thank you anyway.
– Elcio Augusto Dalosto
@Elcioaugustodalosto pipe has nothing to do with Curl, Curl is a program, pipe is a terminal input (and output) control for commands, similar to a condition.
– Guilherme Nascimento