More lines in command window

前端 未结 3 437
醉酒成梦
醉酒成梦 2020-12-04 07:43

Is there a possibility to get \"more\" lines into the command window (Console)?

When I debug my programs I output quite a bunch of lines to the window and the beginn

相关标签:
3条回答
  • 2020-12-04 08:00

    If you're using windows , click on the CMD icon in the top left corner and go to properties.

    Click the Options tab.

    In Command History, type or select 999 in Buffer Size, and then type or select 5 in Number of Buffers.

    0 讨论(0)
  • 2020-12-04 08:01

    Just to complement the answer(s) above, its also possible to export the lines to a txt file using > fileName.txt

    For example:

    myProgram.exe > output.txt // will create a new file with all the output of myProgram
    
    0 讨论(0)
  • 2020-12-04 08:04

    At least in Win7, Kristina's answer now seems to be either its memory of commands typed in the command lines, or the amount you can copy-paste.

    To increase the scrollbar's memory, I did the following:

    • Go to properties as mentioned by Kristina
    • Go to the layout tab (that's the third one)
    • Modify the screen buffer size's height - 9999 is the maximum.

    As mentioned by Joey in the comments to Kristina's answer, this will not work on things you've already done - only on things you do after making the change.

    This answer was originally written when Kristina's was marked as accepted. Now that this is the accepted answer, I've edited my answer to avoid confusion.

    0 讨论(0)
提交回复
热议问题