My code dumps a hell amount of data on the command prompt. How do I activate the 'MORE' option for the output so that I see the output page by page? (MS Visual Studio)
For eg. Matlab has the command 'more on' to do the same!
Thanks.
My code dumps a hell amount of data on the command prompt. How do I activate the 'MORE' option for the output so that I see the output page by page? (MS Visual Studio)
For eg. Matlab has the command 'more on' to do the same!
Thanks.
With the Windows command prompt you can append | more
to your command, e.g.,
dir | more
There is no "more option". As James said above, there is a "more" command that you can use to paginate output.
Create wrapper functions around the output functions. In these functions, track the number of newlines. If the amount reaches a given limit, pause the screen by using std::istream::ingore()
.
Otherwise, as others have stated, pipe the output to a paging application.