Maddy
Maddy

Reputation: 2570

how to activate 'more' option on command prompt (visual studio)

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.

Upvotes: 0

Views: 198

Answers (3)

Thomas Matthews
Thomas Matthews

Reputation: 57678

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::ignore().

Otherwise, as others have stated, pipe the output to a paging application.

Upvotes: 0

John Saunders
John Saunders

Reputation: 161773

There is no "more option". As James said above, there is a "more" command that you can use to paginate output.

Upvotes: 0

James McNellis
James McNellis

Reputation: 354969

With the Windows command prompt you can append | more to your command, e.g.,

dir | more

Upvotes: 3

Related Questions