10

I'm working on a Windows xp machine. I wrote a program in assembly that outputs some text, and am trying to create a screenshot of the command line output (start->run->"cmd").

The problem is that the text initially printed by the program gets pushed up by later text and I cannot scroll to it.

I tried playing around with the width and height under properties => layout but it seems to resize the window itself (the borders) without resizing the textarea inside the window (text does not have more "room", but the window is bigger).

Does anybody know a workaround/solution for this?

Thank you!

4 Answers 4

11

Resizing under the properties dialog should work (ensure you are resizing the width and buffer size, resizing the window alone should also increase the buffer), but if it doesn't work you could always:

  • Redirect the output to a file:

    program.exe > C:\path\to\file.txt
    
  • Check out Console2

3
  • It's very easy to setup a shortcut with the size parameters you desire for your command prompt.... but I, too, and a HUGE fan of Console2. Dec 21, 2009 at 5:12
  • 1
    You can also hit Alt-Space and go to the Properties tab.
    – user211994
    Mar 27, 2013 at 21:27
  • You could also try conemu - code.google.com/p/conemu-maximus5
    – patricks
    Apr 25, 2013 at 11:14
6

There's a setting on one of the tabs where you can set the buffer-size (how many lines it should store for scrolling).

Edit: You can find it in the Layout-Tab, Screen Buffer Size. Set the Height to the number of lines you wanna store for scrolling.

0
6

You can use the following to do this as well:

mode con:cols=x lines=y

For example:

mode con:cols=150 lines=80

You can create shortcuts that do this automatically:

cmd /k mode con:cols=150 lines=80

cmd /k mode con:cols=80 lines=40
1

have a look at ColorConsole (it's free and portable), now you can either use Faststone Capture (a free and portable version can be obtained here) if you need a 'scroll screenshot' or use the ColorConsole feature to export the whole lot to HTML/RTF.

as a neat bonus you just got yourself a first class CMD replacement with a plethora of useful features such as favorite commands, copy/paste/cut functionality, tabbed interface, fast folder switch, etc.

1
  • I appreciate the reply.
    – Yuval
    Dec 6, 2009 at 18:10

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .