Is it possible to capture screen in MS-DOS and save the screen as a JPEG image?
You could use a virtual machine (for example VMWare Player or VirtualBox) and run DOS within that. Then (as it is running in a window), you could create a screenshot for that window.
Other than that: I can remember that there used to be TSR ("terminate but stay resident") programs for DOS that stored the content of the screen (ASCII characters) as text files when pressing a key, but of course they could not store any colors.
If you are using Windows you may use cmd to call a console. Then you an use the print screen funtion to create an image.
Using Debian you may use a terminal and the built in screenshot functionality.
But i guess you are reffering to a real command only environment. In that case you will need to have another program (TSR) to run in the background which will listen to a key combination to either print or save your screen.
Doscap.exe seems to be one of those programs, but i wasn't able to find a place where you can download it.
Just recently I needed to take screenshots in DOS and looked up some old programs I used way back when as well as some new ones. Among the best were
A few things should be pointed out:
- Some capture in ASCII mode (ie, create text/ANSI files) while others capture graphics (ie, create JPG/BMP) files. (Either way, you can convert the results manually.)
- They may not work depending on the screen. Usually they work by installing a TSR to intercept screen writes. That means that something that is output via direct hardware writes cannot be captured unless the software has the ability to read the graphics card's buffer/memory.
Just to throw it out there for a programmatic solution - read out current screen's memory buffer, get the character map bitmap from the graphics card, get the color palette for all 32 text-mode colors, put it all together, build a graphics file using all this data and compress as .jpg.
But capturing the screen from a VirtualBox machine should be probably easier. ;)
If you are using DOS-prompt in Windows, press Alt-PrintScreen. It copies the current window (for example the DOS-prompt window) into clipboard. (The DOS-prompt must be displayed in a window, not full screen).
Pressing PintScreen or Ctrl-PrintScreen copies the whole screen.
You can then paste it in an image editing application such as Paint and then save as JPG (or preferably as PNG which is non-destructinve format).
If you are using real MS-DOS (which was still distributed with Windows-98), you can press PrintScreen to print text screen on your default printer. To grab the text (perhaps with color) or graphical screen into a file, you need a screen capture program. Some may still be available, Google for MS-DOS screen capture.